metanorma-cc 2.1.5 → 2.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -225,9 +225,9 @@
225
225
  <zeroOrMore>
226
226
  <ref name="forename"/>
227
227
  </zeroOrMore>
228
- <zeroOrMore>
229
- <ref name="initial"/>
230
- </zeroOrMore>
228
+ <optional>
229
+ <ref name="formatted-initials"/>
230
+ </optional>
231
231
  <ref name="surname"/>
232
232
  <zeroOrMore>
233
233
  <ref name="addition"/>
@@ -247,8 +247,8 @@
247
247
  <ref name="LocalizedString"/>
248
248
  </element>
249
249
  </define>
250
- <define name="initial">
251
- <element name="initial">
250
+ <define name="formatted-initials">
251
+ <element name="formatted-initials">
252
252
  <ref name="LocalizedString"/>
253
253
  </element>
254
254
  </define>
@@ -264,6 +264,9 @@
264
264
  </define>
265
265
  <define name="forename">
266
266
  <element name="forename">
267
+ <optional>
268
+ <attribute name="initial"/>
269
+ </optional>
267
270
  <ref name="LocalizedString"/>
268
271
  </element>
269
272
  </define>
@@ -1285,7 +1285,12 @@
1285
1285
  </define>
1286
1286
  <define name="span">
1287
1287
  <element name="span">
1288
- <attribute name="class"/>
1288
+ <optional>
1289
+ <attribute name="class"/>
1290
+ </optional>
1291
+ <optional>
1292
+ <attribute name="style"/>
1293
+ </optional>
1289
1294
  <oneOrMore>
1290
1295
  <ref name="TextElement"/>
1291
1296
  </oneOrMore>
@@ -108,7 +108,7 @@
108
108
  </element>
109
109
  </define>
110
110
  <define name="label">
111
- <element name="label">
111
+ <element name="identifier">
112
112
  <oneOrMore>
113
113
  <ref name="TextElement"/>
114
114
  </oneOrMore>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CC
3
- VERSION = "2.1.5".freeze
3
+ VERSION = "2.1.8".freeze
4
4
  end
5
5
  end
data/lib/metanorma-cc.rb CHANGED
@@ -4,8 +4,9 @@ require_relative "isodoc/cc/html_convert"
4
4
  require_relative "isodoc/cc/word_convert"
5
5
  require_relative "isodoc/cc/pdf_convert"
6
6
  require_relative "metanorma/cc/version"
7
+ require "metanorma"
7
8
 
8
- if defined? Metanorma
9
+ if defined? Metanorma::Registry
9
10
  require_relative "metanorma/cc"
10
11
  Metanorma::Registry.instance.register(Metanorma::CC::Processor)
11
12
  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.1.1"
31
+ spec.add_dependency "metanorma-generic", "~> 2.2.0"
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.1.5
4
+ version: 2.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-18 00:00:00.000000000 Z
11
+ date: 2022-09-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.1.1
19
+ version: 2.2.0
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.1.1
26
+ version: 2.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -177,6 +177,7 @@ extensions: []
177
177
  extra_rdoc_files: []
178
178
  files:
179
179
  - ".github/workflows/rake.yml"
180
+ - ".github/workflows/release.yml"
180
181
  - ".gitignore"
181
182
  - ".hound.yml"
182
183
  - ".rubocop.yml"
@@ -190,21 +191,17 @@ files:
190
191
  - bin/setup
191
192
  - lib/isodoc/cc/base_convert.rb
192
193
  - lib/isodoc/cc/cc.standard.xsl
193
- - lib/isodoc/cc/html/_coverpage.css
194
194
  - lib/isodoc/cc/html/_coverpage.scss
195
- - lib/isodoc/cc/html/cc.css
196
195
  - lib/isodoc/cc/html/cc.scss
197
196
  - lib/isodoc/cc/html/dots-w@2x.png
