metanorma-iho 0.7.13 → 0.7.14

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: 7e27d20ae86209f35cb6af7e706a439b38a896b427f7b81c9f48a2a0de22d765
4
- data.tar.gz: c901938d5097999b399159c6095c99e5847f830435832aa399223a68d8e33a3d
3
+ metadata.gz: cbf9a1bfd7a68cc123adc041a0efb220a3771c652784026a284a124ed79333d2
4
+ data.tar.gz: 9c79bbf9ed708071e41538de30f5bacf1cf297e6ee9b8ffd2044ac2090ebdbc8
5
5
  SHA512:
6
- metadata.gz: fb07bf84448e8d7c6b5c5a0b6dcf284e70698d9e517104832a0e8ebe935c5f5990d83cbb73226b93c6057ea4ddf48b8dd40bf542e68db83974eac39aabf634d2
7
- data.tar.gz: eca0d7f5411f90409085a8454216bc506707a5d5db746cab6af734375dc377e3cd084a49c85d9307a08b4f2d48d62ff7d4eacf2aba506b5cd32238a1d5286f67
6
+ metadata.gz: 9e18eaf1bfa537e3afa2f43161881f0841757d07a065286fba2bc1f8ddb17319c8ce567225fe89950c0f070c9d0279e6d73bf5ed305591d2200aecd9b411b74f
7
+ data.tar.gz: e4e898a3782cd148ba63daa180c87eb62b254fd7e977a8b66f94c3a0af18d937805b8f4f3622875401bfd8091f4fa392f8650e3ca180133e6f5072278ce6e566
@@ -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
 
