metanorma-un 0.10.12 → 0.10.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 586884ec696f72e729ba9a9502bde8b410bc029842332ab1e6895a41af645c43
4
- data.tar.gz: 7c9cc667331ae0f51c96b6550aed79bcf4d5b8e4ac3dce11f770bb4f50b70e2f
3
+ metadata.gz: 04e000256ab134b80a72f9a876d5b8b6864529306a476ceffd7c164dc4ba366e
4
+ data.tar.gz: b8191bfffd99a65df9d3b56ddc4bc2db5f3820530ae56637a1b7f32a58b5840e
5
5
  SHA512:
6
- metadata.gz: 29e01f51a7ad2a42be4f8eca3b025b6d951653ce989630ffbd34bc95de3b0884cfac3fb2f9145171f7551b0213a4f40e90249de465bd71731553eaffe937e615
7
- data.tar.gz: 076af55bea40298a002c290c29966242483aa235b5885b729dd68604bebaa5f7688160e630a04384e12570606f7bdfad84600392432d9b3fcaac9676ca76ca10
6
+ metadata.gz: b61fa9f4b6176a45223ad7b31ee0909be4dc08f6ad957eb6a7a1ebaeccc0768eb0b25bea1cd0594da11784f859d1c5f7d6ab425f8b05fd93dfd10b3f4ad20973
7
+ data.tar.gz: 48ab9f757cca73b72fb187fa8b9f23148b3aef42a492785e4042caf67d6ad96a804890e3b2f1f585fd2d4f4afd1f67caedf87b446ccd53ff6f2f979f6d14a1dd
@@ -97,7 +97,7 @@ h1, h2, h3, h4, h5, h6 {
97
97
 
98
98
  blockquote, q {
99
99
  quotes: none; }
100
- blockquote:before, blockquote:after, q:before, q:after {
100
+ blockquote::before, blockquote::after, q::before, q::after {
101
101
  content: '';
102
102
  content: none; }
103
103
 
@@ -120,14 +120,18 @@ b, strong {
120
120
  div.document-stage-band, div.document-type-band {
121
121
  background-color: #333333; }
122
122
 
123
- a.FootnoteRef + a.FootnoteRef:before {
123
+ a.FootnoteRef + a.FootnoteRef::before {
124
124
  content: ", ";
125
125
  vertical-align: super; }
126
126
 
127
- a.TableFootnoteRef + a.TableFootnoteRef:before {
127
+ a.TableFootnoteRef + a.TableFootnoteRef::before {
128
128
  content: ", ";
129
129
  vertical-align: super; }
130
130
 
131
+ a.TableFootnoteRef, span.TableFootnoteRef,
132
+ a.FootnoteRef, span.FootnoteRef {
133
+ vertical-align: super; }
134
+
131
135
  .addition {
132
136
  color: blue; }
133
137
 
@@ -751,7 +755,7 @@ ol ul > li:first-child {
751
755
  #toc-list li {
752
756
  list-style-type: none; }
753
757
 
754
- #toc li:before {
758
+ #toc li::before {
755
759
  content: " ";
756
760
  display: none; }
757
761
 
@@ -424,7 +424,7 @@ ol ul > li:first-child {
424
424
  list-style-type: none;
425
425
  }
426
426
 
427
- #toc li:before {
427
+ #toc li::before {
428
428
  content: " ";
429
429
  display: none;
430
430
  }
@@ -1,3 +1,4 @@
1
1
  admonition: Box
2
2
  abstract: Summary
3
3
  paragraph: paragraph
4
+ table_of_contents: Contents
@@ -871,19 +871,32 @@
871
871
  <xsl:variable name="titles_">
872
872
 
873
873
  <!-- These titles of Table of contents renders different than determined in localized-strings -->
874
- <title-toc lang="en">
875
-
876
- </title-toc>
877
- <title-toc lang="fr">
874
+ <!-- <title-toc lang="en">
875
+ <xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
876
+ <xsl:text>Contents</xsl:text>
877
+ </xsl:if>
878
+ <xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
879
+ <xsl:text>Table of Contents</xsl:text>
880
+ </xsl:if>
881
+ <xsl:if test="$namespace = 'gb'">
882
+ <xsl:text>Table of contents</xsl:text>
883
+ </xsl:if>
884
+ </title-toc> -->
885
+ <title-toc lang="en">Table of contents</title-toc>
886
+ <!-- <title-toc lang="fr">
878
887
  <xsl:text>Sommaire</xsl:text>
879
- </title-toc>
880
- <title-toc lang="zh">
881
-
888
+ </title-toc> -->
889
+ <!-- <title-toc lang="zh">
890
+ <xsl:choose>
891
+ <xsl:when test="$namespace = 'gb'">
892
+ <xsl:text>目次</xsl:text>
893
+ </xsl:when>
894
+ <xsl:otherwise>
882
895
  <xsl:text>Contents</xsl:text>
883
-
884
- </title-toc>
885
-
886
- <title-descriptors lang="en">Descriptors</title-descriptors>
896
+ </xsl:otherwise>
897
+ </xsl:choose>
898
+ </title-toc> -->
899
+ <title-toc lang="zh">目次</title-toc>
887
900
 
888
901
  <title-part lang="en">
889
902
 
@@ -899,20 +912,6 @@
899
912
  <title-subpart lang="en">Sub-part #</title-subpart>
900
913
  <title-subpart lang="fr">Partie de sub #</title-subpart>
901
914
 
902
- <title-list-tables lang="en">List of Tables</title-list-tables>
903
-
904
- <title-list-figures lang="en">List of Figures</title-list-figures>
905
-
906
- <title-table-figures lang="en">Table of Figures</title-table-figures>
907
-
908
- <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
909
-
910
- <title-summary lang="en">Summary</title-summary>
911
-
912
- <title-continued lang="ru">(продолжение)</title-continued>
913
- <title-continued lang="en">(continued)</title-continued>
914
- <title-continued lang="fr">(continué)</title-continued>
915
-
916
915
  </xsl:variable>
917
916
  <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
918
917
 
@@ -920,8 +919,8 @@
920
919
  <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
921
920
  <xsl:value-of select="$toc_table_title"/>
922
921
  <xsl:if test="normalize-space($toc_table_title) = ''">
923
- <xsl:call-template name="getTitle">
924
- <xsl:with-param name="name" select="'title-list-tables'"/>
922
+ <xsl:call-template name="getLocalizedString">
923
+ <xsl:with-param name="key">toc_tables</xsl:with-param>
925
924
  </xsl:call-template>
926
925
  </xsl:if>
927
926
  </xsl:variable>
@@ -930,8 +929,8 @@
930
929
  <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
931
930
  <xsl:value-of select="$toc_figure_title"/>
932
931
  <xsl:if test="normalize-space($toc_figure_title) = ''">
933
- <xsl:call-template name="getTitle">
934
- <xsl:with-param name="name" select="'title-list-figures'"/>
932
+ <xsl:call-template name="getLocalizedString">
933
+ <xsl:with-param name="key">toc_figures</xsl:with-param>
935
934
  </xsl:call-template>
936
935
  </xsl:if>
937
936
  </xsl:variable>
@@ -940,8 +939,8 @@
940
939
  <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
941
940
  <xsl:value-of select="$toc_requirement_title"/>
942
941
  <xsl:if test="normalize-space($toc_requirement_title) = ''">
943
- <xsl:call-template name="getTitle">
944
- <xsl:with-param name="name" select="'title-list-recommendations'"/>
942
+ <xsl:call-template name="getLocalizedString">
943
+ <xsl:with-param name="key">toc_recommendations</xsl:with-param>
945
944
  </xsl:call-template>
946
945
  </xsl:if>
947
946
  </xsl:variable>
@@ -4704,7 +4703,7 @@
4704
4703
  <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
4705
4704
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
4706
4705
  <xsl:choose>
4707
- <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
4706
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), $regex_url_start, '$2') != ''">
4708
4707
  <!-- url -->
4709
4708
  <xsl:call-template name="add-zero-spaces-link-java"/>
4710
4709
  </xsl:when>
@@ -5166,10 +5165,13 @@
5166
5165
  </xsl:choose>
5167
5166
  </xsl:variable>
5168
5167
 
5168
+ <!-- replace sequence #x200B to one &#x200B -->
5169
+ <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b{2,}', '​')"/>
5170
+
5169
5171
  <!-- replace sequence #x200B and space TO space -->
5170
- <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b ', ' ')"/>
5172
+ <xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
5171
5173
 
5172
- <xsl:value-of select="$text10"/>
5174
+ <xsl:value-of select="$text11"/>
5173
5175
  </xsl:template>
5174
5176
 
5175
5177
  <xsl:template name="add-zero-spaces-link-java">
@@ -5179,8 +5181,12 @@
5179
5181
  <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
5180
5182
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, comma, slash, @ -->
5181
5183
  <xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/|@)','$1​')"/>
5184
+
5185
+ <!-- replace sequence #x200B to one &#x200B -->
5186
+ <xsl:variable name="url2" select="java:replaceAll(java:java.lang.String.new($url), '\u200b{2,}', '​')"/>
5187
+
5182
5188
  <!-- remove zero-width space at the end -->
5183
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url), '​$', '')"/>
5189
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url2), '​$', '')"/>
5184
5190
  </xsl:template>
