metanorma-itu 2.2.14 → 2.2.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/itu/html/_coverpage.css +7 -3
- data/lib/isodoc/itu/html/htmlstyle.css +16 -8
- data/lib/isodoc/itu/html/htmlstyle.scss +2 -2
- data/lib/isodoc/itu/i18n-ar.yaml +1 -1
- data/lib/isodoc/itu/i18n-de.yaml +1 -1
- data/lib/isodoc/itu/i18n-en.yaml +3 -1
- data/lib/isodoc/itu/i18n-es.yaml +3 -1
- data/lib/isodoc/itu/i18n-fr.yaml +3 -1
- data/lib/isodoc/itu/i18n-ru.yaml +3 -1
- data/lib/isodoc/itu/i18n-zh-Hans.yaml +1 -1
- data/lib/isodoc/itu/itu.implementers-guide.xsl +44 -38
- data/lib/isodoc/itu/itu.in-force.xsl +44 -38
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +44 -38
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +44 -38
- data/lib/isodoc/itu/itu.recommendation.xsl +44 -38
- data/lib/isodoc/itu/itu.resolution.xsl +44 -38
- data/lib/isodoc/itu/itu.service-publication.xsl +44 -38
- data/lib/isodoc/itu/itu.technical-paper.xsl +44 -38
- data/lib/isodoc/itu/itu.technical-report.xsl +44 -38
- data/lib/metanorma/itu/cleanup.rb +7 -0
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab77aa6538e716fad3b632f16f92ab28b0149ec8252e57fa598a5cab87c4030e
|
4
|
+
data.tar.gz: ed77a2cfe1cad5fd1a92ff1c5c8cfa0e9dd3586f84e6c62775f9229aa2cbc0e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a37ca832fec8d03e30eb7a2f92553efd07d5e2d922c849591588c9e587dc0641b85395aa5a5addbe2d94ab41360102170e6e8c6a8fb5fb1131730eb271a081bb
|
7
|
+
data.tar.gz: 0be40a2c8f7cd9aaf507df6cfc0e03bbc0433503925ef91a099c8ff76a39c88f1e567b675ea273704588757e6ce6c2dd3edd2b425ad7c5cd2a23c211d0e7aaac
|
@@ -90,7 +90,7 @@ h1, h2, h3, h4, h5, h6 {
|
|
90
90
|
|
91
91
|
blockquote, q {
|
92
92
|
quotes: none; }
|
93
|
-
blockquote
|
93
|
+
blockquote::before, blockquote::after, q::before, q::after {
|
94
94
|
content: '';
|
95
95
|
content: none; }
|
96
96
|
|
@@ -113,14 +113,18 @@ b, strong {
|
|
113
113
|
div.document-stage-band, div.document-type-band {
|
114
114
|
background-color: #333333; }
|
115
115
|
|
116
|
-
a.FootnoteRef + a.FootnoteRef
|
116
|
+
a.FootnoteRef + a.FootnoteRef::before {
|
117
117
|
content: ", ";
|
118
118
|
vertical-align: super; }
|
119
119
|
|
120
|
-
a.TableFootnoteRef + a.TableFootnoteRef
|
120
|
+
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
121
121
|
content: ", ";
|
122
122
|
vertical-align: super; }
|
123
123
|
|
124
|
+
a.TableFootnoteRef, span.TableFootnoteRef,
|
125
|
+
a.FootnoteRef, span.FootnoteRef {
|
126
|
+
vertical-align: super; }
|
127
|
+
|
124
128
|
.addition {
|
125
129
|
color: blue; }
|
126
130
|
|
@@ -90,7 +90,7 @@ h1, h2, h3, h4, h5, h6 {
|
|
90
90
|
|
91
91
|
blockquote, q {
|
92
92
|
quotes: none; }
|
93
|
-
blockquote
|
93
|
+
blockquote::before, blockquote::after, q::before, q::after {
|
94
94
|
content: '';
|
95
95
|
content: none; }
|
96
96
|
|
@@ -113,14 +113,18 @@ b, strong {
|
|
113
113
|
div.document-stage-band, div.document-type-band {
|
114
114
|
background-color: #333333; }
|
115
115
|
|
116
|
-
a.FootnoteRef + a.FootnoteRef
|
116
|
+
a.FootnoteRef + a.FootnoteRef::before {
|
117
117
|
content: ", ";
|
118
118
|
vertical-align: super; }
|
119
119
|
|
120
|
-
a.TableFootnoteRef + a.TableFootnoteRef
|
120
|
+
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
121
121
|
content: ", ";
|
122
122
|
vertical-align: super; }
|
123
123
|
|
124
|
+
a.TableFootnoteRef, span.TableFootnoteRef,
|
125
|
+
a.FootnoteRef, span.FootnoteRef {
|
126
|
+
vertical-align: super; }
|
127
|
+
|
124
128
|
.addition {
|
125
129
|
color: blue; }
|
126
130
|
|
@@ -369,7 +373,7 @@ h1, h2, h3, h4, h5, h6 {
|
|
369
373
|
|
370
374
|
blockquote, q {
|
371
375
|
quotes: none; }
|
372
|
-
blockquote
|
376
|
+
blockquote::before, blockquote::after, q::before, q::after {
|
373
377
|
content: '';
|
374
378
|
content: none; }
|
375
379
|
|
@@ -392,14 +396,18 @@ b, strong {
|
|
392
396
|
div.document-stage-band, div.document-type-band {
|
393
397
|
background-color: #333333; }
|
394
398
|
|
395
|
-
a.FootnoteRef + a.FootnoteRef
|
399
|
+
a.FootnoteRef + a.FootnoteRef::before {
|
396
400
|
content: ", ";
|
397
401
|
vertical-align: super; }
|
398
402
|
|
399
|
-
a.TableFootnoteRef + a.TableFootnoteRef
|
403
|
+
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
400
404
|
content: ", ";
|
401
405
|
vertical-align: super; }
|
402
406
|
|
407
|
+
a.TableFootnoteRef, span.TableFootnoteRef,
|
408
|
+
a.FootnoteRef, span.FootnoteRef {
|
409
|
+
vertical-align: super; }
|
410
|
+
|
403
411
|
.addition {
|
404
412
|
color: blue; }
|
405
413
|
|
@@ -790,7 +798,7 @@ nav #toc {
|
|
790
798
|
#toc li:hover a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
|
791
799
|
background: none;
|
792
800
|
box-shadow: none; }
|
793
|
-
#toc li
|
801
|
+
#toc li::before, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li::before {
|
794
802
|
content: " ";
|
795
803
|
display: none; }
|
796
804
|
@media print {
|
@@ -1100,7 +1108,7 @@ ul, ol {
|
|
1100
1108
|
|
1101
1109
|
ul > li {
|
1102
1110
|
list-style: none; }
|
1103
|
-
ul > li
|
1111
|
+
ul > li::before {
|
1104
1112
|
content: "\2014";
|
1105
1113
|
display: inline-block;
|
1106
1114
|
width: 1em;
|
@@ -70,7 +70,7 @@ nav {
|
|
70
70
|
background: none;
|
71
71
|
box-shadow: none;
|
72
72
|
}
|
73
|
-
|
73
|
+
&::before {
|
74
74
|
content: " ";
|
75
75
|
display: none;
|
76
76
|
}
|
@@ -356,7 +356,7 @@ ul {
|
|
356
356
|
> li {
|
357
357
|
list-style: none;
|
358
358
|
|
359
|
-
|
359
|
+
&::before {
|
360
360
|
content: "\2014";
|
361
361
|
display: inline-block;
|
362
362
|
width: 1em;
|
data/lib/isodoc/itu/i18n-ar.yaml
CHANGED
data/lib/isodoc/itu/i18n-de.yaml
CHANGED
data/lib/isodoc/itu/i18n-en.yaml
CHANGED
@@ -8,7 +8,7 @@ symbolsabbrev: Abbreviations and acronyms
|
|
8
8
|
abbrev: Abbreviations and acronyms
|
9
9
|
symbols: Abbreviations and acronyms
|
10
10
|
conventions: Conventions
|
11
|
-
|
11
|
+
summary: Summary
|
12
12
|
elsewhere_terms: >-
|
13
13
|
This Recommendation uses the following terms defined elsewhere:
|
14
14
|
here_terms: >-
|
@@ -64,6 +64,8 @@ prepub: Prepublished version
|
|
64
64
|
draft_new: Draft new %
|
65
65
|
email: E-mail
|
66
66
|
editor_full: editor
|
67
|
+
toc_figures: List of Figures
|
68
|
+
toc_tables: List of Tables
|
67
69
|
doctype_dict:
|
68
70
|
resolution: Resolution
|
69
71
|
recommendation: Recommendation
|
data/lib/isodoc/itu/i18n-es.yaml
CHANGED
@@ -8,7 +8,7 @@ symbolsabbrev: Abreviaciones y acrónimos
|
|
8
8
|
abbrev: Abreviaciones y acrónimos
|
9
9
|
symbols: Abreviaciones y acrónimos
|
10
10
|
conventions: Convenciones
|
11
|
-
|
11
|
+
summary: Resumen
|
12
12
|
elsewhere_terms: >-
|
13
13
|
Esta Recomendación utiliza los siguientes términos definidos en otro lugar:
|
14
14
|
here_terms: >-
|
@@ -64,6 +64,8 @@ prepub: Versión prepublicada
|
|
64
64
|
draft_new: Borrador de nueva %
|
65
65
|
email: E-mail
|
66
66
|
editor_full: editor
|
67
|
+
toc_figures: Table de Figuras
|
68
|
+
toc_tables: Tabla de Tablas
|
67
69
|
doctype_dict:
|
68
70
|
resolution: Resolución
|
69
71
|
recommendation: Recomendación
|
data/lib/isodoc/itu/i18n-fr.yaml
CHANGED
@@ -8,7 +8,7 @@ symbolsabbrev: Abréviations et acronymes
|
|
8
8
|
abbrev: Abréviations et acronymes
|
9
9
|
symbols: Abréviations et acronymes
|
10
10
|
conventions: Conventions
|
11
|
-
|
11
|
+
summary: Résumé
|
12
12
|
elsewhere_terms: >-
|
13
13
|
La présente Recommandation utilise les termes suivants définis ailleurs:
|
14
14
|
here_terms: >-
|
@@ -64,6 +64,8 @@ prepub: Version pré-publiée
|
|
64
64
|
draft_new: Projet de nouvelle %
|
65
65
|
editor_full: éditeur
|
66
66
|
email: E-mail
|
67
|
+
toc_figures: Table de Figures
|
68
|
+
toc_tables: Table des Tableaux
|
67
69
|
doctype_dict:
|
68
70
|
resolution: Résolution
|
69
71
|
recommendation: Recommandation
|
data/lib/isodoc/itu/i18n-ru.yaml
CHANGED
@@ -8,7 +8,7 @@ symbolsabbrev: Сокращения и акронимы
|
|
8
8
|
abbrev: Сокращения и акронимы
|
9
9
|
symbols: Сокращения и акронимы
|
10
10
|
conventions: Соглашения
|
11
|
-
|
11
|
+
summary: Резюме
|
12
12
|
elsewhere_terms: >-
|
13
13
|
Эта Рекомендация использует следующие термины, определенные в другом месте:
|
14
14
|
here_terms: >-
|
@@ -63,6 +63,8 @@ bdt_full: Бюро развития электросвязи<br/>МСЭ
|
|
63
63
|
prepub: Предварительно опубликованная версия
|
64
64
|
draft_new: Проект новой %
|
65
65
|
email: Эл. почта
|
66
|
+
toc_figures: Таблица Фигур
|
67
|
+
toc_tables: Таблица Таблиц
|
66
68
|
editor_full: редактор
|
67
69
|
doctype_dict:
|
68
70
|
resolution: Резолюция
|
@@ -2280,19 +2280,32 @@
|
|
2280
2280
|
<xsl:variable name="titles_">
|
2281
2281
|
|
2282
2282
|
<!-- These titles of Table of contents renders different than determined in localized-strings -->
|
2283
|
-
<title-toc lang="en">
|
2284
|
-
|
2285
|
-
|
2286
|
-
|
2283
|
+
<!-- <title-toc lang="en">
|
2284
|
+
<xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
|
2285
|
+
<xsl:text>Contents</xsl:text>
|
2286
|
+
</xsl:if>
|
2287
|
+
<xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
|
2288
|
+
<xsl:text>Table of Contents</xsl:text>
|
2289
|
+
</xsl:if>
|
2290
|
+
<xsl:if test="$namespace = 'gb'">
|
2291
|
+
<xsl:text>Table of contents</xsl:text>
|
2292
|
+
</xsl:if>
|
2293
|
+
</title-toc> -->
|
2294
|
+
<title-toc lang="en">Table of contents</title-toc>
|
2295
|
+
<!-- <title-toc lang="fr">
|
2287
2296
|
<xsl:text>Sommaire</xsl:text>
|
2288
|
-
</title-toc>
|
2289
|
-
<title-toc lang="zh">
|
2290
|
-
|
2297
|
+
</title-toc> -->
|
2298
|
+
<!-- <title-toc lang="zh">
|
2299
|
+
<xsl:choose>
|
2300
|
+
<xsl:when test="$namespace = 'gb'">
|
2301
|
+
<xsl:text>目次</xsl:text>
|
2302
|
+
</xsl:when>
|
2303
|
+
<xsl:otherwise>
|
2291
2304
|
<xsl:text>Contents</xsl:text>
|
2292
|
-
|
2293
|
-
|
2294
|
-
|
2295
|
-
<title-
|
2305
|
+
</xsl:otherwise>
|
2306
|
+
</xsl:choose>
|
2307
|
+
</title-toc> -->
|
2308
|
+
<title-toc lang="zh">目次</title-toc>
|
2296
2309
|
|
2297
2310
|
<title-part lang="en">
|
2298
2311
|
|
@@ -2308,20 +2321,6 @@
|
|
2308
2321
|
<title-subpart lang="en">Sub-part #</title-subpart>
|
2309
2322
|
<title-subpart lang="fr">Partie de sub #</title-subpart>
|
2310
2323
|
|
2311
|
-
<title-list-tables lang="en">List of Tables</title-list-tables>
|
2312
|
-
|
2313
|
-
<title-list-figures lang="en">List of Figures</title-list-figures>
|
2314
|
-
|
2315
|
-
<title-table-figures lang="en">Table of Figures</title-table-figures>
|
2316
|
-
|
2317
|
-
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
2318
|
-
|
2319
|
-
<title-summary lang="en">Summary</title-summary>
|
2320
|
-
|
2321
|
-
<title-continued lang="ru">(продолжение)</title-continued>
|
2322
|
-
<title-continued lang="en">(continued)</title-continued>
|
2323
|
-
<title-continued lang="fr">(continué)</title-continued>
|
2324
|
-
|
2325
2324
|
</xsl:variable>
|
2326
2325
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
|
2327
2326
|
|
@@ -2329,8 +2328,8 @@
|
|
2329
2328
|
<xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
|
2330
2329
|
<xsl:value-of select="$toc_table_title"/>
|
2331
2330
|
<xsl:if test="normalize-space($toc_table_title) = ''">
|
2332
|
-
<xsl:call-template name="
|
2333
|
-
<xsl:with-param name="
|
2331
|
+
<xsl:call-template name="getLocalizedString">
|
2332
|
+
<xsl:with-param name="key">toc_tables</xsl:with-param>
|
2334
2333
|
</xsl:call-template>
|
2335
2334
|
</xsl:if>
|
2336
2335
|
</xsl:variable>
|
@@ -2339,8 +2338,8 @@
|
|
2339
2338
|
<xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
|
2340
2339
|
<xsl:value-of select="$toc_figure_title"/>
|
2341
2340
|
<xsl:if test="normalize-space($toc_figure_title) = ''">
|
2342
|
-
<xsl:call-template name="
|
2343
|
-
<xsl:with-param name="
|
2341
|
+
<xsl:call-template name="getLocalizedString">
|
2342
|
+
<xsl:with-param name="key">toc_figures</xsl:with-param>
|
2344
2343
|
</xsl:call-template>
|
2345
2344
|
</xsl:if>
|
2346
2345
|
</xsl:variable>
|
@@ -2349,8 +2348,8 @@
|
|
2349
2348
|
<xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
|
2350
2349
|
<xsl:value-of select="$toc_requirement_title"/>
|
2351
2350
|
<xsl:if test="normalize-space($toc_requirement_title) = ''">
|
2352
|
-
<xsl:call-template name="
|
2353
|
-
<xsl:with-param name="
|
2351
|
+
<xsl:call-template name="getLocalizedString">
|
2352
|
+
<xsl:with-param name="key">toc_recommendations</xsl:with-param>
|
2354
2353
|
</xsl:call-template>
|
2355
2354
|
</xsl:if>
|
2356
2355
|
</xsl:variable>
|
@@ -6194,7 +6193,7 @@
|
|
6194
6193
|
<xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
|
6195
6194
|
<xsl:template match="*[local-name()='tt']/text()" priority="2">
|
6196
6195
|
<xsl:choose>
|
6197
|
-
<xsl:when test="java:replaceAll(java:java.lang.String.new(.),
|
6196
|
+
<xsl:when test="java:replaceAll(java:java.lang.String.new(.), $regex_url_start, '$2') != ''">
|
6198
6197
|
<!-- url -->
|
6199
6198
|
<xsl:call-template name="add-zero-spaces-link-java"/>
|
6200
6199
|
</xsl:when>
|
@@ -6656,10 +6655,13 @@
|
|
6656
6655
|
</xsl:choose>
|
6657
6656
|
</xsl:variable>
|
6658
6657
|
|
6658
|
+
<!-- replace sequence #x200B to one ​ -->
|
6659
|
+
<xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b{2,}', '')"/>
|
6660
|
+
|
6659
6661
|
<!-- replace sequence #x200B and space TO space -->
|
6660
|
-
<xsl:variable name="
|
6662
|
+
<xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
|
6661
6663
|
|
6662
|
-
<xsl:value-of select="$
|
6664
|
+
<xsl:value-of select="$text11"/>
|
6663
6665
|
</xsl:template>
|
6664
6666
|
|
6665
6667
|
<xsl:template name="add-zero-spaces-link-java">
|
@@ -6669,8 +6671,12 @@
|
|
6669
6671
|
<xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
|
6670
6672
|
<!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, comma, slash, @ -->
|
6671
6673
|
<xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/|@)','$1')"/>
|
6674
|
+
|
6675
|
+
<!-- replace sequence #x200B to one ​ -->
|
6676
|
+
<xsl:variable name="url2" select="java:replaceAll(java:java.lang.String.new($url), '\u200b{2,}', '')"/>
|
6677
|
+
|
6672
6678
|
<!-- remove zero-width space at the end -->
|
6673
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($
|
6679
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($url2), '$', '')"/>
|
6674
6680
|
</xsl:template>
|
6675
6681
|
|
6676
6682
|
<!-- add zero space after dash character (for table's entries) -->
|
@@ -7933,7 +7939,7 @@
|
|
7933
7939
|
|
7934
7940
|
<xsl:call-template name="refine_note_block_style"/>
|
7935
7941
|
|
7936
|
-
<fo:inline xsl:use-attribute-sets="note-name-style">
|
7942
|
+
<fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
|
7937
7943
|
|
7938
7944
|
<xsl:call-template name="refine_note-name-style"/>
|
7939
7945
|
|
@@ -7974,12 +7980,12 @@
|
|
7974
7980
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
7975
7981
|
<xsl:choose>
|
7976
7982
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
7977
|
-
<fo:inline xsl:use-attribute-sets="note-p-style">
|
7983
|
+
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
7978
7984
|
<xsl:apply-templates/>
|
7979
7985
|
</fo:inline>
|
7980
7986
|
</xsl:when>
|
7981
7987
|
<xsl:otherwise>
|
7982
|
-
<fo:block xsl:use-attribute-sets="note-p-style">
|
7988
|
+
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
7983
7989
|
<xsl:apply-templates/>
|
7984
7990
|
</fo:block>
|
7985
7991
|
</xsl:otherwise>
|
@@ -2280,19 +2280,32 @@
|
|
2280
2280
|
<xsl:variable name="titles_">
|
2281
2281
|
|
2282
2282
|
<!-- These titles of Table of contents renders different than determined in localized-strings -->
|
2283
|
-
<title-toc lang="en">
|
2284
|
-
|
2285
|
-
|
2286
|
-
|
2283
|
+
<!-- <title-toc lang="en">
|
2284
|
+
<xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
|
2285
|
+
<xsl:text>Contents</xsl:text>
|
2286
|
+
</xsl:if>
|
2287
|
+
<xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
|
2288
|
+
<xsl:text>Table of Contents</xsl:text>
|
2289
|
+
</xsl:if>
|
2290
|
+
<xsl:if test="$namespace = 'gb'">
|
2291
|
+
<xsl:text>Table of contents</xsl:text>
|
2292
|
+
</xsl:if>
|
2293
|
+
</title-toc> -->
|
2294
|
+
<title-toc lang="en">Table of contents</title-toc>
|
2295
|
+
<!-- <title-toc lang="fr">
|
2287
2296
|
<xsl:text>Sommaire</xsl:text>
|
2288
|
-
</title-toc>
|
2289
|
-
<title-toc lang="zh">
|
2290
|
-
|
2297
|
+
</title-toc> -->
|
2298
|
+
<!-- <title-toc lang="zh">
|
2299
|
+
<xsl:choose>
|
2300
|
+
<xsl:when test="$namespace = 'gb'">
|
2301
|
+
<xsl:text>目次</xsl:text>
|
2302
|
+
</xsl:when>
|
2303
|
+
<xsl:otherwise>
|
2291
2304
|
<xsl:text>Contents</xsl:text>
|
2292
|
-
|
2293
|
-
|
2294
|
-
|
2295
|
-
<title-
|
2305
|
+
</xsl:otherwise>
|
2306
|
+
</xsl:choose>
|
2307
|
+
</title-toc> -->
|
2308
|
+
<title-toc lang="zh">目次</title-toc>
|
2296
2309
|
|
2297
2310
|
<title-part lang="en">
|
2298
2311
|
|
@@ -2308,20 +2321,6 @@
|
|
2308
2321
|
<title-subpart lang="en">Sub-part #</title-subpart>
|
2309
2322
|
<title-subpart lang="fr">Partie de sub #</title-subpart>
|
2310
2323
|
|
2311
|
-
<title-list-tables lang="en">List of Tables</title-list-tables>
|
2312
|
-
|
2313
|
-
<title-list-figures lang="en">List of Figures</title-list-figures>
|
2314
|
-
|
2315
|
-
<title-table-figures lang="en">Table of Figures</title-table-figures>
|
2316
|
-
|
2317
|
-
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
2318
|
-
|
2319
|
-
<title-summary lang="en">Summary</title-summary>
|
2320
|
-
|
2321
|
-
<title-continued lang="ru">(продолжение)</title-continued>
|
2322
|
-
<title-continued lang="en">(continued)</title-continued>
|
2323
|
-
<title-continued lang="fr">(continué)</title-continued>
|
2324
|
-
|
2325
2324
|
</xsl:variable>
|
2326
2325
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
|
2327
2326
|
|
@@ -2329,8 +2328,8 @@
|
|
2329
2328
|
<xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
|
2330
2329
|
<xsl:value-of select="$toc_table_title"/>
|
2331
2330
|
<xsl:if test="normalize-space($toc_table_title) = ''">
|
2332
|
-
<xsl:call-template name="
|
2333
|
-
<xsl:with-param name="
|
2331
|
+
<xsl:call-template name="getLocalizedString">
|
2332
|
+
<xsl:with-param name="key">toc_tables</xsl:with-param>
|
2334
2333
|
</xsl:call-template>
|
2335
2334
|
</xsl:if>
|
2336
2335
|
</xsl:variable>
|
@@ -2339,8 +2338,8 @@
|
|
2339
2338
|
<xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
|
2340
2339
|
<xsl:value-of select="$toc_figure_title"/>
|
2341
2340
|
<xsl:if test="normalize-space($toc_figure_title) = ''">
|
2342
|
-
<xsl:call-template name="
|
2343
|
-
<xsl:with-param name="
|
2341
|
+
<xsl:call-template name="getLocalizedString">
|
2342
|
+
<xsl:with-param name="key">toc_figures</xsl:with-param>
|
2344
2343
|
</xsl:call-template>
|
2345
2344
|
</xsl:if>
|
2346
2345
|
</xsl:variable>
|
@@ -2349,8 +2348,8 @@
|
|
2349
2348
|
<xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
|
2350
2349
|
<xsl:value-of select="$toc_requirement_title"/>
|
2351
2350
|
<xsl:if test="normalize-space($toc_requirement_title) = ''">
|
2352
|
-
<xsl:call-template name="
|
2353
|
-
<xsl:with-param name="
|
2351
|
+
<xsl:call-template name="getLocalizedString">
|
2352
|
+
<xsl:with-param name="key">toc_recommendations</xsl:with-param>
|
2354
2353
|
</xsl:call-template>
|
2355
2354
|
</xsl:if>
|
2356
2355
|
</xsl:variable>
|
@@ -6194,7 +6193,7 @@
|
|
6194
6193
|
<xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
|
6195
6194
|
<xsl:template match="*[local-name()='tt']/text()" priority="2">
|
6196
6195
|
<xsl:choose>
|
6197
|
-
<xsl:when test="java:replaceAll(java:java.lang.String.new(.),
|
6196
|
+
<xsl:when test="java:replaceAll(java:java.lang.String.new(.), $regex_url_start, '$2') != ''">
|
6198
6197
|
<!-- url -->
|
6199
6198
|
<xsl:call-template name="add-zero-spaces-link-java"/>
|
6200
6199
|
</xsl:when>
|
@@ -6656,10 +6655,13 @@
|
|
6656
6655
|
</xsl:choose>
|
6657
6656
|
</xsl:variable>
|
6658
6657
|
|
6658
|
+
<!-- replace sequence #x200B to one ​ -->
|
6659
|
+
<xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b{2,}', '')"/>
|
6660
|
+
|
6659
6661
|
<!-- replace sequence #x200B and space TO space -->
|
6660
|
-
<xsl:variable name="
|
6662
|
+
<xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
|
6661
6663
|
|
6662
|
-
<xsl:value-of select="$
|
6664
|
+
<xsl:value-of select="$text11"/>
|
6663
6665
|
</xsl:template>
|
6664
6666
|
|
6665
6667
|
<xsl:template name="add-zero-spaces-link-java">
|
@@ -6669,8 +6671,12 @@
|
|
6669
6671
|
<xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
|
6670
6672
|
<!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, comma, slash, @ -->
|
6671
6673
|
<xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/|@)','$1')"/>
|
6674
|
+
|
6675
|
+
<!-- replace sequence #x200B to one ​ -->
|
6676
|
+
<xsl:variable name="url2" select="java:replaceAll(java:java.lang.String.new($url), '\u200b{2,}', '')"/>
|
6677
|
+
|
6672
6678
|
<!-- remove zero-width space at the end -->
|
6673
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($
|
6679
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($url2), '$', '')"/>
|
6674
6680
|
</xsl:template>
|
6675
6681
|
|
6676
6682
|
<!-- add zero space after dash character (for table's entries) -->
|
@@ -7933,7 +7939,7 @@
|
|
7933
7939
|
|
7934
7940
|
<xsl:call-template name="refine_note_block_style"/>
|
7935
7941
|
|
7936
|
-
<fo:inline xsl:use-attribute-sets="note-name-style">
|
7942
|
+
<fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
|
7937
7943
|
|
7938
7944
|
<xsl:call-template name="refine_note-name-style"/>
|
7939
7945
|
|
@@ -7974,12 +7980,12 @@
|
|
7974
7980
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
7975
7981
|
<xsl:choose>
|
7976
7982
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
7977
|
-
<fo:inline xsl:use-attribute-sets="note-p-style">
|
7983
|
+
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
7978
7984
|
<xsl:apply-templates/>
|
7979
7985
|
</fo:inline>
|
7980
7986
|
</xsl:when>
|
7981
7987
|
<xsl:otherwise>
|
7982
|
-
<fo:block xsl:use-attribute-sets="note-p-style">
|
7988
|
+
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
7983
7989
|
<xsl:apply-templates/>
|
7984
7990
|
</fo:block>
|
7985
7991
|
</xsl:otherwise>
|