metanorma-jis 0.6.4 → 0.6.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/jis/html/style-human.css +39 -45
- data/lib/isodoc/jis/html/style-iso.css +40 -46
- data/lib/isodoc/jis/jis.international-standard.xsl +42 -5
- data/lib/isodoc/jis/presentation_xml_convert.rb +2 -6
- data/lib/metanorma/jis/cleanup.rb +3 -2
- data/lib/metanorma/jis/front.rb +6 -6
- data/lib/metanorma/jis/isodoc.rng +26 -19
- data/lib/metanorma/jis/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: cb5c64ea8744feaed4b20df04ae5dd8f8f42d9908252adf5e7c1e853e19f13e2
|
4
|
+
data.tar.gz: 62081c0dd8d64b004146712e132e5b5ab65cc276f6647f90f180c05e5e10c6dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69a2eb26de40e52c826ef40f95630d101a0367ec61b6ce7c03389e5cc038f4e3ef1f5edff5fba17b5af105e18c5790238210f161ef12897436c061e55b080c28
|
7
|
+
data.tar.gz: 05e2a234f7a545d02249ba02374f45590fbe755a19e746734597e08c567e3142b0ee9357f5462221494ec2602312137b7cc52a114afc879d4053f7da82673d71
|
@@ -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
|
}
|
@@ -5797,6 +5797,7 @@
|
|
5797
5797
|
<xsl:variable name="en_dash">–</xsl:variable>
|
5798
5798
|
<xsl:variable name="em_dash">—</xsl:variable>
|
5799
5799
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
5800
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
5800
5801
|
<xsl:variable name="cr"> </xsl:variable>
|
5801
5802
|
<xsl:variable name="lf">
|
5802
5803
|
</xsl:variable>
|
@@ -6360,6 +6361,7 @@
|
|
6360
6361
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
6361
6362
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
6362
6363
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
6364
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
6363
6365
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
6364
6366
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
6365
6367
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -6374,10 +6376,10 @@
|
|
6374
6376
|
|
6375
6377
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
6376
6378
|
|
6377
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
6379
|
+
<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">
|
6378
6380
|
<xsl:copy>
|
6379
6381
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
6380
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
6382
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
6381
6383
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
6382
6384
|
</xsl:copy>
|
6383
6385
|
</xsl:template>
|
@@ -7572,6 +7574,12 @@
|
|
7572
7574
|
<xsl:template name="refine_sourcecode-style">
|
7573
7575
|
</xsl:template> <!-- refine_sourcecode-style -->
|
7574
7576
|
|
7577
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
7578
|
+
</xsl:attribute-set>
|
7579
|
+
|
7580
|
+
<xsl:template name="refine_sourcecode-number-style">
|
7581
|
+
</xsl:template>
|
7582
|
+
|
7575
7583
|
<xsl:attribute-set name="sourcecode-name-style">
|
7576
7584
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
7577
7585
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -8972,6 +8980,12 @@
|
|
8972
8980
|
</xsl:if>
|
8973
8981
|
</xsl:template>
|
8974
8982
|
|
8983
|
+
<xsl:attribute-set name="preferred-style">
|
8984
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
8985
|
+
|
8986
|
+
<xsl:template name="refine_preferred-style">
|
8987
|
+
</xsl:template>
|
8988
|
+
|
8975
8989
|
<xsl:attribute-set name="preferred-block-style">
|
8976
8990
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
8977
8991
|
|
@@ -9579,6 +9593,12 @@
|
|
9579
9593
|
</xsl:if>
|
9580
9594
|
</xsl:template> <!-- refine_table-style -->
|
9581
9595
|
|
9596
|
+
<xsl:attribute-set name="table-number-style">
|
9597
|
+
</xsl:attribute-set>
|
9598
|
+
|
9599
|
+
<xsl:template name="refine_table-number-style">
|
9600
|
+
</xsl:template>
|
9601
|
+
|
9582
9602
|
<xsl:attribute-set name="table-name-style">
|
9583
9603
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
9584
9604
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -10054,7 +10074,7 @@
|
|
10054
10074
|
|
10055
10075
|
</fo:block>
|
10056
10076
|
|
10057
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
10077
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
10058
10078
|
<xsl:if test="$continued = 'true'">
|
10059
10079
|
|
10060
10080
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -13298,6 +13318,12 @@
|
|
13298
13318
|
<xsl:template name="refine_figure-style">
|
13299
13319
|
</xsl:template>
|
13300
13320
|
|
13321
|
+
<xsl:attribute-set name="figure-number-style">
|
13322
|
+
</xsl:attribute-set>
|
13323
|
+
|
13324
|
+
<xsl:template name="refine_figure-number-style">
|
13325
|
+
</xsl:template>
|
13326
|
+
|
13301
13327
|
<xsl:attribute-set name="figure-name-style">
|
13302
13328
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
13303
13329
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
@@ -15999,7 +16025,7 @@
|
|
15999
16025
|
|
16000
16026
|
<fo:list-item>
|
16001
16027
|
<fo:list-item-label end-indent="label-end()">
|
16002
|
-
<fo:block role="SKIP">
|
16028
|
+
<fo:block role="SKIP" id="__internal_layout__bibitem_{@id}_{generate-id()}">
|
16003
16029
|
<fo:inline role="SKIP">
|
16004
16030
|
<xsl:apply-templates select="mn:biblio-tag">
|
16005
16031
|
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
@@ -18285,10 +18311,17 @@
|
|
18285
18311
|
</xsl:choose>
|
18286
18312
|
</xsl:template>
|
18287
18313
|
|
18314
|
+
<xsl:attribute-set name="clause-style">
|
18315
|
+
|
18316
|
+
</xsl:attribute-set>
|
18317
|
+
|
18318
|
+
<xsl:template name="refine_clause-style">
|
18319
|
+
</xsl:template>
|
18320
|
+
|
18288
18321
|
<!-- main sections -->
|
18289
18322
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
18290
18323
|
<xsl:call-template name="setNamedDestination"/>
|
18291
|
-
<fo:block>
|
18324
|
+
<fo:block role="Sect">
|
18292
18325
|
<xsl:call-template name="setId"/>
|
18293
18326
|
|
18294
18327
|
<xsl:call-template name="sections_element_style"/>
|
@@ -18412,6 +18445,10 @@
|
|
18412
18445
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
18413
18446
|
</xsl:template>
|
18414
18447
|
|
18448
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
18449
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
18450
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
18451
|
+
|
18415
18452
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
18416
18453
|
<xsl:template name="insert_basic_link">
|
18417
18454
|
<xsl:param name="element"/>
|
@@ -143,12 +143,8 @@ module IsoDoc
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
-
def
|
147
|
-
|
148
|
-
fig_fns = docxml.xpath(ns("//figure//fn")) -
|
149
|
-
docxml.xpath(ns("//figure/name//fn")) -
|
150
|
-
docxml.xpath(ns("//figure/fmt-name//fn"))
|
151
|
-
table_fns + fig_fns
|
146
|
+
def table_footnotes(docxml)
|
147
|
+
docxml.xpath(ns("//table//fn"))
|
152
148
|
end
|
153
149
|
|
154
150
|
include Init
|
@@ -1,14 +1,15 @@
|
|
1
1
|
module Metanorma
|
2
2
|
module Jis
|
3
3
|
class Converter < Iso::Converter
|
4
|
-
def norm_ref_preface(ref)
|
4
|
+
def norm_ref_preface(ref, isodoc)
|
5
5
|
if ref.at("./note[@type = 'boilerplate']")
|
6
6
|
unwrap_boilerplate_clauses(ref, ".")
|
7
7
|
else
|
8
8
|
pref = if ref_empty?(ref) then @i18n.norm_empty_pref
|
9
9
|
else @i18n.get[ref_dated(ref)]
|
10
10
|
end
|
11
|
-
ref.at("./title").next = "<p>#{pref}</p>"
|
11
|
+
#ref.at("./title").next = "<p>#{pref}</p>"
|
12
|
+
ref.at("./title").next = boilerplate_snippet_convert(pref, isodoc)
|
12
13
|
end
|
13
14
|
end
|
14
15
|
|
data/lib/metanorma/jis/front.rb
CHANGED
@@ -134,12 +134,12 @@ module Metanorma
|
|
134
134
|
|
135
135
|
def title(node, xml)
|
136
136
|
%w(en ja).each do |lang|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
137
|
+
title_full(node, xml, lang)
|
138
|
+
%w(intro main part).each do |w|
|
139
|
+
title_component(node, xml, lang, { name: w, abbr: w })
|
140
|
+
end
|
141
|
+
@amd and title_component(node, xml, lang,
|
142
|
+
{ name: "amendment", abbr: "amd" })
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
@@ -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-jis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.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: japanese_calendar
|