asciidoctor-csd 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +32 -16
- data/asciidoctor-csd.gemspec +2 -2
- data/lib/asciidoctor/csd/biblio.rng +253 -48
- data/lib/asciidoctor/csd/converter.rb +2 -3
- data/lib/asciidoctor/csd/isodoc.rng +1 -1
- data/lib/asciidoctor/csd/isostandard.rng +1 -1
- data/lib/asciidoctor/csd/version.rb +1 -1
- data/lib/metanorma/csd/processor.rb +4 -4
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0895e7acb5c915f28bf43a8c612ad99157dafa3c2f76874ab1450c194f551c94'
|
|
4
|
+
data.tar.gz: db64aa7b30d6bbaf43e4117a4e00e44afbab2fd68da3c9a0d36ce91d10775ceb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca566172cdd0615fe277e2cb35cc9dcba3cb7cab3307ff9989632f334c6ee17249caead6fff60e7bb11aafc41de8f973b9c1554e20a5b434fab3b915df17c1d7
|
|
7
|
+
data.tar.gz: 6500cb0fe1a9d2ed256831cbf7a83f9be7763db731df31fb143d175eec3cb73a3abc97314b9c137ddea831196d1f00c1afdf40da340edd1b36cb98bb92ca0db0
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
asciidoctor-csd (0.4.
|
|
4
|
+
asciidoctor-csd (0.4.2)
|
|
5
5
|
asciidoctor-iso (>= 0.9.0)
|
|
6
6
|
isodoc (>= 0.8.0)
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ GEM
|
|
|
12
12
|
httpclient (~> 2.8, >= 2.8.3)
|
|
13
13
|
json (>= 1.5.1)
|
|
14
14
|
asciidoctor (1.5.7.1)
|
|
15
|
-
asciidoctor-csand (0.3.
|
|
15
|
+
asciidoctor-csand (0.3.1)
|
|
16
16
|
asciidoctor (~> 1.5.7)
|
|
17
17
|
asciidoctor-iso (>= 0.9.0)
|
|
18
18
|
asciimath
|
|
@@ -25,17 +25,18 @@ GEM
|
|
|
25
25
|
ruby-xslt
|
|
26
26
|
thread_safe
|
|
27
27
|
uuidtools
|
|
28
|
-
asciidoctor-gb (0.3.
|
|
28
|
+
asciidoctor-gb (0.3.2)
|
|
29
29
|
asciidoctor-iso (>= 0.9.0)
|
|
30
|
+
gbbib
|
|
30
31
|
isodoc (>= 0.8.0)
|
|
31
32
|
twitter_cldr
|
|
32
|
-
asciidoctor-iso (0.9.
|
|
33
|
+
asciidoctor-iso (0.9.4)
|
|
33
34
|
asciidoctor (~> 1.5.7)
|
|
34
|
-
|
|
35
|
-
isobib (~> 0.1.6)
|
|
35
|
+
iev (~> 0.1.0)
|
|
36
36
|
isodoc (>= 0.8)
|
|
37
|
+
relaton (~> 0.0.1)
|
|
37
38
|
ruby-jing
|
|
38
|
-
asciidoctor-m3d (0.3.
|
|
39
|
+
asciidoctor-m3d (0.3.2)
|
|
39
40
|
asciidoctor (~> 1.5.7)
|
|
40
41
|
asciidoctor-iso (>= 0.9.0)
|
|
41
42
|
asciimath
|
|
@@ -72,6 +73,7 @@ GEM
|
|
|
72
73
|
byebug (9.1.0)
|
|
73
74
|
camertron-eprun (1.1.1)
|
|
74
75
|
cldr-plurals-runtime-rb (1.0.1)
|
|
76
|
+
cnccs (0.1.1)
|
|
75
77
|
coderay (1.1.2)
|
|
76
78
|
diff-lcs (1.3)
|
|
77
79
|
docile (1.3.1)
|
|
@@ -80,6 +82,9 @@ GEM
|
|
|
80
82
|
nokogiri (>= 1.4.3)
|
|
81
83
|
ffi (1.9.25)
|
|
82
84
|
formatador (0.2.5)
|
|
85
|
+
gbbib (0.1.4)
|
|
86
|
+
cnccs
|
|
87
|
+
iso-bib-item
|
|
83
88
|
guard (2.14.2)
|
|
84
89
|
formatador (>= 0.2.4)
|
|
85
90
|
listen (>= 2.7, < 4.0)
|
|
@@ -105,15 +110,17 @@ GEM
|
|
|
105
110
|
uuidtools
|
|
106
111
|
htmlentities (4.3.4)
|
|
107
112
|
httpclient (2.8.3)
|
|
113
|
+
iev (0.1.0)
|
|
114
|
+
nokogiri
|
|
108
115
|
image_size (2.0.0)
|
|
109
|
-
iso-bib-item (0.1.
|
|
110
|
-
duplicate
|
|
116
|
+
iso-bib-item (0.1.10)
|
|
117
|
+
duplicate (~> 1.1.1)
|
|
111
118
|
isoics (~> 0.1.6)
|
|
112
119
|
nokogiri
|
|
113
|
-
isobib (0.1.
|
|
120
|
+
isobib (0.1.9)
|
|
114
121
|
algoliasearch
|
|
115
|
-
iso-bib-item (~> 0.1.
|
|
116
|
-
isodoc (0.8)
|
|
122
|
+
iso-bib-item (~> 0.1.10)
|
|
123
|
+
isodoc (0.8.1)
|
|
117
124
|
asciimath
|
|
118
125
|
html2doc (>= 0.7.1)
|
|
119
126
|
htmlentities (~> 4.3.4)
|
|
@@ -135,11 +142,11 @@ GEM
|
|
|
135
142
|
rb-inotify (~> 0.9, >= 0.9.7)
|
|
136
143
|
ruby_dep (~> 1.2)
|
|
137
144
|
lumberjack (1.0.13)
|
|
138
|
-
metanorma (0.2.
|
|
145
|
+
metanorma (0.2.5)
|
|
139
146
|
asciidoctor-csand (>= 0.3.0)
|
|
140
147
|
asciidoctor-csd (>= 0.4.0)
|
|
141
148
|
asciidoctor-gb (>= 0.3.0)
|
|
142
|
-
asciidoctor-iso (>= 0.9.
|
|
149
|
+
asciidoctor-iso (>= 0.9.1)
|
|
143
150
|
asciidoctor-m3d (>= 0.3.1)
|
|
144
151
|
asciidoctor-rfc (>= 0.9.0)
|
|
145
152
|
asciidoctor-rsd (>= 0.3.0)
|
|
@@ -150,7 +157,7 @@ GEM
|
|
|
150
157
|
mime-types-data (3.2016.0521)
|
|
151
158
|
mini_portile2 (2.3.0)
|
|
152
159
|
nenv (0.3.0)
|
|
153
|
-
nokogiri (1.8.
|
|
160
|
+
nokogiri (1.8.4)
|
|
154
161
|
mini_portile2 (~> 2.3.0)
|
|
155
162
|
notiffany (0.1.1)
|
|
156
163
|
nenv (~> 0.1)
|
|
@@ -168,6 +175,15 @@ GEM
|
|
|
168
175
|
rb-fsevent (0.10.3)
|
|
169
176
|
rb-inotify (0.9.10)
|
|
170
177
|
ffi (>= 0.5.0, < 2)
|
|
178
|
+
relaton (0.0.1)
|
|
179
|
+
asciidoctor (~> 1.5.7)
|
|
180
|
+
gbbib (~> 0.1.0)
|
|
181
|
+
iev (~> 0.1.0)
|
|
182
|
+
iso-bib-item (~> 0.1.6)
|
|
183
|
+
isobib (~> 0.1.8)
|
|
184
|
+
rfcbib (~> 0.1.0)
|
|
185
|
+
rfcbib (0.1.1)
|
|
186
|
+
iso-bib-item (~> 0.1.10)
|
|
171
187
|
roman-numerals (0.3.0)
|
|
172
188
|
rspec (3.7.0)
|
|
173
189
|
rspec-core (~> 3.7.0)
|
|
@@ -228,7 +244,7 @@ DEPENDENCIES
|
|
|
228
244
|
equivalent-xml (~> 0.6)
|
|
229
245
|
guard (~> 2.14)
|
|
230
246
|
guard-rspec (~> 4.7)
|
|
231
|
-
metanorma
|
|
247
|
+
metanorma (~> 0.2.5)
|
|
232
248
|
rake (~> 12.0)
|
|
233
249
|
rspec (~> 3.6)
|
|
234
250
|
rubocop (~> 0.50)
|
data/asciidoctor-csd.gemspec
CHANGED
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
DESCRIPTION
|
|
17
17
|
|
|
18
18
|
spec.homepage = "https://github.com/riboseinc/asciidoctor-csd"
|
|
19
|
-
spec.license = "
|
|
19
|
+
spec.license = "BSD-2-Clause"
|
|
20
20
|
|
|
21
21
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
22
22
|
f.match(%r{^(test|spec|features)/})
|
|
@@ -38,5 +38,5 @@ Gem::Specification.new do |spec|
|
|
|
38
38
|
spec.add_development_dependency "rubocop", "~> 0.50"
|
|
39
39
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
|
40
40
|
spec.add_development_dependency "timecop", "~> 0.9"
|
|
41
|
-
spec.add_development_dependency "metanorma"
|
|
41
|
+
spec.add_development_dependency "metanorma", "~> 0.2.5"
|
|
42
42
|
end
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<define name="edition">
|
|
38
38
|
<a:documentation>ISO-15924: Latn</a:documentation>
|
|
39
39
|
<element name="edition">
|
|
40
|
-
<
|
|
40
|
+
<text/>
|
|
41
41
|
</element>
|
|
42
42
|
</define>
|
|
43
43
|
<define name="LocalizedString">
|
|
@@ -102,9 +102,12 @@
|
|
|
102
102
|
<attribute name="type">
|
|
103
103
|
<choice>
|
|
104
104
|
<value>author</value>
|
|
105
|
-
<value>
|
|
105
|
+
<value>performer</value>
|
|
106
106
|
<value>publisher</value>
|
|
107
|
-
<
|
|
107
|
+
<value>editor</value>
|
|
108
|
+
<value>adapter</value>
|
|
109
|
+
<value>translator</value>
|
|
110
|
+
<value>distributor</value>
|
|
108
111
|
</choice>
|
|
109
112
|
</attribute>
|
|
110
113
|
</optional>
|
|
@@ -145,18 +148,26 @@
|
|
|
145
148
|
</define>
|
|
146
149
|
<define name="fullname">
|
|
147
150
|
<element name="name">
|
|
151
|
+
<choice>
|
|
152
|
+
<group>
|
|
153
|
+
<zeroOrMore>
|
|
154
|
+
<ref name="prefix"/>
|
|
155
|
+
</zeroOrMore>
|
|
156
|
+
<zeroOrMore>
|
|
157
|
+
<ref name="forename"/>
|
|
158
|
+
</zeroOrMore>
|
|
159
|
+
<zeroOrMore>
|
|
160
|
+
<ref name="initial"/>
|
|
161
|
+
</zeroOrMore>
|
|
162
|
+
<ref name="surname"/>
|
|
163
|
+
<zeroOrMore>
|
|
164
|
+
<ref name="addition"/>
|
|
165
|
+
</zeroOrMore>
|
|
166
|
+
</group>
|
|
167
|
+
<ref name="completeName"/>
|
|
168
|
+
</choice>
|
|
148
169
|
<zeroOrMore>
|
|
149
|
-
<ref name="
|
|
150
|
-
</zeroOrMore>
|
|
151
|
-
<zeroOrMore>
|
|
152
|
-
<ref name="forename"/>
|
|
153
|
-
</zeroOrMore>
|
|
154
|
-
<zeroOrMore>
|
|
155
|
-
<ref name="initial"/>
|
|
156
|
-
</zeroOrMore>
|
|
157
|
-
<ref name="surname"/>
|
|
158
|
-
<zeroOrMore>
|
|
159
|
-
<ref name="addition"/>
|
|
170
|
+
<ref name="biblionote"/>
|
|
160
171
|
</zeroOrMore>
|
|
161
172
|
</element>
|
|
162
173
|
</define>
|
|
@@ -185,6 +196,11 @@
|
|
|
185
196
|
<ref name="LocalizedString"/>
|
|
186
197
|
</element>
|
|
187
198
|
</define>
|
|
199
|
+
<define name="completeName">
|
|
200
|
+
<element name="completename">
|
|
201
|
+
<ref name="LocalizedString"/>
|
|
202
|
+
</element>
|
|
203
|
+
</define>
|
|
188
204
|
<define name="affiliation">
|
|
189
205
|
<element name="affiliation">
|
|
190
206
|
<optional>
|
|
@@ -209,6 +225,9 @@
|
|
|
209
225
|
<define name="organization">
|
|
210
226
|
<element name="organization">
|
|
211
227
|
<ref name="orgname"/>
|
|
228
|
+
<optional>
|
|
229
|
+
<ref name="subdivision"/>
|
|
230
|
+
</optional>
|
|
212
231
|
<optional>
|
|
213
232
|
<ref name="abbreviation"/>
|
|
214
233
|
</optional>
|
|
@@ -228,6 +247,11 @@
|
|
|
228
247
|
<ref name="LocalizedString"/>
|
|
229
248
|
</element>
|
|
230
249
|
</define>
|
|
250
|
+
<define name="subdivision">
|
|
251
|
+
<element name="subdivision">
|
|
252
|
+
<ref name="LocalizedString"/>
|
|
253
|
+
</element>
|
|
254
|
+
</define>
|
|
231
255
|
<define name="abbreviation">
|
|
232
256
|
<element name="abbreviation">
|
|
233
257
|
<ref name="LocalizedString"/>
|
|
@@ -346,19 +370,21 @@
|
|
|
346
370
|
</define>
|
|
347
371
|
<define name="locality">
|
|
348
372
|
<element name="locality">
|
|
349
|
-
|
|
350
|
-
<attribute name="type">
|
|
351
|
-
<ref name="LocalityType"/>
|
|
352
|
-
</attribute>
|
|
353
|
-
<ref name="referenceFrom"/>
|
|
354
|
-
<optional>
|
|
355
|
-
<ref name="referenceTo"/>
|
|
356
|
-
</optional>
|
|
373
|
+
<ref name="BibItemLocality"/>
|
|
357
374
|
</element>
|
|
358
375
|
</define>
|
|
376
|
+
<define name="BibItemLocality">
|
|
377
|
+
<attribute name="type">
|
|
378
|
+
<ref name="LocalityType"/>
|
|
379
|
+
</attribute>
|
|
380
|
+
<ref name="referenceFrom"/>
|
|
381
|
+
<optional>
|
|
382
|
+
<ref name="referenceTo"/>
|
|
383
|
+
</optional>
|
|
384
|
+
</define>
|
|
359
385
|
<define name="LocalityType">
|
|
360
386
|
<data type="string">
|
|
361
|
-
<param name="pattern">section|clause|part|paragraph|chapter|page|whole|table|annex|figure|note|example|locality:[a-zA-Z0-9_]+</param>
|
|
387
|
+
<param name="pattern">section|clause|part|paragraph|chapter|page|whole|table|annex|figure|note|example|volume|issue|locality:[a-zA-Z0-9_]+</param>
|
|
362
388
|
</data>
|
|
363
389
|
</define>
|
|
364
390
|
<define name="referenceFrom">
|
|
@@ -398,6 +424,18 @@
|
|
|
398
424
|
<value>techreport</value>
|
|
399
425
|
<value>standard</value>
|
|
400
426
|
<value>unpublished</value>
|
|
427
|
+
<value>map</value>
|
|
428
|
+
<value>electronic resource</value>
|
|
429
|
+
<value>audiovisual</value>
|
|
430
|
+
<value>film</value>
|
|
431
|
+
<value>video</value>
|
|
432
|
+
<value>broadcast</value>
|
|
433
|
+
<value>graphic work</value>
|
|
434
|
+
<value>music</value>
|
|
435
|
+
<value>patent</value>
|
|
436
|
+
<value>inbook</value>
|
|
437
|
+
<value>incollection</value>
|
|
438
|
+
<value>inproceedings</value>
|
|
401
439
|
</choice>
|
|
402
440
|
</define>
|
|
403
441
|
<define name="BibliographicItem">
|
|
@@ -442,20 +480,41 @@
|
|
|
442
480
|
<optional>
|
|
443
481
|
<ref name="status"/>
|
|
444
482
|
</optional>
|
|
445
|
-
<
|
|
483
|
+
<optional>
|
|
446
484
|
<ref name="copyright"/>
|
|
447
|
-
</
|
|
485
|
+
</optional>
|
|
448
486
|
<zeroOrMore>
|
|
449
487
|
<ref name="docrelation"/>
|
|
450
488
|
</zeroOrMore>
|
|
489
|
+
<zeroOrMore>
|
|
490
|
+
<ref name="series"/>
|
|
491
|
+
</zeroOrMore>
|
|
492
|
+
<optional>
|
|
493
|
+
<ref name="medium"/>
|
|
494
|
+
</optional>
|
|
495
|
+
<zeroOrMore>
|
|
496
|
+
<ref name="bplace"/>
|
|
497
|
+
</zeroOrMore>
|
|
498
|
+
<zeroOrMore>
|
|
499
|
+
<ref name="extent"/>
|
|
500
|
+
</zeroOrMore>
|
|
501
|
+
<zeroOrMore>
|
|
502
|
+
<ref name="accesslocation"/>
|
|
503
|
+
</zeroOrMore>
|
|
504
|
+
<optional>
|
|
505
|
+
<ref name="bclassification"/>
|
|
506
|
+
</optional>
|
|
507
|
+
<optional>
|
|
508
|
+
<ref name="validity"/>
|
|
509
|
+
</optional>
|
|
451
510
|
</define>
|
|
452
511
|
<define name="btitle">
|
|
453
512
|
<element name="title">
|
|
454
|
-
<ref name="
|
|
513
|
+
<ref name="TypedTitleString"/>
|
|
455
514
|
</element>
|
|
456
515
|
</define>
|
|
457
516
|
<define name="bsource">
|
|
458
|
-
<element name="
|
|
517
|
+
<element name="uri">
|
|
459
518
|
<ref name="TypedUri"/>
|
|
460
519
|
</element>
|
|
461
520
|
</define>
|
|
@@ -464,17 +523,68 @@
|
|
|
464
523
|
<ref name="FormattedString"/>
|
|
465
524
|
</element>
|
|
466
525
|
</define>
|
|
467
|
-
<define name="
|
|
468
|
-
<element name="
|
|
469
|
-
<
|
|
526
|
+
<define name="validity">
|
|
527
|
+
<element name="validity">
|
|
528
|
+
<optional>
|
|
529
|
+
<ref name="validityBegins"/>
|
|
530
|
+
</optional>
|
|
531
|
+
<optional>
|
|
532
|
+
<ref name="validityEnds"/>
|
|
533
|
+
</optional>
|
|
534
|
+
<optional>
|
|
535
|
+
<ref name="validityRevision"/>
|
|
536
|
+
</optional>
|
|
537
|
+
</element>
|
|
538
|
+
</define>
|
|
539
|
+
<define name="validityBegins">
|
|
540
|
+
<element name="validityBegins">
|
|
541
|
+
<data type="dateTime"/>
|
|
542
|
+
</element>
|
|
543
|
+
</define>
|
|
544
|
+
<define name="validityEnds">
|
|
545
|
+
<element name="validityEnds">
|
|
546
|
+
<data type="dateTime"/>
|
|
470
547
|
</element>
|
|
471
548
|
</define>
|
|
549
|
+
<define name="validityRevision">
|
|
550
|
+
<element name="revision">
|
|
551
|
+
<data type="dateTime"/>
|
|
552
|
+
</element>
|
|
553
|
+
</define>
|
|
554
|
+
<define name="TypedTitleString">
|
|
555
|
+
<optional>
|
|
556
|
+
<attribute name="type">
|
|
557
|
+
<ref name="TitleType"/>
|
|
558
|
+
</attribute>
|
|
559
|
+
</optional>
|
|
560
|
+
<ref name="FormattedString"/>
|
|
561
|
+
</define>
|
|
562
|
+
<define name="TitleType">
|
|
563
|
+
<choice>
|
|
564
|
+
<value>alternative</value>
|
|
565
|
+
<value>original</value>
|
|
566
|
+
<value>unofficial</value>
|
|
567
|
+
<value>subtitle</value>
|
|
568
|
+
<value>main</value>
|
|
569
|
+
</choice>
|
|
570
|
+
</define>
|
|
472
571
|
<define name="TypedUri">
|
|
473
572
|
<optional>
|
|
474
573
|
<attribute name="type"/>
|
|
475
574
|
</optional>
|
|
476
575
|
<data type="anyURI"/>
|
|
477
576
|
</define>
|
|
577
|
+
<define name="DateType">
|
|
578
|
+
<optional>
|
|
579
|
+
<attribute name="text"/>
|
|
580
|
+
</optional>
|
|
581
|
+
<optional>
|
|
582
|
+
<choice>
|
|
583
|
+
<data type="gYear"/>
|
|
584
|
+
<data type="date"/>
|
|
585
|
+
</choice>
|
|
586
|
+
</optional>
|
|
587
|
+
</define>
|
|
478
588
|
<define name="bdate">
|
|
479
589
|
<element name="date">
|
|
480
590
|
<attribute name="type">
|
|
@@ -487,9 +597,10 @@
|
|
|
487
597
|
<value>confirmed</value>
|
|
488
598
|
<value>updated</value>
|
|
489
599
|
<value>issued</value>
|
|
600
|
+
<value>transmitted</value>
|
|
601
|
+
<value>copied</value>
|
|
490
602
|
</choice>
|
|
491
603
|
</attribute>
|
|
492
|
-
<!-- ( ( bfrom, bto? ) | date_on ) -->
|
|
493
604
|
<choice>
|
|
494
605
|
<group>
|
|
495
606
|
<element name="from">
|
|
@@ -516,35 +627,126 @@
|
|
|
516
627
|
</choice>
|
|
517
628
|
</element>
|
|
518
629
|
</define>
|
|
519
|
-
<define name="
|
|
520
|
-
<element name="
|
|
630
|
+
<define name="docidentifier">
|
|
631
|
+
<element name="docidentifier">
|
|
632
|
+
<optional>
|
|
633
|
+
<attribute name="type"/>
|
|
634
|
+
</optional>
|
|
635
|
+
<text/>
|
|
636
|
+
</element>
|
|
637
|
+
</define>
|
|
638
|
+
<define name="bclassification">
|
|
639
|
+
<element name="classification">
|
|
640
|
+
<optional>
|
|
641
|
+
<attribute name="type"/>
|
|
642
|
+
</optional>
|
|
643
|
+
<text/>
|
|
644
|
+
</element>
|
|
645
|
+
</define>
|
|
646
|
+
<define name="bplace">
|
|
647
|
+
<element name="place">
|
|
648
|
+
<text/>
|
|
649
|
+
</element>
|
|
650
|
+
</define>
|
|
651
|
+
<define name="medium">
|
|
652
|
+
<element name="medium">
|
|
653
|
+
<optional>
|
|
654
|
+
<ref name="form"/>
|
|
655
|
+
</optional>
|
|
656
|
+
<optional>
|
|
657
|
+
<ref name="size"/>
|
|
658
|
+
</optional>
|
|
659
|
+
<optional>
|
|
660
|
+
<ref name="scale"/>
|
|
661
|
+
</optional>
|
|
662
|
+
</element>
|
|
663
|
+
</define>
|
|
664
|
+
<define name="form">
|
|
665
|
+
<element name="form">
|
|
666
|
+
<text/>
|
|
667
|
+
</element>
|
|
668
|
+
</define>
|
|
669
|
+
<define name="size">
|
|
670
|
+
<element name="size">
|
|
671
|
+
<text/>
|
|
672
|
+
</element>
|
|
673
|
+
</define>
|
|
674
|
+
<define name="scale">
|
|
675
|
+
<element name="scale">
|
|
676
|
+
<text/>
|
|
677
|
+
</element>
|
|
678
|
+
</define>
|
|
679
|
+
<define name="accesslocation">
|
|
680
|
+
<element name="accesslocation">
|
|
681
|
+
<text/>
|
|
682
|
+
</element>
|
|
683
|
+
</define>
|
|
684
|
+
<define name="extent">
|
|
685
|
+
<element name="extent">
|
|
686
|
+
<ref name="BibItemLocality"/>
|
|
687
|
+
</element>
|
|
688
|
+
</define>
|
|
689
|
+
<define name="series">
|
|
690
|
+
<element name="series">
|
|
691
|
+
<optional>
|
|
692
|
+
<attribute name="type">
|
|
693
|
+
<choice>
|
|
694
|
+
<value>main</value>
|
|
695
|
+
<value>alt</value>
|
|
696
|
+
</choice>
|
|
697
|
+
</attribute>
|
|
698
|
+
</optional>
|
|
521
699
|
<choice>
|
|
522
|
-
<
|
|
523
|
-
<
|
|
700
|
+
<ref name="btitle"/>
|
|
701
|
+
<ref name="formattedref"/>
|
|
524
702
|
</choice>
|
|
703
|
+
<ref name="bplace"/>
|
|
704
|
+
<ref name="seriesorganization"/>
|
|
705
|
+
<optional>
|
|
706
|
+
<ref name="abbreviation"/>
|
|
707
|
+
</optional>
|
|
708
|
+
<optional>
|
|
709
|
+
<ref name="seriesfrom"/>
|
|
710
|
+
</optional>
|
|
711
|
+
<optional>
|
|
712
|
+
<ref name="seriesto"/>
|
|
713
|
+
</optional>
|
|
714
|
+
<optional>
|
|
715
|
+
<ref name="seriesnumber"/>
|
|
716
|
+
</optional>
|
|
717
|
+
<optional>
|
|
718
|
+
<ref name="seriespartnumber"/>
|
|
719
|
+
</optional>
|
|
525
720
|
</element>
|
|
526
721
|
</define>
|
|
527
|
-
<define name="
|
|
528
|
-
<element name="
|
|
722
|
+
<define name="seriesorganization">
|
|
723
|
+
<element name="organization">
|
|
724
|
+
<text/>
|
|
725
|
+
</element>
|
|
726
|
+
</define>
|
|
727
|
+
<define name="seriesfrom">
|
|
728
|
+
<element name="from">
|
|
529
729
|
<choice>
|
|
730
|
+
<data type="dateTime"/>
|
|
530
731
|
<data type="gYear"/>
|
|
531
|
-
<data type="date"/>
|
|
532
732
|
</choice>
|
|
533
733
|
</element>
|
|
534
734
|
</define>
|
|
535
|
-
<define name="
|
|
536
|
-
<element name="
|
|
735
|
+
<define name="seriesto">
|
|
736
|
+
<element name="to">
|
|
537
737
|
<choice>
|
|
738
|
+
<data type="dateTime"/>
|
|
538
739
|
<data type="gYear"/>
|
|
539
|
-
<data type="date"/>
|
|
540
740
|
</choice>
|
|
541
741
|
</element>
|
|
542
742
|
</define>
|
|
543
|
-
<define name="
|
|
544
|
-
<element name="
|
|
545
|
-
<
|
|
546
|
-
|
|
547
|
-
|
|
743
|
+
<define name="seriesnumber">
|
|
744
|
+
<element name="number">
|
|
745
|
+
<text/>
|
|
746
|
+
</element>
|
|
747
|
+
</define>
|
|
748
|
+
<define name="seriespartnumber">
|
|
749
|
+
<element name="partnumber">
|
|
548
750
|
<text/>
|
|
549
751
|
</element>
|
|
550
752
|
</define>
|
|
@@ -586,17 +788,20 @@
|
|
|
586
788
|
<element name="relation">
|
|
587
789
|
<attribute name="type">
|
|
588
790
|
<choice>
|
|
589
|
-
<value>parent</value>
|
|
590
|
-
<value>child</value>
|
|
591
791
|
<value>obsoletes</value>
|
|
592
792
|
<value>updates</value>
|
|
593
793
|
<value>updatedBy</value>
|
|
594
794
|
<value>complements</value>
|
|
595
795
|
<value>derivedFrom</value>
|
|
796
|
+
<value>translatedFrom</value>
|
|
596
797
|
<value>adoptedFrom</value>
|
|
597
798
|
<value>equivalent</value>
|
|
598
799
|
<value>identical</value>
|
|
599
800
|
<value>nonequivalent</value>
|
|
801
|
+
<value>includedIn</value>
|
|
802
|
+
<value>includes</value>
|
|
803
|
+
<value>instance</value>
|
|
804
|
+
<value>partOf</value>
|
|
600
805
|
</choice>
|
|
601
806
|
</attribute>
|
|
602
807
|
<element name="bibitem">
|
|
@@ -76,8 +76,7 @@ module Asciidoctor
|
|
|
76
76
|
result << noko { |ixml| front node, ixml }
|
|
77
77
|
result << noko { |ixml| middle node, ixml }
|
|
78
78
|
result << "</csd-standard>"
|
|
79
|
-
|
|
80
|
-
save_cache_biblio(@local_bibdb, false)
|
|
79
|
+
@bibdb.save() if @bibdb
|
|
81
80
|
result = textcleanup(result.flatten * "\n")
|
|
82
81
|
ret1 = cleanup(Nokogiri::XML(result))
|
|
83
82
|
validate(ret1)
|
|
@@ -96,7 +95,7 @@ module Asciidoctor
|
|
|
96
95
|
|
|
97
96
|
# deactivating biblio caching for now
|
|
98
97
|
#def open_cache_biblio(node, global)
|
|
99
|
-
|
|
98
|
+
#nil
|
|
100
99
|
#end
|
|
101
100
|
|
|
102
101
|
def pdf_convert(filename)
|
|
@@ -11,10 +11,10 @@ module Metanorma
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def output_formats
|
|
14
|
-
|
|
14
|
+
super.merge(
|
|
15
15
|
html: "html",
|
|
16
16
|
pdf: "pdf"
|
|
17
|
-
|
|
17
|
+
)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def version
|
|
@@ -37,10 +37,10 @@ module Metanorma
|
|
|
37
37
|
puts outname_html
|
|
38
38
|
system "cat #{outname_html}"
|
|
39
39
|
Metanorma::Output::Pdf.new.convert(outname_html, outname)
|
|
40
|
+
else
|
|
41
|
+
super
|
|
40
42
|
end
|
|
41
|
-
|
|
42
43
|
end
|
|
43
|
-
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: asciidoctor-csd
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.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: 2018-07-
|
|
11
|
+
date: 2018-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor-iso
|
|
@@ -182,16 +182,16 @@ dependencies:
|
|
|
182
182
|
name: metanorma
|
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
|
184
184
|
requirements:
|
|
185
|
-
- - "
|
|
185
|
+
- - "~>"
|
|
186
186
|
- !ruby/object:Gem::Version
|
|
187
|
-
version:
|
|
187
|
+
version: 0.2.5
|
|
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:
|
|
194
|
+
version: 0.2.5
|
|
195
195
|
description: |
|
|
196
196
|
asciidoctor-csd lets you write CSD in AsciiDoc syntax.
|
|
197
197
|
|
|
@@ -238,7 +238,7 @@ files:
|
|
|
238
238
|
- lib/metanorma/csd/processor.rb
|
|
239
239
|
homepage: https://github.com/riboseinc/asciidoctor-csd
|
|
240
240
|
licenses:
|
|
241
|
-
-
|
|
241
|
+
- BSD-2-Clause
|
|
242
242
|
metadata: {}
|
|
243
243
|
post_install_message:
|
|
244
244
|
rdoc_options: []
|
|
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
256
256
|
version: '0'
|
|
257
257
|
requirements: []
|
|
258
258
|
rubyforge_project:
|
|
259
|
-
rubygems_version: 2.7.
|
|
259
|
+
rubygems_version: 2.7.7
|
|
260
260
|
signing_key:
|
|
261
261
|
specification_version: 4
|
|
262
262
|
summary: asciidoctor-csd lets you write CSD in AsciiDoc.
|