metanorma-cc 2.0.8 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,16 @@ 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
146
  font-family: {{bodyfont}};
148
147
  mso-fareast-font-family: {{bodyfont}};
149
148
  mso-bidi-font-family: {{bodyfont}};
150
149
  mso-ansi-language: EN-GB; }
151
150
 
151
+ p.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote {
152
+ font-size: {{smallerfontsize}};
153
+ font-family: {{bodyfont}}; }
154
+
152
155
  p.ANNEX, li.ANNEX, div.ANNEX {
153
156
  mso-style-name: ANNEX;
154
157
  mso-style-priority: 10;
@@ -495,12 +498,14 @@ p.Quote, li.Quote, div.Quote {
495
498
  line-height: 12.0pt;
496
499
  mso-pagination: widow-orphan;
497
500
  tab-stops: 20.15pt;
498
- font-size: {{normalfontsize}};
499
- font-family: {{bodyfont}};
500
501
  mso-fareast-font-family: {{bodyfont}};
501
502
  mso-bidi-font-family: {{bodyfont}};
502
503
  mso-ansi-language: EN-GB; }
503
504
 
505
+ p.Quote, li.Quote {
506
+ font-size: {{normalfontsize}};
507
+ font-family: {{bodyfont}}; }
508
+
504
509
  p.QuoteAttribution {
505
510
  text-align: right;
506
511
  mso-style-priority: 99;
@@ -530,8 +535,6 @@ p.Admonition, li.Admonition, div.Admonition {
530
535
  mso-border-themecolor: accent1;
531
536
  padding: 0cm;
532
537
  mso-padding-alt: 10.0pt 10.0pt 10.0pt 10.0pt;
533
- font-size: 12.0pt;
534
- font-family: {{bodyfont}};
535
538
  mso-ascii-font-family: {{bodyfont}};
536
539
  mso-ascii-theme-font: minor-latin;
537
540
  mso-fareast-font-family: {{bodyfont}};
@@ -542,7 +545,11 @@ p.Admonition, li.Admonition, div.Admonition {
542
545
  mso-bidi-theme-font: minor-bidi;
543
546
  color: #4472C4;
544
547
  mso-themecolor: accent1;
545
- mso-ansi-language: EN-AU;
548
+ mso-ansi-language: EN-AU; }
549
+
550
+ p.Admonition, li.Admonition {
551
+ font-size: 12.0pt;
552
+ font-family: {{bodyfont}};
546
553
  font-style: italic; }
547
554
 
548
555
  p.Code, li.Code, div.Code {
@@ -767,7 +774,9 @@ aside {
767
774
 
768
775
  p.example, li.example, td.example {
769
776
  margin-right: 0pt;
770
- margin-left: 0pt; }
777
+ margin-left: 0pt;
778
+ font-size: {{smallerfontsize}};
779
+ font-family: {{bodyfont}}; }
771
780
 
772
781
  div.example {
773
782
  margin-top: 0cm;
@@ -776,9 +785,7 @@ div.example {
776
785
  margin-left: 36.0pt; }
777
786
 
778
787
  p.example, li.example, div.example, td.example {
779
- mso-pagination: none;
780
- font-size: {{smallerfontsize}};
781
- font-family: {{bodyfont}}; }
788
+ mso-pagination: none; }
782
789
 
783
790
  td.example p.MsoListParagraph {
784
791
  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,15 @@ 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
139
  font-family:$bodyfont;
141
140
  mso-fareast-font-family:$bodyfont;
142
141
  mso-bidi-font-family:$bodyfont;
143
142
  mso-ansi-language:EN-GB;}
143
+ p.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote {
144
+ font-size:$smallerfontsize;
145
+ font-family:$bodyfont;
146
+ }
144
147
  p.ANNEX, li.ANNEX, div.ANNEX
145
148
  {mso-style-name:ANNEX;
146
149
  mso-style-priority:10;
@@ -472,11 +475,13 @@ p.Quote, li.Quote, div.Quote
472
475
  line-height:12.0pt;
473
476
  mso-pagination:widow-orphan;
474
477
  tab-stops:20.15pt;
475
- font-size:$normalfontsize;
476
- font-family:$bodyfont;
477
478
  mso-fareast-font-family:$bodyfont;
478
479
  mso-bidi-font-family:$bodyfont;
479
480
  mso-ansi-language:EN-GB;}
481
+ p.Quote, li.Quote {
482
+ font-size:$normalfontsize;
483
+ font-family:$bodyfont;
484
+ }
480
485
  p.QuoteAttribution
481
486
  {text-align:right;
482
487
  mso-style-priority:99;
@@ -506,8 +511,6 @@ p.Admonition, li.Admonition, div.Admonition
506
511
  mso-border-themecolor:accent1;
507
512
  padding:0cm;
508
513
  mso-padding-alt:10.0pt 10.0pt 10.0pt 10.0pt;
509
- font-size:12.0pt;
510
- font-family:$bodyfont;
511
514
  mso-ascii-font-family:$bodyfont;
512
515
  mso-ascii-theme-font:minor-latin;
513
516
  mso-fareast-font-family:$bodyfont;
@@ -519,6 +522,10 @@ p.Admonition, li.Admonition, div.Admonition
519
522
  color:#4472C4;
520
523
  mso-themecolor:accent1;
521
524
  mso-ansi-language:EN-AU;
525
+ }
526
+ p.Admonition, li.Admonition {
527
+ font-size:12.0pt;
528
+ font-family:$bodyfont;
522
529
  font-style:italic;}
523
530
  p.Code, li.Code, div.Code
524
531
  {mso-style-name:Code;
@@ -722,6 +729,8 @@ margin-left: -36.0pt;
722
729
  p.example, li.example, td.example {
723
730
  margin-right: 0pt;
724
731
  margin-left: 0pt;
732
+ font-size:$smallerfontsize;
733
+ font-family:$bodyfont;
725
734
  }
726
735
 
727
736
  div.example {
@@ -733,8 +742,7 @@ div.example {
733
742
 
734
743
  p.example, li.example, div.example, td.example {
735
744
  mso-pagination:none;
736
- font-size:$smallerfontsize;
737
- font-family:$bodyfont;}
745
+ }
738
746
 
739
747
  td.example p.MsoListParagraph {
740
748
  font-size: $smallerfontsize;
@@ -73,6 +73,8 @@
73
73
  </div>
74
74
  {% endif %}
75
75
 
76
+ <div class="coverpage-warning" id="coverpage-note-destination"/>
77
+
76
78
  <div class="copyright">
77
79
  <div class="year">
78
80
  <div id="boilerplate-copyright-destination"/>
@@ -904,6 +904,12 @@ pre {
904
904
  font-size: 1em;
905
905
  text-align: center; }
906
906
 
907
+ .ListTitle {
908
+ font-weight: 700;
909
+ font-size: 1em;
910
+ text-align: center;
911
+ text-align: left; }
912
+
907
913
  .Note, .Admonition {
908
914
  color: #47430c;
909
915
  padding: 0.25em;
@@ -251,6 +251,7 @@ pre {
251
251
  @include recommendationBlock();
252
252
  }
253
253
 
254
+ @include listBlock();
254
255
 
255
256
  .Note, .Admonition {
256
257
  color: #47430c;
@@ -3,7 +3,7 @@ normal'><span lang="EN-GB" style='font-size:14.0pt;mso-no-proof:yes'>{{ docnumbe
3
3
  style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:14.0pt'><o:p></o:p></span></b></p>
4
4
 
5
5
  <p class="MsoNormal" align="right" style='text-align:right'><span lang="EN-GB"
6
- style='mso-no-proof:yes'>CalConnect&nbsp;</span><span lang="EN-GB"><span
6
+ style='mso-no-proof:yes'>CalConnect&#xa0;</span><span lang="EN-GB"><span
7
7
  style='mso-no-proof:yes'>{{ tc | join: "/" }}</span></p>
8
8
 
9
9
  <p class="MsoNormal" align="center" style='text-align:center;line-height:18.0pt;margin-bottom:0.0pt'><b
@@ -26,7 +26,7 @@ style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:24.0pt'>
26
26
  </p>
27
27
  {% endfor %}
28
28
 
29
- <p class="MsoNormal" style='margin-top:100.0pt'><span lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
29
+ <p class="MsoNormal" style='margin-top:100.0pt'><span lang="EN-GB"><o:p>&#xa0;</o:p></span></p>
30
30
 
31
31
  <div style='mso-element:para-border-div;border:solid windowtext 1.0pt;
32
32
  mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;
@@ -43,7 +43,7 @@ mso-border-alt:solid windowtext .5pt;padding:0cm;mso-padding-alt:1.0pt 4.0pt 1.0
43
43
  {% endif %}
44
44
  </div>
45
45
 
46
- <p class="MsoNormal" style='margin-bottom:6.0pt'><span lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
46
+ <p class="MsoNormal" style='margin-bottom:6.0pt'><span lang="EN-GB"><o:p>&#xa0;</o:p></span></p>
47
47
 
48
48
  {% if unpublished %}
49
49
  <div style='mso-element:para-border-div;border:solid windowtext 1.0pt;
@@ -55,6 +55,11 @@ margin-left:4.25pt;margin-right:4.25pt'>
55
55
  </div>
56
56
  {% endif %}
57
57
 
58
+ <div style='mso-element:para-border-div;border:solid windowtext 1.0pt;
59
+ mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;
60
+ margin-left:4.25pt;margin-right:4.25pt' class="coverpage-warning" id="coverpage-note-destination"/>
61
+
62
+
58
63
  <div align="center" style='text-align:center'>
59
64
  <div id="boilerplate-copyright-destination"/>
60
65
  </div>
@@ -10,13 +10,13 @@ module IsoDoc
10
10
  @meta = Metadata.new(lang, script, i18n)
11
11
  end
12
12
 
13
- def xref_init(lang, script, klass, i18n, options)
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
18
  def i18n_init(lang, script, i18nyaml = nil)
19
- @i18n = I18n.new(lang, script, i18nyaml || @i18nyaml)
19
+ @i18n = I18n.new(lang, script, i18nyaml: i18nyaml || @i18nyaml)
20
20
  end
21
21
  end
22
22
  end
@@ -614,12 +614,12 @@
614
614
  <optional>
615
615
  <ref name="fetched"/>
616
616
  </optional>
617
- <choice>
618
- <oneOrMore>
619
- <ref name="btitle"/>
620
- </oneOrMore>
617
+ <optional>
621
618
  <ref name="formattedref"/>
622
- </choice>
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
- <optional>
855
- <attribute name="uri">
856
- <data type="anyURI"/>
857
- </attribute>
858
- </optional>
859
- <optional>
860
- <attribute name="region"/>
861
- </optional>
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
- <choice>
989
+ <optional>
961
990
  <ref name="formattedref"/>
962
- <group>
963
- <ref name="btitle"/>
964
- <optional>
965
- <ref name="bplace"/>
966
- </optional>
967
- <optional>
968
- <ref name="seriesorganization"/>
969
- </optional>
970
- <optional>
971
- <ref name="abbreviation"/>
972
- </optional>
973
- <optional>
974
- <ref name="seriesfrom"/>
975
- </optional>
976
- <optional>
977
- <ref name="seriesto"/>
978
- </optional>
979
- <optional>
980
- <ref name="seriesnumber"/>
981
- </optional>
982
- <optional>
983
- <ref name="seriespartnumber"/>
984
- </optional>
985
- <optional>
986
- <ref name="seriesrun"/>
987
- </optional>
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>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CC
3
- VERSION = "2.0.8".freeze
3
+ VERSION = "2.1.2".freeze
4
4
  end
5
5
  end
data/metanorma-cc.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.0.0"
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-cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
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-04-18 00:00:00.000000000 Z
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.0.0
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.0.0
26
+ version: 2.1.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -188,8 +188,6 @@ files:
188
188
  - bin/console
189
189
  - bin/rspec
190
190
  - bin/setup
191
- - docs/navigation.adoc
192
- - docs/quickstart.adoc
193
191
  - lib/isodoc/cc/base_convert.rb
194
192
  - lib/isodoc/cc/cc.standard.xsl
195
193
  - lib/isodoc/cc/html/_coverpage.css
@@ -250,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
248
  - !ruby/object:Gem::Version
251
249
  version: '0'
252
250
  requirements: []
253
- rubygems_version: 3.3.9
251
+ rubygems_version: 3.3.7
254
252
  signing_key:
255
253
  specification_version: 4
256
254
  summary: metanorma-cc lets you write CalConnect standards in AsciiDoc.
data/docs/navigation.adoc DELETED
@@ -1,8 +0,0 @@
1
- ---
2
- items:
3
- - title: Introduction
4
- items:
5
- - { title: Quickstart, path: quickstart/ }
6
- ---
7
-
8
- = Navigation