metanorma-csa 2.1.1 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/csa/csa.standard.xsl +534 -323
- data/lib/isodoc/csa/html/csa.css +18 -12
- data/lib/isodoc/csa/html/csa.scss +18 -10
- data/lib/isodoc/csa/html/htmlstyle.css +6 -0
- data/lib/isodoc/csa/html/htmlstyle.scss +1 -0
- data/lib/isodoc/csa/presentation_xml_convert.rb +4 -5
- data/lib/metanorma/csa/biblio.rng +134 -39
- data/lib/metanorma/csa/isodoc.rng +32 -0
- data/lib/metanorma/csa/version.rb +1 -1
- metadata +3 -3
data/lib/isodoc/csa/html/csa.css
CHANGED
@@ -111,7 +111,7 @@ p.AdmonitionTitle, p.RecommendationTitle {
|
|
111
111
|
mso-bidi-font-family: {{bodyfont}};
|
112
112
|
mso-ansi-language: EN-GB; }
|
113
113
|
|
114
|
-
p.TableTitle {
|
114
|
+
p.TableTitle, p.ListTitle {
|
115
115
|
mso-style-unhide: no;
|
116
116
|
mso-style-qformat: yes;
|
117
117
|
mso-style-parent: "";
|
@@ -142,13 +142,15 @@ p.Note, div.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote
|
|
142
142
|
line-height: 12.0pt;
|
143
143
|
mso-pagination: widow-orphan;
|
144
144
|
tab-stops: 20.15pt;
|
145
|
-
font-size: {{smallerfontsize}};
|
146
145
|
mso-bidi-font-size: 11.0pt;
|
147
|
-
font-family: {{bodyfont}};
|
148
146
|
mso-fareast-font-family: {{bodyfont}};
|
149
147
|
mso-bidi-font-family: {{bodyfont}};
|
150
148
|
mso-ansi-language: EN-GB; }
|
151
149
|
|
150
|
+
p.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote {
|
151
|
+
font-size: {{smallerfontsize}};
|
152
|
+
font-family: {{bodyfont}}; }
|
153
|
+
|
152
154
|
p.ANNEX, li.ANNEX, div.ANNEX {
|
153
155
|
mso-style-name: ANNEX;
|
154
156
|
mso-style-priority: 10;
|
@@ -494,12 +496,14 @@ p.Quote, li.Quote, div.Quote {
|
|
494
496
|
line-height: 12.0pt;
|
495
497
|
mso-pagination: widow-orphan;
|
496
498
|
tab-stops: 20.15pt;
|
497
|
-
font-size: {{normalfontsize}};
|
498
|
-
font-family: {{bodyfont}};
|
499
499
|
mso-fareast-font-family: {{bodyfont}};
|
500
500
|
mso-bidi-font-family: {{bodyfont}};
|
501
501
|
mso-ansi-language: EN-GB; }
|
502
502
|
|
503
|
+
p.Quote, li.Quote {
|
504
|
+
font-size: {{normalfontsize}};
|
505
|
+
font-family: {{bodyfont}}; }
|
506
|
+
|
503
507
|
p.QuoteAttribution {
|
504
508
|
text-align: right;
|
505
509
|
mso-style-priority: 99;
|
@@ -529,8 +533,6 @@ p.Admonition, li.Admonition, div.Admonition {
|
|
529
533
|
mso-border-themecolor: accent1;
|
530
534
|
padding: 0cm;
|
531
535
|
mso-padding-alt: 10.0pt 10.0pt 10.0pt 10.0pt;
|
532
|
-
font-size: 12.0pt;
|
533
|
-
font-family: {{bodyfont}};
|
534
536
|
mso-ascii-font-family: {{bodyfont}};
|
535
537
|
mso-ascii-theme-font: minor-latin;
|
536
538
|
mso-fareast-font-family: {{bodyfont}};
|
@@ -541,7 +543,11 @@ p.Admonition, li.Admonition, div.Admonition {
|
|
541
543
|
mso-bidi-theme-font: minor-bidi;
|
542
544
|
color: #4472C4;
|
543
545
|
mso-themecolor: accent1;
|
544
|
-
mso-ansi-language: EN-AU;
|
546
|
+
mso-ansi-language: EN-AU; }
|
547
|
+
|
548
|
+
p.Admonition, li.Admonition {
|
549
|
+
font-size: 12.0pt;
|
550
|
+
font-family: {{bodyfont}};
|
545
551
|
font-style: italic; }
|
546
552
|
|
547
553
|
p.Code, li.Code, div.Code {
|
@@ -766,7 +772,9 @@ aside {
|
|
766
772
|
|
767
773
|
p.example, li.example, td.example {
|
768
774
|
margin-right: 0pt;
|
769
|
-
margin-left: 0pt;
|
775
|
+
margin-left: 0pt;
|
776
|
+
font-size: {{smallerfontsize}};
|
777
|
+
font-family: {{bodyfont}}; }
|
770
778
|
|
771
779
|
div.example {
|
772
780
|
margin-top: 0cm;
|
@@ -775,9 +783,7 @@ div.example {
|
|
775
783
|
margin-left: 36.0pt; }
|
776
784
|
|
777
785
|
p.example, li.example, div.example, td.example {
|
778
|
-
mso-pagination: none;
|
779
|
-
font-size: {{smallerfontsize}};
|
780
|
-
font-family: {{bodyfont}}; }
|
786
|
+
mso-pagination: none; }
|
781
787
|
|
782
788
|
td.example p.MsoListParagraph {
|
783
789
|
font-size: {{smallerfontsize}}; }
|
@@ -105,7 +105,7 @@ p.AdmonitionTitle, p.RecommendationTitle
|
|
105
105
|
mso-fareast-font-family:$bodyfont;
|
106
106
|
mso-bidi-font-family:$bodyfont;
|
107
107
|
mso-ansi-language:EN-GB;}
|
108
|
-
p.TableTitle
|
108
|
+
p.TableTitle, p.ListTitle
|
109
109
|
{mso-style-unhide:no;
|
110
110
|
mso-style-qformat:yes;
|
111
111
|
mso-style-parent:"";
|
@@ -135,12 +135,14 @@ p.Note, div.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote
|
|
135
135
|
line-height:12.0pt;
|
136
136
|
mso-pagination:widow-orphan;
|
137
137
|
tab-stops:20.15pt;
|
138
|
-
font-size:$smallerfontsize;
|
139
138
|
mso-bidi-font-size:11.0pt;
|
140
|
-
font-family:$bodyfont;
|
141
139
|
mso-fareast-font-family:$bodyfont;
|
142
140
|
mso-bidi-font-family:$bodyfont;
|
143
141
|
mso-ansi-language:EN-GB;}
|
142
|
+
p.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote {
|
143
|
+
font-size:$smallerfontsize;
|
144
|
+
font-family:$bodyfont;
|
145
|
+
}
|
144
146
|
p.ANNEX, li.ANNEX, div.ANNEX
|
145
147
|
{mso-style-name:ANNEX;
|
146
148
|
mso-style-priority:10;
|
@@ -471,11 +473,13 @@ p.Quote, li.Quote, div.Quote
|
|
471
473
|
line-height:12.0pt;
|
472
474
|
mso-pagination:widow-orphan;
|
473
475
|
tab-stops:20.15pt;
|
474
|
-
font-size:$normalfontsize;
|
475
|
-
font-family:$bodyfont;
|
476
476
|
mso-fareast-font-family:$bodyfont;
|
477
477
|
mso-bidi-font-family:$bodyfont;
|
478
478
|
mso-ansi-language:EN-GB;}
|
479
|
+
p.Quote, li.Quote {
|
480
|
+
font-size:$normalfontsize;
|
481
|
+
font-family:$bodyfont;
|
482
|
+
}
|
479
483
|
p.QuoteAttribution
|
480
484
|
{text-align:right;
|
481
485
|
mso-style-priority:99;
|
@@ -505,8 +509,6 @@ p.Admonition, li.Admonition, div.Admonition
|
|
505
509
|
mso-border-themecolor:accent1;
|
506
510
|
padding:0cm;
|
507
511
|
mso-padding-alt:10.0pt 10.0pt 10.0pt 10.0pt;
|
508
|
-
font-size:12.0pt;
|
509
|
-
font-family:$bodyfont;
|
510
512
|
mso-ascii-font-family:$bodyfont;
|
511
513
|
mso-ascii-theme-font:minor-latin;
|
512
514
|
mso-fareast-font-family:$bodyfont;
|
@@ -518,7 +520,12 @@ p.Admonition, li.Admonition, div.Admonition
|
|
518
520
|
color:#4472C4;
|
519
521
|
mso-themecolor:accent1;
|
520
522
|
mso-ansi-language:EN-AU;
|
521
|
-
|
523
|
+
}
|
524
|
+
p.Admonition, li.Admonition {
|
525
|
+
font-size:12.0pt;
|
526
|
+
font-family:$bodyfont;
|
527
|
+
font-style:italic;
|
528
|
+
}
|
522
529
|
p.Code, li.Code, div.Code
|
523
530
|
{mso-style-name:Code;
|
524
531
|
mso-style-priority:16;
|
@@ -721,6 +728,8 @@ margin-left: -36.0pt;
|
|
721
728
|
p.example, li.example, td.example {
|
722
729
|
margin-right: 0pt;
|
723
730
|
margin-left: 0pt;
|
731
|
+
font-size:$smallerfontsize;
|
732
|
+
font-family:$bodyfont;
|
724
733
|
}
|
725
734
|
|
726
735
|
div.example {
|
@@ -732,8 +741,7 @@ div.example {
|
|
732
741
|
|
733
742
|
p.example, li.example, div.example, td.example {
|
734
743
|
mso-pagination:none;
|
735
|
-
|
736
|
-
font-family:$bodyfont;}
|
744
|
+
}
|
737
745
|
|
738
746
|
td.example p.MsoListParagraph {
|
739
747
|
font-size: $smallerfontsize;
|
@@ -5,16 +5,15 @@ require "isodoc"
|
|
5
5
|
module IsoDoc
|
6
6
|
module Csa
|
7
7
|
class PresentationXMLConvert < IsoDoc::Generic::PresentationXMLConvert
|
8
|
-
def annex1(
|
9
|
-
lbl = @xrefs.anchor(
|
10
|
-
if t =
|
8
|
+
def annex1(elem)
|
9
|
+
lbl = @xrefs.anchor(elem["id"], :label)
|
10
|
+
if t = elem.at(ns("./title"))
|
11
11
|
t.children = "<strong>#{t.children.to_xml}</strong>"
|
12
12
|
end
|
13
|
-
prefix_name(
|
13
|
+
prefix_name(elem, "<br/>", lbl, "title")
|
14
14
|
end
|
15
15
|
|
16
16
|
include Init
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
20
|
-
|
@@ -614,12 +614,103 @@
|
|
614
614
|
<optional>
|
615
615
|
<ref name="fetched"/>
|
616
616
|
</optional>
|
617
|
-
<
|
618
|
-
<oneOrMore>
|
619
|
-
<ref name="btitle"/>
|
620
|
-
</oneOrMore>
|
617
|
+
<optional>
|
621
618
|
<ref name="formattedref"/>
|
622
|
-
</
|
619
|
+
</optional>
|
620
|
+
<oneOrMore>
|
621
|
+
<ref name="btitle"/>
|
622
|
+
</oneOrMore>
|
623
|
+
<zeroOrMore>
|
624
|
+
<ref name="bsource"/>
|
625
|
+
</zeroOrMore>
|
626
|
+
<oneOrMore>
|
627
|
+
<ref name="docidentifier"/>
|
628
|
+
</oneOrMore>
|
629
|
+
<optional>
|
630
|
+
<ref name="docnumber"/>
|
631
|
+
</optional>
|
632
|
+
<zeroOrMore>
|
633
|
+
<ref name="bdate"/>
|
634
|
+
</zeroOrMore>
|
635
|
+
<zeroOrMore>
|
636
|
+
<ref name="contributor"/>
|
637
|
+
</zeroOrMore>
|
638
|
+
<optional>
|
639
|
+
<ref name="edition"/>
|
640
|
+
</optional>
|
641
|
+
<zeroOrMore>
|
642
|
+
<ref name="version"/>
|
643
|
+
</zeroOrMore>
|
644
|
+
<zeroOrMore>
|
645
|
+
<ref name="biblionote"/>
|
646
|
+
</zeroOrMore>
|
647
|
+
<zeroOrMore>
|
648
|
+
<ref name="language"/>
|
649
|
+
</zeroOrMore>
|
650
|
+
<zeroOrMore>
|
651
|
+
<ref name="script"/>
|
652
|
+
</zeroOrMore>
|
653
|
+
<zeroOrMore>
|
654
|
+
<ref name="bibabstract"/>
|
655
|
+
</zeroOrMore>
|
656
|
+
<optional>
|
657
|
+
<ref name="status"/>
|
658
|
+
</optional>
|
659
|
+
<zeroOrMore>
|
660
|
+
<ref name="copyright"/>
|
661
|
+
</zeroOrMore>
|
662
|
+
<zeroOrMore>
|
663
|
+
<ref name="docrelation"/>
|
664
|
+
</zeroOrMore>
|
665
|
+
<zeroOrMore>
|
666
|
+
<ref name="series"/>
|
667
|
+
</zeroOrMore>
|
668
|
+
<optional>
|
669
|
+
<ref name="medium"/>
|
670
|
+
</optional>
|
671
|
+
<zeroOrMore>
|
672
|
+
<ref name="bplace"/>
|
673
|
+
</zeroOrMore>
|
674
|
+
<zeroOrMore>
|
675
|
+
<ref name="bprice"/>
|
676
|
+
</zeroOrMore>
|
677
|
+
<zeroOrMore>
|
678
|
+
<ref name="extent"/>
|
679
|
+
</zeroOrMore>
|
680
|
+
<optional>
|
681
|
+
<ref name="bibliographic_size"/>
|
682
|
+
</optional>
|
683
|
+
<zeroOrMore>
|
684
|
+
<ref name="accesslocation"/>
|
685
|
+
</zeroOrMore>
|
686
|
+
<zeroOrMore>
|
687
|
+
<ref name="license"/>
|
688
|
+
</zeroOrMore>
|
689
|
+
<zeroOrMore>
|
690
|
+
<ref name="bclassification"/>
|
691
|
+
</zeroOrMore>
|
692
|
+
<zeroOrMore>
|
693
|
+
<ref name="bkeyword"/>
|
694
|
+
</zeroOrMore>
|
695
|
+
<optional>
|
696
|
+
<ref name="validity"/>
|
697
|
+
</optional>
|
698
|
+
</define>
|
699
|
+
<define name="ReducedBibliographicItem">
|
700
|
+
<optional>
|
701
|
+
<attribute name="type">
|
702
|
+
<ref name="BibItemType"/>
|
703
|
+
</attribute>
|
704
|
+
</optional>
|
705
|
+
<optional>
|
706
|
+
<ref name="fetched"/>
|
707
|
+
</optional>
|
708
|
+
<optional>
|
709
|
+
<ref name="formattedref"/>
|
710
|
+
</optional>
|
711
|
+
<zeroOrMore>
|
712
|
+
<ref name="btitle"/>
|
713
|
+
</zeroOrMore>
|
623
714
|
<zeroOrMore>
|
624
715
|
<ref name="bsource"/>
|
625
716
|
</zeroOrMore>
|
@@ -638,9 +729,9 @@
|
|
638
729
|
<optional>
|
639
730
|
<ref name="edition"/>
|
640
731
|
</optional>
|
641
|
-
<
|
732
|
+
<zeroOrMore>
|
642
733
|
<ref name="version"/>
|
643
|
-
</
|
734
|
+
</zeroOrMore>
|
644
735
|
<zeroOrMore>
|
645
736
|
<ref name="biblionote"/>
|
646
737
|
</zeroOrMore>
|
@@ -833,6 +924,12 @@
|
|
833
924
|
<data type="boolean"/>
|
834
925
|
</attribute>
|
835
926
|
</optional>
|
927
|
+
<optional>
|
928
|
+
<attribute name="language"/>
|
929
|
+
</optional>
|
930
|
+
<optional>
|
931
|
+
<attribute name="script"/>
|
932
|
+
</optional>
|
836
933
|
<text/>
|
837
934
|
</element>
|
838
935
|
</define>
|
@@ -986,36 +1083,34 @@
|
|
986
1083
|
<ref name="SeriesType"/>
|
987
1084
|
</attribute>
|
988
1085
|
</optional>
|
989
|
-
<
|
1086
|
+
<optional>
|
990
1087
|
<ref name="formattedref"/>
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
</group>
|
1018
|
-
</choice>
|
1088
|
+
</optional>
|
1089
|
+
<ref name="btitle"/>
|
1090
|
+
<optional>
|
1091
|
+
<ref name="bplace"/>
|
1092
|
+
</optional>
|
1093
|
+
<optional>
|
1094
|
+
<ref name="seriesorganization"/>
|
1095
|
+
</optional>
|
1096
|
+
<optional>
|
1097
|
+
<ref name="abbreviation"/>
|
1098
|
+
</optional>
|
1099
|
+
<optional>
|
1100
|
+
<ref name="seriesfrom"/>
|
1101
|
+
</optional>
|
1102
|
+
<optional>
|
1103
|
+
<ref name="seriesto"/>
|
1104
|
+
</optional>
|
1105
|
+
<optional>
|
1106
|
+
<ref name="seriesnumber"/>
|
1107
|
+
</optional>
|
1108
|
+
<optional>
|
1109
|
+
<ref name="seriespartnumber"/>
|
1110
|
+
</optional>
|
1111
|
+
<optional>
|
1112
|
+
<ref name="seriesrun"/>
|
1113
|
+
</optional>
|
1019
1114
|
</element>
|
1020
1115
|
</define>
|
1021
1116
|
<define name="SeriesType">
|
@@ -1174,7 +1269,7 @@
|
|
1174
1269
|
</element>
|
1175
1270
|
</optional>
|
1176
1271
|
<element name="bibitem">
|
1177
|
-
<ref name="
|
1272
|
+
<ref name="ReducedBibliographicItem"/>
|
1178
1273
|
</element>
|
1179
1274
|
<choice>
|
1180
1275
|
<zeroOrMore>
|
@@ -1199,9 +1294,9 @@
|
|
1199
1294
|
<optional>
|
1200
1295
|
<ref name="revision-date"/>
|
1201
1296
|
</optional>
|
1202
|
-
<
|
1297
|
+
<optional>
|
1203
1298
|
<ref name="draft"/>
|
1204
|
-
</
|
1299
|
+
</optional>
|
1205
1300
|
</element>
|
1206
1301
|
</define>
|
1207
1302
|
<define name="vedition">
|
@@ -69,6 +69,17 @@
|
|
69
69
|
</zeroOrMore>
|
70
70
|
</element>
|
71
71
|
</define>
|
72
|
+
<define name="AdmonitionType">
|
73
|
+
<choice>
|
74
|
+
<value>warning</value>
|
75
|
+
<value>note</value>
|
76
|
+
<value>tip</value>
|
77
|
+
<value>important</value>
|
78
|
+
<value>caution</value>
|
79
|
+
<value>statement</value>
|
80
|
+
<value>editorial</value>
|
81
|
+
</choice>
|
82
|
+
</define>
|
72
83
|
<define name="index">
|
73
84
|
<element name="index">
|
74
85
|
<optional>
|
@@ -116,6 +127,11 @@
|
|
116
127
|
<data type="boolean"/>
|
117
128
|
</attribute>
|
118
129
|
</optional>
|
130
|
+
<optional>
|
131
|
+
<attribute name="suppress_identifier">
|
132
|
+
<data type="boolean"/>
|
133
|
+
</attribute>
|
134
|
+
</optional>
|
119
135
|
<ref name="BibliographicItem"/>
|
120
136
|
</element>
|
121
137
|
</define>
|
@@ -282,6 +298,9 @@
|
|
282
298
|
<ref name="MultilingualRenderingType"/>
|
283
299
|
</attribute>
|
284
300
|
</optional>
|
301
|
+
<optional>
|
302
|
+
<ref name="tname"/>
|
303
|
+
</optional>
|
285
304
|
<oneOrMore>
|
286
305
|
<ref name="ul_li"/>
|
287
306
|
</oneOrMore>
|
@@ -324,6 +343,9 @@
|
|
324
343
|
</choice>
|
325
344
|
</attribute>
|
326
345
|
</optional>
|
346
|
+
<optional>
|
347
|
+
<ref name="tname"/>
|
348
|
+
</optional>
|
327
349
|
<oneOrMore>
|
328
350
|
<ref name="li"/>
|
329
351
|
</oneOrMore>
|
@@ -360,6 +382,9 @@
|
|
360
382
|
<ref name="MultilingualRenderingType"/>
|
361
383
|
</attribute>
|
362
384
|
</optional>
|
385
|
+
<optional>
|
386
|
+
<ref name="tname"/>
|
387
|
+
</optional>
|
363
388
|
<oneOrMore>
|
364
389
|
<ref name="dt"/>
|
365
390
|
<ref name="dd"/>
|
@@ -694,6 +719,9 @@
|
|
694
719
|
<optional>
|
695
720
|
<attribute name="tag"/>
|
696
721
|
</optional>
|
722
|
+
<optional>
|
723
|
+
<attribute name="type"/>
|
724
|
+
</optional>
|
697
725
|
<optional>
|
698
726
|
<attribute name="multilingual-rendering">
|
699
727
|
<ref name="MultilingualRenderingType"/>
|
@@ -729,6 +757,9 @@
|
|
729
757
|
<optional>
|
730
758
|
<attribute name="tag"/>
|
731
759
|
</optional>
|
760
|
+
<optional>
|
761
|
+
<attribute name="type"/>
|
762
|
+
</optional>
|
732
763
|
<optional>
|
733
764
|
<attribute name="multilingual-rendering">
|
734
765
|
<ref name="MultilingualRenderingType"/>
|
@@ -2050,6 +2081,7 @@
|
|
2050
2081
|
<value>compare</value>
|
2051
2082
|
<value>contrast</value>
|
2052
2083
|
<value>see</value>
|
2084
|
+
<value>seealso</value>
|
2053
2085
|
</choice>
|
2054
2086
|
</define>
|
2055
2087
|
<define name="deprecates">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-csa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.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: 2022-
|
11
|
+
date: 2022-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
- !ruby/object:Gem::Version
|
248
248
|
version: '0'
|
249
249
|
requirements: []
|
250
|
-
rubygems_version: 3.3.
|
250
|
+
rubygems_version: 3.3.16
|
251
251
|
signing_key:
|
252
252
|
specification_version: 4
|
253
253
|
summary: metanorma-csa lets you write CSA Normal Documents (CSAND) in AsciiDoc.
|