5185
5191
 
5186
5192
  <!-- add zero space after dash character (for table's entries) -->
@@ -6443,7 +6449,7 @@
6443
6449
 
6444
6450
  <xsl:call-template name="refine_note_block_style"/>
6445
6451
 
6446
- <fo:inline xsl:use-attribute-sets="note-name-style">
6452
+ <fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
6447
6453
 
6448
6454
  <xsl:call-template name="refine_note-name-style"/>
6449
6455
 
@@ -6489,12 +6495,12 @@
6489
6495
  <xsl:variable name="num"><xsl:number/></xsl:variable>
6490
6496
  <xsl:choose>
6491
6497
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
6492
- <fo:inline xsl:use-attribute-sets="note-p-style">
6498
+ <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
6493
6499
  <xsl:apply-templates/>
6494
6500
  </fo:inline>
6495
6501
  </xsl:when>
6496
6502
  <xsl:otherwise>
6497
- <fo:block xsl:use-attribute-sets="note-p-style">
6503
+ <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
6498
6504
  <xsl:apply-templates/>
6499
6505
  </fo:block>
6500
6506
  </xsl:otherwise>
@@ -871,19 +871,32 @@
871
871
  <xsl:variable name="titles_">
872
872
 
873
873
  <!-- These titles of Table of contents renders different than determined in localized-strings -->
874
- <title-toc lang="en">
875
-
876
- </title-toc>
877
- <title-toc lang="fr">
874
+ <!-- <title-toc lang="en">
875
+ <xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
876
+ <xsl:text>Contents</xsl:text>
877
+ </xsl:if>
878
+ <xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
879
+ <xsl:text>Table of Contents</xsl:text>
880
+ </xsl:if>
881
+ <xsl:if test="$namespace = 'gb'">
882
+ <xsl:text>Table of contents</xsl:text>
883
+ </xsl:if>
884
+ </title-toc> -->
885
+ <title-toc lang="en">Table of contents</title-toc>
886
+ <!-- <title-toc lang="fr">
878
887
  <xsl:text>Sommaire</xsl:text>
879
- </title-toc>
880
- <title-toc lang="zh">
881
-
888
+ </title-toc> -->
889
+ <!-- <title-toc lang="zh">
890
+ <xsl:choose>
891
+ <xsl:when test="$namespace = 'gb'">
892
+ <xsl:text>目次</xsl:text>
893
+ </xsl:when>
894
+ <xsl:otherwise>
882
895
  <xsl:text>Contents</xsl:text>
883
-
884
- </title-toc>
885
-
886
- <title-descriptors lang="en">Descriptors</title-descriptors>
896
+ </xsl:otherwise>
897
+ </xsl:choose>
898
+ </title-toc> -->
899
+ <title-toc lang="zh">目次</title-toc>
887
900
 
888
901
  <title-part lang="en">
889
902
 
@@ -899,20 +912,6 @@
899
912
  <title-subpart lang="en">Sub-part #</title-subpart>
900
913
  <title-subpart lang="fr">Partie de sub #</title-subpart>
901
914
 
902
- <title-list-tables lang="en">List of Tables</title-list-tables>
903
-
904
- <title-list-figures lang="en">List of Figures</title-list-figures>
905
-
906
- <title-table-figures lang="en">Table of Figures</title-table-figures>
907
-
908
- <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
909
-
910
- <title-summary lang="en">Summary</title-summary>
911
-
912
- <title-continued lang="ru">(продолжение)</title-continued>
913
- <title-continued lang="en">(continued)</title-continued>
914
- <title-continued lang="fr">(continué)</title-continued>
915
-
916
915
  </xsl:variable>
917
916
  <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
918
917
 
@@ -920,8 +919,8 @@
920
919
  <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
921
920
  <xsl:value-of select="$toc_table_title"/>
922
921
  <xsl:if test="normalize-space($toc_table_title) = ''">
923
- <xsl:call-template name="getTitle">
924
- <xsl:with-param name="name" select="'title-list-tables'"/>
922
+ <xsl:call-template name="getLocalizedString">
923
+ <xsl:with-param name="key">toc_tables</xsl:with-param>
925
924
  </xsl:call-template>
926
925
  </xsl:if>
927
926
  </xsl:variable>
@@ -930,8 +929,8 @@
930
929
  <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
931
930
  <xsl:value-of select="$toc_figure_title"/>
932
931
  <xsl:if test="normalize-space($toc_figure_title) = ''">
933
- <xsl:call-template name="getTitle">
934
- <xsl:with-param name="name" select="'title-list-figures'"/>
932
+ <xsl:call-template name="getLocalizedString">
933
+ <xsl:with-param name="key">toc_figures</xsl:with-param>
935
934
  </xsl:call-template>
936
935
  </xsl:if>
937
936
  </xsl:variable>
@@ -940,8 +939,8 @@
940
939
  <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
941
940
  <xsl:value-of select="$toc_requirement_title"/>
942
941
  <xsl:if test="normalize-space($toc_requirement_title) = ''">
943
- <xsl:call-template name="getTitle">
944
- <xsl:with-param name="name" select="'title-list-recommendations'"/>
942
+ <xsl:call-template name="getLocalizedString">
943
+ <xsl:with-param name="key">toc_recommendations</xsl:with-param>
945
944
  </xsl:call-template>
946
945
  </xsl:if>
947
946
  </xsl:variable>
@@ -4704,7 +4703,7 @@
4704
4703
  <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
4705
4704
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
4706
4705
  <xsl:choose>
4707
- <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
4706
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), $regex_url_start, '$2') != ''">
4708
4707
  <!-- url -->
