metanorma-csd 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/csd/biblio.rng +32 -4
- data/lib/isodoc/csd/html/csd.scss +13 -0
- data/lib/isodoc/csd/html/htmlstyle.scss +7 -1
- data/lib/isodoc/csd/html/wordstyle.scss +6 -90
- data/lib/isodoc/csd/html_convert.rb +4 -7
- data/lib/isodoc/csd/pdf_convert.rb +4 -7
- data/lib/isodoc/csd/word_convert.rb +4 -7
- data/lib/metanorma/csd/processor.rb +2 -2
- data/lib/metanorma/csd/version.rb +1 -1
- data/metanorma-csd.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc93b5ef9c1b130f88bc1df2a147df5e5e61f05d45b2f93d2758627a0eae0269
|
4
|
+
data.tar.gz: d4014ba691ed9d6ad473b590e659883ff2c0fa3fe668d22bde6181e1b417688f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ddf5db4d14bf62b74bec8712c37bd7e60e64128a29f6b33015cf87722d56a1d6dafdc4246dc2ff2f537b8e8847f43e2b9c8e2a8cf523b99cb8182bdfb638207
|
7
|
+
data.tar.gz: a15c74e3fd3ab404b3512623d39e0b1fdab76f9b23a9ec9331dab7de2a4b01b2d87cc201e2b38e0893ed94a462d841ae6cb43d474be5bfb3325f7b559e219ef2
|
@@ -414,6 +414,20 @@
|
|
414
414
|
<ref name="BibliographicItem"/>
|
415
415
|
</element>
|
416
416
|
</define>
|
417
|
+
<define name="relaton_collection">
|
418
|
+
<element name="relaton-collection">
|
419
|
+
<optional>
|
420
|
+
<attribute name="type"/>
|
421
|
+
</optional>
|
422
|
+
<ref name="btitle"/>
|
423
|
+
<zeroOrMore>
|
424
|
+
<ref name="contributor"/>
|
425
|
+
</zeroOrMore>
|
426
|
+
<zeroOrMore>
|
427
|
+
<ref name="docrelation"/>
|
428
|
+
</zeroOrMore>
|
429
|
+
</element>
|
430
|
+
</define>
|
417
431
|
<define name="BibItemType" combine="choice">
|
418
432
|
<choice>
|
419
433
|
<value>article</value>
|
@@ -531,7 +545,10 @@
|
|
531
545
|
</define>
|
532
546
|
<define name="fetched">
|
533
547
|
<element name="fetched">
|
534
|
-
<
|
548
|
+
<choice>
|
549
|
+
<data type="dateTime"/>
|
550
|
+
<data type="date"/>
|
551
|
+
</choice>
|
535
552
|
</element>
|
536
553
|
</define>
|
537
554
|
<define name="validity">
|
@@ -549,17 +566,26 @@
|
|
549
566
|
</define>
|
550
567
|
<define name="validityBegins">
|
551
568
|
<element name="validityBegins">
|
552
|
-
<
|
569
|
+
<choice>
|
570
|
+
<data type="dateTime"/>
|
571
|
+
<data type="date"/>
|
572
|
+
</choice>
|
553
573
|
</element>
|
554
574
|
</define>
|
555
575
|
<define name="validityEnds">
|
556
576
|
<element name="validityEnds">
|
557
|
-
<
|
577
|
+
<choice>
|
578
|
+
<data type="dateTime"/>
|
579
|
+
<data type="date"/>
|
580
|
+
</choice>
|
558
581
|
</element>
|
559
582
|
</define>
|
560
583
|
<define name="validityRevision">
|
561
584
|
<element name="revision">
|
562
|
-
<
|
585
|
+
<choice>
|
586
|
+
<data type="dateTime"/>
|
587
|
+
<data type="date"/>
|
588
|
+
</choice>
|
563
589
|
</element>
|
564
590
|
</define>
|
565
591
|
<define name="TypedTitleString">
|
@@ -744,6 +770,7 @@
|
|
744
770
|
<element name="from">
|
745
771
|
<choice>
|
746
772
|
<data type="dateTime"/>
|
773
|
+
<data type="date"/>
|
747
774
|
<data type="gYear"/>
|
748
775
|
</choice>
|
749
776
|
</element>
|
@@ -752,6 +779,7 @@
|
|
752
779
|
<element name="to">
|
753
780
|
<choice>
|
754
781
|
<data type="dateTime"/>
|
782
|
+
<data type="date"/>
|
755
783
|
<data type="gYear"/>
|
756
784
|
</choice>
|
757
785
|
</element>
|
@@ -535,6 +535,8 @@ table.MsoISOTable
|
|
535
535
|
mso-yfti-tbllook:480;
|
536
536
|
mso-border-insideh:.75pt solid windowtext;
|
537
537
|
mso-border-insidev:.75pt solid windowtext;
|
538
|
+
mso-table-anchor-vertical:paragraph;
|
539
|
+
mso-table-bspace:12.0pt;
|
538
540
|
font-size:10.0pt;
|
539
541
|
font-family:$bodyfont;}
|
540
542
|
table.MsoISOTable tr
|
@@ -561,6 +563,8 @@ table.MsoTableGrid
|
|
561
563
|
mso-para-margin:0cm;
|
562
564
|
mso-para-margin-bottom:.0001pt;
|
563
565
|
mso-pagination:widow-orphan;
|
566
|
+
mso-table-anchor-vertical:paragraph;
|
567
|
+
mso-table-bspace:12.0pt;
|
564
568
|
font-size:10.0pt;
|
565
569
|
font-family:$bodyfont;}
|
566
570
|
td { page-break-inside:avoid; }
|
@@ -617,6 +621,15 @@ p.example, li.example, div.example, td.example
|
|
617
621
|
mso-pagination:none;
|
618
622
|
font-size:10.0pt;
|
619
623
|
font-family:$bodyfont;}
|
624
|
+
|
625
|
+
td.example p.MsoListParagraph {
|
626
|
+
font-size: 10.0pt;
|
627
|
+
}
|
628
|
+
table.example {
|
629
|
+
margin-bottom:12pt;
|
630
|
+
}
|
631
|
+
|
632
|
+
|
620
633
|
span.note_label, span.example_label, td.example_label, td.note_label
|
621
634
|
{
|
622
635
|
font-size: 10.0pt;
|
@@ -82,9 +82,8 @@ p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
|
|
82
82
|
mso-style-qformat:yes;
|
83
83
|
margin-top:0cm;
|
84
84
|
margin-right:0cm;
|
85
|
-
margin-bottom:
|
85
|
+
margin-bottom:12.0pt;
|
86
86
|
/* do not put in margin-left, it is specific to list level */
|
87
|
-
margin-bottom:.0001pt;
|
88
87
|
mso-add-space:auto;
|
89
88
|
mso-pagination:widow-orphan;
|
90
89
|
font-size:10.5pt;
|
@@ -98,9 +97,8 @@ p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphC
|
|
98
97
|
mso-style-type:export-only;
|
99
98
|
margin-top:0cm;
|
100
99
|
margin-right:0cm;
|
101
|
-
margin-bottom:
|
100
|
+
margin-bottom:12.0pt;
|
102
101
|
/* do not put in margin-left, it is specific to list level */
|
103
|
-
margin-bottom:.0001pt;
|
104
102
|
mso-add-space:auto;
|
105
103
|
mso-pagination:widow-orphan;
|
106
104
|
font-size:10.5pt;
|
@@ -114,9 +112,8 @@ p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagrap
|
|
114
112
|
mso-style-type:export-only;
|
115
113
|
margin-top:0cm;
|
116
114
|
margin-right:0cm;
|
117
|
-
margin-bottom:
|
115
|
+
margin-bottom:12.0pt;
|
118
116
|
/* do not put in margin-left, it is specific to list level */
|
119
|
-
margin-bottom:.0001pt;
|
120
117
|
mso-add-space:auto;
|
121
118
|
mso-pagination:widow-orphan;
|
122
119
|
font-size:10.5pt;
|
@@ -130,9 +127,8 @@ p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxS
|
|
130
127
|
mso-style-type:export-only;
|
131
128
|
margin-top:0cm;
|
132
129
|
margin-right:0cm;
|
133
|
-
margin-bottom:0cm;
|
134
|
-
/* do not put in margin-left, it is specific to list level */
|
135
130
|
margin-bottom:12.0pt;
|
131
|
+
/* do not put in margin-left, it is specific to list level */
|
136
132
|
mso-add-space:auto;
|
137
133
|
mso-pagination:widow-orphan;
|
138
134
|
font-size:10.5pt;
|
@@ -280,19 +276,6 @@ a:visited, span.MsoHyperlinkFollowed
|
|
280
276
|
color:purple;
|
281
277
|
text-decoration:underline;
|
282
278
|
text-underline:single;}
|
283
|
-
p
|
284
|
-
{mso-style-priority:99;
|
285
|
-
mso-margin-top-alt:auto;
|
286
|
-
margin-right:0cm;
|
287
|
-
mso-margin-bottom-alt:auto;
|
288
|
-
margin-left:0cm;
|
289
|
-
mso-pagination:widow-orphan;
|
290
|
-
font-size:10.0pt;
|
291
|
-
font-family:$bodyfont;
|
292
|
-
mso-fareast-font-family:"MS Mincho";
|
293
|
-
mso-bidi-font-family:"Times New Roman";
|
294
|
-
mso-ansi-language:EN-US;
|
295
|
-
mso-fareast-language:EN-US;}
|
296
279
|
p.MsoCommentSubject, li.MsoCommentSubject, div.MsoCommentSubject
|
297
280
|
{mso-style-noshow:yes;
|
298
281
|
mso-style-unhide:no;
|
@@ -318,75 +301,6 @@ p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
|
|
318
301
|
mso-fareast-font-family:"Times New Roman";
|
319
302
|
mso-ansi-language:EN-US;
|
320
303
|
mso-fareast-language:EN-US;}
|
321
|
-
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
|
322
|
-
{mso-style-priority:34;
|
323
|
-
mso-style-unhide:no;
|
324
|
-
mso-style-qformat:yes;
|
325
|
-
margin-top:0cm;
|
326
|
-
margin-right:0cm;
|
327
|
-
margin-bottom:12.0pt;
|
328
|
-
margin-left:36.0pt;
|
329
|
-
mso-add-space:auto;
|
330
|
-
mso-pagination:widow-orphan;
|
331
|
-
font-size:10.5pt;
|
332
|
-
mso-bidi-font-size:11.0pt;
|
333
|
-
font-family:"Arial",sans-serif;
|
334
|
-
mso-fareast-font-family:"Times New Roman";
|
335
|
-
mso-ansi-language:EN-US;
|
336
|
-
mso-fareast-language:EN-US;}
|
337
|
-
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
|
338
|
-
{mso-style-priority:34;
|
339
|
-
mso-style-unhide:no;
|
340
|
-
mso-style-qformat:yes;
|
341
|
-
mso-style-type:export-only;
|
342
|
-
margin-top:0cm;
|
343
|
-
margin-right:0cm;
|
344
|
-
margin-bottom:0cm;
|
345
|
-
margin-left:36.0pt;
|
346
|
-
margin-bottom:.0001pt;
|
347
|
-
mso-add-space:auto;
|
348
|
-
mso-pagination:widow-orphan;
|
349
|
-
font-size:10.5pt;
|
350
|
-
mso-bidi-font-size:11.0pt;
|
351
|
-
font-family:"Arial",sans-serif;
|
352
|
-
mso-fareast-font-family:"Times New Roman";
|
353
|
-
mso-ansi-language:EN-US;
|
354
|
-
mso-fareast-language:EN-US;}
|
355
|
-
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
|
356
|
-
{mso-style-priority:34;
|
357
|
-
mso-style-unhide:no;
|
358
|
-
mso-style-qformat:yes;
|
359
|
-
mso-style-type:export-only;
|
360
|
-
margin-top:0cm;
|
361
|
-
margin-right:0cm;
|
362
|
-
margin-bottom:0cm;
|
363
|
-
margin-left:36.0pt;
|
364
|
-
margin-bottom:.0001pt;
|
365
|
-
mso-add-space:auto;
|
366
|
-
mso-pagination:widow-orphan;
|
367
|
-
font-size:10.5pt;
|
368
|
-
mso-bidi-font-size:11.0pt;
|
369
|
-
font-family:"Arial",sans-serif;
|
370
|
-
mso-fareast-font-family:"Times New Roman";
|
371
|
-
mso-ansi-language:EN-US;
|
372
|
-
mso-fareast-language:EN-US;}
|
373
|
-
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
|
374
|
-
{mso-style-priority:34;
|
375
|
-
mso-style-unhide:no;
|
376
|
-
mso-style-qformat:yes;
|
377
|
-
mso-style-type:export-only;
|
378
|
-
margin-top:0cm;
|
379
|
-
margin-right:0cm;
|
380
|
-
margin-bottom:12.0pt;
|
381
|
-
margin-left:36.0pt;
|
382
|
-
mso-add-space:auto;
|
383
|
-
mso-pagination:widow-orphan;
|
384
|
-
font-size:10.5pt;
|
385
|
-
mso-bidi-font-size:11.0pt;
|
386
|
-
font-family:"Arial",sans-serif;
|
387
|
-
mso-fareast-font-family:"Times New Roman";
|
388
|
-
mso-ansi-language:EN-US;
|
389
|
-
mso-fareast-language:EN-US;}
|
390
304
|
span.blackgraphtxsidebar
|
391
305
|
{mso-style-name:blackgraphtxsidebar;
|
392
306
|
mso-style-unhide:no;
|
@@ -1173,6 +1087,8 @@ table.MsoNormalTable
|
|
1173
1087
|
mso-para-margin-bottom:.0001pt;
|
1174
1088
|
mso-pagination:widow-orphan;
|
1175
1089
|
font-size:10.0pt;
|
1090
|
+
mso-table-anchor-vertical:paragraph;
|
1091
|
+
mso-table-bspace:12.0pt;
|
1176
1092
|
font-family:$bodyfont;}
|
1177
1093
|
br.section
|
1178
1094
|
{page-break-before:always;
|
@@ -35,16 +35,13 @@ module IsoDoc
|
|
35
35
|
def annex_name(annex, name, div)
|
36
36
|
div.h1 **{ class: "Annex" } do |t|
|
37
37
|
t << "#{get_anchors[annex['id']][:label]} "
|
38
|
-
t
|
38
|
+
t.br
|
39
|
+
t.b do |b|
|
40
|
+
name&.children&.each { |c2| parse(c2, b) }
|
41
|
+
end
|
39
42
|
end
|
40
43
|
end
|
41
44
|
|
42
|
-
def annex_name_lbl(clause, num)
|
43
|
-
obl = l10n("(#{@inform_annex_lbl})")
|
44
|
-
obl = l10n("(#{@norm_annex_lbl})") if clause["obligation"] == "normative"
|
45
|
-
l10n("<b>#{@annex_lbl} #{num}</b> #{obl}")
|
46
|
-
end
|
47
|
-
|
48
45
|
def pre_parse(node, out)
|
49
46
|
out.pre node.text # content.gsub(/</, "<").gsub(/>/, ">")
|
50
47
|
end
|
@@ -35,16 +35,13 @@ module IsoDoc
|
|
35
35
|
def annex_name(annex, name, div)
|
36
36
|
div.h1 **{ class: "Annex" } do |t|
|
37
37
|
t << "#{get_anchors[annex['id']][:label]} "
|
38
|
-
t
|
38
|
+
t.br
|
39
|
+
t.b do |b|
|
40
|
+
name&.children&.each { |c2| parse(c2, b) }
|
41
|
+
end
|
39
42
|
end
|
40
43
|
end
|
41
44
|
|
42
|
-
def annex_name_lbl(clause, num)
|
43
|
-
obl = l10n("(#{@inform_annex_lbl})")
|
44
|
-
obl = l10n("(#{@norm_annex_lbl})") if clause["obligation"] == "normative"
|
45
|
-
l10n("<b>#{@annex_lbl} #{num}</b> #{obl}")
|
46
|
-
end
|
47
|
-
|
48
45
|
def pre_parse(node, out)
|
49
46
|
out.pre node.text # content.gsub(/</, "<").gsub(/>/, ">")
|
50
47
|
end
|
@@ -38,16 +38,13 @@ module IsoDoc
|
|
38
38
|
def annex_name(annex, name, div)
|
39
39
|
div.h1 **{ class: "Annex" } do |t|
|
40
40
|
t << "#{get_anchors[annex['id']][:label]} "
|
41
|
-
t
|
41
|
+
t.br
|
42
|
+
t.b do |b|
|
43
|
+
name&.children&.each { |c2| parse(c2, b) }
|
44
|
+
end
|
42
45
|
end
|
43
46
|
end
|
44
47
|
|
45
|
-
def annex_name_lbl(clause, num)
|
46
|
-
obl = l10n("(#{@inform_annex_lbl})")
|
47
|
-
obl = l10n("(#{@norm_annex_lbl})") if clause["obligation"] == "normative"
|
48
|
-
l10n("<b>#{@annex_lbl} #{num}</b> #{obl}")
|
49
|
-
end
|
50
|
-
|
51
48
|
def pre_parse(node, out)
|
52
49
|
out.pre node.text # content.gsub(/</, "<").gsub(/>/, ">")
|
53
50
|
end
|
@@ -22,8 +22,8 @@ module Metanorma
|
|
22
22
|
"Metanorma::Csd #{Metanorma::Csd::VERSION}"
|
23
23
|
end
|
24
24
|
|
25
|
-
def input_to_isodoc(file)
|
26
|
-
Metanorma::Input::Asciidoc.new.process(file, @asciidoctor_backend)
|
25
|
+
def input_to_isodoc(file, filename)
|
26
|
+
Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend)
|
27
27
|
end
|
28
28
|
|
29
29
|
def output(isodoc_node, outname, format, options={})
|
data/metanorma-csd.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
30
|
spec.add_dependency "metanorma-standoc", "~> 1.0.0"
|
31
|
-
spec.add_dependency "isodoc", "~> 0.9.
|
31
|
+
spec.add_dependency "isodoc", "~> 0.9.6"
|
32
32
|
|
33
33
|
spec.add_development_dependency "bundler", "~> 1.15"
|
34
34
|
spec.add_development_dependency "byebug", "~> 9.1"
|
@@ -40,5 +40,5 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_development_dependency "rubocop", "~> 0.50"
|
41
41
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
42
42
|
spec.add_development_dependency "timecop", "~> 0.9"
|
43
|
-
spec.add_development_dependency "metanorma", "~> 0.
|
43
|
+
spec.add_development_dependency "metanorma", "~> 0.3.0"
|
44
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-csd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.9.
|
33
|
+
version: 0.9.6
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.9.
|
40
|
+
version: 0.9.6
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 0.
|
187
|
+
version: 0.3.0
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 0.
|
194
|
+
version: 0.3.0
|
195
195
|
description: |
|
196
196
|
metanorma-csd lets you write CSD in AsciiDoc syntax.
|
197
197
|
|