198
197
  - lib/isodoc/cc/html/dots@2x.png
199
198
  - lib/isodoc/cc/html/header.html
200
199
  - lib/isodoc/cc/html/html_cc_intro.html
201
200
  - lib/isodoc/cc/html/html_cc_titlepage.html
202
- - lib/isodoc/cc/html/htmlstyle.css
203
201
  - lib/isodoc/cc/html/htmlstyle.scss
204
202
  - lib/isodoc/cc/html/scripts.html
205
203
  - lib/isodoc/cc/html/word_cc_intro.html
206
204
  - lib/isodoc/cc/html/word_cc_titlepage.html
207
- - lib/isodoc/cc/html/wordstyle.css
208
205
  - lib/isodoc/cc/html/wordstyle.scss
209
206
  - lib/isodoc/cc/html_convert.rb
210
207
  - lib/isodoc/cc/i18n-en.yaml
@@ -233,7 +230,7 @@ homepage: https://github.com/metanorma/metanorma-cc
233
230
  licenses:
234
231
  - BSD-2-Clause
235
232
  metadata: {}
236
- post_install_message:
233
+ post_install_message:
237
234
  rdoc_options: []
238
235
  require_paths:
239
236
  - lib
@@ -248,8 +245,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
245
  - !ruby/object:Gem::Version
249
246
  version: '0'
250
247
  requirements: []
251
- rubygems_version: 3.3.16
252
- signing_key:
248
+ rubygems_version: 3.1.6
249
+ signing_key:
253
250
  specification_version: 4
254
251
  summary: metanorma-cc lets you write CalConnect standards in AsciiDoc.
255
252
  test_files: []
@@ -1,327 +0,0 @@
1
- html, body, div, span, applet, object, iframe,
2
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3
- a, abbr, acronym, address, big, cite, code,
4
- del, dfn, em, img, ins, kbd, q, s, samp,
5
- small, strike, strong, sub, sup, tt, var,
6
- b, u, i, center,
7
- ol, ul, li,
8
- fieldset, form, label, legend,
9
- table, caption, tbody, tfoot, thead, tr, th, td,
10
- article, aside, canvas, details, embed,
11
- figure, figcaption, footer, header, hgroup,
12
- menu, output, ruby, section, summary,
13
- time, mark, audio, video {
14
- margin: 0;
15
- padding: 0; }
16
-
17
- html, body, div, span, applet, object, iframe,
18
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
19
- a, abbr, acronym, address, big, cite, code,
20
- del, dfn, em, img, ins, kbd, q, s, samp,
21
- small, strike, strong, sub, sup, tt, var,
22
- b, u, i, center,
23
- dl, dt, dd, ol, ul, li,
24
- fieldset, form, label, legend,
25
- table, caption, tbody, tfoot, thead, tr, th, td,
26
- article, aside, canvas, details, embed,
27
- figure, figcaption, footer, header, hgroup,
28
- menu, nav, output, ruby, section, summary,
29
- time, mark, audio, video {
30
- border: 0;
31
- font-size: 100%; }
32
-
33
- html, body, div, span, applet, object, iframe,
34
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
35
- a, abbr, acronym, address, big, cite, code,
36
- del, dfn, em, img, ins, kbd, q, s, samp,
37
- small, strike, strong, tt, var,
38
- b, u, i, center,
39
- dl, dd, ol, ul, li,
40
- fieldset, form, label, legend,
41
- table, caption, tbody, tfoot, thead, tr, th, td,
42
- article, aside, canvas, details, embed,
43
- figure, figcaption, footer, header, hgroup,
44
- menu, nav, output, ruby, section, summary,
45
- time, mark, audio, video {
46
- vertical-align: baseline; }
47
-
48
- html, body, div, span, applet, object, iframe,
49
- p, blockquote,
50
- a, abbr, acronym, address, big, cite,
51
- del, dfn, em, img, ins, q, s,
52
- small, strike, strong, sub, sup, var,
53
- b, u, i, center,
54
- dl, dt, dd, ol, ul, li,
55
- fieldset, form, label, legend,
56
- table, caption, tbody, tfoot, thead, tr, th, td,
57
- article, aside, canvas, details, embed,
58
- figure, figcaption, footer, header, hgroup,
59
- menu, nav, output, ruby, section, summary,
60
- time, mark, audio, video {
61
- font-family: {{bodyfont}}; }
62
-
63
- code, pre, tt, kbd, samp {
64
- font-family: {{monospacefont}};
65
- font-variant-ligatures: none; }
66
-
67
- code *, pre *, tt *, kbd *, samp * {
68
- font-family: {{monospacefont}} !important;
69
- font-variant-ligatures: none; }
70
-
71
- p code, dt code, li code, label code, legend code, caption code, th code, td code,
72
- p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
73
- p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
74
- p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
75
- font-size: {{monospacefontsize}}; }
76
-
77
- article, aside, details, figcaption, figure,
78
- footer, header, hgroup, menu, nav, section {
79
- display: block; }
80
-
81
- table {
82
- border-collapse: collapse;
83
- border-spacing: 0; }
84
-
85
- h1, h2, h3, h4, h5, h6 {
86
- font-family: {{headerfont}}; }
87
-
88
- .h1, .h2, .h3, .h4, .h5, .h6 {
89
- font-family: {{headerfont}}; }
90
-
91
- blockquote, q {
92
- quotes: none; }
93
- blockquote:before, blockquote:after, q:before, q:after {
94
- content: '';
95
- content: none; }
96
-
97
- .h2Annex {
98
- font-family: {{headerfont}}; }
99
-
100
- dl {
101
- display: grid;
102
- grid-template-columns: max-content auto; }
103
- dl dt p, dl dd p {
104
- margin-top: 0; }
105
- dl dt {
106
- grid-column-start: 1; }
107
- dl dd {
108
- grid-column-start: 2; }
109
-
110
- b, strong {
111
- font-weight: bold; }
112
-
113
- div.document-stage-band, div.document-type-band {
114
- background-color: #333333; }
115
-
116
- a.FootnoteRef + a.FootnoteRef:before {
117
- content: ", ";
118
- vertical-align: super; }
119
-
120
- .addition {
121
- color: blue; }
122
-
123
- .deletion {
124
- color: red;
125
- text-decoration: line-through; }
126
-
127
- #standard-band {
128
- background-color: #0AC442; }
129
-
130
- #standard {
131
- border-bottom: solid 3px #0AC442; }
132
-
133
- #directive-band {
134
- background-color: #540D6E; }
135
-
136
- #directive {
137
- border-bottom: solid 3px #540D6E; }
138
-
139
- #guide-band {
140
- background-color: #D183C9; }
141
-
142
- #guide {
143
- border-bottom: solid 3px #D183C9; }
144
-
145
- #specification-band {
146
- background-color: #65AFFF; }
147
-
148
- #specification {
149
- border-bottom: solid 3px #65AFFF; }
150
-
151
- #report-band {
152
- background-color: #3A405A; }
153
-
154
- #report {
155
- border-bottom: solid 3px #3A405A; }
156
-
157
- #amendment-band {
158
- background-color: #F26430; }
159
-
160
- #amendment {
161
- border-bottom: solid 3px #F26430; }
162
-
163
- #corrigendum-band {
164
- background-color: #C84630; }
165
-
166
- #corrigendum {
167
- border-bottom: solid 3px #C84630; }
168
-
169
- #administrative-band {
170
- background-color: #BFAE48; }
171
-
172
- #administrative {
173
- border-bottom: solid 3px #BFAE48; }
174
-
175
- #advisory-band {
176
- background-color: #BD9391; }
177
-
178
- #advisory {
179
- border-bottom: solid 3px #BD9391; }
180
-
181
- #proposal-band {
182
- background-color: #39A0ED; }
183
-
184
- #proposal {
185
- border-bottom: solid 3px #39A0ED; }
186
-
187
- #working-draft-band {
188
- background-color: #2D7393; }
189
-
190
- #working-draft {
191
- border-bottom: solid 3px #2D7393; }
192
-
193
- #committee-draft-band {
194
- background-color: #2A6B7C; }
195
-
196
- #committee-draft {
197
- border-bottom: solid 3px #2A6B7C; }
198
-
199
- #draft-standard-band {
200
- background-color: #1C7F7A; }
201
-
202
- #draft-standard {
203
- border-bottom: solid 3px #1C7F7A; }
204
-
205
- #final-draft-band {
206
- background-color: #53C170; }
207
-
208
- #final-draft {
209
- border-bottom: solid 3px #53C170; }
210
-
211
- #published-band {
212
- background-color: #069E2D; }
213
-
214
- #published {
215
- border-bottom: solid 3px #069E2D; }
216
-
217
- #withdrawn-band {
218
- background-color: #004E64; }
219
-
220
- #withdrawn {
221
- border-bottom: solid 3px #004E64; }
222
-
223
- #cancelled-band {
224
- background-color: #2E382E; }
225
-
226
- #cancelled {
227
- border-bottom: solid 3px #2E382E; }
228
-
229
- .coverpage {
230
- text-align: center;
231
- padding-left: 1.5em; }
232
-
233
- .wrapper-top {
234
- background-color: #0e1a85;
235
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAABYlAAAWJQFJUiTwAAADwUlEQVR4nO3YgQ2AMAwDwcAiWZ1NizrH30lIeIEq9nPOGSDqPgC7+93v/suy3Mmvhx+6VAAIcwFAmc4nyzYAIMgGAGEuACirdyBZtgEASTYACHMBQFm9A8myDQBIsgFAmAsAyuodSJZtAECSDQDCXABQVu9AsmwDAJJsABDmAoCyegeSZRsAkGQDgDAXAJTVO5As2wCAJBsAhLkAoKzegWTZBgAk2QAgzAUAZfUOJMs2ACDJBgBhLgAoq3cgWbYBAEk2AAhzAUBZvQPJsg0ASLIBQJgLAMrqHUiWbQBAkg0AwlwAUFbvQLJsAwCSbAAQ5gKAsnoHkmUbAJBkA4AwFwCU1TuQLNsAgCQbAIS5AKCs3oFk2QYAJNkAIMwFAGX1DiTLNgAgyQYAYS4AKKt3IFm2AQBJNgAIcwFAWb0DybINAEiyAUCYCwDK6h1Ilm0AQJINAMJcAFBW70CybAMAkmwAEOYCgLJ6B5JlGwCQZAOAMBcAlNU7kCzbAIAkGwCEuQCgrN6BZNkGACTZACDMBQBl9Q4kyzYAIMkGAGEuACirdyBZtgEASTYACHMBQFm9A8myDQBIsgFAmAsAyuodSJZtAECSDQDCXABQVu9AsmwDAJJsABDmAoCyegeSZRsAkGQDgDAXAJTVO5As2wCAJBsAhLkAoKzegWTZBgAk2QAgzAUAZfUOJMs2ACDJBgBhLgAoq3cgWbYBAEk2AAhzAUBZvQPJsg0ASLIBQJgLAMrqHUiWbQBAkg0AwlwAUFbvQLJsAwCSbAAQ5gKAsnoHkmUbAJBkA4AwFwCU1TuQLNsAgCQbAIS5AKCs3oFk2QYAJNkAIMwFAGX1DiTLNgAgyQYAYS4AKKt3IFm2AQBJNgAIcwFAWb0DybINAEiyAUCYCwDK6h1Ilm0AQJINAMJcAFBW70CybAMAkmwAEOYCgLJ6B5JlGwCQZAOAMBcAlNU7kCzbAIAkGwCEuQCgrN6BZNkGACTZACDMBQBl9Q4kyzYAIMkGAGEuACirdyBZtgEASTYACHMBQFm9A8myDQBIsgFAmAsAyuodSJZtAECSDQDCXABQVu9AsmwDAJJsABDmAoCyegeSZRsAkGQDgDAXAJTVO5As2wCAJBsAhLkAoKzegWTZBgAk2QAgzAUAZfUOJMs2ACDJBgBhLgAoq3cgWbYBAEk2AAhzAUBZvQPJsg0ASLIBQJgLAMrqHUiWbQBAkg0AwlwAUFbvQLJsAwCSbAAQ5gKAsnoHkmUbAJBkA4AwFwCU1TuQLNsAgCQbAFTNzA9ggAr9aahO8QAAAABJRU5ErkJggg==");
236
- color: #ffffff;
237
- padding: 2em 0; }
238
-
239
- .doc-number {
240
- font-size: 0.5em;
241
- font-family: {{bodyfont}}; }
242
-
243
- .coverpage-maturity {
244
- font-family: {{bodyfont}};
245
- font-weight: 400;
246
- font-size: 1em;
247
- margin: 0 0 2em 0;
248
- text-transform: uppercase; }
249
-
250
- .coverpage-title {
251
- padding-bottom: 0.5em;
252
- font-family: {{headerfont}};
253
- font-size: 1.2em;
254
- line-height: 1.2em;
255
- font-weight: 600;
256
- padding-left: 1em;
257
- padding-right: 1em; }
258
-
259
- .title-section1 {
260
- padding: 0 2em 0 3em; }
261
-
262
- .prefatory-section {
263
- padding: 0 3em 0 6em; }
264
-
265
- .zzSTDTitle1, .MsoCommentText {
266
- display: none; }
267
-
268
- .coverpage-logo span, .coverpage-tc-name span {
269
- font-family: {{bodyfont}};
270
- text-transform: uppercase;
271
- font-weight: 600; }
272
-
273
- .coverpage-tc-name {
274
- font-size: 1.2em;
275
- line-height: 1.2em;
276
- margin: 0.25em 0; }
277
-
278
- .coverpage-contributors {
279
- margin-top: 1em;
280
- line-height: 1.5em;
281
- font-weight: 300; }
282
- .coverpage-contributors .role {
283
- font-variant-caps: all-small-caps;
284
- background: #f7f7f7;
285
- border-radius: 5px;
286
- padding: 0.1em 0.5em;
287
- margin-left: 1em;
288
- color: #485094;
289
- font-size: 0.9em;
290
- font-weight: 900; }
291
- .coverpage-contributors .person {
292
- display: block;
293
- font-weight: 300; }
294
-
295
- .coverpage-doc-identity {
296
- font-size: 2em;
297
- line-height: 2em; }
298
-
299
- .coverpage-title .title-second {
300
- display: none; }
301
-
302
- .coverpage-stage-block {
303
- font-family: {{bodyfont}};
304
- font-weight: 700;
305
- font-size: 1.25em;
306
- margin: 2em 0em 2em 0em;
307
- text-transform: uppercase; }
308
-
309
- .coverpage-warning {
310
- border-top: solid 1px #f36f36;
311
- border-bottom: solid 1px #f36f36;
312
- margin: 1em 2em;
313
- color: #485094;
314
- padding: 1em; }
315
- .coverpage-warning .title {
316
- color: #f36f36;
317
- font-family: {{headerfont}};
318
- font-weight: 700;
319
- text-transform: uppercase;
320
- font-size: 1.2em; }
321
-
322
- .copyright {
323
- padding: 1em;
324
- font-size: 0.9em;
325
- text-align: left; }
326
- .copyright .name, .copyright .address {
327
- color: #485094; }