4709
4708
  <xsl:call-template name="add-zero-spaces-link-java"/>
4710
4709
  </xsl:when>
@@ -5166,10 +5165,13 @@
5166
5165
  </xsl:choose>
5167
5166
  </xsl:variable>
5168
5167
 
5168
+ <!-- replace sequence #x200B to one &#x200B -->
5169
+ <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b{2,}', '​')"/>
5170
+
5169
5171
  <!-- replace sequence #x200B and space TO space -->
5170
- <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b ', ' ')"/>
5172
+ <xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
5171
5173
 
5172
- <xsl:value-of select="$text10"/>
5174
+ <xsl:value-of select="$text11"/>
5173
5175
  </xsl:template>
5174
5176
 
5175
5177
  <xsl:template name="add-zero-spaces-link-java">
@@ -5179,8 +5181,12 @@
5179
5181
  <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
5180
5182
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, comma, slash, @ -->
5181
5183
  <xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/|@)','$1​')"/>
5184
+
5185
+ <!-- replace sequence #x200B to one &#x200B -->
5186
+ <xsl:variable name="url2" select="java:replaceAll(java:java.lang.String.new($url), '\u200b{2,}', '​')"/>
5187
+
5182
5188
  <!-- remove zero-width space at the end -->
5183
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url), '​$', '')"/>
5189
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url2), '​$', '')"/>
5184
5190
  </xsl:template>
