metanorma-plateau 1.1.0 → 1.1.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38805e986aa828aaf5643505c602f768a9fcca059f609fd9277ea19d27a96d75
|
4
|
+
data.tar.gz: 80505ea36d9ad9add5ad0bbf58e263914ff98510c824dac89e5c221164baca6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55b12233299061c56b7de9977489402fb1c3410b6e3f1740a19347e6673b2b5ec5c869ed0707e9464146e67fd1d769eaa3c9bcead010ea4c48f9261933ccd676
|
7
|
+
data.tar.gz: b2926315ab374f5227748b6216db23e501dd00dcdb3984f3814854cbfc6ddb038b637541e69f3497b31ede8b9ee579381c7149d3192f8646b841d588b60a38b6
|
data/README.adoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
image:https://img.shields.io/gem/v/metanorma-plateau.svg["Gem Version", link="https://rubygems.org/gems/metanorma-plateau"]
|
4
4
|
image:https://github.com/metanorma/metanorma-plateau/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/metanorma-plateau/actions?workflow=rake"]
|
5
|
-
image:https://codeclimate.com/github/metanorma/metanorma-plateau/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-plateau"]
|
5
|
+
// image:https://codeclimate.com/github/metanorma/metanorma-plateau/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-plateau"]
|
6
6
|
image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-plateau.svg["Pull Requests", link="https://github.com/metanorma/metanorma-plateau/pulls"]
|
7
7
|
image:https://img.shields.io/github/commits-since/metanorma/metanorma-plateau/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-plateau/releases"]
|
8
8
|
|
@@ -80,7 +80,7 @@
|
|
80
80
|
<fo:region-end region-name="right-region" extent="8.5mm"/>
|
81
81
|
</fo:simple-page-master>
|
82
82
|
|
83
|
-
<fo:simple-page-master master-name="
|
83
|
+
<fo:simple-page-master master-name="preface" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
84
84
|
<xsl:if test="$vertical_layout = 'true'">
|
85
85
|
<xsl:attribute name="page-width"><xsl:value-of select="$pageHeight"/>mm</xsl:attribute>
|
86
86
|
<xsl:attribute name="page-height"><xsl:value-of select="$pageWidth"/>mm</xsl:attribute>
|
@@ -96,7 +96,16 @@
|
|
96
96
|
<fo:region-end region-name="right-region" extent="34mm"/>
|
97
97
|
</fo:simple-page-master>
|
98
98
|
|
99
|
-
|
99
|
+
<!-- preface landscape -->
|
100
|
+
<fo:simple-page-master master-name="preface-landscape" page-width="{$pageHeight}mm" page-height="{$pageWidth}mm">
|
101
|
+
<fo:region-body margin-top="15mm" margin-bottom="{$cover_page_margin_bottom}mm" margin-left="36mm" margin-right="8.5mm"/>
|
102
|
+
<fo:region-before region-name="header" extent="15mm"/>
|
103
|
+
<fo:region-after region-name="footer" extent="{$cover_page_margin_bottom}mm"/>
|
104
|
+
<fo:region-start region-name="left-region-landscape" extent="36mm"/>
|
105
|
+
<fo:region-end region-name="right-region-landscape" extent="8.5mm"/>
|
106
|
+
</fo:simple-page-master>
|
107
|
+
|
108
|
+
<fo:simple-page-master master-name="toc" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
100
109
|
<xsl:if test="$vertical_layout = 'true'">
|
101
110
|
<xsl:attribute name="page-width"><xsl:value-of select="$pageHeight"/>mm</xsl:attribute>
|
102
111
|
<xsl:attribute name="page-height"><xsl:value-of select="$pageWidth"/>mm</xsl:attribute>
|
@@ -137,7 +146,7 @@
|
|
137
146
|
<fo:region-end region-name="right-region-landscape" extent="{$marginLeftRight2}mm"/>
|
138
147
|
</fo:simple-page-master>
|
139
148
|
|
140
|
-
<fo:simple-page-master master-name="
|
149
|
+
<fo:simple-page-master master-name="back-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
141
150
|
<fo:region-body margin-top="179.5mm" margin-bottom="30mm" margin-left="15mm" margin-right="22.7mm"/>
|
142
151
|
<fo:region-before region-name="header" extent="179.5mm"/>
|
143
152
|
<fo:region-after region-name="footer" extent="30mm"/>
|
@@ -145,7 +154,7 @@
|
|
145
154
|
<fo:region-end region-name="right-region" extent="22.7mm"/>
|
146
155
|
</fo:simple-page-master>
|
147
156
|
|
148
|
-
<fo:simple-page-master master-name="
|
157
|
+
<fo:simple-page-master master-name="back-page_technical-report" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
149
158
|
<fo:region-body margin-top="191mm" margin-bottom="41mm" margin-left="26mm" margin-right="26mm"/>
|
150
159
|
<fo:region-before region-name="header" extent="{$marginTop}mm"/>
|
151
160
|
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
@@ -179,13 +188,13 @@
|
|
179
188
|
<xsl:with-param name="contents" select="$contents"/>
|
180
189
|
</xsl:call-template>
|
181
190
|
|
182
|
-
|
191
|
+
<xsl:if test="$debug = 'true'">
|
183
192
|
<xsl:message>start contents redirect</xsl:message>
|
184
193
|
<redirect:write file="contents.xml">
|
185
194
|
<xsl:copy-of select="$contents"/>
|
186
195
|
</redirect:write>
|
187
196
|
<xsl:message>end contents redirect</xsl:message>
|
188
|
-
</xsl:if>
|
197
|
+
</xsl:if>
|
189
198
|
|
190
199
|
<xsl:variable name="updated_xml_pres">
|
191
200
|
<xsl:apply-templates mode="update_xml_pres"/>
|
@@ -252,7 +261,7 @@
|
|
252
261
|
|
253
262
|
<xsl:choose>
|
254
263
|
<xsl:when test="mn:clause[@type = 'toc']">
|
255
|
-
<fo:page-sequence master-reference="
|
264
|
+
<fo:page-sequence master-reference="toc" initial-page-number="1" force-page-count="no-force">
|
256
265
|
<xsl:if test="$doctype = 'technical-report'">
|
257
266
|
<xsl:attribute name="master-reference">document</xsl:attribute>
|
258
267
|
</xsl:if>
|
@@ -275,12 +284,9 @@
|
|
275
284
|
</xsl:when>
|
276
285
|
<xsl:otherwise>
|
277
286
|
|
278
|
-
<
|
287
|
+
<xsl:variable name="page_orientation"><xsl:call-template name="getPageSequenceOrientation"/></xsl:variable>
|
279
288
|
|
280
|
-
|
281
|
-
<xsl:text>document_preface</xsl:text>
|
282
|
-
<xsl:call-template name="getPageSequenceOrientation"/>
|
283
|
-
</xsl:attribute>
|
289
|
+
<fo:page-sequence master-reference="preface{$page_orientation}" force-page-count="no-force" font-family="Noto Sans JP" font-size="10pt">
|
284
290
|
|
285
291
|
<fo:static-content flow-name="header" role="artifact" id="__internal_layout__preface_header_{generate-id()}">
|
286
292
|
<!-- grey background -->
|
@@ -317,12 +323,9 @@
|
|
317
323
|
<!-- ========================== -->
|
318
324
|
|
319
325
|
<xsl:for-each select=".//mn:page_sequence[not(parent::mn:preface)][normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]">
|
320
|
-
<
|
326
|
+
<xsl:variable name="page_orientation"><xsl:call-template name="getPageSequenceOrientation"/></xsl:variable>
|
321
327
|
|
322
|
-
|
323
|
-
<xsl:text>document</xsl:text>
|
324
|
-
<xsl:call-template name="getPageSequenceOrientation"/>
|
325
|
-
</xsl:attribute>
|
328
|
+
<fo:page-sequence master-reference="document{$page_orientation}" force-page-count="no-force">
|
326
329
|
|
327
330
|
<xsl:if test="position() = 1">
|
328
331
|
<xsl:attribute name="initial-page-number">1</xsl:attribute>
|
@@ -454,7 +457,7 @@
|
|
454
457
|
</xsl:call-template>
|
455
458
|
</xsl:template> <!-- END: processPrefaceAndMainSectionsPlateau_items -->
|
456
459
|
|
457
|
-
<xsl:template match="mn:preface//mn:clause[@type = 'toc']" priority="4">
|
460
|
+
<xsl:template match="mn:preface//mn:clause[@type = 'toc']" name="toc" priority="4">
|
458
461
|
<xsl:param name="num"/>
|
459
462
|
<xsl:if test="$doctype = 'technical-report'">
|
460
463
|
<fo:block font-size="16pt" margin-top="5mm"><xsl:value-of select="$i18n_table_of_contents"/></fo:block>
|
@@ -463,11 +466,10 @@
|
|
463
466
|
<xsl:apply-templates/>
|
464
467
|
<xsl:if test="count(*) = 1 and mn:fmt-title"> <!-- if there isn't user ToC -->
|
465
468
|
<!-- fill ToC -->
|
466
|
-
<fo:block role="TOC"
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
</xsl:if>
|
469
|
+
<fo:block role="TOC" xsl:use-attribute-sets="toc-style">
|
470
|
+
|
471
|
+
<xsl:call-template name="refine_toc-style"/>
|
472
|
+
|
471
473
|
<xsl:if test="$contents/mnx:doc[@num = $num]//mnx:item[@display = 'true']">
|
472
474
|
<xsl:for-each select="$contents/mnx:doc[@num = $num]//mnx:item[@display = 'true'][@level <= $toc_level or @type='figure' or @type = 'table']">
|
473
475
|
<fo:block role="TOCI">
|
@@ -561,7 +563,7 @@
|
|
561
563
|
|
562
564
|
<xsl:template name="insertTocItem">
|
563
565
|
<xsl:param name="printSection">false</xsl:param>
|
564
|
-
<fo:block
|
566
|
+
<fo:block xsl:use-attribute-sets="toc-item-style">
|
565
567
|
<fo:basic-link internal-destination="{@id}" fox:alt-text="{mnx:title}">
|
566
568
|
<xsl:if test="$printSection = 'true' and @section != ''">
|
567
569
|
<xsl:value-of select="@section"/>
|
@@ -569,7 +571,7 @@
|
|
569
571
|
</xsl:if>
|
570
572
|
<fo:inline><xsl:apply-templates select="mnx:title"/><xsl:text> </xsl:text></fo:inline>
|
571
573
|
<fo:inline keep-together.within-line="always">
|
572
|
-
<fo:leader
|
574
|
+
<fo:leader xsl:use-attribute-sets="toc-leader-style"/>
|
573
575
|
<fo:inline>
|
574
576
|
<xsl:if test="$doctype = 'technical-report'"><xsl:text>- </xsl:text></xsl:if>
|
575
577
|
<fo:page-number-citation ref-id="{@id}"/>
|
@@ -1886,7 +1888,7 @@
|
|
1886
1888
|
<xsl:template name="back-page">
|
1887
1889
|
<xsl:choose>
|
1888
1890
|
<xsl:when test="$doctype = 'technical-report'">
|
1889
|
-
<fo:page-sequence master-reference="
|
1891
|
+
<fo:page-sequence master-reference="back-page_technical-report" force-page-count="no-force">
|
1890
1892
|
<xsl:call-template name="insertHeaderFooter"/>
|
1891
1893
|
<fo:flow flow-name="xsl-region-body">
|
1892
1894
|
<fo:block-container width="100%" height="64mm" border="0.75pt solid black" font-size="14pt" text-align="center" display-align="center" line-height="1.7">
|
@@ -1908,7 +1910,7 @@
|
|
1908
1910
|
</fo:page-sequence>
|
1909
1911
|
</xsl:when>
|
1910
1912
|
<xsl:otherwise> <!-- handbook -->
|
1911
|
-
<fo:page-sequence master-reference="
|
1913
|
+
<fo:page-sequence master-reference="back-page" force-page-count="no-force">
|
1912
1914
|
<fo:flow flow-name="xsl-region-body">
|
1913
1915
|
<fo:block-container width="100%" border="0.75pt solid black" font-size="10pt" line-height="1.7">
|
1914
1916
|
<fo:block margin-left="4.5mm" margin-top="1mm">
|
@@ -7140,6 +7142,16 @@
|
|
7140
7142
|
</xsl:variable>
|
7141
7143
|
<xsl:variable name="quot">"</xsl:variable>
|
7142
7144
|
<xsl:variable name="styles_">
|
7145
|
+
<!-- PDF: Borderless tables https://github.com/metanorma/metanorma-jis/issues/344 -->
|
7146
|
+
<xsl:if test="@plain = 'true' or ancestor::mn:table/@plain = 'true'">
|
7147
|
+
<style name="border-top">none</style>
|
7148
|
+
<style name="border-right">none</style>
|
7149
|
+
<style name="border-left">none</style>
|
7150
|
+
<style name="border-bottom">none</style>
|
7151
|
+
<style name="color">inherit</style>
|
7152
|
+
<style name="background-color">transparent</style>
|
7153
|
+
</xsl:if>
|
7154
|
+
|
7143
7155
|
<xsl:for-each select="xalan:nodeset($styles__)/mnx:item">
|
7144
7156
|
<xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
|
7145
7157
|
<xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
|
@@ -9165,7 +9177,10 @@
|
|
9165
9177
|
|
9166
9178
|
<xsl:call-template name="setNamedDestination"/>
|
9167
9179
|
|
9168
|
-
<fo:block-container
|
9180
|
+
<fo:block-container xsl:use-attribute-sets="note-style" role="SKIP">
|
9181
|
+
<xsl:if test="not(parent::mn:references)">
|
9182
|
+
<xsl:copy-of select="@id"/>
|
9183
|
+
</xsl:if>
|
9169
9184
|
|
9170
9185
|
<xsl:call-template name="setBlockSpanAll"/>
|
9171
9186
|
|
@@ -11625,7 +11640,7 @@
|
|
11625
11640
|
|
11626
11641
|
<xsl:template name="insertFootnoteSeparatorCommon">
|
11627
11642
|
<xsl:param name="leader_length">30%</xsl:param>
|
11628
|
-
<fo:static-content flow-name="xsl-footnote-separator">
|
11643
|
+
<fo:static-content flow-name="xsl-footnote-separator" role="artifact">
|
11629
11644
|
<fo:block>
|
11630
11645
|
<fo:leader leader-pattern="rule" leader-length="{$leader_length}"/>
|
11631
11646
|
</fo:block>
|
@@ -11845,8 +11860,8 @@
|
|
11845
11860
|
</xsl:template> <!-- bibitem -->
|
11846
11861
|
|
11847
11862
|
<!-- Bibliography (non-normative references) -->
|
11848
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
11849
|
-
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first --> <!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
11863
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem | mn:references[not(@normative='true')]/mn:note" name="bibitem_non_normative" priority="2">
|
11864
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[not(self::mn:note)][1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first --> <!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
11850
11865
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
11851
11866
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
11852
11867
|
<xsl:call-template name="setNamedDestination"/>
|
@@ -11898,7 +11913,7 @@
|
|
11898
11913
|
</fo:list-item>
|
11899
11914
|
</xsl:otherwise>
|
11900
11915
|
</xsl:choose>
|
11901
|
-
<xsl:apply-templates select="following-sibling::*[1][self::mn:bibitem]
|
11916
|
+
<xsl:apply-templates select="following-sibling::*[1]"> <!-- [self::mn:bibitem] -->
|
11902
11917
|
<xsl:with-param name="skip">false</xsl:with-param>
|
11903
11918
|
</xsl:apply-templates>
|
11904
11919
|
</xsl:template>
|
@@ -11915,8 +11930,26 @@
|
|
11915
11930
|
</xsl:apply-templates>
|
11916
11931
|
<xsl:apply-templates select="mn:formattedref"/>
|
11917
11932
|
<!-- end bibitem processing -->
|
11933
|
+
|
11934
|
+
<xsl:call-template name="processBibliographyNote"/>
|
11918
11935
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
11919
11936
|
|
11937
|
+
<xsl:template name="processBibliographyNote">
|
11938
|
+
<xsl:if test="self::mn:note">
|
11939
|
+
<xsl:variable name="note_node">
|
11940
|
+
<xsl:element name="{local-name(..)}" namespace="{$namespace_full}"> <!-- save parent context node for determining styles -->
|
11941
|
+
<xsl:copy> <!-- skip @id -->
|
11942
|
+
<xsl:copy-of select="node()"/>
|
11943
|
+
</xsl:copy>
|
11944
|
+
</xsl:element>
|
11945
|
+
</xsl:variable>
|
11946
|
+
<!-- <xsl:for-each select="xalan:nodeset($note_node)//mn:note">
|
11947
|
+
<xsl:call-template name="note"/>
|
11948
|
+
</xsl:for-each> -->
|
11949
|
+
<xsl:call-template name="note"/>
|
11950
|
+
</xsl:if>
|
11951
|
+
</xsl:template>
|
11952
|
+
|
11920
11953
|
<xsl:template match="mn:title" mode="title">
|
11921
11954
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
11922
11955
|
</xsl:template>
|
@@ -12466,6 +12499,64 @@
|
|
12466
12499
|
<!-- End Form's elements processing -->
|
12467
12500
|
<!-- =================== -->
|
12468
12501
|
|
12502
|
+
<xsl:attribute-set name="toc-style">
|
12503
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
12504
|
+
</xsl:attribute-set>
|
12505
|
+
|
12506
|
+
<xsl:template name="refine_toc-style">
|
12507
|
+
<xsl:if test="$doctype = 'technical-report'">
|
12508
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
12509
|
+
<xsl:attribute name="line-height">1.2</xsl:attribute>
|
12510
|
+
</xsl:if>
|
12511
|
+
</xsl:template>
|
12512
|
+
|
12513
|
+
<xsl:attribute-set name="toc-title-style">
|
12514
|
+
</xsl:attribute-set>
|
12515
|
+
|
12516
|
+
<xsl:template name="refine_toc-title-style">
|
12517
|
+
</xsl:template>
|
12518
|
+
|
12519
|
+
<xsl:attribute-set name="toc-title-page-style">
|
12520
|
+
</xsl:attribute-set> <!-- toc-title-page-style -->
|
12521
|
+
|
12522
|
+
<xsl:template name="refine_toc-title-page-style">
|
12523
|
+
</xsl:template>
|
12524
|
+
|
12525
|
+
<xsl:attribute-set name="toc-item-block-style">
|
12526
|
+
</xsl:attribute-set>
|
12527
|
+
|
12528
|
+
<xsl:template name="refine_toc-item-block-style">
|
12529
|
+
</xsl:template>
|
12530
|
+
|
12531
|
+
<xsl:attribute-set name="toc-item-style">
|
12532
|
+
<xsl:attribute name="role">TOCI</xsl:attribute>
|
12533
|
+
<xsl:attribute name="text-align-last">justify</xsl:attribute>
|
12534
|
+
</xsl:attribute-set> <!-- END: toc-item-style -->
|
12535
|
+
|
12536
|
+
<xsl:template name="refine_toc-item-style">
|
12537
|
+
</xsl:template> <!-- END: refine_toc-item-style -->
|
12538
|
+
|
12539
|
+
<xsl:attribute-set name="toc-leader-style">
|
12540
|
+
<xsl:attribute name="leader-pattern">dots</xsl:attribute>
|
12541
|
+
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
12542
|
+
|
12543
|
+
<xsl:attribute-set name="toc-pagenumber-style">
|
12544
|
+
</xsl:attribute-set>
|
12545
|
+
|
12546
|
+
<!-- List of Figures, Tables -->
|
12547
|
+
<xsl:attribute-set name="toc-listof-title-style">
|
12548
|
+
</xsl:attribute-set>
|
12549
|
+
|
12550
|
+
<xsl:template name="refine_toc-listof-title-style">
|
12551
|
+
</xsl:template>
|
12552
|
+
|
12553
|
+
<xsl:attribute-set name="toc-listof-item-block-style">
|
12554
|
+
</xsl:attribute-set>
|
12555
|
+
|
12556
|
+
<xsl:attribute-set name="toc-listof-item-style">
|
12557
|
+
<xsl:attribute name="role">TOCI</xsl:attribute>
|
12558
|
+
</xsl:attribute-set>
|
12559
|
+
|
12469
12560
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
12470
12561
|
<xsl:variable name="nodes_preface_">
|
12471
12562
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -12803,7 +12894,7 @@
|
|
12803
12894
|
</xsl:if>
|
12804
12895
|
|
12805
12896
|
<xsl:for-each select="$contents_nodes/mnx:doc">
|
12806
|
-
<fo:bookmark internal-destination="{contents/mnx:item[@display = 'true'][1]/@id}" starting-state="hide">
|
12897
|
+
<fo:bookmark internal-destination="{mnx:contents/mnx:item[@display = 'true'][1]/@id}" starting-state="hide">
|
12807
12898
|
<xsl:if test="@bundle = 'true'">
|
12808
12899
|
<xsl:attribute name="internal-destination"><xsl:value-of select="@firstpage_id"/></xsl:attribute>
|
12809
12900
|
</xsl:if>
|
@@ -12837,7 +12928,7 @@
|
|
12837
12928
|
</xsl:choose>
|
12838
12929
|
</fo:bookmark-title>
|
12839
12930
|
|
12840
|
-
<xsl:apply-templates select="contents/mnx:item" mode="bookmark"/>
|
12931
|
+
<xsl:apply-templates select="mnx:contents/mnx:item" mode="bookmark"/>
|
12841
12932
|
|
12842
12933
|
<xsl:call-template name="insertFigureBookmarks">
|
12843
12934
|
<xsl:with-param name="contents" select="mnx:contents"/>
|
@@ -198,14 +198,14 @@ Applicable to modify and delete</a:documentation>
|
|
198
198
|
</zeroOrMore>
|
199
199
|
</element>
|
200
200
|
</optional>
|
201
|
-
<
|
201
|
+
<zeroOrMore>
|
202
202
|
<element name="description">
|
203
|
-
<a:documentation>Description of the change described in this block</a:documentation>
|
204
|
-
<
|
203
|
+
<a:documentation>Description(s) of the change described in this block</a:documentation>
|
204
|
+
<oneOrMore>
|
205
205
|
<ref name="BasicBlock"/>
|
206
|
-
</
|
206
|
+
</oneOrMore>
|
207
207
|
</element>
|
208
|
-
</
|
208
|
+
</zeroOrMore>
|
209
209
|
<optional>
|
210
210
|
<element name="newcontent">
|
211
211
|
<a:documentation>New content to be added to the document; applicable to add and modify</a:documentation>
|
@@ -1291,13 +1291,13 @@ Restricted recursively to contain only other such inline elements with no identi
|
|
1291
1291
|
<ref name="pure_strike"/>
|
1292
1292
|
<ref name="pure_smallcap"/>
|
1293
1293
|
<ref name="br"/>
|
1294
|
+
<ref name="stem"/>
|
1294
1295
|
</choice>
|
1295
1296
|
</define>
|
1296
1297
|
<define name="NestedTextElement">
|
1297
1298
|
<a:documentation>Contents of TextElement tags: leaves out tags that should occur only at top level of block: bookmark image hr pagebreak</a:documentation>
|
1298
1299
|
<choice>
|
1299
1300
|
<ref name="PureTextElement"/>
|
1300
|
-
<ref name="stem"/>
|
1301
1301
|
<ref name="eref"/>
|
1302
1302
|
<ref name="xref"/>
|
1303
1303
|
<ref name="hyperlink"/>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
-
<!-- VERSION v2.0
|
3
|
+
<!-- VERSION v2.1.0 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -42,36 +42,6 @@ All IdRefType instances point not to `@id` in Semantic XML, which is the Content
|
|
42
42
|
but to `@anchor`, the user-supplied cross-reference</a:documentation>
|
43
43
|
<text/>
|
44
44
|
</define>
|
45
|
-
<define name="index-primary">
|
46
|
-
<element name="primary">
|
47
|
-
<oneOrMore>
|
48
|
-
<choice>
|
49
|
-
<ref name="PureTextElement"/>
|
50
|
-
<ref name="stem"/>
|
51
|
-
</choice>
|
52
|
-
</oneOrMore>
|
53
|
-
</element>
|
54
|
-
</define>
|
55
|
-
<define name="index-secondary">
|
56
|
-
<element name="secondary">
|
57
|
-
<oneOrMore>
|
58
|
-
<choice>
|
59
|
-
<ref name="PureTextElement"/>
|
60
|
-
<ref name="stem"/>
|
61
|
-
</choice>
|
62
|
-
</oneOrMore>
|
63
|
-
</element>
|
64
|
-
</define>
|
65
|
-
<define name="index-tertiary">
|
66
|
-
<element name="tertiary">
|
67
|
-
<oneOrMore>
|
68
|
-
<choice>
|
69
|
-
<ref name="PureTextElement"/>
|
70
|
-
<ref name="stem"/>
|
71
|
-
</choice>
|
72
|
-
</oneOrMore>
|
73
|
-
</element>
|
74
|
-
</define>
|
75
45
|
<define name="review">
|
76
46
|
<a:documentation>Generalise BasicDoc element from just review comments, to general annotations;
|
77
47
|
the type attribute defaults to `review` for reviews</a:documentation>
|
@@ -592,28 +562,6 @@ normative or informative references, some split references into sections organiz
|
|
592
562
|
</oneOrMore>
|
593
563
|
</element>
|
594
564
|
</define>
|
595
|
-
<define name="sub">
|
596
|
-
<a:documentation>Subscript text. Corresponds to HTML `sub</a:documentation>
|
597
|
-
<element name="sub">
|
598
|
-
<zeroOrMore>
|
599
|
-
<choice>
|
600
|
-
<ref name="PureTextElement"/>
|
601
|
-
<ref name="stem"/>
|
602
|
-
</choice>
|
603
|
-
</zeroOrMore>
|
604
|
-
</element>
|
605
|
-
</define>
|
606
|
-
<define name="sup">
|
607
|
-
<a:documentation>Superscript text. Corresponds to HTML `sup`</a:documentation>
|
608
|
-
<element name="sup">
|
609
|
-
<zeroOrMore>
|
610
|
-
<choice>
|
611
|
-
<ref name="PureTextElement"/>
|
612
|
-
<ref name="stem"/>
|
613
|
-
</choice>
|
614
|
-
</zeroOrMore>
|
615
|
-
</element>
|
616
|
-
</define>
|
617
565
|
<define name="pagebreak">
|
618
566
|
<a:documentation>Page break. Only applicable in paged layouts (e.g. PDF, Word), and not flow layouts (e.g. HTML)</a:documentation>
|
619
567
|
<element name="pagebreak">
|
@@ -735,6 +683,12 @@ titlecase, or lowercase</a:documentation>
|
|
735
683
|
<ref name="BlockAttributes"/>
|
736
684
|
</define>
|
737
685
|
<define name="TableAttributes" combine="interleave">
|
686
|
+
<optional>
|
687
|
+
<attribute name="plain">
|
688
|
+
<a:documentation>Render as a plain attribute, with no shading or borders</a:documentation>
|
689
|
+
<data type="boolean"/>
|
690
|
+
</attribute>
|
691
|
+
</optional>
|
738
692
|
<optional>
|
739
693
|
<attribute name="width">
|
740
694
|
<a:documentation>Width of the table block in rendering</a:documentation>
|
@@ -1088,7 +1042,6 @@ That concept may be defined as a term within the current document, or it may be
|
|
1088
1042
|
<zeroOrMore>
|
1089
1043
|
<choice>
|
1090
1044
|
<ref name="PureTextElement"/>
|
1091
|
-
<ref name="stem"/>
|
1092
1045
|
<ref name="index"/>
|
1093
1046
|
<ref name="index-xref"/>
|
1094
1047
|
</choice>
|
@@ -1101,7 +1054,6 @@ That concept may be defined as a term within the current document, or it may be
|
|
1101
1054
|
<zeroOrMore>
|
1102
1055
|
<choice>
|
1103
1056
|
<ref name="PureTextElement"/>
|
1104
|
-
<ref name="stem"/>
|
1105
1057
|
<ref name="index"/>
|
1106
1058
|
<ref name="index-xref"/>
|
1107
1059
|
</choice>
|
@@ -2019,10 +1971,7 @@ used in document amendments</a:documentation>
|
|
2019
1971
|
<element name="name">
|
2020
1972
|
<a:documentation>The symbolic form of the designation</a:documentation>
|
2021
1973
|
<oneOrMore>
|
2022
|
-
<
|
2023
|
-
<ref name="PureTextElement"/>
|
2024
|
-
<ref name="stem"/>
|
2025
|
-
</choice>
|
1974
|
+
<ref name="PureTextElement"/>
|
2026
1975
|
</oneOrMore>
|
2027
1976
|
</element>
|
2028
1977
|
</element>
|
@@ -2075,7 +2024,6 @@ used in document amendments</a:documentation>
|
|
2075
2024
|
<zeroOrMore>
|
2076
2025
|
<choice>
|
2077
2026
|
<ref name="PureTextElement"/>
|
2078
|
-
<ref name="stem"/>
|
2079
2027
|
<ref name="index"/>
|
2080
2028
|
<ref name="index-xref"/>
|
2081
2029
|
</choice>
|
data/metanorma-plateau.gemspec
CHANGED
@@ -45,5 +45,5 @@ spec.add_development_dependency "rubocop-performance"
|
|
45
45
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
46
46
|
spec.add_development_dependency "timecop", "~> 0.9"
|
47
47
|
spec.add_development_dependency "webmock"
|
48
|
-
spec.add_development_dependency "
|
48
|
+
spec.add_development_dependency "canon"
|
49
49
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-plateau
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-jis
|
@@ -221,7 +221,7 @@ dependencies:
|
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
224
|
+
name: canon
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - ">="
|