metanorma-mpfa 0.5.10 → 0.5.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34aa33b015cf044867e8acdb9ed23bc2d9d4eda4a8ce72b9897d6da904e1dac3
4
- data.tar.gz: ed7f870dc1e11a4eee461d41a594ecdc25b6d47b10c310c5222683091c31bf5d
3
+ metadata.gz: b6b4fb45cca9108e736075604129bbd75df3639b0da7e4acf98e260f8b1423a2
4
+ data.tar.gz: 197f73f8a3f35bf7a1a33d80c8d392f882ec40dace0f4005c8f4c023e24bc62c
5
5
  SHA512:
6
- metadata.gz: 27f5c653e39d1d072e2aafc064bb4f0e268c1b61a43e17b9345b011d9233e1c14a8bc9de23241c60b61d61a5957a06070c0541fa8d3b4e746600f273f9d31439
7
- data.tar.gz: 437e85029b70c0758505167b5b6bf0aeef3c883bfc8693c0a742e775e4465fff8406f5dd886ee84571bd97fab2033ad3565e7a57b70de0c2530b4e52d54e1346
6
+ metadata.gz: 235ee64575a96e7973502abe404564966040aa711ea48a3096364ccda817cb65f0aa1d8da9d57729088a7761b0a8574b8a31a845db9945b1d97ac46d58c0d858
7
+ data.tar.gz: b49a34338f58c0faff58d362f4a9ec17de4482512e116470c40c7a7ef3ee7bd7267e70fc98b8c275d22045de552ff02da21bf868a343e1afd11b7a2703177994
@@ -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>
@@ -45,7 +45,7 @@ module IsoDoc
45
45
  end
46
46
 
47
47
  def middle(isoxml, out)
48
- middle_title(out)
48
+ middle_title(isoxml, out)
49
49
  middle_admonitions(isoxml, out)
50
50
  clause isoxml, out
51
51
  annex isoxml, out
@@ -1372,7 +1372,12 @@
1372
1372
 
1373
1373
  <xsl:variable name="table_attributes">
1374
1374
  <attribute name="table-layout">fixed</attribute>
1375
- <attribute name="width">100%</attribute>
1375
+ <attribute name="width">
1376
+ <xsl:choose>
1377
+ <xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
1378
+ <xsl:otherwise>100%</xsl:otherwise>
1379
+ </xsl:choose>
1380
+ </attribute>
1376
1381
  <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
1377
1382
  <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
1378
1383
 
@@ -2526,6 +2531,10 @@
2526
2531
  </xsl:if>
2527
2532
  <xsl:apply-templates/>
2528
2533
  </fo:inline>
2534
+ </xsl:template><xsl:template match="*[local-name()='underline']">
2535
+ <fo:inline text-decoration="underline">
2536
+ <xsl:apply-templates/>
2537
+ </fo:inline>
2529
2538
  </xsl:template><xsl:template match="*[local-name()='del']">
2530
2539
  <fo:inline font-size="10pt" color="red" text-decoration="line-through">
2531
2540
  <xsl:apply-templates/>
@@ -4080,6 +4089,8 @@
4080
4089
  <xsl:value-of select="translate(.,'. ','')"/>
4081
4090
  </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip">
4082
4091
  <xsl:value-of select="substring(.,1,1)"/>
4092
+ </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
4093
+ <fo:inline><xsl:apply-templates/></fo:inline>
4083
4094
  </xsl:template><xsl:template name="convertDate">
4084
4095
  <xsl:param name="date"/>
4085
4096
  <xsl:param name="format" select="'short'"/>
@@ -4355,6 +4366,11 @@
4355
4366
  <xsl:call-template name="getLang"/>
4356
4367
  </xsl:variable>
4357
4368
 
4358
- <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4369
+ <xsl:choose>
4370
+ <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
4371
+ <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4372
+ </xsl:when>
4373
+ <xsl:otherwise><xsl:value-of select="$key"/></xsl:otherwise>
4374
+ </xsl:choose>
4359
4375
 
4360
4376
  </xsl:template></xsl:stylesheet>
@@ -1372,7 +1372,12 @@
1372
1372
 
1373
1373
  <xsl:variable name="table_attributes">
1374
1374
  <attribute name="table-layout">fixed</attribute>
1375
- <attribute name="width">100%</attribute>
1375
+ <attribute name="width">
1376
+ <xsl:choose>
1377
+ <xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
1378
+ <xsl:otherwise>100%</xsl:otherwise>
1379
+ </xsl:choose>
1380
+ </attribute>
1376
1381
  <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