5185
5191
 
5186
5192
  <!-- add zero space after dash character (for table's entries) -->
@@ -6443,7 +6449,7 @@
6443
6449
 
6444
6450
  <xsl:call-template name="refine_note_block_style"/>
6445
6451
 
6446
- <fo:inline xsl:use-attribute-sets="note-name-style">
6452
+ <fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
6447
6453
 
6448
6454
  <xsl:call-template name="refine_note-name-style"/>
6449
6455
 
@@ -6489,12 +6495,12 @@
6489
6495
  <xsl:variable name="num"><xsl:number/></xsl:variable>
6490
6496
  <xsl:choose>
6491
6497
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
6492
- <fo:inline xsl:use-attribute-sets="note-p-style">
6498
+ <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
6493
6499
  <xsl:apply-templates/>
6494
6500
  </fo:inline>
6495
6501
  </xsl:when>
6496
6502
  <xsl:otherwise>
6497
- <fo:block xsl:use-attribute-sets="note-p-style">
6503
+ <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
6498
6504
  <xsl:apply-templates/>
6499
6505
  </fo:block>
6500
6506
  </xsl:otherwise>
@@ -977,21 +977,32 @@
977
977
  <xsl:variable name="titles_">
978
978
 
979
979
  <!-- These titles of Table of contents renders different than determined in localized-strings -->
980
- <title-toc lang="en">
981
-
980
+ <!-- <title-toc lang="en">
981
+ <xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
982
982
  <xsl:text>Contents</xsl:text>
983
-
984
- </title-toc>
985
- <title-toc lang="fr">
983
+ </xsl:if>
984
+ <xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
985
+ <xsl:text>Table of Contents</xsl:text>
986
+ </xsl:if>
987
+ <xsl:if test="$namespace = 'gb'">
988
+ <xsl:text>Table of contents</xsl:text>
989
+ </xsl:if>
990
+ </title-toc> -->
991
+ <title-toc lang="en">Table of contents</title-toc>
992
+ <!-- <title-toc lang="fr">
986
993
  <xsl:text>Sommaire</xsl:text>
987
- </title-toc>
988
- <title-toc lang="zh">
989
-
994
+ </title-toc> -->
995
+ <!-- <title-toc lang="zh">
996
+ <xsl:choose>
997
+ <xsl:when test="$namespace = 'gb'">
998
+ <xsl:text>目次</xsl:text>
999
+ </xsl:when>
1000
+ <xsl:otherwise>
990
1001
  <xsl:text>Contents</xsl:text>
991
-
992
- </title-toc>
993
-
994
- <title-descriptors lang="en">Descriptors</title-descriptors>
1002
+ </xsl:otherwise>
1003
+ </xsl:choose>
1004
+ </title-toc> -->
1005
+ <title-toc lang="zh">目次</title-toc>
995
1006
 
996
1007
  <title-part lang="en">
997
1008
 
@@ -1007,20 +1018,6 @@
1007
1018
  <title-subpart lang="en">Sub-part #</title-subpart>
1008
1019
  <title-subpart lang="fr">Partie de sub #</title-subpart>
1009
1020
 
1010
- <title-list-tables lang="en">List of Tables</title-list-tables>
1011
-
1012
- <title-list-figures lang="en">List of Figures</title-list-figures>
1013
-
1014
- <title-table-figures lang="en">Table of Figures</title-table-figures>
1015
-
1016
- <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
1017
-
1018
- <title-summary lang="en">Summary</title-summary>
1019
-
1020
- <title-continued lang="ru">(продолжение)</title-continued>
1021
- <title-continued lang="en">(continued)</title-continued>
1022
- <title-continued lang="fr">(continué)</title-continued>
1023
-
1024
1021
  </xsl:variable>
1025
1022
  <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
1026
1023
 
@@ -1028,8 +1025,8 @@
1028
1025
  <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
1029
1026
  <xsl:value-of select="$toc_table_title"/>
1030
1027
  <xsl:if test="normalize-space($toc_table_title) = ''">
1031
- <xsl:call-template name="getTitle">
1032
- <xsl:with-param name="name" select="'title-list-tables'"/>
1028
+ <xsl:call-template name="getLocalizedString">
1029
+ <xsl:with-param name="key">toc_tables</xsl:with-param>
1033
1030
  </xsl:call-template>
1034
1031
  </xsl:if>
1035
1032
  </xsl:variable>
@@ -1038,8 +1035,8 @@
1038
1035
  <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
1039
1036
  <xsl:value-of select="$toc_figure_title"/>
1040
1037
  <xsl:if test="normalize-space($toc_figure_title) = ''">
1041
- <xsl:call-template name="getTitle">
1042
- <xsl:with-param name="name" select="'title-list-figures'"/>
1038
+ <xsl:call-template name="getLocalizedString">
1039
+ <xsl:with-param name="key">toc_figures</xsl:with-param>
1043
1040
  </xsl:call-template>
1044
1041
  </xsl:if>
1045
1042
  </xsl:variable>
@@ -1048,8 +1045,8 @@
1048
1045
  <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
1049
1046
  <xsl:value-of select="$toc_requirement_title"/>
1050
1047
  <xsl:if test="normalize-space($toc_requirement_title) = ''">
1051
- <xsl:call-template name="getTitle">
1052
- <xsl:with-param name="name" select="'title-list-recommendations'"/>
1048
+ <xsl:call-template name="getLocalizedString">
1049
+ <xsl:with-param name="key">toc_recommendations</xsl:with-param>
1053
1050
  </xsl:call-template>
1054
1051
  </xsl:if>
1055
1052
  </xsl:variable>
@@ -4833,7 +4830,7 @@
4833
4830
  <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
4834
4831
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
4835
4832
  <xsl:choose>
4836
- <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
4833
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), $regex_url_start, '$2') != ''">
4837
4834
  <!-- url -->
