metanorma-csa 2.0.8 → 2.1.2
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 +1621 -387
- data/lib/isodoc/csa/html/csa.css +18 -12
- data/lib/isodoc/csa/html/csa.scss +18 -10
- data/lib/isodoc/csa/html/html_csa_titlepage.html +1 -0
- data/lib/isodoc/csa/html/htmlstyle.css +6 -0
- data/lib/isodoc/csa/html/htmlstyle.scss +1 -0
- data/lib/isodoc/csa/html/word_csa_titlepage.html +2 -1
- data/lib/isodoc/csa/init.rb +3 -4
- data/lib/metanorma/csa/biblio.rng +69 -42
- data/lib/metanorma/csa/isodoc.rng +65 -0
- data/lib/metanorma/csa/version.rb +1 -1
- data/metanorma-csa.gemspec +1 -1
- metadata +5 -5
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;
|
data/lib/isodoc/csa/init.rb
CHANGED
@@ -10,15 +10,14 @@ module IsoDoc
|
|
10
10
|
@meta = Metadata.new(lang, script, i18n)
|
11
11
|
end
|
12
12
|
|
13
|
-
def xref_init(lang, script,
|
13
|
+
def xref_init(lang, script, _klass, i18n, options)
|
14
14
|
html = HtmlConvert.new(language: lang, script: script)
|
15
15
|
@xrefs = Xref.new(lang, script, html, i18n, options)
|
16
16
|
end
|
17
17
|
|
18
|
-
|
19
|
-
@i18n = I18n.new(lang, script, i18nyaml || @i18nyaml)
|
18
|
+
def i18n_init(lang, script, i18nyaml = nil)
|
19
|
+
@i18n = I18n.new(lang, script, i18nyaml: i18nyaml || @i18nyaml)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
24
|
-
|
@@ -614,12 +614,12 @@
|
|
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
623
|
<zeroOrMore>
|
624
624
|
<ref name="bsource"/>
|
625
625
|
</zeroOrMore>
|
@@ -851,17 +851,46 @@
|
|
851
851
|
</define>
|
852
852
|
<define name="bplace">
|
853
853
|
<element name="place">
|
854
|
-
<
|
855
|
-
<
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
854
|
+
<choice>
|
855
|
+
<text/>
|
856
|
+
<group>
|
857
|
+
<ref name="bibliocity"/>
|
858
|
+
<zeroOrMore>
|
859
|
+
<ref name="biblioregion"/>
|
860
|
+
</zeroOrMore>
|
861
|
+
<zeroOrMore>
|
862
|
+
<ref name="bibliocountry"/>
|
863
|
+
</zeroOrMore>
|
864
|
+
</group>
|
865
|
+
</choice>
|
866
|
+
</element>
|
867
|
+
</define>
|
868
|
+
<define name="bibliocity">
|
869
|
+
<element name="city">
|
862
870
|
<text/>
|
863
871
|
</element>
|
864
872
|
</define>
|
873
|
+
<define name="biblioregion">
|
874
|
+
<element name="region">
|
875
|
+
<ref name="RegionType"/>
|
876
|
+
</element>
|
877
|
+
</define>
|
878
|
+
<define name="bibliocountry">
|
879
|
+
<element name="country">
|
880
|
+
<ref name="RegionType"/>
|
881
|
+
</element>
|
882
|
+
</define>
|
883
|
+
<define name="RegionType">
|
884
|
+
<optional>
|
885
|
+
<attribute name="iso"/>
|
886
|
+
</optional>
|
887
|
+
<optional>
|
888
|
+
<attribute name="recommended">
|
889
|
+
<data type="boolean"/>
|
890
|
+
</attribute>
|
891
|
+
</optional>
|
892
|
+
<text/>
|
893
|
+
</define>
|
865
894
|
<define name="bprice">
|
866
895
|
<element name="price">
|
867
896
|
<attribute name="currency"/>
|
@@ -957,36 +986,34 @@
|
|
957
986
|
<ref name="SeriesType"/>
|
958
987
|
</attribute>
|
959
988
|
</optional>
|
960
|
-
<
|
989
|
+
<optional>
|
961
990
|
<ref name="formattedref"/>
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
</group>
|
989
|
-
</choice>
|
991
|
+
</optional>
|
992
|
+
<ref name="btitle"/>
|
993
|
+
<optional>
|
994
|
+
<ref name="bplace"/>
|
995
|
+
</optional>
|
996
|
+
<optional>
|
997
|
+
<ref name="seriesorganization"/>
|
998
|
+
</optional>
|
999
|
+
<optional>
|
1000
|
+
<ref name="abbreviation"/>
|
1001
|
+
</optional>
|
1002
|
+
<optional>
|
1003
|
+
<ref name="seriesfrom"/>
|
1004
|
+
</optional>
|
1005
|
+
<optional>
|
1006
|
+
<ref name="seriesto"/>
|
1007
|
+
</optional>
|
1008
|
+
<optional>
|
1009
|
+
<ref name="seriesnumber"/>
|
1010
|
+
</optional>
|
1011
|
+
<optional>
|
1012
|
+
<ref name="seriespartnumber"/>
|
1013
|
+
</optional>
|
1014
|
+
<optional>
|
1015
|
+
<ref name="seriesrun"/>
|
1016
|
+
</optional>
|
990
1017
|
</element>
|
991
1018
|
</define>
|
992
1019
|
<define name="SeriesType">
|
@@ -32,6 +32,43 @@
|
|
32
32
|
<ref name="DocumentType"/>
|
33
33
|
</element>
|
34
34
|
</define>
|
35
|
+
<define name="admonition">
|
36
|
+
<element name="admonition">
|
37
|
+
<attribute name="type">
|
38
|
+
<ref name="AdmonitionType"/>
|
39
|
+
</attribute>
|
40
|
+
<optional>
|
41
|
+
<attribute name="class"/>
|
42
|
+
</optional>
|
43
|
+
<attribute name="id">
|
44
|
+
<data type="ID"/>
|
45
|
+
</attribute>
|
46
|
+
<optional>
|
47
|
+
<attribute name="uri">
|
48
|
+
<data type="anyURI"/>
|
49
|
+
</attribute>
|
50
|
+
</optional>
|
51
|
+
<optional>
|
52
|
+
<attribute name="coverpage">
|
53
|
+
<data type="boolean"/>
|
54
|
+
</attribute>
|
55
|
+
</optional>
|
56
|
+
<optional>
|
57
|
+
<attribute name="notag">
|
58
|
+
<data type="boolean"/>
|
59
|
+
</attribute>
|
60
|
+
</optional>
|
61
|
+
<optional>
|
62
|
+
<ref name="tname"/>
|
63
|
+
</optional>
|
64
|
+
<zeroOrMore>
|
65
|
+
<ref name="paragraph-with-footnote"/>
|
66
|
+
</zeroOrMore>
|
67
|
+
<zeroOrMore>
|
68
|
+
<ref name="note"/>
|
69
|
+
</zeroOrMore>
|
70
|
+
</element>
|
71
|
+
</define>
|
35
72
|
<define name="index">
|
36
73
|
<element name="index">
|
37
74
|
<optional>
|
@@ -245,6 +282,9 @@
|
|
245
282
|
<ref name="MultilingualRenderingType"/>
|
246
283
|
</attribute>
|
247
284
|
</optional>
|
285
|
+
<optional>
|
286
|
+
<ref name="tname"/>
|
287
|
+
</optional>
|
248
288
|
<oneOrMore>
|
249
289
|
<ref name="ul_li"/>
|
250
290
|
</oneOrMore>
|
@@ -287,6 +327,9 @@
|
|
287
327
|
</choice>
|
288
328
|
</attribute>
|
289
329
|
</optional>
|
330
|
+
<optional>
|
331
|
+
<ref name="tname"/>
|
332
|
+
</optional>
|
290
333
|
<oneOrMore>
|
291
334
|
<ref name="li"/>
|
292
335
|
</oneOrMore>
|
@@ -323,6 +366,9 @@
|
|
323
366
|
<ref name="MultilingualRenderingType"/>
|
324
367
|
</attribute>
|
325
368
|
</optional>
|
369
|
+
<optional>
|
370
|
+
<ref name="tname"/>
|
371
|
+
</optional>
|
326
372
|
<oneOrMore>
|
327
373
|
<ref name="dt"/>
|
328
374
|
<ref name="dd"/>
|
@@ -851,6 +897,16 @@
|
|
851
897
|
<ref name="MultilingualRenderingType"/>
|
852
898
|
</attribute>
|
853
899
|
</optional>
|
900
|
+
<optional>
|
901
|
+
<attribute name="coverpage">
|
902
|
+
<data type="boolean"/>
|
903
|
+
</attribute>
|
904
|
+
</optional>
|
905
|
+
<optional>
|
906
|
+
<attribute name="notag">
|
907
|
+
<data type="boolean"/>
|
908
|
+
</attribute>
|
909
|
+
</optional>
|
854
910
|
<oneOrMore>
|
855
911
|
<choice>
|
856
912
|
<ref name="paragraph"/>
|
@@ -1178,6 +1234,7 @@
|
|
1178
1234
|
<ref name="concept"/>
|
1179
1235
|
<ref name="add"/>
|
1180
1236
|
<ref name="del"/>
|
1237
|
+
<ref name="span"/>
|
1181
1238
|
</choice>
|
1182
1239
|
</define>
|
1183
1240
|
<define name="add">
|
@@ -1204,6 +1261,14 @@
|
|
1204
1261
|
</choice>
|
1205
1262
|
</element>
|
1206
1263
|
</define>
|
1264
|
+
<define name="span">
|
1265
|
+
<element name="span">
|
1266
|
+
<attribute name="class"/>
|
1267
|
+
<oneOrMore>
|
1268
|
+
<ref name="TextElement"/>
|
1269
|
+
</oneOrMore>
|
1270
|
+
</element>
|
1271
|
+
</define>
|
1207
1272
|
<define name="concept">
|
1208
1273
|
<element name="concept">
|
1209
1274
|
<optional>
|
data/metanorma-csa.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
30
30
|
|
31
|
-
spec.add_dependency "metanorma-generic", "~> 2.
|
31
|
+
spec.add_dependency "metanorma-generic", "~> 2.1.1"
|
32
32
|
|
33
33
|
spec.add_development_dependency "debug"
|
34
34
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
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.
|
4
|
+
version: 2.1.2
|
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-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.7
|
251
251
|
signing_key:
|
252
252
|
specification_version: 4
|
253
253
|
summary: metanorma-csa lets you write CSA Normal Documents (CSAND) in AsciiDoc.
|