@@ -679,7 +683,7 @@ ol {
679
683
  ul li {
680
684
  list-style: none; }
681
685
 
682
- ul > li:before {
686
+ ul > li::before {
683
687
  content: "\2014";
684
688
  display: inline-block;
685
689
  width: 1em;
@@ -703,7 +707,7 @@ ol ul > li:first-child {
703
707
  #toc-list li {
704
708
  list-style-type: none; }
705
709
 
706
- #toc li:before {
710
+ #toc li::before {
707
711
  content: " ";
708
712
  display: none; }
709
713
 
@@ -299,7 +299,7 @@ ul li {
299
299
  list-style: none;
300
300
  }
301
301
 
302
- ul>li:before {
302
+ ul>li::before {
303
303
  content: "\2014";
304
304
  display: inline-block;
305
305
  width: 1em;
@@ -329,7 +329,7 @@ ol ul > li:first-child {
329
329
  list-style-type: none;
330
330
  }
331
331
 
332
- #toc li:before {
332
+ #toc li::before {
333
333
  content: " ";
334
334
  display: none;
335
335
  }
@@ -980,21 +980,32 @@
980
980
  <xsl:variable name="titles_">
981
981
 
982
982
  <!-- These titles of Table of contents renders different than determined in localized-strings -->
983
- <title-toc lang="en">
984
-
983
+ <!-- <title-toc lang="en">
984
+ <xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
985
985
  <xsl:text>Contents</xsl:text>
986
-
987
- </title-toc>
988
- <title-toc lang="fr">
986
+ </xsl:if>
987
+ <xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
988
+ <xsl:text>Table of Contents</xsl:text>
989
+ </xsl:if>
990
+ <xsl:if test="$namespace = 'gb'">
991
+ <xsl:text>Table of contents</xsl:text>
992
+ </xsl:if>
993
+ </title-toc> -->
994
+ <title-toc lang="en">Table of contents</title-toc>
995
+ <!-- <title-toc lang="fr">
989
996
  <xsl:text>Sommaire</xsl:text>
990
- </title-toc>
991
- <title-toc lang="zh">
992
-
997
+ </title-toc> -->
998
+ <!-- <title-toc lang="zh">
999
+ <xsl:choose>
1000
+ <xsl:when test="$namespace = 'gb'">
1001
+ <xsl:text>目次</xsl:text>
1002
+ </xsl:when>
1003
+ <xsl:otherwise>
993
1004
  <xsl:text>Contents</xsl:text>
994
-
995
- </title-toc>
996
-
997
- <title-descriptors lang="en">Descriptors</title-descriptors>
1005
+ </xsl:otherwise>
1006
+ </xsl:choose>
1007
+ </title-toc> -->
1008
+ <title-toc lang="zh">目次</title-toc>
998
1009
 
999
1010
  <title-part lang="en">
1000
1011
 
@@ -1010,20 +1021,6 @@
1010
1021
  <title-subpart lang="en">Sub-part #</title-subpart>
1011
1022
  <title-subpart lang="fr">Partie de sub #</title-subpart>
1012
1023
 
1013
- <title-list-tables lang="en">List of Tables</title-list-tables>
1014
-
1015
- <title-list-figures lang="en">List of Figures</title-list-figures>
1016
-
1017
- <title-table-figures lang="en">Table of Figures</title-table-figures>
1018
-
1019
- <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
1020
-
1021
- <title-summary lang="en">Summary</title-summary>
1022
-
1023
- <title-continued lang="ru">(продолжение)</title-continued>
1024
- <title-continued lang="en">(continued)</title-continued>
1025
- <title-continued lang="fr">(continué)</title-continued>
1026
-
1027
1024
  </xsl:variable>
1028
1025
  <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
1029
1026
 
@@ -1031,8 +1028,8 @@
1031
1028
  <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
1032
1029
  <xsl:value-of select="$toc_table_title"/>
1033
1030
  <xsl:if test="normalize-space($toc_table_title) = ''">
1034
- <xsl:call-template name="getTitle">
1035
- <xsl:with-param name="name" select="'title-list-tables'"/>
1031
+ <xsl:call-template name="getLocalizedString">
1032
+ <xsl:with-param name="key">toc_tables</xsl:with-param>
1036
1033
  </xsl:call-template>
1037
1034
  </xsl:if>
1038
1035
  </xsl:variable>
@@ -1041,8 +1038,8 @@
1041
1038
  <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
1042
1039
  <xsl:value-of select="$toc_figure_title"/>
1043
1040
  <xsl:if test="normalize-space($toc_figure_title) = ''">
1044
- <xsl:call-template name="getTitle">
1045
- <xsl:with-param name="name" select="'title-list-figures'"/>
1041
+ <xsl:call-template name="getLocalizedString">
1042
+ <xsl:with-param name="key">toc_figures</xsl:with-param>
1046
1043
  </xsl:call-template>
1047
1044
  </xsl:if>
1048
1045
  </xsl:variable>
@@ -1051,8 +1048,8 @@
1051
1048
  <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
1052
1049
  <xsl:value-of select="$toc_requirement_title"/>
1053
1050
  <xsl:if test="normalize-space($toc_requirement_title) = ''">
1054
- <xsl:call-template name="getTitle">
1055
- <xsl:with-param name="name" select="'title-list-recommendations'"/>
1051
+ <xsl:call-template name="getLocalizedString">
1052
+ <xsl:with-param name="key">toc_recommendations</xsl:with-param>
1056
1053
  </xsl:call-template>
1057
1054
  </xsl:if>
1058
1055
  </xsl:variable>
@@ -4841,7 +4838,7 @@
4841
4838
  <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
4842
4839
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
4843
4840
  <xsl:choose>
4844
- <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
4841
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), $regex_url_start, '$2') != ''">
4845
4842
  <!-- url -->
4846
4843
  <xsl:call-template name="add-zero-spaces-link-java"/>
4847
4844
  </xsl:when>
@@ -5374,10 +5371,13 @@
5374
5371
  </xsl:choose>
5375
5372
  </xsl:variable>
5376
5373
 
5374
+ <!-- replace sequence #x200B to one &#x200B -->
5375
+ <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b{2,}', '​')"/>
5376
+
5377
5377
  <!-- replace sequence #x200B and space TO space -->
5378
- <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b ', ' ')"/>
5378
+ <xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
5379
5379
 
5380
- <xsl:value-of select="$text10"/>
5380
+ <xsl:value-of select="$text11"/>
5381
5381
  </xsl:template>
5382
5382
 
5383
5383
  <xsl:template name="add-zero-spaces-link-java">
@@ -5387,8 +5387,12 @@
5387
5387
  <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
5388
5388
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, comma, slash, @ -->
5389
5389
  <xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/|@)','$1​')"/>
5390
+
5391
+ <!-- replace sequence #x200B to one &#x200B -->
5392
+ <xsl:variable name="url2" select="java:replaceAll(java:java.lang.String.new($url), '\u200b{2,}', '​')"/>
5393
+
5390
5394
  <!-- remove zero-width space at the end -->