4838
4835
  <xsl:call-template name="add-zero-spaces-link-java"/>
4839
4836
  </xsl:when>
@@ -5295,10 +5292,13 @@
5295
5292
  </xsl:choose>
5296
5293
  </xsl:variable>
5297
5294
 
5295
+ <!-- replace sequence #x200B to one &#x200B -->
5296
+ <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b{2,}', '​')"/>
5297
+
5298
5298
  <!-- replace sequence #x200B and space TO space -->
5299
- <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b ', ' ')"/>
5299
+ <xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
5300
5300
 
5301
- <xsl:value-of select="$text10"/>
5301
+ <xsl:value-of select="$text11"/>
5302
5302
  </xsl:template>
5303
5303
 
5304
5304
  <xsl:template name="add-zero-spaces-link-java">
@@ -5308,8 +5308,12 @@
5308
5308
  <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
5309
5309
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, comma, slash, @ -->
5310
5310
  <xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/|@)','$1​')"/>
5311
+
5312
+ <!-- replace sequence #x200B to one &#x200B -->
5313
+ <xsl:variable name="url2" select="java:replaceAll(java:java.lang.String.new($url), '\u200b{2,}', '​')"/>
5314
+
5311
5315
  <!-- remove zero-width space at the end -->
5312
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url), '​$', '')"/>
5316
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url2), '​$', '')"/>
5313
5317
  </xsl:template>
