metanorma-plateau 1.1.0 → 1.1.1
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: 3b9502dbb12bc7774d093699d7859cbabce81c4e290f14e6a0921c97b30068f1
|
4
|
+
data.tar.gz: 885b279f620ec1f8ca940c46d8226106c92b6a79a83735a8c85f833c902f2f4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd5b15979492ead604a2b194a33b88359cc7c8abdb9e54f46074f40d40ffdf9686bf6caa83f64f3d617a1028c753207ad32d9644a13297ada7d64d514426619e
|
7
|
+
data.tar.gz: f8b6f02d94ecd5148be9aaddb50097d4c69d1087fc2412da2b510730386dabdfeace0d58fb822064ae4d6cfd862422a2134ee5625a989044e0a03d7037c9429f
|
@@ -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>
|
@@ -1886,7 +1889,7 @@
|
|
1886
1889
|
<xsl:template name="back-page">
|
1887
1890
|
<xsl:choose>
|
1888
1891
|
<xsl:when test="$doctype = 'technical-report'">
|
1889
|
-
<fo:page-sequence master-reference="
|
1892
|
+
<fo:page-sequence master-reference="back-page_technical-report" force-page-count="no-force">
|
1890
1893
|
<xsl:call-template name="insertHeaderFooter"/>
|
1891
1894
|
<fo:flow flow-name="xsl-region-body">
|
1892
1895
|
<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 +1911,7 @@
|
|
1908
1911
|
</fo:page-sequence>
|
1909
1912
|
</xsl:when>
|
1910
1913
|
<xsl:otherwise> <!-- handbook -->
|
1911
|
-
<fo:page-sequence master-reference="
|
1914
|
+
<fo:page-sequence master-reference="back-page" force-page-count="no-force">
|
1912
1915
|
<fo:flow flow-name="xsl-region-body">
|
1913
1916
|
<fo:block-container width="100%" border="0.75pt solid black" font-size="10pt" line-height="1.7">
|
1914
1917
|
<fo:block margin-left="4.5mm" margin-top="1mm">
|
@@ -7140,6 +7143,16 @@
|
|
7140
7143
|
</xsl:variable>
|
7141
7144
|
<xsl:variable name="quot">"</xsl:variable>
|
7142
7145
|
<xsl:variable name="styles_">
|
7146
|
+
<!-- PDF: Borderless tables https://github.com/metanorma/metanorma-jis/issues/344 -->
|
7147
|
+
<xsl:if test="@plain = 'true' or ancestor::mn:table/@plain = 'true'">
|
7148
|
+
<style name="border-top">none</style>
|
7149
|
+
<style name="border-right">none</style>
|
7150
|
+
<style name="border-left">none</style>
|
7151
|
+
<style name="border-bottom">none</style>
|
7152
|
+
<style name="color">inherit</style>
|
7153
|
+
<style name="background-color">transparent</style>
|
7154
|
+
</xsl:if>
|
7155
|
+
|
7143
7156
|
<xsl:for-each select="xalan:nodeset($styles__)/mnx:item">
|
7144
7157
|
<xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
|
7145
7158
|
<xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
|
@@ -9165,7 +9178,10 @@
|
|
9165
9178
|
|
9166
9179
|
<xsl:call-template name="setNamedDestination"/>
|
9167
9180
|
|
9168
|
-
<fo:block-container
|
9181
|
+
<fo:block-container xsl:use-attribute-sets="note-style" role="SKIP">
|
9182
|
+
<xsl:if test="not(parent::mn:references)">
|
9183
|
+
<xsl:copy-of select="@id"/>
|
9184
|
+
</xsl:if>
|
9169
9185
|
|
9170
9186
|
<xsl:call-template name="setBlockSpanAll"/>
|
9171
9187
|
|
@@ -11845,8 +11861,8 @@
|
|
11845
11861
|
</xsl:template> <!-- bibitem -->
|
11846
11862
|
|
11847
11863
|
<!-- 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
|
11864
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem | mn:references[not(@normative='true')]/mn:note" name="bibitem_non_normative" priority="2">
|
11865
|
+
<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
11866
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
11851
11867
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
11852
11868
|
<xsl:call-template name="setNamedDestination"/>
|
@@ -11898,7 +11914,7 @@
|
|
11898
11914
|
</fo:list-item>
|
11899
11915
|
</xsl:otherwise>
|
11900
11916
|
</xsl:choose>
|
11901
|
-
<xsl:apply-templates select="following-sibling::*[1][self::mn:bibitem]
|
11917
|
+
<xsl:apply-templates select="following-sibling::*[1]"> <!-- [self::mn:bibitem] -->
|
11902
11918
|
<xsl:with-param name="skip">false</xsl:with-param>
|
11903
11919
|
</xsl:apply-templates>
|
11904
11920
|
</xsl:template>
|
@@ -11915,8 +11931,26 @@
|
|
11915
11931
|
</xsl:apply-templates>
|
11916
11932
|
<xsl:apply-templates select="mn:formattedref"/>
|
11917
11933
|
<!-- end bibitem processing -->
|
11934
|
+
|
11935
|
+
<xsl:call-template name="processBibliographyNote"/>
|
11918
11936
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
11919
11937
|
|
11938
|
+
<xsl:template name="processBibliographyNote">
|
11939
|
+
<xsl:if test="self::mn:note">
|
11940
|
+
<xsl:variable name="note_node">
|
11941
|
+
<xsl:element name="{local-name(..)}" namespace="{$namespace_full}"> <!-- save parent context node for determining styles -->
|
11942
|
+
<xsl:copy> <!-- skip @id -->
|
11943
|
+
<xsl:copy-of select="node()"/>
|
11944
|
+
</xsl:copy>
|
11945
|
+
</xsl:element>
|
11946
|
+
</xsl:variable>
|
11947
|
+
<!-- <xsl:for-each select="xalan:nodeset($note_node)//mn:note">
|
11948
|
+
<xsl:call-template name="note"/>
|
11949
|
+
</xsl:for-each> -->
|
11950
|
+
<xsl:call-template name="note"/>
|
11951
|
+
</xsl:if>
|
11952
|
+
</xsl:template>
|
11953
|
+
|
11920
11954
|
<xsl:template match="mn:title" mode="title">
|
11921
11955
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
11922
11956
|
</xsl:template>
|
@@ -12466,6 +12500,48 @@
|
|
12466
12500
|
<!-- End Form's elements processing -->
|
12467
12501
|
<!-- =================== -->
|
12468
12502
|
|
12503
|
+
<xsl:attribute-set name="toc-style">
|
12504
|
+
</xsl:attribute-set>
|
12505
|
+
|
12506
|
+
<xsl:template name="refine_toc-style">
|
12507
|
+
</xsl:template>
|
12508
|
+
|
12509
|
+
<xsl:attribute-set name="toc-title-style">
|
12510
|
+
</xsl:attribute-set>
|
12511
|
+
|
12512
|
+
<xsl:attribute-set name="toc-title-page-style">
|
12513
|
+
</xsl:attribute-set> <!-- toc-title-page-style -->
|
12514
|
+
|
12515
|
+
<xsl:attribute-set name="toc-item-block-style">
|
12516
|
+
</xsl:attribute-set>
|
12517
|
+
|
12518
|
+
<xsl:template name="refine_toc-item-block-style">
|
12519
|
+
</xsl:template>
|
12520
|
+
|
12521
|
+
<xsl:attribute-set name="toc-item-style">
|
12522
|
+
<xsl:attribute name="role">TOCI</xsl:attribute>
|
12523
|
+
</xsl:attribute-set> <!-- END: toc-item-style -->
|
12524
|
+
|
12525
|
+
<xsl:template name="refine_toc-item-style">
|
12526
|
+
</xsl:template> <!-- END: refine_toc-item-style -->
|
12527
|
+
|
12528
|
+
<xsl:attribute-set name="toc-leader-style">
|
12529
|
+
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
12530
|
+
|
12531
|
+
<xsl:attribute-set name="toc-pagenumber-style">
|
12532
|
+
</xsl:attribute-set>
|
12533
|
+
|
12534
|
+
<!-- List of Figures, Tables -->
|
12535
|
+
<xsl:attribute-set name="toc-listof-title-style">
|
12536
|
+
</xsl:attribute-set>
|
12537
|
+
|
12538
|
+
<xsl:attribute-set name="toc-listof-item-block-style">
|
12539
|
+
</xsl:attribute-set>
|
12540
|
+
|
12541
|
+
<xsl:attribute-set name="toc-listof-item-style">
|
12542
|
+
<xsl:attribute name="role">TOCI</xsl:attribute>
|
12543
|
+
</xsl:attribute-set>
|
12544
|
+
|
12469
12545
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
12470
12546
|
<xsl:variable name="nodes_preface_">
|
12471
12547
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -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>
|
@@ -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
|
@@ -735,6 +735,12 @@ titlecase, or lowercase</a:documentation>
|
|
735
735
|
<ref name="BlockAttributes"/>
|
736
736
|
</define>
|
737
737
|
<define name="TableAttributes" combine="interleave">
|
738
|
+
<optional>
|
739
|
+
<attribute name="plain">
|
740
|
+
<a:documentation>Render as a plain attribute, with no shading or borders</a:documentation>
|
741
|
+
<data type="boolean"/>
|
742
|
+
</attribute>
|
743
|
+
</optional>
|
738
744
|
<optional>
|
739
745
|
<attribute name="width">
|
740
746
|
<a:documentation>Width of the table block in rendering</a:documentation>
|
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.1
|
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-07-
|
11
|
+
date: 2025-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-jis
|