metanorma-iso 1.3.21 → 1.3.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/iso/biblio.rng +54 -6
- data/lib/asciidoctor/iso/front.rb +42 -4
- data/lib/asciidoctor/iso/isostandard.rng +8 -0
- data/lib/asciidoctor/iso/validate.rb +1 -1
- data/lib/asciidoctor/iso/validate_style.rb +1 -1
- data/lib/isodoc/iso/base_convert.rb +5 -5
- data/lib/isodoc/iso/html/style-human.scss +5 -2
- data/lib/isodoc/iso/html/style-iso.scss +5 -2
- data/lib/isodoc/iso/metadata.rb +2 -20
- data/lib/metanorma/iso/version.rb +1 -1
- data/spec/asciidoctor-iso/base_spec.rb +12 -7
- data/spec/asciidoctor-iso/blocks_spec.rb +15 -3
- data/spec/asciidoctor-iso/cleanup_spec.rb +9 -2
- data/spec/isodoc/metadata_spec.rb +4 -2
- data/spec/spec_helper.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f454035889b3408ef910c7bdc28bb3d53cca352078b04459381fbeb48cfe71e
|
4
|
+
data.tar.gz: f9de44382a1a76374569a60fd18807f4a4412222148a7529f42420923b60ffdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 638a95ff84fe3bdeec6cb509c3a00f740190dcddfa5765ee585a5c2e79716a86be12cdb5a351fed9133b21d0414b554922aaf8a24ddf317017ac1368d526ca0c
|
7
|
+
data.tar.gz: 8abc4415c4ad990b6cafd3f1bdce2ea93dadaece4cf4f339455d6547ee4c7cb4af2a73ee2b8816d065270c0955c620d739e54dc376c0cb3f1ecb23411298bb0f
|
@@ -49,11 +49,17 @@
|
|
49
49
|
</define>
|
50
50
|
<define name="stage">
|
51
51
|
<element name="stage">
|
52
|
+
<optional>
|
53
|
+
<attribute name="abbreviation"/>
|
54
|
+
</optional>
|
52
55
|
<text/>
|
53
56
|
</element>
|
54
57
|
</define>
|
55
58
|
<define name="substage">
|
56
59
|
<element name="substage">
|
60
|
+
<optional>
|
61
|
+
<attribute name="abbreviation"/>
|
62
|
+
</optional>
|
57
63
|
<text/>
|
58
64
|
</element>
|
59
65
|
</define>
|
@@ -452,9 +458,14 @@
|
|
452
458
|
<attribute name="bibitemid">
|
453
459
|
<data type="IDREF"/>
|
454
460
|
</attribute>
|
455
|
-
<
|
456
|
-
<
|
457
|
-
|
461
|
+
<choice>
|
462
|
+
<zeroOrMore>
|
463
|
+
<ref name="locality"/>
|
464
|
+
</zeroOrMore>
|
465
|
+
<zeroOrMore>
|
466
|
+
<ref name="localityStack"/>
|
467
|
+
</zeroOrMore>
|
468
|
+
</choice>
|
458
469
|
<optional>
|
459
470
|
<ref name="date"/>
|
460
471
|
</optional>
|
@@ -469,6 +480,25 @@
|
|
469
480
|
<ref name="BibItemLocality"/>
|
470
481
|
</element>
|
471
482
|
</define>
|
483
|
+
<define name="localityStack">
|
484
|
+
<element name="localityStack">
|
485
|
+
<zeroOrMore>
|
486
|
+
<ref name="locality"/>
|
487
|
+
</zeroOrMore>
|
488
|
+
</element>
|
489
|
+
</define>
|
490
|
+
<define name="sourceLocality">
|
491
|
+
<element name="sourceLocality">
|
492
|
+
<ref name="BibItemLocality"/>
|
493
|
+
</element>
|
494
|
+
</define>
|
495
|
+
<define name="sourceLocalityStack">
|
496
|
+
<element name="sourceLocalityStack">
|
497
|
+
<zeroOrMore>
|
498
|
+
<ref name="sourceLocality"/>
|
499
|
+
</zeroOrMore>
|
500
|
+
</element>
|
501
|
+
</define>
|
472
502
|
<define name="BibItemLocality">
|
473
503
|
<attribute name="type">
|
474
504
|
<ref name="LocalityType"/>
|
@@ -1028,12 +1058,30 @@
|
|
1028
1058
|
<attribute name="type">
|
1029
1059
|
<ref name="DocRelationType"/>
|
1030
1060
|
</attribute>
|
1061
|
+
<optional>
|
1062
|
+
<element name="description">
|
1063
|
+
<ref name="FormattedString"/>
|
1064
|
+
</element>
|
1065
|
+
</optional>
|
1031
1066
|
<element name="bibitem">
|
1032
1067
|
<ref name="BibliographicItem"/>
|
1033
1068
|
</element>
|
1034
|
-
<
|
1035
|
-
<
|
1036
|
-
|
1069
|
+
<choice>
|
1070
|
+
<zeroOrMore>
|
1071
|
+
<ref name="locality"/>
|
1072
|
+
</zeroOrMore>
|
1073
|
+
<zeroOrMore>
|
1074
|
+
<ref name="localityStack"/>
|
1075
|
+
</zeroOrMore>
|
1076
|
+
</choice>
|
1077
|
+
<choice>
|
1078
|
+
<zeroOrMore>
|
1079
|
+
<ref name="sourceLocality"/>
|
1080
|
+
</zeroOrMore>
|
1081
|
+
<zeroOrMore>
|
1082
|
+
<ref name="sourceLocalityStack"/>
|
1083
|
+
</zeroOrMore>
|
1084
|
+
</choice>
|
1037
1085
|
</element>
|
1038
1086
|
</define>
|
1039
1087
|
<define name="version">
|
@@ -9,6 +9,41 @@ require "pp"
|
|
9
9
|
module Asciidoctor
|
10
10
|
module ISO
|
11
11
|
class Converter < Standoc::Converter
|
12
|
+
STAGE_ABBRS = {
|
13
|
+
"00": "PWI",
|
14
|
+
"10": "NWIP",
|
15
|
+
"20": "WD",
|
16
|
+
"30": "CD",
|
17
|
+
"40": "DIS",
|
18
|
+
"50": "FDIS",
|
19
|
+
"60": "IS",
|
20
|
+
"90": "(Review)",
|
21
|
+
"95": "(Withdrawal)",
|
22
|
+
}.freeze
|
23
|
+
|
24
|
+
STAGE_NAMES = {
|
25
|
+
"00": "Preliminary work item",
|
26
|
+
"10": "New work item proposal",
|
27
|
+
"20": "Working draft",
|
28
|
+
"30": "Committee draft",
|
29
|
+
"40": "Draft international standard",
|
30
|
+
"50": "Final draft international standard",
|
31
|
+
"60": "International standard",
|
32
|
+
"90": "Review",
|
33
|
+
"95": "Withdrawal",
|
34
|
+
}.freeze
|
35
|
+
|
36
|
+
def stage_abbr(stage, substage)
|
37
|
+
return nil if stage.to_i > 60
|
38
|
+
return "PRF" if stage == "60" && substage == "00"
|
39
|
+
STAGE_ABBRS[stage.to_sym]
|
40
|
+
end
|
41
|
+
|
42
|
+
def stage_name(stage, substage)
|
43
|
+
return "Proof" if stage == "60" && substage == "00"
|
44
|
+
STAGE_NAMES[stage.to_sym]
|
45
|
+
end
|
46
|
+
|
12
47
|
def metadata_id(node, xml)
|
13
48
|
iso_id(node, xml)
|
14
49
|
node&.attr("tc-docnumber")&.split(/,\s*/)&.each do |n|
|
@@ -40,6 +75,7 @@ module Asciidoctor
|
|
40
75
|
def metadata_ext(node, xml)
|
41
76
|
super
|
42
77
|
structured_id(node, xml)
|
78
|
+
xml.stagename stage_name(get_stage(node), get_substage(node))
|
43
79
|
end
|
44
80
|
|
45
81
|
def structured_id(node, xml)
|
@@ -59,14 +95,14 @@ module Asciidoctor
|
|
59
95
|
|
60
96
|
def id_stage_abbr(stage, substage, node)
|
61
97
|
IsoDoc::Iso::Metadata.new("en", "Latn", {}).
|
62
|
-
status_abbrev(stage, substage, node.attr("iteration"),
|
98
|
+
status_abbrev(stage_abbr(stage, substage), substage, node.attr("iteration"),
|
63
99
|
node.attr("draft"))
|
64
100
|
end
|
65
101
|
|
66
102
|
def id_stage_prefix(dn, node)
|
67
103
|
stage = get_stage(node)
|
68
104
|
substage = get_substage(node)
|
69
|
-
if stage && (stage.to_i < 60
|
105
|
+
if stage && (stage.to_i < 60)
|
70
106
|
abbr = id_stage_abbr(stage, substage, node)
|
71
107
|
dn = "/#{abbr} #{dn}" unless abbr.nil? || abbr.empty? # prefixes added in cleanup
|
72
108
|
else
|
@@ -131,9 +167,11 @@ module Asciidoctor
|
|
131
167
|
end
|
132
168
|
|
133
169
|
def metadata_status(node, xml)
|
170
|
+
stage = get_stage(node)
|
171
|
+
substage = get_substage(node)
|
134
172
|
xml.status do |s|
|
135
|
-
s.stage
|
136
|
-
s.substage
|
173
|
+
s.stage stage, **attr_code(abbreviation: stage_abbr(stage, substage))
|
174
|
+
s.substage substage
|
137
175
|
node.attr("iteration") && (s.iteration node.attr("iteration"))
|
138
176
|
end
|
139
177
|
end
|
@@ -43,6 +43,9 @@
|
|
43
43
|
<ref name="ics"/>
|
44
44
|
</zeroOrMore>
|
45
45
|
<ref name="structuredidentifier"/>
|
46
|
+
<optional>
|
47
|
+
<ref name="stagename"/>
|
48
|
+
</optional>
|
46
49
|
</define>
|
47
50
|
<define name="bdate">
|
48
51
|
<element name="date">
|
@@ -511,4 +514,9 @@
|
|
511
514
|
</oneOrMore>
|
512
515
|
</element>
|
513
516
|
</define>
|
517
|
+
<define name="stagename">
|
518
|
+
<element name="stagename">
|
519
|
+
<text/>
|
520
|
+
</element>
|
521
|
+
</define>
|
514
522
|
</grammar>
|
@@ -65,7 +65,7 @@ module Asciidoctor
|
|
65
65
|
|
66
66
|
# ISO/IEC DIR 2, 10.4
|
67
67
|
def locality_erefs_validate(root)
|
68
|
-
root.xpath("//eref[locality]").each do |t|
|
68
|
+
root.xpath("//eref[descendant::locality]").each do |t|
|
69
69
|
if /^(ISO|IEC)/.match t["citeas"]
|
70
70
|
unless /:[ ]?(\d+{4}|–)$/.match t["citeas"]
|
71
71
|
@log.add("Style", t, "undated reference #{t['citeas']} should not contain "\
|
@@ -8,7 +8,7 @@ module Asciidoctor
|
|
8
8
|
def extract_text(node)
|
9
9
|
return "" if node.nil?
|
10
10
|
node1 = Nokogiri::XML.fragment(node.to_s)
|
11
|
-
node1.xpath("//link | //locality").each(&:remove)
|
11
|
+
node1.xpath("//link | //locality | //localityStack").each(&:remove)
|
12
12
|
ret = ""
|
13
13
|
node1.traverse { |x| ret += x.text if x.text? }
|
14
14
|
ret
|
@@ -91,9 +91,9 @@ module IsoDoc
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
-
def eref_localities1_zh(target, type, from, to)
|
94
|
+
def eref_localities1_zh(target, type, from, to, delim)
|
95
95
|
subsection = from&.text&.match(/\./)
|
96
|
-
ret = type == "list" ? "" :
|
96
|
+
ret = (delim == ";") ? ";" : (type == "list") ? "" : delim
|
97
97
|
ret += " 第#{from.text}" if from
|
98
98
|
ret += "–#{to}" if to
|
99
99
|
loc = (@locality[type] || type.sub(/^locality:/, "").capitalize )
|
@@ -103,11 +103,11 @@ module IsoDoc
|
|
103
103
|
ret
|
104
104
|
end
|
105
105
|
|
106
|
-
def eref_localities1(target, type, from, to, lang = "en")
|
106
|
+
def eref_localities1(target, type, from, to, delim, lang = "en")
|
107
107
|
subsection = from&.text&.match(/\./)
|
108
108
|
type = type.downcase
|
109
|
-
return l10n(eref_localities1_zh(target, type, from, to)) if lang == "zh"
|
110
|
-
ret = type == "list" ? "" :
|
109
|
+
return l10n(eref_localities1_zh(target, type, from, to, delim)) if lang == "zh"
|
110
|
+
ret = (delim == ";") ? ";" : (type == "list") ? "" : delim
|
111
111
|
loc = @locality[type] || type.sub(/^locality:/, "").capitalize
|
112
112
|
ret += " #{loc}" unless subsection && type == "clause" ||
|
113
113
|
type == "list" || target.match(/^IEV$|^IEC 60050-/)
|
@@ -317,14 +317,17 @@ div.figure {
|
|
317
317
|
*/
|
318
318
|
|
319
319
|
.document-type-band {
|
320
|
-
@include docBand(2,
|
320
|
+
@include docBand($order: 2, $offset: 180px);
|
321
|
+
|
322
|
+
.document-type {
|
323
|
+
top: 20px;
|
324
|
+
}
|
321
325
|
}
|
322
326
|
|
323
327
|
.document-stage-band {
|
324
328
|
@include docBand(1, 100%);
|
325
329
|
}
|
326
330
|
|
327
|
-
p.document-type,
|
328
331
|
p.document-stage {
|
329
332
|
@include docBandTitle(210px);
|
330
333
|
writing-mode: vertical-rl;
|
@@ -263,14 +263,17 @@ div.figure {
|
|
263
263
|
*/
|
264
264
|
|
265
265
|
.document-type-band {
|
266
|
-
@include docBand(2,
|
266
|
+
@include docBand($order: 2, $offset: 180px);
|
267
|
+
|
268
|
+
.document-type {
|
269
|
+
top: 20px;
|
270
|
+
}
|
267
271
|
}
|
268
272
|
|
269
273
|
.document-stage-band {
|
270
274
|
@include docBand(1, 100%);
|
271
275
|
}
|
272
276
|
|
273
|
-
p.document-type,
|
274
277
|
p.document-stage {
|
275
278
|
@include docBandTitle(210px);
|
276
279
|
writing-mode: vertical-rl;
|
data/lib/isodoc/iso/metadata.rb
CHANGED
@@ -16,26 +16,8 @@ module IsoDoc
|
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
19
|
-
STAGE_ABBRS = {
|
20
|
-
"00": "PWI",
|
21
|
-
"10": "NWIP",
|
22
|
-
"20": "WD",
|
23
|
-
"30": "CD",
|
24
|
-
"40": "DIS",
|
25
|
-
"50": "FDIS",
|
26
|
-
"60": "IS",
|
27
|
-
"90": "(Review)",
|
28
|
-
"95": "(Withdrawal)",
|
29
|
-
}.freeze
|
30
|
-
|
31
|
-
def stage_abbr(stage)
|
32
|
-
self.class::STAGE_ABBRS[stage.to_sym] || "??"
|
33
|
-
end
|
34
|
-
|
35
19
|
def status_abbrev(stage, substage, iter, draft)
|
36
20
|
return "" unless stage
|
37
|
-
stage = self.class::STAGE_ABBRS[stage.to_sym] || "??"
|
38
|
-
stage = "PRF" if stage == "IS" && substage == "00"
|
39
21
|
stage += iter if iter
|
40
22
|
stage = "Pre" + stage if draft =~ /^0\./
|
41
23
|
stage
|
@@ -48,12 +30,12 @@ module IsoDoc
|
|
48
30
|
set(:stage, docstatus.text)
|
49
31
|
set(:stage_int, docstatus.text.to_i)
|
50
32
|
set(:unpublished, unpublished(docstatus.text))
|
51
|
-
set(:statusabbr, status_abbrev(docstatus
|
33
|
+
set(:statusabbr, status_abbrev(docstatus["abbreviation"] || "??",
|
52
34
|
isoxml&.at(ns("//bibdata/status/substage"))&.text,
|
53
35
|
isoxml&.at(ns("//bibdata/status/iteration"))&.text,
|
54
36
|
isoxml&.at(ns("//version/draft"))&.text))
|
55
37
|
unpublished(docstatus.text) and
|
56
|
-
set(:stageabbr,
|
38
|
+
set(:stageabbr, docstatus["abbreviation"])
|
57
39
|
end
|
58
40
|
revdate = isoxml.at(ns("//version/revision-date"))
|
59
41
|
set(:revdate, revdate&.text)
|
@@ -124,7 +124,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
124
124
|
<language>en</language>
|
125
125
|
<script>Latn</script>
|
126
126
|
<status>
|
127
|
-
<stage>10</stage>
|
127
|
+
<stage abbreviation="NWIP">10</stage>
|
128
128
|
<substage>20</substage>
|
129
129
|
<iteration>3</iteration>
|
130
130
|
</status>
|
@@ -160,6 +160,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
160
160
|
<structuredidentifier>
|
161
161
|
<project-number part="1">ISO 1000</project-number>
|
162
162
|
</structuredidentifier>
|
163
|
+
<stagename>New work item proposal</stagename>
|
163
164
|
</ext>
|
164
165
|
</bibdata>
|
165
166
|
<sections/>
|
@@ -235,7 +236,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
235
236
|
<language>el</language>
|
236
237
|
<script>Grek</script>
|
237
238
|
<status>
|
238
|
-
<stage>60</stage>
|
239
|
+
<stage abbreviation="IS">60</stage>
|
239
240
|
<substage>60</substage>
|
240
241
|
</status>
|
241
242
|
<copyright>
|
@@ -274,6 +275,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
274
275
|
<structuredidentifier>
|
275
276
|
<project-number part="1" subpart="1">ISO/IEC/IETF 1000</project-number>
|
276
277
|
</structuredidentifier>
|
278
|
+
<stagename>International standard</stagename>
|
277
279
|
</ext>
|
278
280
|
</bibdata>
|
279
281
|
<sections/>
|
@@ -316,7 +318,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
316
318
|
<language>fr</language>
|
317
319
|
<script>Latn</script>
|
318
320
|
<status>
|
319
|
-
<stage>50</stage>
|
321
|
+
<stage abbreviation="FDIS">50</stage>
|
320
322
|
<substage>00</substage>
|
321
323
|
</status>
|
322
324
|
<copyright>
|
@@ -338,6 +340,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
338
340
|
<structuredidentifier>
|
339
341
|
<project-number>ISO 1000</project-number>
|
340
342
|
</structuredidentifier>
|
343
|
+
<stagename>Final draft international standard</stagename>
|
341
344
|
</ext>
|
342
345
|
</bibdata>
|
343
346
|
<sections/>
|
@@ -379,7 +382,7 @@ OUTPUT
|
|
379
382
|
<language>en</language>
|
380
383
|
<script>Latn</script>
|
381
384
|
<status>
|
382
|
-
<stage>60</stage>
|
385
|
+
<stage abbreviation="IS">60</stage>
|
383
386
|
<substage>60</substage>
|
384
387
|
</status>
|
385
388
|
<copyright>
|
@@ -401,6 +404,7 @@ OUTPUT
|
|
401
404
|
<structuredidentifier>
|
402
405
|
<project-number>ISO 1000</project-number>
|
403
406
|
</structuredidentifier>
|
407
|
+
<stagename>International standard</stagename>
|
404
408
|
</ext>
|
405
409
|
</bibdata>
|
406
410
|
<sections/>
|
@@ -422,8 +426,8 @@ OUTPUT
|
|
422
426
|
INPUT
|
423
427
|
<iso-standard xmlns="https://www.metanorma.org/ns/iso">
|
424
428
|
<bibdata type="standard">
|
425
|
-
<docidentifier type="iso">ISO
|
426
|
-
<docidentifier type='iso-with-lang'>ISO
|
429
|
+
<docidentifier type="iso">ISO 1000</docidentifier>
|
430
|
+
<docidentifier type='iso-with-lang'>ISO 1000 (E)</docidentifier>
|
427
431
|
<docnumber>1000</docnumber>
|
428
432
|
<contributor>
|
429
433
|
<role type="author"/>
|
@@ -443,7 +447,7 @@ OUTPUT
|
|
443
447
|
<language>en</language>
|
444
448
|
<script>Latn</script>
|
445
449
|
<status>
|
446
|
-
<stage>60</stage>
|
450
|
+
<stage abbreviation="PRF">60</stage>
|
447
451
|
<substage>00</substage>
|
448
452
|
</status>
|
449
453
|
<copyright>
|
@@ -465,6 +469,7 @@ OUTPUT
|
|
465
469
|
<structuredidentifier>
|
466
470
|
<project-number>ISO 1000</project-number>
|
467
471
|
</structuredidentifier>
|
472
|
+
<stagename>Proof</stagename>
|
468
473
|
</ext>
|
469
474
|
</bibdata>
|
470
475
|
<sections/>
|
@@ -351,7 +351,11 @@ RSpec.describe Asciidoctor::ISO do
|
|
351
351
|
#{BLANK_HDR}
|
352
352
|
<sections>
|
353
353
|
<quote id="_">
|
354
|
-
<source type="inline" bibitemid="ISO7301" citeas=""
|
354
|
+
<source type="inline" bibitemid="ISO7301" citeas="">
|
355
|
+
<localityStack>
|
356
|
+
<locality type="section"><referenceFrom>1</referenceFrom></locality>
|
357
|
+
</localityStack>
|
358
|
+
</source>
|
355
359
|
<author>ISO</author>
|
356
360
|
<p id="_">Block quotation</p>
|
357
361
|
</quote>
|
@@ -427,7 +431,11 @@ RSpec.describe Asciidoctor::ISO do
|
|
427
431
|
<term id="_">
|
428
432
|
<preferred>Term1</preferred>
|
429
433
|
<termsource status="identical">
|
430
|
-
<origin bibitemid="ISO2191" type="inline" citeas=""
|
434
|
+
<origin bibitemid="ISO2191" type="inline" citeas="">
|
435
|
+
<localityStack>
|
436
|
+
<locality type="section"><referenceFrom>1</referenceFrom></locality>
|
437
|
+
</localityStack>
|
438
|
+
</origin>
|
431
439
|
</termsource>
|
432
440
|
</term>
|
433
441
|
</terms>
|
@@ -454,7 +462,11 @@ RSpec.describe Asciidoctor::ISO do
|
|
454
462
|
<term id="_">
|
455
463
|
<preferred>Term1</preferred>
|
456
464
|
<termsource status="modified">
|
457
|
-
<origin bibitemid="ISO2191" type="inline" citeas=""
|
465
|
+
<origin bibitemid="ISO2191" type="inline" citeas="">
|
466
|
+
<localityStack>
|
467
|
+
<locality type="section"><referenceFrom>1</referenceFrom></locality>
|
468
|
+
</localityStack>
|
469
|
+
</origin>
|
458
470
|
<modification>
|
459
471
|
<p id="_">with adjustments</p>
|
460
472
|
</modification>
|
@@ -225,7 +225,10 @@ RSpec.describe Asciidoctor::ISO do
|
|
225
225
|
<preface><foreword id='_' obligation="informative">
|
226
226
|
<title>Foreword</title>
|
227
227
|
<p id="_">
|
228
|
-
<eref type="inline" bibitemid="iso216" citeas="ISO 216"
|
228
|
+
<eref type="inline" bibitemid="iso216" citeas="ISO 216">
|
229
|
+
<localityStack>
|
230
|
+
<locality type="whole"/><locality type="clause"><referenceFrom>3</referenceFrom></locality><locality type="example"><referenceFrom>9</referenceFrom><referenceTo>11</referenceTo></locality><locality type="locality:prelude"><referenceFrom>33</referenceFrom></locality><locality type="locality:entirety"/>
|
231
|
+
</localityStack>the reference</eref>
|
229
232
|
</p>
|
230
233
|
</foreword></preface><sections>
|
231
234
|
</sections><bibliography><references id="_" obligation="informative">
|
@@ -302,7 +305,11 @@ RSpec.describe Asciidoctor::ISO do
|
|
302
305
|
<term id="_">
|
303
306
|
<preferred>Term1</preferred>
|
304
307
|
<termsource status="identical">
|
305
|
-
<origin bibitemid="ISO2191" type="inline" citeas=""
|
308
|
+
<origin bibitemid="ISO2191" type="inline" citeas="">
|
309
|
+
<localityStack>
|
310
|
+
<locality type="section"><referenceFrom>1</referenceFrom></locality>
|
311
|
+
</localityStack>
|
312
|
+
</origin>
|
306
313
|
</termsource>
|
307
314
|
</term>
|
308
315
|
</terms>
|
@@ -46,7 +46,7 @@ RSpec.describe IsoDoc::Iso::Metadata do
|
|
46
46
|
<language>en</language>
|
47
47
|
<script>Latn</script>
|
48
48
|
<status>
|
49
|
-
<stage>30</stage>
|
49
|
+
<stage abbreviation="CD">30</stage>
|
50
50
|
<substage>92</substage>
|
51
51
|
<iteration>3</iteration>
|
52
52
|
</status>
|
@@ -69,6 +69,7 @@ RSpec.describe IsoDoc::Iso::Metadata do
|
|
69
69
|
<structuredidentifier>
|
70
70
|
<project-number part="1">ISO/PreCD3 17301</project-number>
|
71
71
|
</structuredidentifier>
|
72
|
+
<stagename>Committee draft</stagename>
|
72
73
|
</ext>
|
73
74
|
</bibdata>
|
74
75
|
</iso-standard>
|
@@ -120,7 +121,7 @@ OUTPUT
|
|
120
121
|
<language>en</language>
|
121
122
|
<script>Latn</script>
|
122
123
|
<status>
|
123
|
-
<stage>60</stage>
|
124
|
+
<stage abbreviation="IS">60</stage>
|
124
125
|
<substage>92</substage>
|
125
126
|
</status>
|
126
127
|
<copyright>
|
@@ -147,6 +148,7 @@ OUTPUT
|
|
147
148
|
<structuredidentifier>
|
148
149
|
<project-number part="1" subpart="3">ISO/IEC/CD 17301</project-number>
|
149
150
|
</strucuredidentifier>
|
151
|
+
<stagename>International standard</stagename>
|
150
152
|
</ext>
|
151
153
|
</bibdata>
|
152
154
|
</iso-standard>
|
data/spec/spec_helper.rb
CHANGED
@@ -125,7 +125,7 @@ BLANK_HDR = <<~"HDR"
|
|
125
125
|
<language>en</language>
|
126
126
|
<script>Latn</script>
|
127
127
|
<status>
|
128
|
-
<stage>60</stage>
|
128
|
+
<stage abbreviation="IS">60</stage>
|
129
129
|
<substage>60</substage>
|
130
130
|
</status>
|
131
131
|
<copyright>
|
@@ -144,6 +144,7 @@ BLANK_HDR = <<~"HDR"
|
|
144
144
|
<subcommittee/>
|
145
145
|
<workgroup/>
|
146
146
|
</editorialgroup>
|
147
|
+
<stagename>International standard</stagename>
|
147
148
|
</ext>
|
148
149
|
</bibdata>
|
149
150
|
#{BOILERPLATE}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-jing
|