5314
5318
 
5315
5319
  <!-- add zero space after dash character (for table's entries) -->
@@ -6572,7 +6576,7 @@
6572
6576
 
6573
6577
  <xsl:call-template name="refine_note_block_style"/>
6574
6578
 
6575
- <fo:inline xsl:use-attribute-sets="note-name-style">
6579
+ <fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
6576
6580
 
6577
6581
  <xsl:call-template name="refine_note-name-style"/>
6578
6582
 
@@ -6618,12 +6622,12 @@
6618
6622
  <xsl:variable name="num"><xsl:number/></xsl:variable>
6619
6623
  <xsl:choose>
6620
6624
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
6621
- <fo:inline xsl:use-attribute-sets="note-p-style">
6625
+ <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
6622
6626
  <xsl:apply-templates/>
6623
6627
  </fo:inline>
6624
6628
  </xsl:when>
6625
6629
  <xsl:otherwise>
6626
- <fo:block xsl:use-attribute-sets="note-p-style">
6630
+ <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
6627
6631
  <xsl:apply-templates/>
6628
6632
  </fo:block>
6629
6633
  </xsl:otherwise>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module UN
3
- VERSION = "0.10.12".freeze
3
+ VERSION = "0.10.13".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-un
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.12
4
+ version: 0.10.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-07 00:00:00.000000000 Z
11
+ date: 2023-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639