1377
1382
  <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
1378
1383
 
@@ -2526,6 +2531,10 @@
2526
2531
  </xsl:if>
2527
2532
  <xsl:apply-templates/>
2528
2533
  </fo:inline>
2534
+ </xsl:template><xsl:template match="*[local-name()='underline']">
2535
+ <fo:inline text-decoration="underline">
2536
+ <xsl:apply-templates/>
2537
+ </fo:inline>
2529
2538
  </xsl:template><xsl:template match="*[local-name()='del']">
2530
2539
  <fo:inline font-size="10pt" color="red" text-decoration="line-through">
2531
2540
  <xsl:apply-templates/>
@@ -4080,6 +4089,8 @@
4080
4089
  <xsl:value-of select="translate(.,'. ','')"/>
4081
4090
  </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip">
4082
4091
  <xsl:value-of select="substring(.,1,1)"/>
4092
+ </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
4093
+ <fo:inline><xsl:apply-templates/></fo:inline>
4083
4094
  </xsl:template><xsl:template name="convertDate">
4084
4095
  <xsl:param name="date"/>
4085
4096
  <xsl:param name="format" select="'short'"/>
@@ -4355,6 +4366,11 @@
4355
4366
  <xsl:call-template name="getLang"/>
4356
4367
  </xsl:variable>
4357
4368
 
4358
- <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4369
+ <xsl:choose>
4370
+ <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
4371
+ <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4372
+ </xsl:when>
4373
+ <xsl:otherwise><xsl:value-of select="$key"/></xsl:otherwise>
4374
+ </xsl:choose>
4359
4375
 
4360
4376
  </xsl:template></xsl:stylesheet>
@@ -1372,7 +1372,12 @@
1372
1372
 
1373
1373
  <xsl:variable name="table_attributes">
1374
1374
  <attribute name="table-layout">fixed</attribute>
1375
- <attribute name="width">100%</attribute>
1375
+ <attribute name="width">
1376
+ <xsl:choose>
1377
+ <xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
1378
+ <xsl:otherwise>100%</xsl:otherwise>
1379
+ </xsl:choose>
1380
+ </attribute>
1376
1381
  <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
1377
1382
  <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
1378
1383
 
@@ -2526,6 +2531,10 @@
2526
2531
  </xsl:if>
2527
2532
  <xsl:apply-templates/>
2528
2533
  </fo:inline>
2534
+ </xsl:template><xsl:template match="*[local-name()='underline']">
2535
+ <fo:inline text-decoration="underline">
2536
+ <xsl:apply-templates/>
2537
+ </fo:inline>
2529
2538
  </xsl:template><xsl:template match="*[local-name()='del']">
2530
2539
  <fo:inline font-size="10pt" color="red" text-decoration="line-through">
2531
2540
  <xsl:apply-templates/>
@@ -4080,6 +4089,8 @@
4080
4089
  <xsl:value-of select="translate(.,'. ','')"/>
4081
4090
  </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip">
4082
4091
  <xsl:value-of select="substring(.,1,1)"/>
4092
+ </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
4093
+ <fo:inline><xsl:apply-templates/></fo:inline>
4083
4094
  </xsl:template><xsl:template name="convertDate">
4084
4095
  <xsl:param name="date"/>
4085
4096
  <xsl:param name="format" select="'short'"/>
@@ -4355,6 +4366,11 @@
4355
4366
  <xsl:call-template name="getLang"/>
4356
4367
  </xsl:variable>
4357
4368
 
4358
- <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4369
+ <xsl:choose>
4370
+ <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
4371
+ <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4372
+ </xsl:when>
4373
+ <xsl:otherwise><xsl:value-of select="$key"/></xsl:otherwise>
4374
+ </xsl:choose>
4359
4375
 
4360
4376
  </xsl:template></xsl:stylesheet>
@@ -1372,7 +1372,12 @@
1372
1372
 
1373
1373
  <xsl:variable name="table_attributes">
1374
1374
  <attribute name="table-layout">fixed</attribute>
1375
- <attribute name="width">100%</attribute>
1375
+ <attribute name="width">
1376
+ <xsl:choose>
1377
+ <xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
1378
+ <xsl:otherwise>100%</xsl:otherwise>
1379
+ </xsl:choose>
1380
+ </attribute>
1376
1381
  <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
1377
1382
  <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
1378
1383
 
