metanorma-m3aawg 1.6.4 → 1.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/m3aawg/basicdoc.rng +5 -3
- data/lib/asciidoctor/m3aawg/isodoc.rng +3 -0
- data/lib/isodoc/m3aawg/m3d.report.xsl +71 -4
- data/lib/metanorma/m3aawg/processor.rb +1 -1
- data/lib/metanorma/m3aawg/version.rb +1 -1
- data/metanorma-m3d.gemspec +1 -1
- data/metanorma.yml +2 -2
- 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: 61c7453fc66f2ef72400f75a2064c1cdb3137b581ec67770c7ce1e1ff70a3fa4
|
4
|
+
data.tar.gz: e28b2e5a2d09a6e19d5fe0d52241835b7700857ca2b0eac032819b5df9db7819
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51d535955b6710fc27fab095060627c5bdc9cbb29122893fbce99412f993146ba3395f46f79cf0d3b3ae4a6a65332f97e04fbd5bddb83810f1d6cc6ccf359d03
|
7
|
+
data.tar.gz: acf4946122cc080f7f79cc4ba334b2d1929a7351f789423c3143ffca4abb2870ae5410469c58ddde57fdb57fb4c8acacd8c0052e31191300a15af94001c7c45f
|
@@ -729,9 +729,11 @@
|
|
729
729
|
</define>
|
730
730
|
<define name="index">
|
731
731
|
<element name="index">
|
732
|
-
<
|
733
|
-
<
|
734
|
-
|
732
|
+
<optional>
|
733
|
+
<attribute name="to">
|
734
|
+
<data type="IDREF"/>
|
735
|
+
</attribute>
|
736
|
+
</optional>
|
735
737
|
<element name="primary">
|
736
738
|
<oneOrMore>
|
737
739
|
<ref name="PureTextElement"/>
|
@@ -1281,6 +1281,7 @@
|
|
1281
1281
|
|
1282
1282
|
|
1283
1283
|
|
1284
|
+
|
1284
1285
|
</xsl:attribute-set><xsl:attribute-set name="quote-source-style">
|
1285
1286
|
|
1286
1287
|
|
@@ -1415,7 +1416,7 @@
|
|
1415
1416
|
</xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
|
1416
1417
|
<!-- <xsl:call-template name="add-zero-spaces"/> -->
|
1417
1418
|
<xsl:call-template name="add-zero-spaces-java"/>
|
1418
|
-
</xsl:template><xsl:template match="*[local-name()='table']">
|
1419
|
+
</xsl:template><xsl:template match="*[local-name()='table']" name="table">
|
1419
1420
|
|
1420
1421
|
<xsl:variable name="simple-table">
|
1421
1422
|
<xsl:call-template name="getSimpleTable"/>
|
@@ -2642,6 +2643,7 @@
|
|
2642
2643
|
|
2643
2644
|
|
2644
2645
|
|
2646
|
+
|
2645
2647
|
<xsl:choose>
|
2646
2648
|
<xsl:when test="not(ancestor::*[local-name()='note'])">10</xsl:when>
|
2647
2649
|
<xsl:otherwise>11</xsl:otherwise>
|
@@ -3251,7 +3253,7 @@
|
|
3251
3253
|
</xsl:if> -->
|
3252
3254
|
</fo:inline>
|
3253
3255
|
</xsl:if>
|
3254
|
-
</xsl:template><xsl:template match="*[local-name() = 'figure']">
|
3256
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']" name="figure">
|
3255
3257
|
<fo:block-container id="{@id}">
|
3256
3258
|
|
3257
3259
|
<fo:block>
|
@@ -3458,6 +3460,12 @@
|
|
3458
3460
|
<!-- <xsl:text> </xsl:text> -->
|
3459
3461
|
</xsl:template><xsl:template name="getSection">
|
3460
3462
|
<xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
3463
|
+
<!--
|
3464
|
+
<xsl:for-each select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()">
|
3465
|
+
<xsl:value-of select="."/>
|
3466
|
+
</xsl:for-each>
|
3467
|
+
-->
|
3468
|
+
|
3461
3469
|
</xsl:template><xsl:template name="getName">
|
3462
3470
|
<xsl:choose>
|
3463
3471
|
<xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
|
@@ -3510,6 +3518,10 @@
|
|
3510
3518
|
<xsl:copy>
|
3511
3519
|
<xsl:apply-templates mode="contents_item"/>
|
3512
3520
|
</xsl:copy>
|
3521
|
+
</xsl:template><xsl:template match="*[local-name() = 'em']" mode="contents_item">
|
3522
|
+
<xsl:copy>
|
3523
|
+
<xsl:apply-templates mode="contents_item"/>
|
3524
|
+
</xsl:copy>
|
3513
3525
|
</xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
|
3514
3526
|
<xsl:text> </xsl:text>
|
3515
3527
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
|
@@ -3535,6 +3547,7 @@
|
|
3535
3547
|
|
3536
3548
|
|
3537
3549
|
|
3550
|
+
|
3538
3551
|
|
3539
3552
|
|
3540
3553
|
|
@@ -4063,6 +4076,7 @@
|
|
4063
4076
|
|
4064
4077
|
|
4065
4078
|
|
4079
|
+
|
4066
4080
|
<xsl:variable name="pos"><xsl:number count="m3d:sections/m3d:clause | m3d:sections/m3d:terms"/></xsl:variable>
|
4067
4081
|
<xsl:if test="$pos >= 2">
|
4068
4082
|
<xsl:attribute name="space-before">18pt</xsl:attribute>
|
@@ -4078,7 +4092,7 @@
|
|
4078
4092
|
|
4079
4093
|
|
4080
4094
|
|
4081
|
-
</xsl:template><xsl:template match="
|
4095
|
+
</xsl:template><xsl:template match="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*" priority="2"> <!-- /*/*[local-name() = 'preface']/* -->
|
4082
4096
|
<fo:block break-after="page"/>
|
4083
4097
|
<fo:block>
|
4084
4098
|
<xsl:call-template name="setId"/>
|
@@ -4086,7 +4100,8 @@
|
|
4086
4100
|
</fo:block>
|
4087
4101
|
</xsl:template><xsl:template match="*[local-name() = 'clause']">
|
4088
4102
|
<fo:block>
|
4089
|
-
<xsl:call-template name="setId"/>
|
4103
|
+
<xsl:call-template name="setId"/>
|
4104
|
+
|
4090
4105
|
|
4091
4106
|
<xsl:apply-templates/>
|
4092
4107
|
</fo:block>
|
@@ -4258,6 +4273,57 @@
|
|
4258
4273
|
</xsl:variable>
|
4259
4274
|
<xsl:variable name="result">
|
4260
4275
|
<xsl:choose>
|
4276
|
+
<xsl:when test="$format = 'ddMMyyyy'">
|
4277
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
4278
|
+
<xsl:text> </xsl:text>
|
4279
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
|
4280
|
+
</xsl:when>
|
4281
|
+
<xsl:when test="$format = 'ddMM'">
|
4282
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
4283
|
+
<xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
|
4284
|
+
</xsl:when>
|
4285
|
+
<xsl:when test="$format = 'short' or $day = ''">
|
4286
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
|
4287
|
+
</xsl:when>
|
4288
|
+
<xsl:otherwise>
|
4289
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ', $day, ', ' , $year))"/>
|
4290
|
+
</xsl:otherwise>
|
4291
|
+
</xsl:choose>
|
4292
|
+
</xsl:variable>
|
4293
|
+
<xsl:value-of select="$result"/>
|
4294
|
+
</xsl:template><xsl:template name="convertDateLocalized">
|
4295
|
+
<xsl:param name="date"/>
|
4296
|
+
<xsl:param name="format" select="'short'"/>
|
4297
|
+
<xsl:variable name="year" select="substring($date, 1, 4)"/>
|
4298
|
+
<xsl:variable name="month" select="substring($date, 6, 2)"/>
|
4299
|
+
<xsl:variable name="day" select="substring($date, 9, 2)"/>
|
4300
|
+
<xsl:variable name="monthStr">
|
4301
|
+
<xsl:choose>
|
4302
|
+
<xsl:when test="$month = '01'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_january</xsl:with-param></xsl:call-template></xsl:when>
|
4303
|
+
<xsl:when test="$month = '02'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_february</xsl:with-param></xsl:call-template></xsl:when>
|
4304
|
+
<xsl:when test="$month = '03'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_march</xsl:with-param></xsl:call-template></xsl:when>
|
4305
|
+
<xsl:when test="$month = '04'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_april</xsl:with-param></xsl:call-template></xsl:when>
|
4306
|
+
<xsl:when test="$month = '05'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_may</xsl:with-param></xsl:call-template></xsl:when>
|
4307
|
+
<xsl:when test="$month = '06'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_june</xsl:with-param></xsl:call-template></xsl:when>
|
4308
|
+
<xsl:when test="$month = '07'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_july</xsl:with-param></xsl:call-template></xsl:when>
|
4309
|
+
<xsl:when test="$month = '08'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_august</xsl:with-param></xsl:call-template></xsl:when>
|
4310
|
+
<xsl:when test="$month = '09'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_september</xsl:with-param></xsl:call-template></xsl:when>
|
4311
|
+
<xsl:when test="$month = '10'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_october</xsl:with-param></xsl:call-template></xsl:when>
|
4312
|
+
<xsl:when test="$month = '11'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_november</xsl:with-param></xsl:call-template></xsl:when>
|
4313
|
+
<xsl:when test="$month = '12'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_december</xsl:with-param></xsl:call-template></xsl:when>
|
4314
|
+
</xsl:choose>
|
4315
|
+
</xsl:variable>
|
4316
|
+
<xsl:variable name="result">
|
4317
|
+
<xsl:choose>
|
4318
|
+
<xsl:when test="$format = 'ddMMyyyy'">
|
4319
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
4320
|
+
<xsl:text> </xsl:text>
|
4321
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
|
4322
|
+
</xsl:when>
|
4323
|
+
<xsl:when test="$format = 'ddMM'">
|
4324
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
4325
|
+
<xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
|
4326
|
+
</xsl:when>
|
4261
4327
|
<xsl:when test="$format = 'short' or $day = ''">
|
4262
4328
|
<xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
|
4263
4329
|
</xsl:when>
|
@@ -4452,6 +4518,7 @@
|
|
4452
4518
|
|
4453
4519
|
|
4454
4520
|
|
4521
|
+
|
4455
4522
|
</xsl:variable>
|
4456
4523
|
<xsl:if test="$documentNS != $XSLNS">
|
4457
4524
|
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
data/metanorma-m3d.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
32
32
|
spec.add_dependency "thread_safe"
|
33
33
|
|
34
|
-
spec.add_dependency "metanorma-generic", "~> 1.
|
34
|
+
spec.add_dependency "metanorma-generic", "~> 1.9.0"
|
35
35
|
|
36
36
|
spec.add_development_dependency "byebug", "~> 9.1"
|
37
37
|
spec.add_development_dependency "sassc", "~> 2.4.0"
|
data/metanorma.yml
CHANGED
@@ -14,8 +14,8 @@ htmlcoverpage: lib/isodoc/m3aawg/html/html_m3d_titlepage.html
|
|
14
14
|
htmlintropage: lib/isodoc/m3aawg/html/html_m3d_intro.html
|
15
15
|
htmlstylesheet: lib/isodoc/m3aawg/html/htmlstyle.scss
|
16
16
|
scripts: lib/isodoc/m3aawg/html/scripts.html
|
17
|
-
word_bodyfont: '"Garamond",serif'
|
18
|
-
word_headerfont: '"Garamond",serif'
|
17
|
+
word_bodyfont: '"EB Garamond",serif'
|
18
|
+
word_headerfont: '"EB Garamond",serif'
|
19
19
|
word_monospacefont: '"Courier New",monospace'
|
20
20
|
word_normalfontsize: "11.0pt"
|
21
21
|
word_monospacefontsize: "9.0pt"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-m3aawg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.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-01-
|
11
|
+
date: 2021-01-25 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.
|
47
|
+
version: 1.9.0
|
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.
|
54
|
+
version: 1.9.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: byebug
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|