metanorma-csa 1.8.4 → 1.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/lib/isodoc/csa/csa.standard.xsl +71 -14
- data/lib/metanorma/csa/version.rb +1 -1
- data/metanorma-csa.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aab74cfe7858453ca15ba23bdf839ea9e3f4a0a05cd6b1c1965237a176ddecd
|
4
|
+
data.tar.gz: 0b89c0a0d03d5a2ad10b5e87d7f63816c98a365fb4ac66aa3bb11a5128514529
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7bb2974732baa6658d5eac1f19481863cc4b25eaa57bb85e5489356a1d07fd33146863be1e8d9ebcba5d2e6629f05e52f923642bd38145c4ae387c51047fd30
|
7
|
+
data.tar.gz: a0a607b4d83e1fc108a4d64109876739de837d1e5c571f5ee787c3282c1c9383b4d839135b85424acc728668e5443b3c820c74c25334aa1e31709f85acd49f97
|
data/.rubocop.yml
CHANGED
@@ -558,10 +558,11 @@
|
|
558
558
|
<xsl:if test="position() = last()">: </xsl:if>
|
559
559
|
</xsl:for-each>
|
560
560
|
<!-- csa:docidentifier -->
|
561
|
-
<xsl:if test="csa:docidentifier">
|
561
|
+
<!-- <xsl:if test="csa:docidentifier">
|
562
562
|
<xsl:value-of select="csa:docidentifier/@type"/><xsl:text> </xsl:text>
|
563
563
|
<xsl:value-of select="csa:docidentifier"/>
|
564
|
-
</xsl:if>
|
564
|
+
</xsl:if> -->
|
565
|
+
<xsl:value-of select="csa:docidentifier"/>
|
565
566
|
<xsl:apply-templates select="csa:note"/>
|
566
567
|
<xsl:if test="csa:docidentifier">, </xsl:if>
|
567
568
|
<fo:inline font-style="italic">
|
@@ -763,7 +764,7 @@
|
|
763
764
|
<xsl:when test="csa:docidentifier/@type = 'ISO' and csa:formattedref"/>
|
764
765
|
<xsl:when test="csa:docidentifier/@type = 'OGC' and csa:formattedref"/>
|
765
766
|
<xsl:otherwise><fo:inline>
|
766
|
-
<xsl:if test="csa:docidentifier/@type = 'OGC'">OGC </xsl:if>
|
767
|
+
<!-- <xsl:if test="csa:docidentifier/@type = 'OGC'">OGC </xsl:if> -->
|
767
768
|
<xsl:value-of select="csa:docidentifier"/><xsl:apply-templates select="csa:note"/>, </fo:inline></xsl:otherwise>
|
768
769
|
</xsl:choose>
|
769
770
|
</xsl:if>
|
@@ -1094,7 +1095,7 @@
|
|
1094
1095
|
|
1095
1096
|
|
1096
1097
|
|
1097
|
-
|
1098
|
+
|
1098
1099
|
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
1099
1100
|
|
1100
1101
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
@@ -1163,6 +1164,7 @@
|
|
1163
1164
|
|
1164
1165
|
|
1165
1166
|
|
1167
|
+
|
1166
1168
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
1167
1169
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1168
1170
|
|
@@ -1179,6 +1181,8 @@
|
|
1179
1181
|
|
1180
1182
|
|
1181
1183
|
|
1184
|
+
</xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
|
1185
|
+
|
1182
1186
|
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
1183
1187
|
|
1184
1188
|
|
@@ -1225,6 +1229,7 @@
|
|
1225
1229
|
|
1226
1230
|
|
1227
1231
|
|
1232
|
+
|
1228
1233
|
</xsl:attribute-set><xsl:variable name="note-body-indent">10mm</xsl:variable><xsl:variable name="note-body-indent-table">5mm</xsl:variable><xsl:attribute-set name="note-name-style">
|
1229
1234
|
|
1230
1235
|
|
@@ -1268,10 +1273,12 @@
|
|
1268
1273
|
|
1269
1274
|
|
1270
1275
|
|
1276
|
+
|
1271
1277
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1272
1278
|
|
1273
1279
|
|
1274
1280
|
|
1281
|
+
|
1275
1282
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1276
1283
|
|
1277
1284
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
@@ -1335,6 +1342,7 @@
|
|
1335
1342
|
|
1336
1343
|
|
1337
1344
|
|
1345
|
+
|
1338
1346
|
|
1339
1347
|
|
1340
1348
|
|
@@ -1408,6 +1416,8 @@
|
|
1408
1416
|
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
|
1409
1417
|
|
1410
1418
|
|
1419
|
+
</xsl:attribute-set><xsl:attribute-set name="list-style">
|
1420
|
+
|
1411
1421
|
</xsl:attribute-set><xsl:variable name="border-block-added">2.5pt solid rgb(0, 176, 80)</xsl:variable><xsl:variable name="border-block-deleted">2.5pt solid rgb(255, 0, 0)</xsl:variable><xsl:template name="processPrefaceSectionsDefault_Contents">
|
1412
1422
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
1413
1423
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -1461,11 +1471,11 @@
|
|
1461
1471
|
<xsl:variable name="table">
|
1462
1472
|
|
1463
1473
|
<xsl:variable name="simple-table">
|
1464
|
-
<xsl:call-template name="getSimpleTable"/>
|
1474
|
+
<xsl:call-template name="getSimpleTable"/>
|
1465
1475
|
</xsl:variable>
|
1466
1476
|
|
1467
1477
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
1468
|
-
<fo:block> </fo:block>
|
1478
|
+
<fo:block> </fo:block>
|
1469
1479
|
</xsl:if> -->
|
1470
1480
|
|
1471
1481
|
<!-- $namespace = 'iso' or -->
|
@@ -1565,6 +1575,7 @@
|
|
1565
1575
|
|
1566
1576
|
|
1567
1577
|
|
1578
|
+
|
1568
1579
|
</xsl:variable>
|
1569
1580
|
|
1570
1581
|
|
@@ -1706,6 +1717,9 @@
|
|
1706
1717
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
1707
1718
|
|
1708
1719
|
|
1720
|
+
|
1721
|
+
|
1722
|
+
|
1709
1723
|
<xsl:choose>
|
1710
1724
|
<xsl:when test="$continued = 'true'">
|
1711
1725
|
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
@@ -1853,6 +1867,7 @@
|
|
1853
1867
|
<!-- font-weight="bold" -->
|
1854
1868
|
<fo:table-header>
|
1855
1869
|
|
1870
|
+
|
1856
1871
|
<xsl:apply-templates/>
|
1857
1872
|
</fo:table-header>
|
1858
1873
|
</xsl:template><xsl:template name="table-header-title">
|
@@ -2098,6 +2113,10 @@
|
|
2098
2113
|
|
2099
2114
|
|
2100
2115
|
|
2116
|
+
|
2117
|
+
|
2118
|
+
|
2119
|
+
|
2101
2120
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
2102
2121
|
<xsl:attribute name="height">8mm</xsl:attribute>
|
2103
2122
|
</xsl:if> -->
|
@@ -2183,6 +2202,9 @@
|
|
2183
2202
|
|
2184
2203
|
|
2185
2204
|
|
2205
|
+
|
2206
|
+
|
2207
|
+
|
2186
2208
|
<xsl:if test=".//*[local-name() = 'table']">
|
2187
2209
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2188
2210
|
</xsl:if>
|
@@ -2396,6 +2418,7 @@
|
|
2396
2418
|
|
2397
2419
|
|
2398
2420
|
|
2421
|
+
|
2399
2422
|
<fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
|
2400
2423
|
|
2401
2424
|
|
@@ -2698,6 +2721,7 @@
|
|
2698
2721
|
|
2699
2722
|
<fo:table-row>
|
2700
2723
|
|
2724
|
+
|
2701
2725
|
<fo:table-cell>
|
2702
2726
|
|
2703
2727
|
<fo:block margin-top="6pt">
|
@@ -2713,6 +2737,7 @@
|
|
2713
2737
|
|
2714
2738
|
|
2715
2739
|
|
2740
|
+
|
2716
2741
|
<xsl:apply-templates/>
|
2717
2742
|
<!-- <xsl:if test="$namespace = 'gb'">
|
2718
2743
|
<xsl:if test="ancestor::*[local-name()='formula']">
|
@@ -3260,7 +3285,15 @@
|
|
3260
3285
|
<xsl:copy>
|
3261
3286
|
<xsl:apply-templates select="@*|node()" mode="mathml"/>
|
3262
3287
|
</xsl:copy>
|
3263
|
-
<
|
3288
|
+
<xsl:choose>
|
3289
|
+
<!-- if in msub, then don't add space -->
|
3290
|
+
<xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
|
3291
|
+
<!-- if next char in digit, don't add space -->
|
3292
|
+
<xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
|
3293
|
+
<xsl:otherwise>
|
3294
|
+
<mathml:mspace width="0.5ex"/>
|
3295
|
+
</xsl:otherwise>
|
3296
|
+
</xsl:choose>
|
3264
3297
|
</xsl:template><xsl:template match="mathml:math/*[local-name()='unit']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='prefix']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='dimension']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='quantity']" mode="mathml"/><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
|
3265
3298
|
<xsl:variable name="target">
|
3266
3299
|
<xsl:choose>
|
@@ -3284,6 +3317,7 @@
|
|
3284
3317
|
</xsl:variable>
|
3285
3318
|
<fo:inline xsl:use-attribute-sets="link-style">
|
3286
3319
|
|
3320
|
+
|
3287
3321
|
<xsl:choose>
|
3288
3322
|
<xsl:when test="$target_text = ''">
|
3289
3323
|
<xsl:apply-templates/>
|
@@ -3439,6 +3473,7 @@
|
|
3439
3473
|
</xsl:choose>
|
3440
3474
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
3441
3475
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
3476
|
+
|
3442
3477
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
3443
3478
|
|
3444
3479
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
@@ -3512,6 +3547,7 @@
|
|
3512
3547
|
</xsl:call-template>
|
3513
3548
|
|
3514
3549
|
<fo:block>
|
3550
|
+
|
3515
3551
|
<xsl:apply-templates/>
|
3516
3552
|
</fo:block>
|
3517
3553
|
<xsl:call-template name="fn_display_figure"/>
|
@@ -3796,6 +3832,7 @@
|
|
3796
3832
|
<xsl:if test="normalize-space() != ''">
|
3797
3833
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
3798
3834
|
|
3835
|
+
|
3799
3836
|
<xsl:apply-templates/>
|
3800
3837
|
</fo:block>
|
3801
3838
|
</xsl:if>
|
@@ -3876,6 +3913,7 @@
|
|
3876
3913
|
|
3877
3914
|
<fo:block-container margin-left="0mm">
|
3878
3915
|
<xsl:copy-of select="@id"/>
|
3916
|
+
|
3879
3917
|
<xsl:if test="parent::*[local-name() = 'note']">
|
3880
3918
|
<xsl:attribute name="margin-left">
|
3881
3919
|
<xsl:choose>
|
@@ -3886,7 +3924,9 @@
|
|
3886
3924
|
|
3887
3925
|
</xsl:if>
|
3888
3926
|
<fo:block-container margin-left="0mm">
|
3889
|
-
|
3927
|
+
|
3928
|
+
|
3929
|
+
|
3890
3930
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
3891
3931
|
<xsl:variable name="_font-size">
|
3892
3932
|
10
|
@@ -3915,10 +3955,14 @@
|
|
3915
3955
|
</xsl:choose>
|
3916
3956
|
</xsl:attribute>
|
3917
3957
|
</xsl:if>
|
3918
|
-
|
3919
|
-
|
3958
|
+
|
3959
|
+
<xsl:apply-templates/>
|
3960
|
+
</fo:block>
|
3961
|
+
|
3962
|
+
|
3920
3963
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3921
3964
|
|
3965
|
+
|
3922
3966
|
</fo:block-container>
|
3923
3967
|
</fo:block-container>
|
3924
3968
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
|
@@ -4264,6 +4308,8 @@
|
|
4264
4308
|
|
4265
4309
|
|
4266
4310
|
|
4311
|
+
|
4312
|
+
|
4267
4313
|
<xsl:call-template name="getTitle">
|
4268
4314
|
<xsl:with-param name="name" select="'title-source'"/>
|
4269
4315
|
</xsl:call-template>
|
@@ -4489,6 +4535,7 @@
|
|
4489
4535
|
<xsl:call-template name="setId"/>
|
4490
4536
|
|
4491
4537
|
|
4538
|
+
|
4492
4539
|
<xsl:apply-templates/>
|
4493
4540
|
</fo:block>
|
4494
4541
|
</xsl:template><xsl:template match="*[local-name() = 'definitions']">
|
@@ -4735,17 +4782,17 @@
|
|
4735
4782
|
<xsl:variable name="_doc_ident" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]"/>
|
4736
4783
|
<xsl:choose>
|
4737
4784
|
<xsl:when test="normalize-space($_doc_ident) != ''">
|
4738
|
-
<xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]/@type"/>
|
4785
|
+
<!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]/@type"/>
|
4739
4786
|
<xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
|
4740
4787
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
4741
|
-
</xsl:if>
|
4788
|
+
</xsl:if> -->
|
4742
4789
|
<xsl:value-of select="$_doc_ident"/>
|
4743
4790
|
</xsl:when>
|
4744
4791
|
<xsl:otherwise>
|
4745
|
-
<xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
4792
|
+
<!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
4746
4793
|
<xsl:if test="$type != ''">
|
4747
4794
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
4748
|
-
</xsl:if>
|
4795
|
+
</xsl:if> -->
|
4749
4796
|
<xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
|
4750
4797
|
</xsl:otherwise>
|
4751
4798
|
</xsl:choose>
|
@@ -5251,4 +5298,14 @@
|
|
5251
5298
|
<xsl:value-of select="$align"/>
|
5252
5299
|
</xsl:when>
|
5253
5300
|
</xsl:choose>
|
5301
|
+
</xsl:template><xsl:template name="setTextAlignment">
|
5302
|
+
<xsl:param name="default">left</xsl:param>
|
5303
|
+
<xsl:attribute name="text-align">
|
5304
|
+
<xsl:choose>
|
5305
|
+
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
5306
|
+
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
5307
|
+
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
5308
|
+
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5309
|
+
</xsl:choose>
|
5310
|
+
</xsl:attribute>
|
5254
5311
|
</xsl:template></xsl:stylesheet>
|
data/metanorma-csa.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.bindir = "exe"
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
29
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
30
30
|
|
31
31
|
spec.add_dependency "metanorma-generic", "~> 1.10.0"
|
32
32
|
|
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: 1.8.
|
4
|
+
version: 1.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -241,7 +241,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
241
241
|
requirements:
|
242
242
|
- - ">="
|
243
243
|
- !ruby/object:Gem::Version
|
244
|
-
version: 2.
|
244
|
+
version: 2.5.0
|
245
245
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
246
|
requirements:
|
247
247
|
- - ">="
|