@@ -2526,6 +2531,10 @@
2526
2531
  </xsl:if>
2527
2532
  <xsl:apply-templates/>
2528
2533
  </fo:inline>
2534
+ </xsl:template><xsl:template match="*[local-name()='underline']">
2535
+ <fo:inline text-decoration="underline">
2536
+ <xsl:apply-templates/>
2537
+ </fo:inline>
2529
2538
  </xsl:template><xsl:template match="*[local-name()='del']">
2530
2539
  <fo:inline font-size="10pt" color="red" text-decoration="line-through">
2531
2540
  <xsl:apply-templates/>
@@ -4080,6 +4089,8 @@
4080
4089
  <xsl:value-of select="translate(.,'. ','')"/>
4081
4090
  </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip">
4082
4091
  <xsl:value-of select="substring(.,1,1)"/>
4092
+ </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
4093
+ <fo:inline><xsl:apply-templates/></fo:inline>
4083
4094
  </xsl:template><xsl:template name="convertDate">
4084
4095
  <xsl:param name="date"/>
4085
4096
  <xsl:param name="format" select="'short'"/>
@@ -4355,6 +4366,11 @@
4355
4366
  <xsl:call-template name="getLang"/>
4356
4367
  </xsl:variable>
4357
4368
 
4358
- <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4369
+ <xsl:choose>
4370
+ <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
4371
+ <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4372
+ </xsl:when>
4373
+ <xsl:otherwise><xsl:value-of select="$key"/></xsl:otherwise>
4374
+ </xsl:choose>
4359
4375
 
4360
4376
  </xsl:template></xsl:stylesheet>
@@ -1372,7 +1372,12 @@
1372
1372
 
1373
1373
  <xsl:variable name="table_attributes">
1374
1374
  <attribute name="table-layout">fixed</attribute>
1375
- <attribute name="width">100%</attribute>
1375
+ <attribute name="width">
1376
+ <xsl:choose>
1377
+ <xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
1378
+ <xsl:otherwise>100%</xsl:otherwise>
1379
+ </xsl:choose>
1380
+ </attribute>
1376
1381
  <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
1377
1382
  <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
1378
1383
 
@@ -2526,6 +2531,10 @@
2526
2531
  </xsl:if>
2527
2532
  <xsl:apply-templates/>
2528
2533
  </fo:inline>
2534
+ </xsl:template><xsl:template match="*[local-name()='underline']">
2535
+ <fo:inline text-decoration="underline">
2536
+ <xsl:apply-templates/>
2537
+ </fo:inline>
2529
2538
  </xsl:template><xsl:template match="*[local-name()='del']">
2530
2539
  <fo:inline font-size="10pt" color="red" text-decoration="line-through">
2531
2540
  <xsl:apply-templates/>
@@ -4080,6 +4089,8 @@
4080
4089
  <xsl:value-of select="translate(.,'. ','')"/>
4081
4090
  </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip">
4082
4091
  <xsl:value-of select="substring(.,1,1)"/>
4092
+ </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
4093
+ <fo:inline><xsl:apply-templates/></fo:inline>
4083
4094
  </xsl:template><xsl:template name="convertDate">
4084
4095
  <xsl:param name="date"/>
4085
4096
  <xsl:param name="format" select="'short'"/>
@@ -4355,6 +4366,11 @@
4355
4366
  <xsl:call-template name="getLang"/>
4356
4367
  </xsl:variable>
4357
4368
 
4358
- <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4369
+ <xsl:choose>
4370
+ <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
4371
+ <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4372
+ </xsl:when>
4373
+ <xsl:otherwise><xsl:value-of select="$key"/></xsl:otherwise>
4374
+ </xsl:choose>
4359
4375
 
4360
4376
  </xsl:template></xsl:stylesheet>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module MPFA
3
- VERSION = "0.5.10"
3
+ VERSION = "0.5.11"
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_dependency "htmlentities", "~> 4.3.4"
32
32
  spec.add_dependency "metanorma-standoc", "~> 1.7.0"
33
- spec.add_dependency "isodoc", "~> 1.4.0"
33
+ spec.add_dependency "isodoc", "~> 1.4.2"
34
34
  spec.add_dependency "twitter_cldr"
35
35
 
36
36
  spec.add_development_dependency "byebug", "~> 9.1"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-mpfa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.11
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: htmlentities
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.4.0
47
+ version: 1.4.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.4.0
54
+ version: 1.4.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: twitter_cldr
57
57
  requirement: !ruby/object:Gem::Requirement