metanorma-iec 2.7.4 → 2.7.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: ec8091b9a14353c9b9607ffdc0caf1587f68bbcfaeddd6011269319eebbc29d0
|
4
|
+
data.tar.gz: e5cf6489c24d5bca999c7e8be61c1faa2250b523f4ef4c514c75cf257b76e1fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30cee0844430c28a14c39527a2a3720cce28bea6aeb1c8f89f9c61d1bf6110e970a63935194befad7c6ae52d232f3fd1a85e2d2bbb54240231416e5524b6b991
|
7
|
+
data.tar.gz: 0d79fe546085c839d6d4dfea54e49bb04f2929116420c14527716ea1bf574c75fa7ebafeea398bf18968237b709d929f446f10830c461ca5efd577fe63b861f4
|
@@ -145,16 +145,6 @@ div.document-stage-band, div.document-type-band {
|
|
145
145
|
background-color: #333333;
|
146
146
|
}
|
147
147
|
|
148
|
-
a.FootnoteRef + a.FootnoteRef::before {
|
149
|
-
content: ", ";
|
150
|
-
vertical-align: super;
|
151
|
-
}
|
152
|
-
|
153
|
-
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
154
|
-
content: ", ";
|
155
|
-
vertical-align: super;
|
156
|
-
}
|
157
|
-
|
158
148
|
a.TableFootnoteRef, span.TableFootnoteRef,
|
159
149
|
a.FootnoteRef, span.FootnoteRef {
|
160
150
|
vertical-align: super;
|
@@ -699,10 +689,6 @@ p.TermNum {
|
|
699
689
|
}
|
700
690
|
}
|
701
691
|
|
702
|
-
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
703
|
-
font-family: {{bodyfont}};
|
704
|
-
font-weight: 400;
|
705
|
-
}
|
706
692
|
#toc ul, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
|
707
693
|
margin: 0;
|
708
694
|
padding: 0;
|
@@ -754,6 +740,10 @@ p.TermNum {
|
|
754
740
|
color: black;
|
755
741
|
}
|
756
742
|
}
|
743
|
+
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
744
|
+
font-family: {{bodyfont}};
|
745
|
+
font-weight: 400;
|
746
|
+
}
|
757
747
|
@media screen and (max-width: 768px) {
|
758
748
|
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
759
749
|
padding: 0 1.5em;
|
@@ -1165,6 +1155,13 @@ p.NormRef {
|
|
1165
1155
|
/*
|
1166
1156
|
3.6 Source Code + figures
|
1167
1157
|
*/
|
1158
|
+
.figure .SourceTitle,
|
1159
|
+
pre .SourceTitle,
|
1160
|
+
.pseudocode .SourceTitle {
|
1161
|
+
font-weight: 700;
|
1162
|
+
font-size: 1em;
|
1163
|
+
text-align: center;
|
1164
|
+
}
|
1168
1165
|
.figure,
|
1169
1166
|
pre,
|
1170
1167
|
.pseudocode {
|
@@ -1176,13 +1173,6 @@ pre,
|
|
1176
1173
|
overflow: auto;
|
1177
1174
|
font-size: {{monospacefontsize}};
|
1178
1175
|
}
|
1179
|
-
.figure .SourceTitle,
|
1180
|
-
pre .SourceTitle,
|
1181
|
-
.pseudocode .SourceTitle {
|
1182
|
-
font-weight: 700;
|
1183
|
-
font-size: 1em;
|
1184
|
-
text-align: center;
|
1185
|
-
}
|
1186
1176
|
|
1187
1177
|
pre {
|
1188
1178
|
font-family: {{monospacefont}};
|
@@ -1250,18 +1240,22 @@ pre {
|
|
1250
1240
|
padding: 0.5em;
|
1251
1241
|
margin: 2em 0 1em 0;
|
1252
1242
|
text-align: left;
|
1253
|
-
color: #424242;
|
1254
|
-
padding-left: 2em;
|
1255
|
-
text-align: left;
|
1256
1243
|
}
|
1257
1244
|
.example p {
|
1258
1245
|
margin: 0;
|
1259
1246
|
}
|
1247
|
+
.example {
|
1248
|
+
color: #424242;
|
1249
|
+
padding-left: 2em;
|
1250
|
+
}
|
1260
1251
|
.example .example-title {
|
1261
1252
|
font-weight: 700;
|
1262
1253
|
text-transform: uppercase;
|
1263
1254
|
margin-left: -1.5em;
|
1264
1255
|
}
|
1256
|
+
.example {
|
1257
|
+
text-align: left;
|
1258
|
+
}
|
1265
1259
|
.example .example-title {
|
1266
1260
|
margin-top: 0;
|
1267
1261
|
}
|
@@ -1283,7 +1277,6 @@ table {
|
|
1283
1277
|
margin-left: auto;
|
1284
1278
|
margin-right: auto;
|
1285
1279
|
padding-right: 2em;
|
1286
|
-
text-align: center;
|
1287
1280
|
}
|
1288
1281
|
table, table th, table td {
|
1289
1282
|
border: 1px solid black;
|
@@ -1295,6 +1288,9 @@ table th, table td {
|
|
1295
1288
|
table td.header {
|
1296
1289
|
font-weight: 400;
|
1297
1290
|
}
|
1291
|
+
table {
|
1292
|
+
text-align: center;
|
1293
|
+
}
|
1298
1294
|
table td,
|
1299
1295
|
table th {
|
1300
1296
|
font-size: 0.95em;
|
@@ -2514,6 +2514,7 @@
|
|
2514
2514
|
<xsl:variable name="en_dash">–</xsl:variable>
|
2515
2515
|
<xsl:variable name="em_dash">—</xsl:variable>
|
2516
2516
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
2517
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
2517
2518
|
<xsl:variable name="cr"> </xsl:variable>
|
2518
2519
|
<xsl:variable name="lf">
|
2519
2520
|
</xsl:variable>
|
@@ -3056,6 +3057,7 @@
|
|
3056
3057
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
3057
3058
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
3058
3059
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
3060
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
3059
3061
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
3060
3062
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
3061
3063
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -3070,10 +3072,10 @@
|
|
3070
3072
|
|
3071
3073
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
3072
3074
|
|
3073
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
3075
|
+
<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">
|
3074
3076
|
<xsl:copy>
|
3075
3077
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
3076
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
3078
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
3077
3079
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
3078
3080
|
</xsl:copy>
|
3079
3081
|
</xsl:template>
|
@@ -4187,6 +4189,12 @@
|
|
4187
4189
|
<xsl:template name="refine_sourcecode-style">
|
4188
4190
|
</xsl:template> <!-- refine_sourcecode-style -->
|
4189
4191
|
|
4192
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
4193
|
+
</xsl:attribute-set>
|
4194
|
+
|
4195
|
+
<xsl:template name="refine_sourcecode-number-style">
|
4196
|
+
</xsl:template>
|
4197
|
+
|
4190
4198
|
<xsl:attribute-set name="sourcecode-name-style">
|
4191
4199
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
4192
4200
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -5574,6 +5582,12 @@
|
|
5574
5582
|
<xsl:template name="refine_term-name-style">
|
5575
5583
|
</xsl:template>
|
5576
5584
|
|
5585
|
+
<xsl:attribute-set name="preferred-style">
|
5586
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
5587
|
+
|
5588
|
+
<xsl:template name="refine_preferred-style">
|
5589
|
+
</xsl:template>
|
5590
|
+
|
5577
5591
|
<xsl:attribute-set name="preferred-block-style">
|
5578
5592
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
5579
5593
|
<xsl:attribute name="space-before">14pt</xsl:attribute>
|
@@ -6229,6 +6243,12 @@
|
|
6229
6243
|
<xsl:call-template name="setBordersTableArray"/>
|
6230
6244
|
</xsl:template> <!-- refine_table-style -->
|
6231
6245
|
|
6246
|
+
<xsl:attribute-set name="table-number-style">
|
6247
|
+
</xsl:attribute-set>
|
6248
|
+
|
6249
|
+
<xsl:template name="refine_table-number-style">
|
6250
|
+
</xsl:template>
|
6251
|
+
|
6232
6252
|
<xsl:attribute-set name="table-name-style">
|
6233
6253
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
6234
6254
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -6711,7 +6731,7 @@
|
|
6711
6731
|
|
6712
6732
|
</fo:block>
|
6713
6733
|
|
6714
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
6734
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
6715
6735
|
<xsl:if test="$continued = 'true'">
|
6716
6736
|
|
6717
6737
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -9897,6 +9917,12 @@
|
|
9897
9917
|
<xsl:template name="refine_figure-style">
|
9898
9918
|
</xsl:template>
|
9899
9919
|
|
9920
|
+
<xsl:attribute-set name="figure-number-style">
|
9921
|
+
</xsl:attribute-set>
|
9922
|
+
|
9923
|
+
<xsl:template name="refine_figure-number-style">
|
9924
|
+
</xsl:template>
|
9925
|
+
|
9900
9926
|
<xsl:attribute-set name="figure-name-style">
|
9901
9927
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
9902
9928
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -12486,7 +12512,7 @@
|
|
12486
12512
|
|
12487
12513
|
<fo:list-item>
|
12488
12514
|
<fo:list-item-label end-indent="label-end()">
|
12489
|
-
<fo:block role="SKIP">
|
12515
|
+
<fo:block role="SKIP" id="__internal_layout__bibitem_{@id}_{generate-id()}">
|
12490
12516
|
<fo:inline role="SKIP">
|
12491
12517
|
<xsl:apply-templates select="mn:biblio-tag">
|
12492
12518
|
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
@@ -14802,10 +14828,17 @@
|
|
14802
14828
|
</xsl:choose>
|
14803
14829
|
</xsl:template>
|
14804
14830
|
|
14831
|
+
<xsl:attribute-set name="clause-style">
|
14832
|
+
|
14833
|
+
</xsl:attribute-set>
|
14834
|
+
|
14835
|
+
<xsl:template name="refine_clause-style">
|
14836
|
+
</xsl:template>
|
14837
|
+
|
14805
14838
|
<!-- main sections -->
|
14806
14839
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
14807
14840
|
<xsl:call-template name="setNamedDestination"/>
|
14808
|
-
<fo:block>
|
14841
|
+
<fo:block role="Sect">
|
14809
14842
|
<xsl:call-template name="setId"/>
|
14810
14843
|
|
14811
14844
|
<xsl:call-template name="sections_element_style"/>
|
@@ -14929,6 +14962,10 @@
|
|
14929
14962
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
14930
14963
|
</xsl:template>
|
14931
14964
|
|
14965
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
14966
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
14967
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
14968
|
+
|
14932
14969
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
14933
14970
|
<xsl:template name="insert_basic_link">
|
14934
14971
|
<xsl:param name="element"/>
|
@@ -67,7 +67,8 @@ module IsoDoc
|
|
67
67
|
CLAUSE
|
68
68
|
end
|
69
69
|
|
70
|
-
|
70
|
+
# KILL
|
71
|
+
def insert_middle_titlex(docxml)
|
71
72
|
ins = docxml.at(ns("//preface/clause[@type = 'toc']")) or return
|
72
73
|
title1, title2 = middle_title_parts
|
73
74
|
title2out = ""
|
@@ -84,6 +85,27 @@ module IsoDoc
|
|
84
85
|
OUTPUT
|
85
86
|
end
|
86
87
|
|
88
|
+
def insert_middle_title(docxml)
|
89
|
+
ins = docxml.at(ns("//preface/clause[@type = 'toc']")) or return
|
90
|
+
title = populate_template(preface_title_template, nil) or return
|
91
|
+
ins.next = title
|
92
|
+
end
|
93
|
+
|
94
|
+
def preface_title_template
|
95
|
+
<<~OUTPUT
|
96
|
+
<pagebreak/><p class="zzSTDTitle1">{{ labels["IEC"] }}</p>
|
97
|
+
<p class="zzSTDTitle1">____________</p><p class="zzSTDTitle1"> </p>
|
98
|
+
<p class='zzSTDTitle1'><strong>{% if doctitleintro %}{{ doctitleintro | upcase -}}
|
99
|
+
— {% endif %}{{ doctitlemain | upcase }}{% if doctitlepart %} —{% endif %}</strong></p>
|
100
|
+
{% if doctitlepart %}<p class='zzSTDTitle1'> </p>
|
101
|
+
<p class='zzSTDTitle2'><strong>{% if doctitlepartlabel %}{{ doctitlepartlabel }}: {% endif -%}
|
102
|
+
{{ doctitlepart }}</strong><p>
|
103
|
+
{% endif %}
|
104
|
+
<p class='zzSTDTitle1'> </p>
|
105
|
+
OUTPUT
|
106
|
+
end
|
107
|
+
|
108
|
+
# KILL
|
87
109
|
def middle_title_parts
|
88
110
|
title1 = @meta.get[:doctitlemain]&.sub(/\s+$/, "")
|
89
111
|
@meta.get[:doctitleintro] and
|
@@ -103,7 +125,8 @@ module IsoDoc
|
|
103
125
|
[title1, title2]
|
104
126
|
end
|
105
127
|
|
106
|
-
|
128
|
+
# KILL
|
129
|
+
def middle_titlex(docxml)
|
107
130
|
s = docxml.at(ns("//sections")) or return
|
108
131
|
title1, title2 = middle_title_parts
|
109
132
|
title1 || title2 or return
|
@@ -117,6 +140,18 @@ module IsoDoc
|
|
117
140
|
s.add_first_child ret
|
118
141
|
end
|
119
142
|
|
143
|
+
def middle_title_template
|
144
|
+
<<~OUTPUT
|
145
|
+
<p class='zzSTDTitle1'><strong>{% if doctitleintro %}{{ doctitleintro -}}
|
146
|
+
— {% endif %}{{ doctitlemain }}{% if doctitlepart %} —{% endif %}</strong></p>
|
147
|
+
{% if doctitlepart %}<p class='zzSTDTitle1'> </p>
|
148
|
+
<p class='zzSTDTitle2'><strong>{% if doctitlepartlabel %}{{ doctitlepartlabel }}: {% endif -%}
|
149
|
+
{{ doctitlepart }}</strong><p>
|
150
|
+
{% endif %}
|
151
|
+
<p class='zzSTDTitle1'> </p>
|
152
|
+
OUTPUT
|
153
|
+
end
|
154
|
+
|
120
155
|
def ul_label_list(_elem)
|
121
156
|
%w(• — o)
|
122
157
|
end
|
@@ -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-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.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-iso
|