5391
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url), '​$', '')"/>
5395
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url2), '​$', '')"/>
5392
5396
  </xsl:template>
5393
5397
 
5394
5398
  <!-- add zero space after dash character (for table's entries) -->
@@ -6651,7 +6655,7 @@
6651
6655
 
6652
6656
  <xsl:call-template name="refine_note_block_style"/>
6653
6657
 
6654
- <fo:inline xsl:use-attribute-sets="note-name-style">
6658
+ <fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
6655
6659
 
6656
6660
  <xsl:call-template name="refine_note-name-style"/>
6657
6661
 
@@ -6688,12 +6692,12 @@
6688
6692
  <xsl:variable name="num"><xsl:number/></xsl:variable>
6689
6693
  <xsl:choose>
6690
6694
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
6691
- <fo:inline xsl:use-attribute-sets="note-p-style">
6695
+ <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
6692
6696
  <xsl:apply-templates/>
6693
6697
  </fo:inline>
6694
6698
  </xsl:when>
6695
6699
  <xsl:otherwise>
6696
- <fo:block xsl:use-attribute-sets="note-p-style">
6700
+ <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
6697
6701
  <xsl:apply-templates/>
6698
6702
  </fo:block>
6699
6703
  </xsl:otherwise>
@@ -980,21 +980,32 @@
980
980
  <xsl:variable name="titles_">
981
981
 
982
982
  <!-- These titles of Table of contents renders different than determined in localized-strings -->
983
- <title-toc lang="en">
984
-
983
+ <!-- <title-toc lang="en">
984
+ <xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
985
985
  <xsl:text>Contents</xsl:text>
986
-
987
- </title-toc>
988
- <title-toc lang="fr">
986
+ </xsl:if>
987
+ <xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
988
+ <xsl:text>Table of Contents</xsl:text>
989
+ </xsl:if>
990
+ <xsl:if test="$namespace = 'gb'">
991
+ <xsl:text>Table of contents</xsl:text>
992
+ </xsl:if>
993
+ </title-toc> -->
994
+ <title-toc lang="en">Table of contents</title-toc>
995
+ <!-- <title-toc lang="fr">
989
996
  <xsl:text>Sommaire</xsl:text>
990
- </title-toc>
991
- <title-toc lang="zh">
992
-
997
+ </title-toc> -->
998
+ <!-- <title-toc lang="zh">
999
+ <xsl:choose>
1000
+ <xsl:when test="$namespace = 'gb'">
1001
+ <xsl:text>目次</xsl:text>
1002
+ </xsl:when>
1003
+ <xsl:otherwise>
993
1004
  <xsl:text>Contents</xsl:text>
994
-
995
- </title-toc>
996
-
997
- <title-descriptors lang="en">Descriptors</title-descriptors>
1005
+ </xsl:otherwise>
1006
+ </xsl:choose>
1007
+ </title-toc> -->
1008
+ <title-toc lang="zh">目次</title-toc>
998
1009
 
999
1010
  <title-part lang="en">
1000
1011
 
@@ -1010,20 +1021,6 @@
1010
1021
  <title-subpart lang="en">Sub-part #</title-subpart>
1011
1022
  <title-subpart lang="fr">Partie de sub #</title-subpart>
1012
1023
 
1013
- <title-list-tables lang="en">List of Tables</title-list-tables>
1014
-
1015
- <title-list-figures lang="en">List of Figures</title-list-figures>
1016
-
1017
- <title-table-figures lang="en">Table of Figures</title-table-figures>
1018
-
1019
- <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
1020
-
1021
- <title-summary lang="en">Summary</title-summary>
1022
-
1023
- <title-continued lang="ru">(продолжение)</title-continued>
1024
- <title-continued lang="en">(continued)</title-continued>
1025
- <title-continued lang="fr">(continué)</title-continued>
1026
-
1027
1024
  </xsl:variable>
1028
1025
  <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
1029
1026
 
@@ -1031,8 +1028,8 @@
1031
1028
  <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
1032
1029
  <xsl:value-of select="$toc_table_title"/>
1033
1030
  <xsl:if test="normalize-space($toc_table_title) = ''">
1034
- <xsl:call-template name="getTitle">
1035
- <xsl:with-param name="name" select="'title-list-tables'"/>
1031
+ <xsl:call-template name="getLocalizedString">
1032
+ <xsl:with-param name="key">toc_tables</xsl:with-param>
1036
1033
  </xsl:call-template>
1037
1034
  </xsl:if>
1038
1035
  </xsl:variable>
@@ -1041,8 +1038,8 @@
1041
1038
  <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
1042
1039
  <xsl:value-of select="$toc_figure_title"/>
1043
1040
  <xsl:if test="normalize-space($toc_figure_title) = ''">
1044
- <xsl:call-template name="getTitle">
1045
- <xsl:with-param name="name" select="'title-list-figures'"/>
1041
+ <xsl:call-template name="getLocalizedString">
1042
+ <xsl:with-param name="key">toc_figures</xsl:with-param>
1046
1043
  </xsl:call-template>
1047
1044
  </xsl:if>
1048
1045
  </xsl:variable>
@@ -1051,8 +1048,8 @@
1051
1048
  <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
1052
1049
  <xsl:value-of select="$toc_requirement_title"/>
1053
1050
  <xsl:if test="normalize-space($toc_requirement_title) = ''">
1054
- <xsl:call-template name="getTitle">
1055
- <xsl:with-param name="name" select="'title-list-recommendations'"/>
1051
+ <xsl:call-template name="getLocalizedString">
1052
+ <xsl:with-param name="key">toc_recommendations</xsl:with-param>
1056
1053
  </xsl:call-template>
1057
1054
  </xsl:if>
1058
1055
  </xsl:variable>
@@ -4841,7 +4838,7 @@
4841
4838
  <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
4842
4839
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
4843
4840
  <xsl:choose>
4844
- <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
4841
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), $regex_url_start, '$2') != ''">
4845
4842
  <!-- url -->
