metanorma-cc 2.7.3 → 2.7.4
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/isodoc/cc/cc.standard.xsl +42 -5
- data/lib/isodoc/cc/html/_coverpage.css +0 -10
- data/lib/isodoc/cc/html/htmlstyle.css +13 -23
- data/lib/metanorma/cc/isodoc.rng +26 -19
- data/lib/metanorma/cc/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: f73000680e511d8e998ff10f830adbfe0435a3ad7e36093372f3ca7f0ac9a34e
|
4
|
+
data.tar.gz: 521967b9a30c47f4b0d30b81c5cb4ca5379fd845f7a875841818aac3af5c75e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 698fa135b508aa07b177b367238d42beaf140ddeb83ad331b5a32942c777d3ce064e3469741b733c17a4c8fab55c91d6aad3ecd686a3710b04c57e79ccd3028a
|
7
|
+
data.tar.gz: 76ed2c211bf0b0b84aa7cb11dbb812da73ff97c514d1f73c96ccf6094e04baf561ab607587b426288ee0efbab98bba377314dfdbce06ca4cdb2f9af1ff118b22
|
@@ -879,6 +879,7 @@
|
|
879
879
|
<xsl:variable name="en_dash">–</xsl:variable>
|
880
880
|
<xsl:variable name="em_dash">—</xsl:variable>
|
881
881
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
882
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
882
883
|
<xsl:variable name="cr"> </xsl:variable>
|
883
884
|
<xsl:variable name="lf">
|
884
885
|
</xsl:variable>
|
@@ -1421,6 +1422,7 @@
|
|
1421
1422
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
1422
1423
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
1423
1424
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
1425
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
1424
1426
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
1425
1427
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
1426
1428
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -1435,10 +1437,10 @@
|
|
1435
1437
|
|
1436
1438
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
1437
1439
|
|
1438
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
1440
|
+
<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">
|
1439
1441
|
<xsl:copy>
|
1440
1442
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
1441
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
1443
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
1442
1444
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
1443
1445
|
</xsl:copy>
|
1444
1446
|
</xsl:template>
|
@@ -2535,6 +2537,12 @@
|
|
2535
2537
|
<xsl:template name="refine_sourcecode-style">
|
2536
2538
|
</xsl:template> <!-- refine_sourcecode-style -->
|
2537
2539
|
|
2540
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
2541
|
+
</xsl:attribute-set>
|
2542
|
+
|
2543
|
+
<xsl:template name="refine_sourcecode-number-style">
|
2544
|
+
</xsl:template>
|
2545
|
+
|
2538
2546
|
<xsl:attribute-set name="sourcecode-name-style">
|
2539
2547
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
2540
2548
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -3921,6 +3929,12 @@
|
|
3921
3929
|
<xsl:template name="refine_term-name-style">
|
3922
3930
|
</xsl:template>
|
3923
3931
|
|
3932
|
+
<xsl:attribute-set name="preferred-style">
|
3933
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
3934
|
+
|
3935
|
+
<xsl:template name="refine_preferred-style">
|
3936
|
+
</xsl:template>
|
3937
|
+
|
3924
3938
|
<xsl:attribute-set name="preferred-block-style">
|
3925
3939
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
3926
3940
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
@@ -4563,6 +4577,12 @@
|
|
4563
4577
|
<xsl:call-template name="setBordersTableArray"/>
|
4564
4578
|
</xsl:template> <!-- refine_table-style -->
|
4565
4579
|
|
4580
|
+
<xsl:attribute-set name="table-number-style">
|
4581
|
+
</xsl:attribute-set>
|
4582
|
+
|
4583
|
+
<xsl:template name="refine_table-number-style">
|
4584
|
+
</xsl:template>
|
4585
|
+
|
4566
4586
|
<xsl:attribute-set name="table-name-style">
|
4567
4587
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
4568
4588
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -5002,7 +5022,7 @@
|
|
5002
5022
|
|
5003
5023
|
</fo:block>
|
5004
5024
|
|
5005
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
5025
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
5006
5026
|
<xsl:if test="$continued = 'true'">
|
5007
5027
|
|
5008
5028
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -8137,6 +8157,12 @@
|
|
8137
8157
|
<xsl:template name="refine_figure-style">
|
8138
8158
|
</xsl:template>
|
8139
8159
|
|
8160
|
+
<xsl:attribute-set name="figure-number-style">
|
8161
|
+
</xsl:attribute-set>
|
8162
|
+
|
8163
|
+
<xsl:template name="refine_figure-number-style">
|
8164
|
+
</xsl:template>
|
8165
|
+
|
8140
8166
|
<xsl:attribute-set name="figure-name-style">
|
8141
8167
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
8142
8168
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -10687,7 +10713,7 @@
|
|
10687
10713
|
|
10688
10714
|
<fo:list-item>
|
10689
10715
|
<fo:list-item-label end-indent="label-end()">
|
10690
|
-
<fo:block role="SKIP">
|
10716
|
+
<fo:block role="SKIP" id="__internal_layout__bibitem_{@id}_{generate-id()}">
|
10691
10717
|
<fo:inline role="SKIP">
|
10692
10718
|
<xsl:apply-templates select="mn:biblio-tag">
|
10693
10719
|
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
@@ -12965,10 +12991,17 @@
|
|
12965
12991
|
</xsl:choose>
|
12966
12992
|
</xsl:template>
|
12967
12993
|
|
12994
|
+
<xsl:attribute-set name="clause-style">
|
12995
|
+
|
12996
|
+
</xsl:attribute-set>
|
12997
|
+
|
12998
|
+
<xsl:template name="refine_clause-style">
|
12999
|
+
</xsl:template>
|
13000
|
+
|
12968
13001
|
<!-- main sections -->
|
12969
13002
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
12970
13003
|
<xsl:call-template name="setNamedDestination"/>
|
12971
|
-
<fo:block>
|
13004
|
+
<fo:block role="Sect">
|
12972
13005
|
<xsl:call-template name="setId"/>
|
12973
13006
|
|
12974
13007
|
<xsl:call-template name="sections_element_style"/>
|
@@ -13096,6 +13129,10 @@
|
|
13096
13129
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
13097
13130
|
</xsl:template>
|
13098
13131
|
|
13132
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
13133
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
13134
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
13135
|
+
|
13099
13136
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
13100
13137
|
<xsl:template name="insert_basic_link">
|
13101
13138
|
<xsl:param name="element"/>
|
@@ -138,16 +138,6 @@ div.document-stage-band, div.document-type-band {
|
|
138
138
|
background-color: #333333;
|
139
139
|
}
|
140
140
|
|
141
|
-
a.FootnoteRef + a.FootnoteRef::before {
|
142
|
-
content: ", ";
|
143
|
-
vertical-align: super;
|
144
|
-
}
|
145
|
-
|
146
|
-
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
147
|
-
content: ", ";
|
148
|
-
vertical-align: super;
|
149
|
-
}
|
150
|
-
|
151
141
|
a.TableFootnoteRef, span.TableFootnoteRef,
|
152
142
|
a.FootnoteRef, span.FootnoteRef {
|
153
143
|
vertical-align: super;
|
@@ -138,16 +138,6 @@ div.document-stage-band, div.document-type-band {
|
|
138
138
|
background-color: #333333;
|
139
139
|
}
|
140
140
|
|
141
|
-
a.FootnoteRef + a.FootnoteRef::before {
|
142
|
-
content: ", ";
|
143
|
-
vertical-align: super;
|
144
|
-
}
|
145
|
-
|
146
|
-
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
147
|
-
content: ", ";
|
148
|
-
vertical-align: super;
|
149
|
-
}
|
150
|
-
|
151
141
|
a.TableFootnoteRef, span.TableFootnoteRef,
|
152
142
|
a.FootnoteRef, span.FootnoteRef {
|
153
143
|
vertical-align: super;
|
@@ -931,14 +921,6 @@ p.Biblio::before, p.NormRef::before {
|
|
931
921
|
}
|
932
922
|
|
933
923
|
/* Blocks */
|
934
|
-
.figure {
|
935
|
-
line-height: 1.6em;
|
936
|
-
padding: 1.5em;
|
937
|
-
margin: 2em 0 1em 0;
|
938
|
-
overflow: auto;
|
939
|
-
font-family: {{monospacefont}};
|
940
|
-
font-variant-ligatures: none;
|
941
|
-
}
|
942
924
|
.figure .FigureTitle, .figure .figure-title {
|
943
925
|
font-weight: 700;
|
944
926
|
font-size: 1em;
|
@@ -951,6 +933,14 @@ p.Biblio::before, p.NormRef::before {
|
|
951
933
|
max-width: 100%;
|
952
934
|
height: auto;
|
953
935
|
}
|
936
|
+
.figure {
|
937
|
+
line-height: 1.6em;
|
938
|
+
padding: 1.5em;
|
939
|
+
margin: 2em 0 1em 0;
|
940
|
+
overflow: auto;
|
941
|
+
font-family: {{monospacefont}};
|
942
|
+
font-variant-ligatures: none;
|
943
|
+
}
|
954
944
|
|
955
945
|
table div.figure {
|
956
946
|
padding: 0;
|
@@ -978,6 +968,11 @@ pre {
|
|
978
968
|
background: none;
|
979
969
|
}
|
980
970
|
|
971
|
+
.pseudocode .SourceTitle {
|
972
|
+
font-weight: 700;
|
973
|
+
font-size: 1em;
|
974
|
+
text-align: center;
|
975
|
+
}
|
981
976
|
.pseudocode {
|
982
977
|
background-color: #f7f7f7;
|
983
978
|
font-size: {{monospacefontsize}};
|
@@ -986,11 +981,6 @@ pre {
|
|
986
981
|
margin: 2em 0 1em 0;
|
987
982
|
overflow: auto;
|
988
983
|
}
|
989
|
-
.pseudocode .SourceTitle {
|
990
|
-
font-weight: 700;
|
991
|
-
font-size: 1em;
|
992
|
-
text-align: center;
|
993
|
-
}
|
994
984
|
.example .pseudocode {
|
995
985
|
background: none;
|
996
986
|
}
|
data/lib/metanorma/cc/isodoc.rng
CHANGED
@@ -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">
|
data/lib/metanorma/cc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-cc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
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-generic
|