metanorma-cc 1.7.4 → 1.7.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/cc/cc.standard.xsl +67 -11
- data/lib/metanorma/cc/version.rb +1 -1
- data/metanorma-cc.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: 21d0ca9db55a0ac16cf9c7d2aa5e4d1e8d8e7d2934d067148284a2ff4e9dfb16
|
4
|
+
data.tar.gz: c6e31128a7d2dd507b87b812b1b06aa26629d16c9264e73d58fb598e7dd80da1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59e27ecbc3c0e3b878b21a22a1fbc5663c79eea90efcf73368266a12abcd085db5aec3b168212b63eeec7f2494e9cca79595c29e325f43f24a9c93ea1460ac9e
|
7
|
+
data.tar.gz: 6120464f8d63a52365519449d463fecc78140d8bc35d47eeed568c8a39abf0a35f7ceec453f13dbbf26f97946c1ca4cc918b9b120e67ba4c68d225248eb9cb84
|
data/.rubocop.yml
CHANGED
@@ -1018,7 +1018,7 @@
|
|
1018
1018
|
|
1019
1019
|
|
1020
1020
|
|
1021
|
-
|
1021
|
+
|
1022
1022
|
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
1023
1023
|
|
1024
1024
|
|
@@ -1085,6 +1085,7 @@
|
|
1085
1085
|
|
1086
1086
|
|
1087
1087
|
|
1088
|
+
|
1088
1089
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
1089
1090
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1090
1091
|
|
@@ -1105,6 +1106,8 @@
|
|
1105
1106
|
|
1106
1107
|
|
1107
1108
|
|
1109
|
+
</xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
|
1110
|
+
|
1108
1111
|
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
1109
1112
|
|
1110
1113
|
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
@@ -1156,6 +1159,7 @@
|
|
1156
1159
|
|
1157
1160
|
|
1158
1161
|
|
1162
|
+
|
1159
1163
|
</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">
|
1160
1164
|
|
1161
1165
|
|
@@ -1198,10 +1202,12 @@
|
|
1198
1202
|
|
1199
1203
|
|
1200
1204
|
|
1205
|
+
|
1201
1206
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1202
1207
|
|
1203
1208
|
|
1204
1209
|
|
1210
|
+
|
1205
1211
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1206
1212
|
|
1207
1213
|
|
@@ -1260,6 +1266,7 @@
|
|
1260
1266
|
|
1261
1267
|
|
1262
1268
|
|
1269
|
+
|
1263
1270
|
|
1264
1271
|
|
1265
1272
|
|
@@ -1333,6 +1340,8 @@
|
|
1333
1340
|
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
|
1334
1341
|
|
1335
1342
|
|
1343
|
+
</xsl:attribute-set><xsl:attribute-set name="list-style">
|
1344
|
+
|
1336
1345
|
</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">
|
1337
1346
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
1338
1347
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -1386,11 +1395,11 @@
|
|
1386
1395
|
<xsl:variable name="table">
|
1387
1396
|
|
1388
1397
|
<xsl:variable name="simple-table">
|
1389
|
-
<xsl:call-template name="getSimpleTable"/>
|
1398
|
+
<xsl:call-template name="getSimpleTable"/>
|
1390
1399
|
</xsl:variable>
|
1391
1400
|
|
1392
1401
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
1393
|
-
<fo:block> </fo:block>
|
1402
|
+
<fo:block> </fo:block>
|
1394
1403
|
</xsl:if> -->
|
1395
1404
|
|
1396
1405
|
<!-- $namespace = 'iso' or -->
|
@@ -1494,6 +1503,7 @@
|
|
1494
1503
|
|
1495
1504
|
|
1496
1505
|
|
1506
|
+
|
1497
1507
|
</xsl:variable>
|
1498
1508
|
|
1499
1509
|
|
@@ -1635,6 +1645,9 @@
|
|
1635
1645
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
1636
1646
|
|
1637
1647
|
|
1648
|
+
|
1649
|
+
|
1650
|
+
|
1638
1651
|
<xsl:choose>
|
1639
1652
|
<xsl:when test="$continued = 'true'">
|
1640
1653
|
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
@@ -1782,6 +1795,7 @@
|
|
1782
1795
|
<!-- font-weight="bold" -->
|
1783
1796
|
<fo:table-header>
|
1784
1797
|
|
1798
|
+
|
1785
1799
|
<xsl:apply-templates/>
|
1786
1800
|
</fo:table-header>
|
1787
1801
|
</xsl:template><xsl:template name="table-header-title">
|
@@ -2027,6 +2041,10 @@
|
|
2027
2041
|
|
2028
2042
|
|
2029
2043
|
|
2044
|
+
|
2045
|
+
|
2046
|
+
|
2047
|
+
|
2030
2048
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
2031
2049
|
<xsl:attribute name="height">8mm</xsl:attribute>
|
2032
2050
|
</xsl:if> -->
|
@@ -2112,6 +2130,9 @@
|
|
2112
2130
|
|
2113
2131
|
|
2114
2132
|
|
2133
|
+
|
2134
|
+
|
2135
|
+
|
2115
2136
|
<xsl:if test=".//*[local-name() = 'table']">
|
2116
2137
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2117
2138
|
</xsl:if>
|
@@ -2327,6 +2348,7 @@
|
|
2327
2348
|
|
2328
2349
|
|
2329
2350
|
|
2351
|
+
|
2330
2352
|
<fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
|
2331
2353
|
|
2332
2354
|
|
@@ -2629,6 +2651,7 @@
|
|
2629
2651
|
|
2630
2652
|
<fo:table-row>
|
2631
2653
|
|
2654
|
+
|
2632
2655
|
<fo:table-cell>
|
2633
2656
|
|
2634
2657
|
<fo:block margin-top="6pt">
|
@@ -2646,6 +2669,7 @@
|
|
2646
2669
|
|
2647
2670
|
|
2648
2671
|
|
2672
|
+
|
2649
2673
|
<xsl:apply-templates/>
|
2650
2674
|
<!-- <xsl:if test="$namespace = 'gb'">
|
2651
2675
|
<xsl:if test="ancestor::*[local-name()='formula']">
|
@@ -3193,7 +3217,15 @@
|
|
3193
3217
|
<xsl:copy>
|
3194
3218
|
<xsl:apply-templates select="@*|node()" mode="mathml"/>
|
3195
3219
|
</xsl:copy>
|
3196
|
-
<
|
3220
|
+
<xsl:choose>
|
3221
|
+
<!-- if in msub, then don't add space -->
|
3222
|
+
<xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
|
3223
|
+
<!-- if next char in digit, don't add space -->
|
3224
|
+
<xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
|
3225
|
+
<xsl:otherwise>
|
3226
|
+
<mathml:mspace width="0.5ex"/>
|
3227
|
+
</xsl:otherwise>
|
3228
|
+
</xsl:choose>
|
3197
3229
|
</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">
|
3198
3230
|
<xsl:variable name="target">
|
3199
3231
|
<xsl:choose>
|
@@ -3217,6 +3249,7 @@
|
|
3217
3249
|
</xsl:variable>
|
3218
3250
|
<fo:inline xsl:use-attribute-sets="link-style">
|
3219
3251
|
|
3252
|
+
|
3220
3253
|
<xsl:choose>
|
3221
3254
|
<xsl:when test="$target_text = ''">
|
3222
3255
|
<xsl:apply-templates/>
|
@@ -3368,6 +3401,7 @@
|
|
3368
3401
|
</xsl:choose>
|
3369
3402
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
3370
3403
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
3404
|
+
|
3371
3405
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
3372
3406
|
|
3373
3407
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
@@ -3441,6 +3475,7 @@
|
|
3441
3475
|
</xsl:call-template>
|
3442
3476
|
|
3443
3477
|
<fo:block>
|
3478
|
+
|
3444
3479
|
<xsl:apply-templates/>
|
3445
3480
|
</fo:block>
|
3446
3481
|
<xsl:call-template name="fn_display_figure"/>
|
@@ -3725,6 +3760,7 @@
|
|
3725
3760
|
<xsl:if test="normalize-space() != ''">
|
3726
3761
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
3727
3762
|
|
3763
|
+
|
3728
3764
|
<xsl:apply-templates/>
|
3729
3765
|
</fo:block>
|
3730
3766
|
</xsl:if>
|
@@ -3805,6 +3841,7 @@
|
|
3805
3841
|
|
3806
3842
|
<fo:block-container margin-left="0mm">
|
3807
3843
|
<xsl:copy-of select="@id"/>
|
3844
|
+
|
3808
3845
|
<xsl:if test="parent::*[local-name() = 'note']">
|
3809
3846
|
<xsl:attribute name="margin-left">
|
3810
3847
|
<xsl:choose>
|
@@ -3815,7 +3852,9 @@
|
|
3815
3852
|
|
3816
3853
|
</xsl:if>
|
3817
3854
|
<fo:block-container margin-left="0mm">
|
3818
|
-
|
3855
|
+
|
3856
|
+
|
3857
|
+
|
3819
3858
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
3820
3859
|
<xsl:variable name="_font-size">
|
3821
3860
|
|
@@ -3844,10 +3883,14 @@
|
|
3844
3883
|
</xsl:choose>
|
3845
3884
|
</xsl:attribute>
|
3846
3885
|
</xsl:if>
|
3847
|
-
|
3848
|
-
|
3886
|
+
|
3887
|
+
<xsl:apply-templates/>
|
3888
|
+
</fo:block>
|
3889
|
+
|
3890
|
+
|
3849
3891
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3850
3892
|
|
3893
|
+
|
3851
3894
|
</fo:block-container>
|
3852
3895
|
</fo:block-container>
|
3853
3896
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
|
@@ -4193,6 +4236,8 @@
|
|
4193
4236
|
|
4194
4237
|
|
4195
4238
|
|
4239
|
+
|
4240
|
+
|
4196
4241
|
<xsl:call-template name="getTitle">
|
4197
4242
|
<xsl:with-param name="name" select="'title-source'"/>
|
4198
4243
|
</xsl:call-template>
|
@@ -4427,6 +4472,7 @@
|
|
4427
4472
|
<xsl:call-template name="setId"/>
|
4428
4473
|
|
4429
4474
|
|
4475
|
+
|
4430
4476
|
<xsl:apply-templates/>
|
4431
4477
|
</fo:block>
|
4432
4478
|
</xsl:template><xsl:template match="*[local-name() = 'definitions']">
|
@@ -4673,17 +4719,17 @@
|
|
4673
4719
|
<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')]"/>
|
4674
4720
|
<xsl:choose>
|
4675
4721
|
<xsl:when test="normalize-space($_doc_ident) != ''">
|
4676
|
-
<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"/>
|
4722
|
+
<!-- <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"/>
|
4677
4723
|
<xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
|
4678
4724
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
4679
|
-
</xsl:if>
|
4725
|
+
</xsl:if> -->
|
4680
4726
|
<xsl:value-of select="$_doc_ident"/>
|
4681
4727
|
</xsl:when>
|
4682
4728
|
<xsl:otherwise>
|
4683
|
-
<xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
4729
|
+
<!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
4684
4730
|
<xsl:if test="$type != ''">
|
4685
4731
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
4686
|
-
</xsl:if>
|
4732
|
+
</xsl:if> -->
|
4687
4733
|
<xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
|
4688
4734
|
</xsl:otherwise>
|
4689
4735
|
</xsl:choose>
|
@@ -5189,4 +5235,14 @@
|
|
5189
5235
|
<xsl:value-of select="$align"/>
|
5190
5236
|
</xsl:when>
|
5191
5237
|
</xsl:choose>
|
5238
|
+
</xsl:template><xsl:template name="setTextAlignment">
|
5239
|
+
<xsl:param name="default">left</xsl:param>
|
5240
|
+
<xsl:attribute name="text-align">
|
5241
|
+
<xsl:choose>
|
5242
|
+
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
5243
|
+
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
5244
|
+
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
5245
|
+
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5246
|
+
</xsl:choose>
|
5247
|
+
</xsl:attribute>
|
5192
5248
|
</xsl:template></xsl:stylesheet>
|
data/lib/metanorma/cc/version.rb
CHANGED
data/metanorma-cc.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-cc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.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
|
@@ -244,7 +244,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
244
244
|
requirements:
|
245
245
|
- - ">="
|
246
246
|
- !ruby/object:Gem::Version
|
247
|
-
version: 2.
|
247
|
+
version: 2.5.0
|
248
248
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
249
249
|
requirements:
|
250
250
|
- - ">="
|