4846
4843
  <xsl:call-template name="add-zero-spaces-link-java"/>
4847
4844
  </xsl:when>
@@ -5374,10 +5371,13 @@
5374
5371
  </xsl:choose>
5375
5372
  </xsl:variable>
5376
5373
 
5374
+ <!-- replace sequence #x200B to one &#x200B -->
5375
+ <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b{2,}', '​')"/>
5376
+
5377
5377
  <!-- replace sequence #x200B and space TO space -->
5378
- <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b ', ' ')"/>
5378
+ <xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
5379
5379
 
5380
- <xsl:value-of select="$text10"/>
5380
+ <xsl:value-of select="$text11"/>
5381
5381
  </xsl:template>
5382
5382
 
5383
5383
  <xsl:template name="add-zero-spaces-link-java">
@@ -5387,8 +5387,12 @@
5387
5387
  <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
5388
5388
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, comma, slash, @ -->
5389
5389
  <xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/|@)','$1​')"/>
5390
+
5391
+ <!-- replace sequence #x200B to one &#x200B -->
5392
+ <xsl:variable name="url2" select="java:replaceAll(java:java.lang.String.new($url), '\u200b{2,}', '​')"/>
5393
+
5390
5394
  <!-- remove zero-width space at the end -->
5391
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url), '​$', '')"/>
5395
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url2), '​$', '')"/>
5392
5396
  </xsl:template>
5393
5397
 
5394
5398
  <!-- add zero space after dash character (for table's entries) -->
@@ -6651,7 +6655,7 @@
6651
6655
 
6652
6656
  <xsl:call-template name="refine_note_block_style"/>
6653
6657
 
6654
- <fo:inline xsl:use-attribute-sets="note-name-style">
6658
+ <fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
6655
6659
 
6656
6660
  <xsl:call-template name="refine_note-name-style"/>
6657
6661
 
@@ -6688,12 +6692,12 @@
6688
6692
  <xsl:variable name="num"><xsl:number/></xsl:variable>
6689
6693
  <xsl:choose>
6690
6694
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
6691
- <fo:inline xsl:use-attribute-sets="note-p-style">
6695
+ <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
6692
6696
  <xsl:apply-templates/>
6693
6697
  </fo:inline>
6694
6698
  </xsl:when>
6695
6699
  <xsl:otherwise>
6696
- <fo:block xsl:use-attribute-sets="note-p-style">
6700
+ <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
6697
6701
  <xsl:apply-templates/>
6698
6702
  </fo:block>
6699
6703
  </xsl:otherwise>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IHO
3
- VERSION = "0.7.13".freeze
3
+ VERSION = "0.7.14".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.13
4
+ version: 0.7.14
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: metanorma-generic