metanorma-plateau 1.1.4 → 1.1.5
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: 36e96c27e5a94c5855c471a72fbb115416e208d884f0bb0f74158def02671151
|
4
|
+
data.tar.gz: 1feeb3f4449a2503653da24cc18130f272d9d21abdf702c6b3ca5a723ec79e1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71f87996b8eadccf3fe979c4060975a760205e795ffef8eeb854420d23288956e43cecc84ebfaedbff1bee3069528c0003661a5eca466f74be281635fa5518a5
|
7
|
+
data.tar.gz: 624aa94e13f3174f08a4cb8601423563165e2601479af4dff99cce3f6938ec35b786b75305d1ade63241800e4a41d0ee8a26fba8aec55e412094716badc49cf1
|
@@ -1227,8 +1227,6 @@
|
|
1227
1227
|
<xsl:template match="mn:note[not(ancestor::mn:table)]" priority="2">
|
1228
1228
|
|
1229
1229
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
|
1230
|
-
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1231
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1232
1230
|
|
1233
1231
|
<xsl:call-template name="setBlockSpanAll"/>
|
1234
1232
|
|
@@ -1290,10 +1288,6 @@
|
|
1290
1288
|
|
1291
1289
|
<xsl:call-template name="refine_list-item-label-style"/>
|
1292
1290
|
|
1293
|
-
<xsl:if test="$doctype = 'technical-report'">
|
1294
|
-
<xsl:attribute name="line-height">1.8</xsl:attribute>
|
1295
|
-
</xsl:if>
|
1296
|
-
|
1297
1291
|
<xsl:variable name="list_item_label">
|
1298
1292
|
<xsl:call-template name="getListItemFormat"/>
|
1299
1293
|
</xsl:variable>
|
@@ -2248,6 +2242,7 @@
|
|
2248
2242
|
<xsl:variable name="en_dash">–</xsl:variable>
|
2249
2243
|
<xsl:variable name="em_dash">—</xsl:variable>
|
2250
2244
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
2245
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
2251
2246
|
<xsl:variable name="cr"> </xsl:variable>
|
2252
2247
|
<xsl:variable name="lf">
|
2253
2248
|
</xsl:variable>
|
@@ -2811,6 +2806,7 @@
|
|
2811
2806
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
2812
2807
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
2813
2808
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
2809
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
2814
2810
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
2815
2811
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
2816
2812
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -2825,10 +2821,10 @@
|
|
2825
2821
|
|
2826
2822
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
2827
2823
|
|
2828
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
2824
|
+
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]]" mode="update_xml_step1">
|
2829
2825
|
<xsl:copy>
|
2830
2826
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
2831
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
2827
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
2832
2828
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
2833
2829
|
</xsl:copy>
|
2834
2830
|
</xsl:template>
|
@@ -4023,6 +4019,12 @@
|
|
4023
4019
|
<xsl:template name="refine_sourcecode-style">
|
4024
4020
|
</xsl:template> <!-- refine_sourcecode-style -->
|
4025
4021
|
|
4022
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
4023
|
+
</xsl:attribute-set>
|
4024
|
+
|
4025
|
+
<xsl:template name="refine_sourcecode-number-style">
|
4026
|
+
</xsl:template>
|
4027
|
+
|
4026
4028
|
<xsl:attribute-set name="sourcecode-name-style">
|
4027
4029
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
4028
4030
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -5410,6 +5412,12 @@
|
|
5410
5412
|
<xsl:template name="refine_term-name-style">
|
5411
5413
|
</xsl:template>
|
5412
5414
|
|
5415
|
+
<xsl:attribute-set name="preferred-style">
|
5416
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
5417
|
+
|
5418
|
+
<xsl:template name="refine_preferred-style">
|
5419
|
+
</xsl:template>
|
5420
|
+
|
5413
5421
|
<xsl:attribute-set name="preferred-block-style">
|
5414
5422
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
5415
5423
|
|
@@ -6045,6 +6053,12 @@
|
|
6045
6053
|
<xsl:call-template name="setBordersTableArray"/>
|
6046
6054
|
</xsl:template> <!-- refine_table-style -->
|
6047
6055
|
|
6056
|
+
<xsl:attribute-set name="table-number-style">
|
6057
|
+
</xsl:attribute-set>
|
6058
|
+
|
6059
|
+
<xsl:template name="refine_table-number-style">
|
6060
|
+
</xsl:template>
|
6061
|
+
|
6048
6062
|
<xsl:attribute-set name="table-name-style">
|
6049
6063
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
6050
6064
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -6510,7 +6524,7 @@
|
|
6510
6524
|
|
6511
6525
|
</fo:block>
|
6512
6526
|
|
6513
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
6527
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
6514
6528
|
<xsl:if test="$continued = 'true'">
|
6515
6529
|
|
6516
6530
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -9340,6 +9354,10 @@
|
|
9340
9354
|
</xsl:attribute-set> <!-- note-style -->
|
9341
9355
|
|
9342
9356
|
<xsl:template name="refine_note-style">
|
9357
|
+
<xsl:if test="not(ancestor::mn:table or ancestor::mn:figure or ancestor::mn:dl)">
|
9358
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
9359
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
9360
|
+
</xsl:if>
|
9343
9361
|
</xsl:template> <!-- refine_note-style -->
|
9344
9362
|
|
9345
9363
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
@@ -9676,6 +9694,12 @@
|
|
9676
9694
|
<xsl:template name="refine_figure-style">
|
9677
9695
|
</xsl:template>
|
9678
9696
|
|
9697
|
+
<xsl:attribute-set name="figure-number-style">
|
9698
|
+
</xsl:attribute-set>
|
9699
|
+
|
9700
|
+
<xsl:template name="refine_figure-number-style">
|
9701
|
+
</xsl:template>
|
9702
|
+
|
9679
9703
|
<xsl:attribute-set name="figure-name-style">
|
9680
9704
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
9681
9705
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -11356,6 +11380,9 @@
|
|
11356
11380
|
</xsl:attribute-set>
|
11357
11381
|
|
11358
11382
|
<xsl:template name="refine_list-item-label-style">
|
11383
|
+
<xsl:if test="$doctype = 'technical-report'">
|
11384
|
+
<xsl:attribute name="line-height">1.8</xsl:attribute>
|
11385
|
+
</xsl:if>
|
11359
11386
|
</xsl:template> <!-- refine_list-item-label-style -->
|
11360
11387
|
|
11361
11388
|
<xsl:attribute-set name="list-item-body-style">
|
@@ -12239,7 +12266,7 @@
|
|
12239
12266
|
|
12240
12267
|
<fo:list-item>
|
12241
12268
|
<fo:list-item-label end-indent="label-end()">
|
12242
|
-
<fo:block role="SKIP">
|
12269
|
+
<fo:block role="SKIP" id="__internal_layout__bibitem_{@id}_{generate-id()}">
|
12243
12270
|
<fo:inline role="SKIP">
|
12244
12271
|
<xsl:apply-templates select="mn:biblio-tag">
|
12245
12272
|
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
@@ -14503,10 +14530,17 @@
|
|
14503
14530
|
</xsl:choose>
|
14504
14531
|
</xsl:template>
|
14505
14532
|
|
14533
|
+
<xsl:attribute-set name="clause-style">
|
14534
|
+
|
14535
|
+
</xsl:attribute-set>
|
14536
|
+
|
14537
|
+
<xsl:template name="refine_clause-style">
|
14538
|
+
</xsl:template>
|
14539
|
+
|
14506
14540
|
<!-- main sections -->
|
14507
14541
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
14508
14542
|
<xsl:call-template name="setNamedDestination"/>
|
14509
|
-
<fo:block>
|
14543
|
+
<fo:block role="Sect">
|
14510
14544
|
<xsl:call-template name="setId"/>
|
14511
14545
|
|
14512
14546
|
<xsl:call-template name="sections_element_style"/>
|
@@ -14630,6 +14664,10 @@
|
|
14630
14664
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
14631
14665
|
</xsl:template>
|
14632
14666
|
|
14667
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
14668
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
14669
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
14670
|
+
|
14633
14671
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
14634
14672
|
<xsl:template name="insert_basic_link">
|
14635
14673
|
<xsl:param name="element"/>
|
@@ -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.1.
|
3
|
+
<!-- VERSION v2.1.3 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -455,14 +455,7 @@ normative or informative references, some split references into sections organiz
|
|
455
455
|
</ref>
|
456
456
|
</zeroOrMore>
|
457
457
|
<zeroOrMore>
|
458
|
-
<ref name="
|
459
|
-
<a:documentation>Bibliographic item cited in the document</a:documentation>
|
460
|
-
</ref>
|
461
|
-
<zeroOrMore>
|
462
|
-
<ref name="note">
|
463
|
-
<a:documentation>Annotation of the bibliographic item</a:documentation>
|
464
|
-
</ref>
|
465
|
-
</zeroOrMore>
|
458
|
+
<ref name="ReferenceEntry"/>
|
466
459
|
</zeroOrMore>
|
467
460
|
<zeroOrMore>
|
468
461
|
<ref name="references">
|
@@ -604,18 +597,21 @@ gives an explicit page orientation</a:documentation>
|
|
604
597
|
</element>
|
605
598
|
</optional>
|
606
599
|
</define>
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
<attribute name="hiddenref">
|
613
|
-
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
600
|
+
<define name="FnAttributes">
|
601
|
+
<ref name="RequiredId"/>
|
602
|
+
<optional>
|
603
|
+
<attribute name="hiddenref">
|
604
|
+
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
614
605
|
This is done if the footnote reference is already presented in some other form, e.g. within a figure image.</a:documentation>
|
615
|
-
|
606
|
+
<data type="boolean"/>
|
607
|
+
</attribute>
|
608
|
+
</optional>
|
609
|
+
<attribute name="reference">
|
610
|
+
<a:documentation>The number of the footnote, used to identify it visually</a:documentation>
|
616
611
|
</attribute>
|
617
|
-
</
|
618
|
-
</
|
612
|
+
</define>
|
613
|
+
</include>
|
614
|
+
<!-- end overrides -->
|
619
615
|
<define name="TdAttributes" combine="interleave">
|
620
616
|
<ref name="RequiredId"/>
|
621
617
|
<optional>
|
@@ -853,6 +849,17 @@ titlecase, or lowercase</a:documentation>
|
|
853
849
|
<value>informative</value>
|
854
850
|
</choice>
|
855
851
|
</define>
|
852
|
+
<define name="ReferenceEntry">
|
853
|
+
<a:documentation>Entry in bibliography</a:documentation>
|
854
|
+
<ref name="doc_bibitem">
|
855
|
+
<a:documentation>Bibliographic item cited in the document</a:documentation>
|
856
|
+
</ref>
|
857
|
+
<zeroOrMore>
|
858
|
+
<ref name="note">
|
859
|
+
<a:documentation>Annotation of the bibliographic item</a:documentation>
|
860
|
+
</ref>
|
861
|
+
</zeroOrMore>
|
862
|
+
</define>
|
856
863
|
<define name="doc_bibitem">
|
857
864
|
<a:documentation>Standardisation document representation of bibliographic entry</a:documentation>
|
858
865
|
<element name="bibitem">
|
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.5
|
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-09-
|
11
|
+
date: 2025-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-jis
|