metanorma-csa 2.2.12 → 2.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/csa/csa.standard.xsl +46 -45
- data/lib/isodoc/csa/html/htmlstyle.css +7 -3
- data/lib/metanorma/csa/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: e185c17483eec127fe20cfd1b0ea0e4c9af95e42cd8da478c52a8c1852c486ce
|
4
|
+
data.tar.gz: 2336dd2fef9192488767b301b5a5a02b7808adfa51cf044bc8993d27476fc0ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10eb7a7144c6321fb40a157fb867d9d2e8c637ae7bc06b13cf04425b024caca863562055235c7a310cd921bebe43e833fc081b09dbf4b1bc428b5927a9c4a93f
|
7
|
+
data.tar.gz: 64f0601f7e26dfb7fd6e4825c0a8ad9bf40b27997720442c3876225219c00c457c301d8745879d7e920eaf3966af76fbcfda93e71d1966a275b8da99f39e7f72
|
@@ -317,12 +317,9 @@
|
|
317
317
|
</xsl:template>
|
318
318
|
|
319
319
|
<xsl:template match="csa:preface/csa:clause[@type = 'toc']/csa:title" priority="3">
|
320
|
-
<
|
321
|
-
<xsl:
|
322
|
-
|
323
|
-
</xsl:call-template>
|
324
|
-
</xsl:variable>
|
325
|
-
<fo:block font-size="26pt" color="black" margin-top="2pt" margin-bottom="30pt" role="H1"><xsl:value-of select="$title-toc"/></fo:block>
|
320
|
+
<fo:block font-size="26pt" color="black" margin-top="2pt" margin-bottom="30pt" role="H1">
|
321
|
+
<xsl:apply-templates/>
|
322
|
+
</fo:block>
|
326
323
|
</xsl:template>
|
327
324
|
|
328
325
|
<xsl:template match="node()">
|
@@ -719,21 +716,32 @@
|
|
719
716
|
<xsl:variable name="titles_">
|
720
717
|
|
721
718
|
<!-- These titles of Table of contents renders different than determined in localized-strings -->
|
722
|
-
<title-toc lang="en">
|
723
|
-
|
719
|
+
<!-- <title-toc lang="en">
|
720
|
+
<xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
|
721
|
+
<xsl:text>Contents</xsl:text>
|
722
|
+
</xsl:if>
|
723
|
+
<xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
|
724
724
|
<xsl:text>Table of Contents</xsl:text>
|
725
|
-
|
726
|
-
|
727
|
-
|
725
|
+
</xsl:if>
|
726
|
+
<xsl:if test="$namespace = 'gb'">
|
727
|
+
<xsl:text>Table of contents</xsl:text>
|
728
|
+
</xsl:if>
|
729
|
+
</title-toc> -->
|
730
|
+
<title-toc lang="en">Table of contents</title-toc>
|
731
|
+
<!-- <title-toc lang="fr">
|
728
732
|
<xsl:text>Sommaire</xsl:text>
|
729
|
-
</title-toc>
|
730
|
-
<title-toc lang="zh">
|
731
|
-
|
733
|
+
</title-toc> -->
|
734
|
+
<!-- <title-toc lang="zh">
|
735
|
+
<xsl:choose>
|
736
|
+
<xsl:when test="$namespace = 'gb'">
|
737
|
+
<xsl:text>目次</xsl:text>
|
738
|
+
</xsl:when>
|
739
|
+
<xsl:otherwise>
|
732
740
|
<xsl:text>Contents</xsl:text>
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
<title-
|
741
|
+
</xsl:otherwise>
|
742
|
+
</xsl:choose>
|
743
|
+
</title-toc> -->
|
744
|
+
<title-toc lang="zh">目次</title-toc>
|
737
745
|
|
738
746
|
<title-part lang="en">
|
739
747
|
|
@@ -749,20 +757,6 @@
|
|
749
757
|
<title-subpart lang="en">Sub-part #</title-subpart>
|
750
758
|
<title-subpart lang="fr">Partie de sub #</title-subpart>
|
751
759
|
|
752
|
-
<title-list-tables lang="en">List of Tables</title-list-tables>
|
753
|
-
|
754
|
-
<title-list-figures lang="en">List of Figures</title-list-figures>
|
755
|
-
|
756
|
-
<title-table-figures lang="en">Table of Figures</title-table-figures>
|
757
|
-
|
758
|
-
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
759
|
-
|
760
|
-
<title-summary lang="en">Summary</title-summary>
|
761
|
-
|
762
|
-
<title-continued lang="ru">(продолжение)</title-continued>
|
763
|
-
<title-continued lang="en">(continued)</title-continued>
|
764
|
-
<title-continued lang="fr">(continué)</title-continued>
|
765
|
-
|
766
760
|
</xsl:variable>
|
767
761
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
|
768
762
|
|
@@ -770,8 +764,8 @@
|
|
770
764
|
<xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
|
771
765
|
<xsl:value-of select="$toc_table_title"/>
|
772
766
|
<xsl:if test="normalize-space($toc_table_title) = ''">
|
773
|
-
<xsl:call-template name="
|
774
|
-
<xsl:with-param name="
|
767
|
+
<xsl:call-template name="getLocalizedString">
|
768
|
+
<xsl:with-param name="key">toc_tables</xsl:with-param>
|
775
769
|
</xsl:call-template>
|
776
770
|
</xsl:if>
|
777
771
|
</xsl:variable>
|
@@ -780,8 +774,8 @@
|
|
780
774
|
<xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
|
781
775
|
<xsl:value-of select="$toc_figure_title"/>
|
782
776
|
<xsl:if test="normalize-space($toc_figure_title) = ''">
|
783
|
-
<xsl:call-template name="
|
784
|
-
<xsl:with-param name="
|
777
|
+
<xsl:call-template name="getLocalizedString">
|
778
|
+
<xsl:with-param name="key">toc_figures</xsl:with-param>
|
785
779
|
</xsl:call-template>
|
786
780
|
</xsl:if>
|
787
781
|
</xsl:variable>
|
@@ -790,8 +784,8 @@
|
|
790
784
|
<xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
|
791
785
|
<xsl:value-of select="$toc_requirement_title"/>
|
792
786
|
<xsl:if test="normalize-space($toc_requirement_title) = ''">
|
793
|
-
<xsl:call-template name="
|
794
|
-
<xsl:with-param name="
|
787
|
+
<xsl:call-template name="getLocalizedString">
|
788
|
+
<xsl:with-param name="key">toc_recommendations</xsl:with-param>
|
795
789
|
</xsl:call-template>
|
796
790
|
</xsl:if>
|
797
791
|
</xsl:variable>
|
@@ -4542,7 +4536,7 @@
|
|
4542
4536
|
<xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
|
4543
4537
|
<xsl:template match="*[local-name()='tt']/text()" priority="2">
|
4544
4538
|
<xsl:choose>
|
4545
|
-
<xsl:when test="java:replaceAll(java:java.lang.String.new(.),
|
4539
|
+
<xsl:when test="java:replaceAll(java:java.lang.String.new(.), $regex_url_start, '$2') != ''">
|
4546
4540
|
<!-- url -->
|
4547
4541
|
<xsl:call-template name="add-zero-spaces-link-java"/>
|
4548
4542
|
</xsl:when>
|
@@ -5004,10 +4998,13 @@
|
|
5004
4998
|
</xsl:choose>
|
5005
4999
|
</xsl:variable>
|
5006
5000
|
|
5001
|
+
<!-- replace sequence #x200B to one ​ -->
|
5002
|
+
<xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b{2,}', '')"/>
|
5003
|
+
|
5007
5004
|
<!-- replace sequence #x200B and space TO space -->
|
5008
|
-
<xsl:variable name="
|
5005
|
+
<xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
|
5009
5006
|
|
5010
|
-
<xsl:value-of select="$
|
5007
|
+
<xsl:value-of select="$text11"/>
|
5011
5008
|
</xsl:template>
|
5012
5009
|
|
5013
5010
|
<xsl:template name="add-zero-spaces-link-java">
|
@@ -5017,8 +5014,12 @@
|
|
5017
5014
|
<xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
|
5018
5015
|
<!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, comma, slash, @ -->
|
5019
5016
|
<xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/|@)','$1')"/>
|
5017
|
+
|
5018
|
+
<!-- replace sequence #x200B to one ​ -->
|
5019
|
+
<xsl:variable name="url2" select="java:replaceAll(java:java.lang.String.new($url), '\u200b{2,}', '')"/>
|
5020
|
+
|
5020
5021
|
<!-- remove zero-width space at the end -->
|
5021
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($
|
5022
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($url2), '$', '')"/>
|
5022
5023
|
</xsl:template>
|
5023
5024
|
|
5024
5025
|
<!-- add zero space after dash character (for table's entries) -->
|
@@ -6285,7 +6286,7 @@
|
|
6285
6286
|
|
6286
6287
|
<xsl:call-template name="refine_note_block_style"/>
|
6287
6288
|
|
6288
|
-
<fo:inline xsl:use-attribute-sets="note-name-style">
|
6289
|
+
<fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
|
6289
6290
|
|
6290
6291
|
<xsl:call-template name="refine_note-name-style"/>
|
6291
6292
|
|
@@ -6322,12 +6323,12 @@
|
|
6322
6323
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
6323
6324
|
<xsl:choose>
|
6324
6325
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
6325
|
-
<fo:inline xsl:use-attribute-sets="note-p-style">
|
6326
|
+
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
6326
6327
|
<xsl:apply-templates/>
|
6327
6328
|
</fo:inline>
|
6328
6329
|
</xsl:when>
|
6329
6330
|
<xsl:otherwise>
|
6330
|
-
<fo:block xsl:use-attribute-sets="note-p-style">
|
6331
|
+
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
6331
6332
|
<xsl:apply-templates/>
|
6332
6333
|
</fo:block>
|
6333
6334
|
</xsl:otherwise>
|
@@ -97,7 +97,7 @@ h1, h2, h3, h4, h5, h6 {
|
|
97
97
|
|
98
98
|
blockquote, q {
|
99
99
|
quotes: none; }
|
100
|
-
blockquote
|
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
|
123
|
+
a.FootnoteRef + a.FootnoteRef::before {
|
124
124
|
content: ", ";
|
125
125
|
vertical-align: super; }
|
126
126
|
|
127
|
-
a.TableFootnoteRef + a.TableFootnoteRef
|
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
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-csa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.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-
|
11
|
+
date: 2023-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|