metanorma-cc 1.6.3 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccf08dec13e54c9bda2492e45448c05806a6ec2423313fec4d665ea0e94c1850
4
- data.tar.gz: 970449ff10bd637add6afc4b50fcf09a93da7306709e0b24063dc4a3222f9d5d
3
+ metadata.gz: 1598163a64162e53caac3fad9e444b169709a180baac8239ebab07c827d0c1e3
4
+ data.tar.gz: cf3905482b2d739ae491234f3f172f5801c07ff33a0097d8884898e9f1619790
5
5
  SHA512:
6
- metadata.gz: a7878f144abf9849a3e87c7deb39a1a69abdac68b5e6f8d8d1d39ed211ba1c2ccf697fc901a33f5a20d709f193522bfcddee12e86df6c08e18a02e77ef406a81
7
- data.tar.gz: f486c99a5fb4684c26d140051b33c6a62b3e46818955ae574663f880dc1d48cde0673cd7c5844daa4765f8b6f474a9db495c8ced2b95d63026539b5fe2ad8c07
6
+ metadata.gz: 992e610acf0eebbdf23afafc36e3e5aca18d18472120df981f2698461d8c8fb4555a150d27973d4197eaedcd74217f55e4d77e709caef8918cadbac0b4137764
7
+ data.tar.gz: dac53f90de9da9e43e601c74d4cbde3985937b6b76f693c742b8766b2fd995a5fbf98b75909342f311c65e93108a2e6e0b8ffa3f56315ed9df0bf44b58706fa6
@@ -36,6 +36,9 @@ jobs:
36
36
  with:
37
37
  ruby-version: ${{ matrix.ruby }}
38
38
 
39
+ - if: matrix.os == 'macos-latest'
40
+ run: brew install autoconf automake libtool
41
+
39
42
  - uses: actions/cache@v2
40
43
  with:
41
44
  path: vendor/bundle
@@ -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
- <element name="text">
895
- <text/>
896
- </element>
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>
@@ -1421,7 +1421,12 @@
1421
1421
 
1422
1422
  <xsl:variable name="table_attributes">
1423
1423
  <attribute name="table-layout">fixed</attribute>
1424
- <attribute name="width">100%</attribute>
1424
+ <attribute name="width">
1425
+ <xsl:choose>
1426
+ <xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
1427
+ <xsl:otherwise>100%</xsl:otherwise>
1428
+ </xsl:choose>
1429
+ </attribute>
1425
1430
  <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
1426
1431
  <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
1427
1432
 
@@ -2573,6 +2578,10 @@
2573
2578
  </xsl:if>
2574
2579
  <xsl:apply-templates/>
2575
2580
  </fo:inline>
2581
+ </xsl:template><xsl:template match="*[local-name()='underline']">
2582
+ <fo:inline text-decoration="underline">
2583
+ <xsl:apply-templates/>
2584
+ </fo:inline>
2576
2585
  </xsl:template><xsl:template match="*[local-name()='del']">
2577
2586
  <fo:inline font-size="10pt" color="red" text-decoration="line-through">
2578
2587
  <xsl:apply-templates/>
@@ -4142,6 +4151,8 @@
4142
4151
  <xsl:value-of select="translate(.,'. ','')"/>
4143
4152
  </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip">
4144
4153
  <xsl:value-of select="substring(.,1,1)"/>
4154
+ </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
4155
+ <fo:inline><xsl:apply-templates/></fo:inline>
4145
4156
  </xsl:template><xsl:template name="convertDate">
4146
4157
  <xsl:param name="date"/>
4147
4158
  <xsl:param name="format" select="'short'"/>
@@ -4419,6 +4430,11 @@
4419
4430
  <xsl:call-template name="getLang"/>
4420
4431
  </xsl:variable>
4421
4432
 
4422
- <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4433
+ <xsl:choose>
4434
+ <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
4435
+ <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4436
+ </xsl:when>
4437
+ <xsl:otherwise><xsl:value-of select="$key"/></xsl:otherwise>
4438
+ </xsl:choose>
4423
4439
 
4424
4440
  </xsl:template></xsl:stylesheet>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CC
3
- VERSION = "1.6.3"
3
+ VERSION = "1.6.4"
4
4
  end
5
5
  end
@@ -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.1"
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-cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-28 00:00:00.000000000 Z
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.1
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.1
26
+ version: 1.8.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement