metanorma-csa 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +3 -0
- data/lib/asciidoctor/csa/isodoc.rng +26 -3
- data/lib/isodoc/csa/csa.standard.xsl +18 -2
- data/lib/metanorma/csa/version.rb +1 -1
- data/metanorma-csa.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 662b71103ad56cc32d0fcbd4926a6b483b82cebc0658f7b7d792d81a36343686
|
4
|
+
data.tar.gz: 38b71724171ea25595f588335abfd45a9b88e8fc5ff30a962d6341089adb667f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e223eec78966bdf647936260b2da185837a859ae95198bc1eaa459697d1f3d9743fea0a35ada5d6f9e050dce93550aae053d8a05ac9a1e663d63ff3703766b4b
|
7
|
+
data.tar.gz: c3711271668f6f89107bffa7804fac1b97222ae9a8a553b2e592f4e409b70f899f105acf132cf80eae78697ad0707d541045c8d7be414a68f149324cc9a488a8
|
data/.github/workflows/rake.yml
CHANGED
@@ -253,6 +253,9 @@
|
|
253
253
|
<data type="boolean"/>
|
254
254
|
</attribute>
|
255
255
|
</optional>
|
256
|
+
<optional>
|
257
|
+
<attribute name="width"/>
|
258
|
+
</optional>
|
256
259
|
<optional>
|
257
260
|
<ref name="colgroup"/>
|
258
261
|
</optional>
|
@@ -836,6 +839,9 @@
|
|
836
839
|
<data type="boolean"/>
|
837
840
|
</attribute>
|
838
841
|
</optional>
|
842
|
+
<optional>
|
843
|
+
<attribute name="number"/>
|
844
|
+
</optional>
|
839
845
|
<optional>
|
840
846
|
<attribute name="obligation">
|
841
847
|
<choice>
|
@@ -891,9 +897,11 @@
|
|
891
897
|
<element name="code">
|
892
898
|
<text/>
|
893
899
|
</element>
|
894
|
-
<
|
895
|
-
<text
|
896
|
-
|
900
|
+
<optional>
|
901
|
+
<element name="text">
|
902
|
+
<text/>
|
903
|
+
</element>
|
904
|
+
</optional>
|
897
905
|
</element>
|
898
906
|
</define>
|
899
907
|
<define name="standard-document">
|
@@ -1063,6 +1071,9 @@
|
|
1063
1071
|
</choice>
|
1064
1072
|
</attribute>
|
1065
1073
|
</optional>
|
1074
|
+
<optional>
|
1075
|
+
<attribute name="number"/>
|
1076
|
+
</optional>
|
1066
1077
|
<optional>
|
1067
1078
|
<attribute name="type"/>
|
1068
1079
|
</optional>
|
@@ -1116,6 +1127,9 @@
|
|
1116
1127
|
<optional>
|
1117
1128
|
<attribute name="type"/>
|
1118
1129
|
</optional>
|
1130
|
+
<optional>
|
1131
|
+
<attribute name="number"/>
|
1132
|
+
</optional>
|
1119
1133
|
<optional>
|
1120
1134
|
<ref name="section-title"/>
|
1121
1135
|
</optional>
|
@@ -1218,6 +1232,9 @@
|
|
1218
1232
|
<optional>
|
1219
1233
|
<attribute name="type"/>
|
1220
1234
|
</optional>
|
1235
|
+
<optional>
|
1236
|
+
<attribute name="number"/>
|
1237
|
+
</optional>
|
1221
1238
|
<optional>
|
1222
1239
|
<attribute name="obligation">
|
1223
1240
|
<choice>
|
@@ -1546,6 +1563,7 @@
|
|
1546
1563
|
<value>add</value>
|
1547
1564
|
<value>modify</value>
|
1548
1565
|
<value>delete</value>
|
1566
|
+
<value>replace</value>
|
1549
1567
|
</choice>
|
1550
1568
|
</attribute>
|
1551
1569
|
<optional>
|
@@ -1576,6 +1594,11 @@
|
|
1576
1594
|
</optional>
|
1577
1595
|
<optional>
|
1578
1596
|
<element name="newcontent">
|
1597
|
+
<optional>
|
1598
|
+
<attribute name="id">
|
1599
|
+
<data type="ID"/>
|
1600
|
+
</attribute>
|
1601
|
+
</optional>
|
1579
1602
|
<zeroOrMore>
|
1580
1603
|
<ref name="BasicBlock"/>
|
1581
1604
|
</zeroOrMore>
|
@@ -1492,7 +1492,12 @@
|
|
1492
1492
|
|
1493
1493
|
<xsl:variable name="table_attributes">
|
1494
1494
|
<attribute name="table-layout">fixed</attribute>
|
1495
|
-
<attribute name="width">
|
1495
|
+
<attribute name="width">
|
1496
|
+
<xsl:choose>
|
1497
|
+
<xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
|
1498
|
+
<xsl:otherwise>100%</xsl:otherwise>
|
1499
|
+
</xsl:choose>
|
1500
|
+
</attribute>
|
1496
1501
|
<attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
|
1497
1502
|
<attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
|
1498
1503
|
|
@@ -2640,6 +2645,10 @@
|
|
2640
2645
|
</xsl:if>
|
2641
2646
|
<xsl:apply-templates/>
|
2642
2647
|
</fo:inline>
|
2648
|
+
</xsl:template><xsl:template match="*[local-name()='underline']">
|
2649
|
+
<fo:inline text-decoration="underline">
|
2650
|
+
<xsl:apply-templates/>
|
2651
|
+
</fo:inline>
|
2643
2652
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
2644
2653
|
<fo:inline font-size="10pt" color="red" text-decoration="line-through">
|
2645
2654
|
<xsl:apply-templates/>
|
@@ -4204,6 +4213,8 @@
|
|
4204
4213
|
<xsl:value-of select="translate(.,'. ','')"/>
|
4205
4214
|
</xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip">
|
4206
4215
|
<xsl:value-of select="substring(.,1,1)"/>
|
4216
|
+
</xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
|
4217
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
4207
4218
|
</xsl:template><xsl:template name="convertDate">
|
4208
4219
|
<xsl:param name="date"/>
|
4209
4220
|
<xsl:param name="format" select="'short'"/>
|
@@ -4481,6 +4492,11 @@
|
|
4481
4492
|
<xsl:call-template name="getLang"/>
|
4482
4493
|
</xsl:variable>
|
4483
4494
|
|
4484
|
-
<xsl:
|
4495
|
+
<xsl:choose>
|
4496
|
+
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
4497
|
+
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
4498
|
+
</xsl:when>
|
4499
|
+
<xsl:otherwise><xsl:value-of select="$key"/></xsl:otherwise>
|
4500
|
+
</xsl:choose>
|
4485
4501
|
|
4486
4502
|
</xsl:template></xsl:stylesheet>
|
data/metanorma-csa.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
30
30
|
|
31
|
-
spec.add_dependency "metanorma-generic", "~> 1.8.
|
31
|
+
spec.add_dependency "metanorma-generic", "~> 1.8.2"
|
32
32
|
|
33
33
|
spec.add_development_dependency "byebug", "~> 9.1"
|
34
34
|
spec.add_development_dependency "sassc", "2.4.0"
|
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.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.8.
|
19
|
+
version: 1.8.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.8.
|
26
|
+
version: 1.8.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|