metanorma-iso 3.1.4 → 3.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 +4 -4
- data/lib/isodoc/iso/html/style-human.css +39 -45
- data/lib/isodoc/iso/html/style-iso.css +40 -46
- data/lib/isodoc/iso/iso.amendment.xsl +41 -4
- data/lib/isodoc/iso/iso.international-standard.xsl +41 -4
- data/lib/isodoc/iso/presentation_section.rb +39 -4
- data/lib/metanorma/iso/front.rb +10 -49
- data/lib/metanorma/iso/isodoc.rng +26 -19
- data/lib/metanorma/iso/validate_style.rb +0 -5
- data/lib/metanorma/iso/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: 714a368be85c8da9ffe28d8fa5897da7d8b0dff0939c7b108681cc5720241513
|
4
|
+
data.tar.gz: feb31751f9388342066e14b68dbd1589bddfe87fd6b7cf48100606f2b4c5e820
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eec64e6e178acbea0e0f391068c2cef244c22c4568490e5cf27c185497e132df5457e4bed8ffa03da71cd54fa66f55746ba83e5f67bb0ef38fd6e8b87129fbc9
|
7
|
+
data.tar.gz: e8effac1511a8364303574f1ec1a3ff70188c9f528700fa2c5e3fb59f35caf5e7be439e9742718b61546cc2d39a41533a6032786323603a6fcfd802dcaf463b9
|
@@ -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;
|
@@ -717,10 +707,6 @@ p.Terms {
|
|
717
707
|
}
|
718
708
|
|
719
709
|
/* Navigation*/
|
720
|
-
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
721
|
-
font-family: {{bodyfont}};
|
722
|
-
font-weight: 400;
|
723
|
-
}
|
724
710
|
#toc ul, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
|
725
711
|
margin: 0;
|
726
712
|
padding: 0;
|
@@ -768,6 +754,10 @@ p.Terms {
|
|
768
754
|
color: black;
|
769
755
|
}
|
770
756
|
}
|
757
|
+
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
758
|
+
font-family: {{bodyfont}};
|
759
|
+
font-weight: 400;
|
760
|
+
}
|
771
761
|
@media screen and (max-width: 768px) {
|
772
762
|
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
773
763
|
padding: 0 1.5em;
|
@@ -785,9 +775,6 @@ p.Terms {
|
|
785
775
|
font-size: 100%;
|
786
776
|
}
|
787
777
|
|
788
|
-
nav {
|
789
|
-
line-height: 1.2em;
|
790
|
-
}
|
791
778
|
@media screen and (min-width: 768px) {
|
792
779
|
nav {
|
793
780
|
position: fixed;
|
@@ -812,11 +799,10 @@ nav {
|
|
812
799
|
background-color: white;
|
813
800
|
}
|
814
801
|
}
|
815
|
-
|
816
|
-
|
817
|
-
margin-left: -4em;
|
818
|
-
margin-top: -2em;
|
802
|
+
nav {
|
803
|
+
line-height: 1.2em;
|
819
804
|
}
|
805
|
+
|
820
806
|
@media screen and (min-width: 768px) {
|
821
807
|
#toggle {
|
822
808
|
position: fixed;
|
@@ -845,6 +831,10 @@ nav {
|
|
845
831
|
display: none;
|
846
832
|
}
|
847
833
|
}
|
834
|
+
#toggle {
|
835
|
+
margin-left: -4em;
|
836
|
+
margin-top: -2em;
|
837
|
+
}
|
848
838
|
|
849
839
|
@media screen and (min-width: 768px) {
|
850
840
|
.container {
|
@@ -875,17 +865,6 @@ nav {
|
|
875
865
|
width: 100%;
|
876
866
|
}
|
877
867
|
}
|
878
|
-
.figure,
|
879
|
-
pre,
|
880
|
-
.pseudocode {
|
881
|
-
background-color: #f7f7f7;
|
882
|
-
font-size: {{monospacefontsize}};
|
883
|
-
line-height: 1.6em;
|
884
|
-
padding: 1.5em;
|
885
|
-
margin: 2em 0 1em 0;
|
886
|
-
overflow: auto;
|
887
|
-
font-size: {{normalfontsize}};
|
888
|
-
}
|
889
868
|
.figure .SourceTitle,
|
890
869
|
pre .SourceTitle,
|
891
870
|
.pseudocode .SourceTitle {
|
@@ -893,13 +872,18 @@ pre .SourceTitle,
|
|
893
872
|
font-size: 1em;
|
894
873
|
text-align: center;
|
895
874
|
}
|
896
|
-
|
897
|
-
|
875
|
+
.figure,
|
876
|
+
pre,
|
877
|
+
.pseudocode {
|
878
|
+
background-color: #f7f7f7;
|
879
|
+
font-size: {{monospacefontsize}};
|
898
880
|
line-height: 1.6em;
|
899
881
|
padding: 1.5em;
|
900
882
|
margin: 2em 0 1em 0;
|
901
883
|
overflow: auto;
|
884
|
+
font-size: {{normalfontsize}};
|
902
885
|
}
|
886
|
+
|
903
887
|
div.figure .FigureTitle, div.figure .figure-title {
|
904
888
|
font-weight: 700;
|
905
889
|
font-size: 1em;
|
@@ -912,6 +896,12 @@ div.figure > img, div.figure > svg {
|
|
912
896
|
max-width: 100%;
|
913
897
|
height: auto;
|
914
898
|
}
|
899
|
+
div.figure {
|
900
|
+
line-height: 1.6em;
|
901
|
+
padding: 1.5em;
|
902
|
+
margin: 2em 0 1em 0;
|
903
|
+
overflow: auto;
|
904
|
+
}
|
915
905
|
|
916
906
|
table div.figure {
|
917
907
|
padding: 0;
|
@@ -1143,6 +1133,13 @@ p.NormRef {
|
|
1143
1133
|
/*
|
1144
1134
|
3.6 Source Code + figures
|
1145
1135
|
*/
|
1136
|
+
.figure .SourceTitle,
|
1137
|
+
pre .SourceTitle,
|
1138
|
+
.pseudocode .SourceTitle {
|
1139
|
+
font-weight: 700;
|
1140
|
+
font-size: 1em;
|
1141
|
+
text-align: center;
|
1142
|
+
}
|
1146
1143
|
.figure,
|
1147
1144
|
pre,
|
1148
1145
|
.pseudocode {
|
@@ -1154,13 +1151,6 @@ pre,
|
|
1154
1151
|
overflow: auto;
|
1155
1152
|
font-size: {{normalfontsize}};
|
1156
1153
|
}
|
1157
|
-
.figure .SourceTitle,
|
1158
|
-
pre .SourceTitle,
|
1159
|
-
.pseudocode .SourceTitle {
|
1160
|
-
font-weight: 700;
|
1161
|
-
font-size: 1em;
|
1162
|
-
text-align: center;
|
1163
|
-
}
|
1164
1154
|
|
1165
1155
|
pre {
|
1166
1156
|
font-family: {{monospacefont}};
|
@@ -1233,19 +1223,23 @@ pre {
|
|
1233
1223
|
padding: 0.5em;
|
1234
1224
|
margin: 2em 0 1em 0;
|
1235
1225
|
text-align: left;
|
1236
|
-
color: #424242;
|
1237
|
-
padding-left: 2em;
|
1238
|
-
color: black;
|
1239
|
-
padding-left: 2em;
|
1240
1226
|
}
|
1241
1227
|
.example p {
|
1242
1228
|
margin: 0;
|
1243
1229
|
}
|
1230
|
+
.example {
|
1231
|
+
color: #424242;
|
1232
|
+
padding-left: 2em;
|
1233
|
+
}
|
1244
1234
|
.example .example-title {
|
1245
1235
|
font-weight: 700;
|
1246
1236
|
text-transform: uppercase;
|
1247
1237
|
margin-left: -1.5em;
|
1248
1238
|
}
|
1239
|
+
.example {
|
1240
|
+
color: black;
|
1241
|
+
padding-left: 2em;
|
1242
|
+
}
|
1249
1243
|
.example .example-title {
|
1250
1244
|
margin-left: -1.5em;
|
1251
1245
|
}
|
@@ -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;
|
@@ -660,10 +650,6 @@ p.Terms {
|
|
660
650
|
}
|
661
651
|
|
662
652
|
/* Navigation*/
|
663
|
-
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
664
|
-
font-family: {{bodyfont}};
|
665
|
-
font-weight: 400;
|
666
|
-
}
|
667
653
|
#toc ul, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
|
668
654
|
margin: 0;
|
669
655
|
padding: 0;
|
@@ -711,6 +697,10 @@ p.Terms {
|
|
711
697
|
color: black;
|
712
698
|
}
|
713
699
|
}
|
700
|
+
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
701
|
+
font-family: {{bodyfont}};
|
702
|
+
font-weight: 400;
|
703
|
+
}
|
714
704
|
@media screen and (max-width: 768px) {
|
715
705
|
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
716
706
|
padding: 0 1.5em;
|
@@ -734,9 +724,6 @@ p.Terms {
|
|
734
724
|
font-size: 100%;
|
735
725
|
}
|
736
726
|
|
737
|
-
nav {
|
738
|
-
line-height: 1.2em;
|
739
|
-
}
|
740
727
|
@media screen and (min-width: 768px) {
|
741
728
|
nav {
|
742
729
|
position: fixed;
|
@@ -761,12 +748,10 @@ nav {
|
|
761
748
|
background-color: white;
|
762
749
|
}
|
763
750
|
}
|
764
|
-
|
765
|
-
|
766
|
-
border-right: solid black 1px;
|
767
|
-
margin-left: -4em;
|
768
|
-
margin-top: -2em;
|
751
|
+
nav {
|
752
|
+
line-height: 1.2em;
|
769
753
|
}
|
754
|
+
|
770
755
|
@media screen and (min-width: 768px) {
|
771
756
|
#toggle {
|
772
757
|
position: fixed;
|
@@ -795,6 +780,11 @@ nav {
|
|
795
780
|
display: none;
|
796
781
|
}
|
797
782
|
}
|
783
|
+
#toggle {
|
784
|
+
border-right: solid black 1px;
|
785
|
+
margin-left: -4em;
|
786
|
+
margin-top: -2em;
|
787
|
+
}
|
798
788
|
|
799
789
|
@media screen and (min-width: 768px) {
|
800
790
|
.container {
|
@@ -824,17 +814,6 @@ nav {
|
|
824
814
|
width: 100%;
|
825
815
|
}
|
826
816
|
}
|
827
|
-
.figure,
|
828
|
-
pre,
|
829
|
-
.pseudocode {
|
830
|
-
background-color: #f7f7f7;
|
831
|
-
font-size: {{monospacefontsize}};
|
832
|
-
line-height: 1.6em;
|
833
|
-
padding: 1.5em;
|
834
|
-
margin: 2em 0 1em 0;
|
835
|
-
overflow: auto;
|
836
|
-
font-size: {{normalfontsize}};
|
837
|
-
}
|
838
817
|
.figure .SourceTitle,
|
839
818
|
pre .SourceTitle,
|
840
819
|
.pseudocode .SourceTitle {
|
@@ -842,13 +821,18 @@ pre .SourceTitle,
|
|
842
821
|
font-size: 1em;
|
843
822
|
text-align: center;
|
844
823
|
}
|
845
|
-
|
846
|
-
|
824
|
+
.figure,
|
825
|
+
pre,
|
826
|
+
.pseudocode {
|
827
|
+
background-color: #f7f7f7;
|
828
|
+
font-size: {{monospacefontsize}};
|
847
829
|
line-height: 1.6em;
|
848
830
|
padding: 1.5em;
|
849
831
|
margin: 2em 0 1em 0;
|
850
832
|
overflow: auto;
|
833
|
+
font-size: {{normalfontsize}};
|
851
834
|
}
|
835
|
+
|
852
836
|
div.figure .FigureTitle, div.figure .figure-title {
|
853
837
|
font-weight: 700;
|
854
838
|
font-size: 1em;
|
@@ -861,6 +845,12 @@ div.figure > img, div.figure > svg {
|
|
861
845
|
max-width: 100%;
|
862
846
|
height: auto;
|
863
847
|
}
|
848
|
+
div.figure {
|
849
|
+
line-height: 1.6em;
|
850
|
+
padding: 1.5em;
|
851
|
+
margin: 2em 0 1em 0;
|
852
|
+
overflow: auto;
|
853
|
+
}
|
864
854
|
|
865
855
|
table div.figure {
|
866
856
|
padding: 0;
|
@@ -1208,6 +1198,13 @@ p.Biblio, p.NormRef {
|
|
1208
1198
|
/*
|
1209
1199
|
3.6 Source Code + figures
|
1210
1200
|
*/
|
1201
|
+
.figure .SourceTitle,
|
1202
|
+
pre .SourceTitle,
|
1203
|
+
.pseudocode .SourceTitle {
|
1204
|
+
font-weight: 700;
|
1205
|
+
font-size: 1em;
|
1206
|
+
text-align: center;
|
1207
|
+
}
|
1211
1208
|
.figure,
|
1212
1209
|
pre,
|
1213
1210
|
.pseudocode {
|
@@ -1219,13 +1216,6 @@ pre,
|
|
1219
1216
|
overflow: auto;
|
1220
1217
|
font-size: {{normalfontsize}};
|
1221
1218
|
}
|
1222
|
-
.figure .SourceTitle,
|
1223
|
-
pre .SourceTitle,
|
1224
|
-
.pseudocode .SourceTitle {
|
1225
|
-
font-weight: 700;
|
1226
|
-
font-size: 1em;
|
1227
|
-
text-align: center;
|
1228
|
-
}
|
1229
1219
|
|
1230
1220
|
pre {
|
1231
1221
|
font-family: {{monospacefont}};
|
@@ -1299,19 +1289,23 @@ div.zzHelp {
|
|
1299
1289
|
padding: 0.5em;
|
1300
1290
|
margin: 2em 0 1em 0;
|
1301
1291
|
text-align: left;
|
1302
|
-
color: #424242;
|
1303
|
-
padding-left: 2em;
|
1304
|
-
color: black;
|
1305
|
-
padding-left: 0.5em;
|
1306
1292
|
}
|
1307
1293
|
.example p {
|
1308
1294
|
margin: 0;
|
1309
1295
|
}
|
1296
|
+
.example {
|
1297
|
+
color: #424242;
|
1298
|
+
padding-left: 2em;
|
1299
|
+
}
|
1310
1300
|
.example .example-title {
|
1311
1301
|
font-weight: 700;
|
1312
1302
|
text-transform: uppercase;
|
1313
1303
|
margin-left: -1.5em;
|
1314
1304
|
}
|
1305
|
+
.example {
|
1306
|
+
color: black;
|
1307
|
+
padding-left: 0.5em;
|
1308
|
+
}
|
1315
1309
|
.example .example-title {
|
1316
1310
|
margin-top: 0;
|
1317
1311
|
}
|
@@ -6104,6 +6104,7 @@
|
|
6104
6104
|
<xsl:variable name="en_dash">–</xsl:variable>
|
6105
6105
|
<xsl:variable name="em_dash">—</xsl:variable>
|
6106
6106
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
6107
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
6107
6108
|
<xsl:variable name="cr"> </xsl:variable>
|
6108
6109
|
<xsl:variable name="lf">
|
6109
6110
|
</xsl:variable>
|
@@ -6670,6 +6671,7 @@
|
|
6670
6671
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
6671
6672
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
6672
6673
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
6674
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
6673
6675
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
6674
6676
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
6675
6677
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -6684,10 +6686,10 @@
|
|
6684
6686
|
|
6685
6687
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
6686
6688
|
|
6687
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
6689
|
+
<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">
|
6688
6690
|
<xsl:copy>
|
6689
6691
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
6690
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
6692
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
6691
6693
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
6692
6694
|
</xsl:copy>
|
6693
6695
|
</xsl:template>
|
@@ -7984,6 +7986,12 @@
|
|
7984
7986
|
<xsl:template name="refine_sourcecode-style">
|
7985
7987
|
</xsl:template> <!-- refine_sourcecode-style -->
|
7986
7988
|
|
7989
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
7990
|
+
</xsl:attribute-set>
|
7991
|
+
|
7992
|
+
<xsl:template name="refine_sourcecode-number-style">
|
7993
|
+
</xsl:template>
|
7994
|
+
|
7987
7995
|
<xsl:attribute-set name="sourcecode-name-style">
|
7988
7996
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
7989
7997
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -9392,6 +9400,12 @@
|
|
9392
9400
|
<xsl:template name="refine_term-name-style">
|
9393
9401
|
</xsl:template>
|
9394
9402
|
|
9403
|
+
<xsl:attribute-set name="preferred-style">
|
9404
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
9405
|
+
|
9406
|
+
<xsl:template name="refine_preferred-style">
|
9407
|
+
</xsl:template>
|
9408
|
+
|
9395
9409
|
<xsl:attribute-set name="preferred-block-style">
|
9396
9410
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
9397
9411
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
@@ -10086,6 +10100,12 @@
|
|
10086
10100
|
<xsl:call-template name="setBordersTableArray"/>
|
10087
10101
|
</xsl:template> <!-- refine_table-style -->
|
10088
10102
|
|
10103
|
+
<xsl:attribute-set name="table-number-style">
|
10104
|
+
</xsl:attribute-set>
|
10105
|
+
|
10106
|
+
<xsl:template name="refine_table-number-style">
|
10107
|
+
</xsl:template>
|
10108
|
+
|
10089
10109
|
<xsl:attribute-set name="table-name-style">
|
10090
10110
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
10091
10111
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -10624,7 +10644,7 @@
|
|
10624
10644
|
|
10625
10645
|
</fo:block>
|
10626
10646
|
|
10627
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
10647
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
10628
10648
|
<xsl:if test="$continued = 'true'">
|
10629
10649
|
|
10630
10650
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -13920,6 +13940,12 @@
|
|
13920
13940
|
<xsl:template name="refine_figure-style">
|
13921
13941
|
</xsl:template>
|
13922
13942
|
|
13943
|
+
<xsl:attribute-set name="figure-number-style">
|
13944
|
+
</xsl:attribute-set>
|
13945
|
+
|
13946
|
+
<xsl:template name="refine_figure-number-style">
|
13947
|
+
</xsl:template>
|
13948
|
+
|
13923
13949
|
<xsl:attribute-set name="figure-name-style">
|
13924
13950
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
13925
13951
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -18856,10 +18882,17 @@
|
|
18856
18882
|
</xsl:choose>
|
18857
18883
|
</xsl:template>
|
18858
18884
|
|
18885
|
+
<xsl:attribute-set name="clause-style">
|
18886
|
+
|
18887
|
+
</xsl:attribute-set>
|
18888
|
+
|
18889
|
+
<xsl:template name="refine_clause-style">
|
18890
|
+
</xsl:template>
|
18891
|
+
|
18859
18892
|
<!-- main sections -->
|
18860
18893
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
18861
18894
|
<xsl:call-template name="setNamedDestination"/>
|
18862
|
-
<fo:block>
|
18895
|
+
<fo:block role="Sect">
|
18863
18896
|
<xsl:call-template name="setId"/>
|
18864
18897
|
|
18865
18898
|
<xsl:call-template name="sections_element_style"/>
|
@@ -18999,6 +19032,10 @@
|
|
18999
19032
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
19000
19033
|
</xsl:template>
|
19001
19034
|
|
19035
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
19036
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
19037
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
19038
|
+
|
19002
19039
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
19003
19040
|
<xsl:template name="insert_basic_link">
|
19004
19041
|
<xsl:param name="element"/>
|
@@ -6104,6 +6104,7 @@
|
|
6104
6104
|
<xsl:variable name="en_dash">–</xsl:variable>
|
6105
6105
|
<xsl:variable name="em_dash">—</xsl:variable>
|
6106
6106
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
6107
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
6107
6108
|
<xsl:variable name="cr"> </xsl:variable>
|
6108
6109
|
<xsl:variable name="lf">
|
6109
6110
|
</xsl:variable>
|
@@ -6670,6 +6671,7 @@
|
|
6670
6671
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
6671
6672
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
6672
6673
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
6674
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
6673
6675
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
6674
6676
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
6675
6677
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -6684,10 +6686,10 @@
|
|
6684
6686
|
|
6685
6687
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
6686
6688
|
|
6687
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
6689
|
+
<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">
|
6688
6690
|
<xsl:copy>
|
6689
6691
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
6690
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
6692
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
6691
6693
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
6692
6694
|
</xsl:copy>
|
6693
6695
|
</xsl:template>
|
@@ -7984,6 +7986,12 @@
|
|
7984
7986
|
<xsl:template name="refine_sourcecode-style">
|
7985
7987
|
</xsl:template> <!-- refine_sourcecode-style -->
|
7986
7988
|
|
7989
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
7990
|
+
</xsl:attribute-set>
|
7991
|
+
|
7992
|
+
<xsl:template name="refine_sourcecode-number-style">
|
7993
|
+
</xsl:template>
|
7994
|
+
|
7987
7995
|
<xsl:attribute-set name="sourcecode-name-style">
|
7988
7996
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
7989
7997
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -9392,6 +9400,12 @@
|
|
9392
9400
|
<xsl:template name="refine_term-name-style">
|
9393
9401
|
</xsl:template>
|
9394
9402
|
|
9403
|
+
<xsl:attribute-set name="preferred-style">
|
9404
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
9405
|
+
|
9406
|
+
<xsl:template name="refine_preferred-style">
|
9407
|
+
</xsl:template>
|
9408
|
+
|
9395
9409
|
<xsl:attribute-set name="preferred-block-style">
|
9396
9410
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
9397
9411
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
@@ -10086,6 +10100,12 @@
|
|
10086
10100
|
<xsl:call-template name="setBordersTableArray"/>
|
10087
10101
|
</xsl:template> <!-- refine_table-style -->
|
10088
10102
|
|
10103
|
+
<xsl:attribute-set name="table-number-style">
|
10104
|
+
</xsl:attribute-set>
|
10105
|
+
|
10106
|
+
<xsl:template name="refine_table-number-style">
|
10107
|
+
</xsl:template>
|
10108
|
+
|
10089
10109
|
<xsl:attribute-set name="table-name-style">
|
10090
10110
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
10091
10111
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -10624,7 +10644,7 @@
|
|
10624
10644
|
|
10625
10645
|
</fo:block>
|
10626
10646
|
|
10627
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
10647
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
10628
10648
|
<xsl:if test="$continued = 'true'">
|
10629
10649
|
|
10630
10650
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -13920,6 +13940,12 @@
|
|
13920
13940
|
<xsl:template name="refine_figure-style">
|
13921
13941
|
</xsl:template>
|
13922
13942
|
|
13943
|
+
<xsl:attribute-set name="figure-number-style">
|
13944
|
+
</xsl:attribute-set>
|
13945
|
+
|
13946
|
+
<xsl:template name="refine_figure-number-style">
|
13947
|
+
</xsl:template>
|
13948
|
+
|
13923
13949
|
<xsl:attribute-set name="figure-name-style">
|
13924
13950
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
13925
13951
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -18856,10 +18882,17 @@
|
|
18856
18882
|
</xsl:choose>
|
18857
18883
|
</xsl:template>
|
18858
18884
|
|
18885
|
+
<xsl:attribute-set name="clause-style">
|
18886
|
+
|
18887
|
+
</xsl:attribute-set>
|
18888
|
+
|
18889
|
+
<xsl:template name="refine_clause-style">
|
18890
|
+
</xsl:template>
|
18891
|
+
|
18859
18892
|
<!-- main sections -->
|
18860
18893
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
18861
18894
|
<xsl:call-template name="setNamedDestination"/>
|
18862
|
-
<fo:block>
|
18895
|
+
<fo:block role="Sect">
|
18863
18896
|
<xsl:call-template name="setId"/>
|
18864
18897
|
|
18865
18898
|
<xsl:call-template name="sections_element_style"/>
|
@@ -18999,6 +19032,10 @@
|
|
18999
19032
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
19000
19033
|
</xsl:template>
|
19001
19034
|
|
19035
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
19036
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
19037
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
19038
|
+
|
19002
19039
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
19003
19040
|
<xsl:template name="insert_basic_link">
|
19004
19041
|
<xsl:param name="element"/>
|
@@ -84,7 +84,8 @@ module IsoDoc
|
|
84
84
|
super
|
85
85
|
end
|
86
86
|
|
87
|
-
|
87
|
+
# KILL
|
88
|
+
def middle_titlex(docxml)
|
88
89
|
@meta.get[:doctitlemain].nil? || @meta.get[:doctitlemain].empty? and
|
89
90
|
return
|
90
91
|
s = docxml.at(ns("//sections")) or return
|
@@ -92,7 +93,8 @@ module IsoDoc
|
|
92
93
|
s.add_first_child ret
|
93
94
|
end
|
94
95
|
|
95
|
-
|
96
|
+
# KILL
|
97
|
+
def middle_title_mainx
|
96
98
|
ret = "<span class='boldtitle'>#{@meta.get[:doctitleintro]}"
|
97
99
|
@meta.get[:doctitleintro] && @meta.get[:doctitlemain] and
|
98
100
|
ret += " — "
|
@@ -104,7 +106,17 @@ module IsoDoc
|
|
104
106
|
"<p class='zzSTDTitle1'>#{ret}</p>"
|
105
107
|
end
|
106
108
|
|
107
|
-
def
|
109
|
+
def middle_title_main
|
110
|
+
<<~OUTPUT
|
111
|
+
<p class='zzSTDTitle1'><span class='boldtitle'>{{ doctitleintro -}}
|
112
|
+
{% if doctitleintro and doctitlemain %} — {% endif %}{{ doctitlemain -}}
|
113
|
+
{% if doctitlemain %}{% if doctitlepart or doctitlecomplementary %} — {% endif %}{% endif -%}
|
114
|
+
</span>#{middle_title_part}</p>
|
115
|
+
OUTPUT
|
116
|
+
end
|
117
|
+
|
118
|
+
# KILL
|
119
|
+
def middle_title_partx
|
108
120
|
ret = ""
|
109
121
|
if a = @meta.get[:doctitlecomplementary]
|
110
122
|
ret += "<span class='boldtitle'>#{a}</span>"
|
@@ -116,7 +128,17 @@ module IsoDoc
|
|
116
128
|
ret
|
117
129
|
end
|
118
130
|
|
119
|
-
def
|
131
|
+
def middle_title_part
|
132
|
+
<<~OUTPUT.strip
|
133
|
+
{% if doctitlecomplementary %}<span class='boldtitle'>{{ doctitlecomplementary }}</span>
|
134
|
+
{% elsif doctitlepart -%}
|
135
|
+
{% if doctitlepartlabel %}<span class='nonboldtitle'>{{ doctitlepartlabel }}:</span>{% endif -%}
|
136
|
+
<span class='boldtitle'>{{ doctitlepart }}</span>{% endif %}
|
137
|
+
OUTPUT
|
138
|
+
end
|
139
|
+
|
140
|
+
# KILL
|
141
|
+
def middle_title_amdx
|
120
142
|
ret = ""
|
121
143
|
if a = @meta.get[:doctitleamdlabel]
|
122
144
|
ret += "<p class='zzSTDTitle2'>#{a}"
|
@@ -128,6 +150,19 @@ module IsoDoc
|
|
128
150
|
ret
|
129
151
|
end
|
130
152
|
|
153
|
+
def middle_title_amd
|
154
|
+
<<~OUTPUT
|
155
|
+
{% if doctitleamdlabel %}<p class='zzSTDTitle2'>{{ doctitleamdlabel -}}
|
156
|
+
{% if doctitleamd %}: {{doctitleamd}}{% endif -%}
|
157
|
+
</p>{% endif %}
|
158
|
+
{% if doctitlecorrlabel %}<p class='zzSTDTitle2'>{{ doctitlecorrlabel }}</p>{% endif %}
|
159
|
+
OUTPUT
|
160
|
+
end
|
161
|
+
|
162
|
+
def middle_title_template
|
163
|
+
middle_title_main + middle_title_amd
|
164
|
+
end
|
165
|
+
|
131
166
|
def move_norm_ref_to_sections(docxml)
|
132
167
|
amd?(docxml) or super
|
133
168
|
end
|
data/lib/metanorma/iso/front.rb
CHANGED
@@ -71,56 +71,18 @@ module Metanorma
|
|
71
71
|
@log.add("Document Attributes", nil, err)
|
72
72
|
end
|
73
73
|
|
74
|
-
def title_component(node, xml, lang,
|
74
|
+
def title_component(node, xml, lang, comp)
|
75
75
|
t = node.attr("title-#{comp[:name]}-#{lang}") or return
|
76
|
-
xml
|
77
|
-
t1 << Metanorma::Utils::asciidoc_sub(t)
|
78
|
-
end
|
76
|
+
add_title_xml(xml, t, lang, "title-#{comp[:abbr]}")
|
79
77
|
end
|
80
78
|
|
81
|
-
def
|
82
|
-
t = node.attr("title-intro-#{lang}") or return
|
83
|
-
xml.title(**attr_code(at.merge(type: "title-intro"))) do |t1|
|
84
|
-
t1 << Metanorma::Utils::asciidoc_sub(t)
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
def title_main(node, xml, lang, at)
|
89
|
-
xml.title **attr_code(at.merge(type: "title-main")) do |t1|
|
90
|
-
t1 << Metanorma::Utils::asciidoc_sub(node.attr("title-main-#{lang}"))
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
def title_part(node, xml, lang, at)
|
95
|
-
t = node.attr("title-part-#{lang}") or return
|
96
|
-
xml.title(**attr_code(at.merge(type: "title-part"))) do |t1|
|
97
|
-
t1 << Metanorma::Utils::asciidoc_sub(t)
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
def title_amd(node, xml, lang, at)
|
102
|
-
t = node.attr("title-amendment-#{lang}") or return
|
103
|
-
xml.title(**attr_code(at.merge(type: "title-amd"))) do |t1|
|
104
|
-
t1 << Metanorma::Utils::asciidoc_sub(t)
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
def title_add(node, xml, lang, at)
|
109
|
-
t = node.attr("title-addendum-#{lang}") or return
|
110
|
-
xml.title(**attr_code(at.merge(type: "title-add"))) do |t1|
|
111
|
-
t1 << Metanorma::Utils::asciidoc_sub(t)
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
def title_full(node, xml, lang, at)
|
79
|
+
def title_full(node, xml, lang)
|
116
80
|
title, intro, part, amd, add = title_full_prep(node, lang)
|
117
81
|
title = "#{intro} -- #{title}" if intro
|
118
82
|
title = "#{title} -- #{part}" if part
|
119
83
|
title = "#{title} -- #{amd}" if amd
|
120
84
|
title = "#{title} -- #{add}" if add
|
121
|
-
xml
|
122
|
-
t1 << Metanorma::Utils::asciidoc_sub(title)
|
123
|
-
end
|
85
|
+
add_title_xml(xml, title, lang, "main")
|
124
86
|
end
|
125
87
|
|
126
88
|
def title_full_prep(node, lang)
|
@@ -136,20 +98,19 @@ module Metanorma
|
|
136
98
|
|
137
99
|
def title(node, xml)
|
138
100
|
%w(en ru fr).each do |lang|
|
139
|
-
|
140
|
-
title1(node, xml, lang, at)
|
101
|
+
title1(node, xml, lang)
|
141
102
|
end
|
142
103
|
end
|
143
104
|
|
144
|
-
def title1(node, xml, lang
|
145
|
-
title_full(node, xml, lang
|
105
|
+
def title1(node, xml, lang)
|
106
|
+
title_full(node, xml, lang)
|
146
107
|
%w(intro main part complementary).each do |w|
|
147
|
-
title_component(node, xml, lang,
|
108
|
+
title_component(node, xml, lang, { name: w, abbr: w })
|
148
109
|
end
|
149
|
-
@amd and title_component(node, xml, lang,
|
110
|
+
@amd and title_component(node, xml, lang,
|
150
111
|
{ name: "amendment", abbr: "amd" })
|
151
112
|
node.attr("addendum-number") and
|
152
|
-
title_component(node, xml, lang,
|
113
|
+
title_component(node, xml, lang,
|
153
114
|
{ name: "addendum", abbr: "add" })
|
154
115
|
end
|
155
116
|
|
@@ -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">
|
@@ -119,11 +119,6 @@ module Metanorma
|
|
119
119
|
"language-specific abbreviation", node, text)
|
120
120
|
end
|
121
121
|
|
122
|
-
# leaving out as problematic: N J K C S T H h d B o E
|
123
|
-
SI_UNIT = "(m|cm|mm|km|μm|nm|g|kg|mgmol|cd|rad|sr|Hz|Hz|MHz|Pa|hPa|kJ|" \
|
124
|
-
"V|kV|W|MW|kW|F|μF|Ω|Wb|°C|lm|lx|Bq|Gy|Sv|kat|l|t|eV|u|Np|Bd|" \
|
125
|
-
"bit|kB|MB|Hart|nat|Sh|var)".freeze
|
126
|
-
|
127
122
|
# https://www.iso.org/ISO-house-style.html#iso-hs-s-text-r-p-and
|
128
123
|
# https://www.iso.org/ISO-house-style.html#iso-hs-s-text-r-p-andor
|
129
124
|
def style_punct(node, text)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.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-standoc
|