metanorma-m3aawg 1.6.1 → 1.6.2
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 +4 -4
- data/lib/asciidoctor/m3aawg/basicdoc.rng +32 -0
- data/lib/asciidoctor/m3aawg/isodoc.rng +15 -0
- data/lib/isodoc/m3aawg/m3d.report.xsl +64 -27
- data/lib/metanorma/m3aawg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c2e09acb297b880bb414e4ab8d3a27583d8b6e02d12f10ba20d36db3157b72f
|
4
|
+
data.tar.gz: 6b6395caeacba006b65d258b80ddecae051a8989bf92c19d0a73f523127e9fa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc7fa5298b88fc633b802e1ad873db706dec4f9c2d15a6932937206e88403a693dcc4b4afd94d564541cb7f0647f614580888473d0f44cb05c6dca92e62c8540
|
7
|
+
data.tar.gz: 2daf22dedf4b18319c873efa2a495f338e3f88dc4ca6cd2baaeca592990d95d8f9530558d156b185b162758ab3f1d6103e36b3668e2a299fcdc7d7fbb58f4043
|
@@ -596,6 +596,7 @@
|
|
596
596
|
<ref name="bookmark"/>
|
597
597
|
<ref name="image"/>
|
598
598
|
<ref name="index"/>
|
599
|
+
<ref name="index-xref"/>
|
599
600
|
</choice>
|
600
601
|
</define>
|
601
602
|
<define name="PureTextElement">
|
@@ -737,6 +738,37 @@
|
|
737
738
|
</optional>
|
738
739
|
</element>
|
739
740
|
</define>
|
741
|
+
<define name="index-xref">
|
742
|
+
<element name="index-xref">
|
743
|
+
<attribute name="also">
|
744
|
+
<data type="boolean"/>
|
745
|
+
</attribute>
|
746
|
+
<element name="primary">
|
747
|
+
<oneOrMore>
|
748
|
+
<ref name="PureTextElement"/>
|
749
|
+
</oneOrMore>
|
750
|
+
</element>
|
751
|
+
<optional>
|
752
|
+
<element name="secondary">
|
753
|
+
<oneOrMore>
|
754
|
+
<ref name="PureTextElement"/>
|
755
|
+
</oneOrMore>
|
756
|
+
</element>
|
757
|
+
</optional>
|
758
|
+
<optional>
|
759
|
+
<element name="tertiary">
|
760
|
+
<oneOrMore>
|
761
|
+
<ref name="PureTextElement"/>
|
762
|
+
</oneOrMore>
|
763
|
+
</element>
|
764
|
+
</optional>
|
765
|
+
<element name="target">
|
766
|
+
<oneOrMore>
|
767
|
+
<ref name="PureTextElement"/>
|
768
|
+
</oneOrMore>
|
769
|
+
</element>
|
770
|
+
</element>
|
771
|
+
</define>
|
740
772
|
<!-- bare ID element, used for referencing arbitrary spans of text -->
|
741
773
|
<define name="bookmark">
|
742
774
|
<element name="bookmark">
|
@@ -246,6 +246,9 @@
|
|
246
246
|
<data type="boolean"/>
|
247
247
|
</attribute>
|
248
248
|
</optional>
|
249
|
+
<optional>
|
250
|
+
<ref name="colgroup"/>
|
251
|
+
</optional>
|
249
252
|
<optional>
|
250
253
|
<ref name="tname"/>
|
251
254
|
</optional>
|
@@ -764,6 +767,18 @@
|
|
764
767
|
</define>
|
765
768
|
</include>
|
766
769
|
<!-- end overrides -->
|
770
|
+
<define name="colgroup">
|
771
|
+
<element name="colgroup">
|
772
|
+
<oneOrMore>
|
773
|
+
<ref name="col"/>
|
774
|
+
</oneOrMore>
|
775
|
+
</element>
|
776
|
+
</define>
|
777
|
+
<define name="col">
|
778
|
+
<element name="col">
|
779
|
+
<attribute name="width"/>
|
780
|
+
</element>
|
781
|
+
</define>
|
767
782
|
<define name="TextElement" combine="choice">
|
768
783
|
<ref name="concept"/>
|
769
784
|
</define>
|
@@ -365,7 +365,7 @@
|
|
365
365
|
<xsl:otherwise> <!-- for ordered lists -->
|
366
366
|
<xsl:choose>
|
367
367
|
<xsl:when test="../@type = 'arabic'">
|
368
|
-
<xsl:number format="a)"/>
|
368
|
+
<xsl:number format="a)" lang="en"/>
|
369
369
|
</xsl:when>
|
370
370
|
<xsl:when test="../@type = 'alphabet'">
|
371
371
|
<xsl:number format="1)"/>
|
@@ -1426,10 +1426,12 @@
|
|
1426
1426
|
|
1427
1427
|
|
1428
1428
|
<xsl:variable name="colwidths">
|
1429
|
-
<xsl:
|
1430
|
-
<xsl:
|
1431
|
-
|
1432
|
-
|
1429
|
+
<xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col'])">
|
1430
|
+
<xsl:call-template name="calculate-column-widths">
|
1431
|
+
<xsl:with-param name="cols-count" select="$cols-count"/>
|
1432
|
+
<xsl:with-param name="table" select="$simple-table"/>
|
1433
|
+
</xsl:call-template>
|
1434
|
+
</xsl:if>
|
1433
1435
|
</xsl:variable>
|
1434
1436
|
<!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
|
1435
1437
|
|
@@ -1497,16 +1499,25 @@
|
|
1497
1499
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
1498
1500
|
</xsl:if>
|
1499
1501
|
|
1500
|
-
<xsl:
|
1501
|
-
<xsl:
|
1502
|
-
<xsl:
|
1503
|
-
<fo:table-column column-width="
|
1504
|
-
</xsl:
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1502
|
+
<xsl:choose>
|
1503
|
+
<xsl:when test="*[local-name()='colgroup']/*[local-name()='col']">
|
1504
|
+
<xsl:for-each select="*[local-name()='colgroup']/*[local-name()='col']">
|
1505
|
+
<fo:table-column column-width="{@width}"/>
|
1506
|
+
</xsl:for-each>
|
1507
|
+
</xsl:when>
|
1508
|
+
<xsl:otherwise>
|
1509
|
+
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
1510
|
+
<xsl:choose>
|
1511
|
+
<xsl:when test=". = 1 or . = 0">
|
1512
|
+
<fo:table-column column-width="proportional-column-width(2)"/>
|
1513
|
+
</xsl:when>
|
1514
|
+
<xsl:otherwise>
|
1515
|
+
<fo:table-column column-width="proportional-column-width({.})"/>
|
1516
|
+
</xsl:otherwise>
|
1517
|
+
</xsl:choose>
|
1518
|
+
</xsl:for-each>
|
1519
|
+
</xsl:otherwise>
|
1520
|
+
</xsl:choose>
|
1510
1521
|
|
1511
1522
|
<xsl:choose>
|
1512
1523
|
<xsl:when test="not(*[local-name()='tbody']) and *[local-name()='thead']">
|
@@ -1519,10 +1530,12 @@
|
|
1519
1530
|
|
1520
1531
|
</fo:table>
|
1521
1532
|
|
1533
|
+
<xsl:variable name="colgroup" select="*[local-name()='colgroup']"/>
|
1522
1534
|
<xsl:for-each select="*[local-name()='tbody']"><!-- select context to tbody -->
|
1523
1535
|
<xsl:call-template name="insertTableFooterInSeparateTable">
|
1524
1536
|
<xsl:with-param name="table_attributes" select="$table_attributes"/>
|
1525
1537
|
<xsl:with-param name="colwidths" select="$colwidths"/>
|
1538
|
+
<xsl:with-param name="colgroup" select="$colgroup"/>
|
1526
1539
|
</xsl:call-template>
|
1527
1540
|
</xsl:for-each>
|
1528
1541
|
|
@@ -1776,12 +1789,22 @@
|
|
1776
1789
|
</xsl:template><xsl:template name="insertTableFooterInSeparateTable">
|
1777
1790
|
<xsl:param name="table_attributes"/>
|
1778
1791
|
<xsl:param name="colwidths"/>
|
1792
|
+
<xsl:param name="colgroup"/>
|
1779
1793
|
|
1780
1794
|
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
1781
1795
|
|
1782
1796
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
1783
1797
|
|
1784
|
-
<xsl:variable name="cols-count"
|
1798
|
+
<xsl:variable name="cols-count">
|
1799
|
+
<xsl:choose>
|
1800
|
+
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
1801
|
+
<xsl:value-of select="count(xalan:nodeset($colgroup)//*[local-name()='col'])"/>
|
1802
|
+
</xsl:when>
|
1803
|
+
<xsl:otherwise>
|
1804
|
+
<xsl:value-of select="count(xalan:nodeset($colwidths)//column)"/>
|
1805
|
+
</xsl:otherwise>
|
1806
|
+
</xsl:choose>
|
1807
|
+
</xsl:variable>
|
1785
1808
|
|
1786
1809
|
<fo:table keep-with-previous="always">
|
1787
1810
|
<xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
|
@@ -1799,16 +1822,25 @@
|
|
1799
1822
|
</xsl:choose>
|
1800
1823
|
</xsl:for-each>
|
1801
1824
|
|
1802
|
-
<xsl:
|
1803
|
-
<xsl:
|
1804
|
-
<xsl:
|
1805
|
-
<fo:table-column column-width="
|
1806
|
-
</xsl:
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1825
|
+
<xsl:choose>
|
1826
|
+
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
1827
|
+
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
1828
|
+
<fo:table-column column-width="{@width}"/>
|
1829
|
+
</xsl:for-each>
|
1830
|
+
</xsl:when>
|
1831
|
+
<xsl:otherwise>
|
1832
|
+
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
1833
|
+
<xsl:choose>
|
1834
|
+
<xsl:when test=". = 1 or . = 0">
|
1835
|
+
<fo:table-column column-width="proportional-column-width(2)"/>
|
1836
|
+
</xsl:when>
|
1837
|
+
<xsl:otherwise>
|
1838
|
+
<fo:table-column column-width="proportional-column-width({.})"/>
|
1839
|
+
</xsl:otherwise>
|
1840
|
+
</xsl:choose>
|
1841
|
+
</xsl:for-each>
|
1842
|
+
</xsl:otherwise>
|
1843
|
+
</xsl:choose>
|
1812
1844
|
|
1813
1845
|
<fo:table-body>
|
1814
1846
|
<fo:table-row>
|
@@ -3992,7 +4024,8 @@
|
|
3992
4024
|
<fo:table-column column-width="107mm"/>
|
3993
4025
|
<fo:table-column column-width="15mm"/>
|
3994
4026
|
<fo:table-body>
|
3995
|
-
<fo:table-row
|
4027
|
+
<fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
|
4028
|
+
|
3996
4029
|
<fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
|
3997
4030
|
<fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
|
3998
4031
|
<fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
|
@@ -4010,6 +4043,10 @@
|
|
4010
4043
|
<fo:block><xsl:apply-templates/></fo:block>
|
4011
4044
|
</fo:table-cell>
|
4012
4045
|
</xsl:template><xsl:template name="processBibitem">
|
4046
|
+
|
4047
|
+
|
4048
|
+
<!-- end BIPM bibitem processing-->
|
4049
|
+
|
4013
4050
|
|
4014
4051
|
|
4015
4052
|
|
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.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: 2020-
|
11
|
+
date: 2020-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|