metanorma-iec 1.0.4 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +8 -7
- data/.github/workflows/ubuntu.yml +12 -9
- data/.github/workflows/windows.yml +8 -8
- data/lib/asciidoctor/iec/biblio.rng +89 -32
- data/lib/asciidoctor/iec/converter.rb +8 -0
- data/lib/asciidoctor/iec/front.rb +3 -3
- data/lib/asciidoctor/iec/isodoc.rng +475 -2
- data/lib/asciidoctor/iec/isostandard.rng +12 -1
- data/lib/asciidoctor/iec/reqt.rng +23 -0
- data/lib/isodoc/iec/base_convert.rb +17 -3
- data/lib/isodoc/iec/html/htmlstyle.scss +6 -6
- data/lib/isodoc/iec/html/isodoc.scss +15 -9
- data/lib/isodoc/iec/html/scripts.html +23 -21
- data/lib/isodoc/iec/html/wordstyle.scss +0 -3
- data/lib/isodoc/iec/html_convert.rb +8 -0
- data/lib/isodoc/iec/iec.international-standard.xsl +4133 -0
- data/lib/isodoc/iec/pdf_convert.rb +31 -0
- data/lib/isodoc/iec/word_convert.rb +17 -6
- data/lib/metanorma-iec.rb +1 -0
- data/lib/metanorma/iec/processor.rb +12 -1
- data/lib/metanorma/iec/version.rb +1 -1
- data/spec/asciidoctor-iec/base_spec.rb +9 -23
- data/spec/asciidoctor-iec/blocks_spec.rb +4 -4
- data/spec/asciidoctor-iec/cleanup_spec.rb +8 -6
- data/spec/asciidoctor-iec/iev_spec.rb +4 -4
- data/spec/asciidoctor-iec/inline_spec.rb +2 -1
- data/spec/asciidoctor-iec/section_spec.rb +8 -8
- data/spec/assets/iso.xml +65 -2
- data/spec/examples/rice.html +5 -5
- data/spec/isodoc/blocks_spec.rb +154 -0
- data/spec/isodoc/i18n_spec.rb +17 -25
- data/spec/isodoc/iev_spec.rb +15 -14
- data/spec/isodoc/inline_spec.rb +11 -11
- data/spec/isodoc/iso_spec.rb +6 -23
- data/spec/isodoc/metadata_spec.rb +90 -7
- data/spec/isodoc/postproc_spec.rb +10 -4
- data/spec/isodoc/ref_spec.rb +249 -0
- data/spec/isodoc/section_spec.rb +53 -20
- data/spec/isodoc/terms_spec.rb +12 -14
- data/spec/metanorma/processor_spec.rb +3 -6
- data/spec/spec_helper.rb +7 -0
- metadata +6 -2
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative "base_convert"
|
2
|
+
require "isodoc"
|
3
|
+
|
4
|
+
module IsoDoc
|
5
|
+
module Iec
|
6
|
+
|
7
|
+
# A {Converter} implementation that generates HTML output, and a document
|
8
|
+
# schema encapsulation of the document for validation
|
9
|
+
#
|
10
|
+
class PdfConvert < IsoDoc::XslfoPdfConvert
|
11
|
+
def initialize(options)
|
12
|
+
@libdir = File.dirname(__FILE__)
|
13
|
+
super
|
14
|
+
end
|
15
|
+
|
16
|
+
def convert(filename, file = nil, debug = false)
|
17
|
+
file = File.read(filename, encoding: "utf-8") if file.nil?
|
18
|
+
docxml, outname_html, dir = convert_init(file, filename, debug)
|
19
|
+
/\.xml$/.match(filename) or
|
20
|
+
filename = Tempfile.open([outname_html, ".xml"], encoding: "utf-8") do |f|
|
21
|
+
f.write file
|
22
|
+
f.path
|
23
|
+
end
|
24
|
+
FileUtils.rm_rf dir
|
25
|
+
::Metanorma::Output::XslfoPdf.new.convert(
|
26
|
+
filename, outname_html + ".pdf",
|
27
|
+
File.join(@libdir, "iec.international-standard.xsl"))
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -137,6 +137,9 @@ module IsoDoc
|
|
137
137
|
docxml.xpath("//h1[not(@class)]").each do |h1|
|
138
138
|
h1["class"] = "main"
|
139
139
|
end
|
140
|
+
docxml.xpath("//h1[@class = 'Section3']").each do |h1|
|
141
|
+
h1["class"] = "main"
|
142
|
+
end
|
140
143
|
end
|
141
144
|
|
142
145
|
# Incredibly, the numbered boilerplate list in IEC is NOT A LIST,
|
@@ -160,15 +163,23 @@ module IsoDoc
|
|
160
163
|
def make_body1(body, _docxml)
|
161
164
|
end
|
162
165
|
|
163
|
-
#def make_body2(body, docxml)
|
164
|
-
#FileUtils.rm_rf tmpimagedir
|
165
|
-
#FileUtils.mkdir tmpimagedir
|
166
|
-
#super
|
167
|
-
#end
|
168
|
-
|
169
166
|
def word_cover(docxml)
|
170
167
|
end
|
171
168
|
|
169
|
+
def formula_parse1(node, out)
|
170
|
+
out.div **attr_code(class: "formula") do |div|
|
171
|
+
div.p **attr_code(class: "formula") do |p|
|
172
|
+
insert_tab(div, 1)
|
173
|
+
parse(node.at(ns("./stem")), div)
|
174
|
+
lbl = anchor(node['id'], :label, false)
|
175
|
+
unless lbl.nil?
|
176
|
+
insert_tab(div, 1)
|
177
|
+
div << "(#{lbl})"
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
172
183
|
include BaseConvert
|
173
184
|
end
|
174
185
|
end
|
data/lib/metanorma-iec.rb
CHANGED
@@ -2,6 +2,14 @@ require "metanorma/processor"
|
|
2
2
|
|
3
3
|
module Metanorma
|
4
4
|
module Iec
|
5
|
+
def self.fonts_used
|
6
|
+
{
|
7
|
+
html: ["Arial", "Times New Roman", "HanSans", "Courier New"],
|
8
|
+
doc: ["Arial", "Times New Roman", "HanSans", "Courier New"],
|
9
|
+
pdf: ["Arial", "Times New Roman", "HanSans", "Courier New"],
|
10
|
+
}
|
11
|
+
end
|
12
|
+
|
5
13
|
class Processor < Metanorma::Processor
|
6
14
|
|
7
15
|
def initialize
|
@@ -13,7 +21,8 @@ module Metanorma
|
|
13
21
|
def output_formats
|
14
22
|
super.merge(
|
15
23
|
html: "html",
|
16
|
-
doc: "doc"
|
24
|
+
doc: "doc",
|
25
|
+
pdf: "pdf"
|
17
26
|
)
|
18
27
|
end
|
19
28
|
|
@@ -31,6 +40,8 @@ module Metanorma
|
|
31
40
|
IsoDoc::Iec::HtmlConvert.new(options).convert(outname, isodoc_node)
|
32
41
|
when :doc
|
33
42
|
IsoDoc::Iec::WordConvert.new(options).convert(outname, isodoc_node)
|
43
|
+
when :pdf
|
44
|
+
IsoDoc::Iec::PdfConvert.new(options).convert(outname, isodoc_node)
|
34
45
|
else
|
35
46
|
super
|
36
47
|
end
|
@@ -99,7 +99,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
99
99
|
<title language="fr" format="text/plain" type="title-intro">Introduction Française</title>
|
100
100
|
<title language="fr" format="text/plain" type="title-main">Titre Principal</title>
|
101
101
|
<title language="fr" format="text/plain" type="title-part">Part du Titre</title>
|
102
|
-
<docidentifier type="
|
102
|
+
<docidentifier type="ISO">IEC/3NWIP 1000-1 ED 2</docidentifier>
|
103
103
|
<docnumber>1000</docnumber>
|
104
104
|
<contributor>
|
105
105
|
<role type="author"/>
|
@@ -185,11 +185,12 @@ RSpec.describe Asciidoctor::Iec do
|
|
185
185
|
:publisher: IEC,IETF,ISO
|
186
186
|
:copyright-year: 2001
|
187
187
|
:docstage: A2CD
|
188
|
+
:doctype: technical-specification
|
188
189
|
INPUT
|
189
190
|
<?xml version="1.0" encoding="UTF-8"?>
|
190
191
|
<iec-standard xmlns="https://www.metanorma.org/ns/iec">
|
191
192
|
<bibdata type="standard">
|
192
|
-
<docidentifier type="
|
193
|
+
<docidentifier type="ISO">ISO/IEC/IETF/2CDTS 1000-1-1 ED 1</docidentifier>
|
193
194
|
<docidentifier type="iso-tc">2000</docidentifier>
|
194
195
|
<docnumber>1000</docnumber>
|
195
196
|
<contributor>
|
@@ -266,7 +267,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
266
267
|
</owner>
|
267
268
|
</copyright>
|
268
269
|
<ext>
|
269
|
-
<doctype>
|
270
|
+
<doctype>technical-specification</doctype>
|
270
271
|
<editorialgroup>
|
271
272
|
<technical-committee/>
|
272
273
|
<subcommittee/>
|
@@ -337,7 +338,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
337
338
|
INPUT
|
338
339
|
<iec-standard xmlns="https://www.metanorma.org/ns/iec">
|
339
340
|
<bibdata type="standard">
|
340
|
-
<docidentifier type="
|
341
|
+
<docidentifier type="ISO">IEC/FDIS 1000 ED 1</docidentifier>
|
341
342
|
<docnumber>1000</docnumber>
|
342
343
|
<contributor>
|
343
344
|
<role type="author"/>
|
@@ -401,7 +402,7 @@ OUTPUT
|
|
401
402
|
INPUT
|
402
403
|
<iec-standard xmlns="https://www.metanorma.org/ns/iec">
|
403
404
|
<bibdata type="standard">
|
404
|
-
<docidentifier type="
|
405
|
+
<docidentifier type="ISO">IEC 1000 ED 1</docidentifier>
|
405
406
|
<docnumber>1000</docnumber>
|
406
407
|
<contributor>
|
407
408
|
<role type="author"/>
|
@@ -466,7 +467,7 @@ OUTPUT
|
|
466
467
|
INPUT
|
467
468
|
<iec-standard xmlns="https://www.metanorma.org/ns/iec">
|
468
469
|
<bibdata type="standard">
|
469
|
-
<docidentifier type="
|
470
|
+
<docidentifier type="ISO">IEC 1000 ED 1</docidentifier>
|
470
471
|
<docnumber>1000</docnumber>
|
471
472
|
<contributor>
|
472
473
|
<role type="author"/>
|
@@ -542,23 +543,8 @@ OUTPUT
|
|
542
543
|
INPUT
|
543
544
|
html = File.read("test.html", encoding: "utf-8")
|
544
545
|
expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
|
545
|
-
expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "
|
546
|
-
expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "
|
547
|
-
end
|
548
|
-
|
549
|
-
it "uses default fonts for alt doc" do
|
550
|
-
FileUtils.rm_f "test_alt.html"
|
551
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)
|
552
|
-
= Document title
|
553
|
-
Author
|
554
|
-
:docfile: test.adoc
|
555
|
-
:novalid:
|
556
|
-
:no-isobib:
|
557
|
-
INPUT
|
558
|
-
html = File.read("test_alt.html", encoding: "utf-8")
|
559
|
-
expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Space Mono", monospace;]m)
|
560
|
-
expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
|
561
|
-
expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
|
546
|
+
expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "Arial", sans-serif;]m)
|
547
|
+
expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Arial", sans-serif;]m)
|
562
548
|
end
|
563
549
|
|
564
550
|
it "uses Chinese fonts" do
|
@@ -113,7 +113,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
113
113
|
<title>Terms and definitions</title>
|
114
114
|
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
115
115
|
#{TERMS_BOILERPLATE}
|
116
|
-
<term id="
|
116
|
+
<term id="term-term1">
|
117
117
|
<preferred>Term1</preferred>
|
118
118
|
<termnote id="_">
|
119
119
|
<p id="_">This is a note</p>
|
@@ -224,7 +224,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
224
224
|
<title>Terms and definitions</title>
|
225
225
|
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
226
226
|
#{TERMS_BOILERPLATE}
|
227
|
-
<term id="
|
227
|
+
<term id="term-term1">
|
228
228
|
<preferred>Term1</preferred>
|
229
229
|
<termexample id="_">
|
230
230
|
<p id="_">This is an example</p>
|
@@ -426,7 +426,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
426
426
|
<title>Terms and definitions</title>
|
427
427
|
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
428
428
|
#{TERMS_BOILERPLATE}
|
429
|
-
<term id="
|
429
|
+
<term id="term-term1">
|
430
430
|
<preferred>Term1</preferred>
|
431
431
|
<termsource status="identical">
|
432
432
|
<origin bibitemid="ISO2191" type="inline" citeas="">
|
@@ -458,7 +458,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
458
458
|
<title>Terms and definitions</title>
|
459
459
|
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
460
460
|
#{TERMS_BOILERPLATE}
|
461
|
-
<term id="
|
461
|
+
<term id="term-term1">
|
462
462
|
<preferred>Term1</preferred>
|
463
463
|
<termsource status="modified">
|
464
464
|
<origin bibitemid="ISO2191" type="inline" citeas="">
|
@@ -34,7 +34,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
34
34
|
<p id="_">For the purposes of this document,
|
35
35
|
the following terms and definitions apply.</p>
|
36
36
|
#{TERMS_BOILERPLATE}
|
37
|
-
<term id="
|
37
|
+
<term id="term-t90"><preferred><stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>t</mi><mn>90</mn></msub></math></stem></preferred><admitted><stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>t</mi><mn>91</mn></msub></math></stem></admitted>
|
38
38
|
<definition><p id="_">Time</p></definition></term>
|
39
39
|
</terms>
|
40
40
|
</sections>
|
@@ -70,7 +70,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
70
70
|
<p id="_">For the purposes of this document,
|
71
71
|
the following terms and definitions apply.</p>
|
72
72
|
#{TERMS_BOILERPLATE}
|
73
|
-
<term id="
|
73
|
+
<term id="term-t90"><preferred><stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>t</mi><mn>90</mn></msub></math></stem></preferred><definition><formula id="_">
|
74
74
|
<stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>t</mi><mi>A</mi></msub></math></stem>
|
75
75
|
</formula><p id="_">This paragraph is extraneous</p></definition>
|
76
76
|
</term>
|
@@ -100,7 +100,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
100
100
|
the following terms and definitions apply.</p>
|
101
101
|
#{TERMS_BOILERPLATE}
|
102
102
|
|
103
|
-
<term id="
|
103
|
+
<term id="term-time">
|
104
104
|
<preferred>Time</preferred>
|
105
105
|
<definition><p id="_">This paragraph is extraneous</p></definition>
|
106
106
|
</term></terms>
|
@@ -126,11 +126,12 @@ RSpec.describe Asciidoctor::Iec do
|
|
126
126
|
<eref type="inline" bibitemid="iso216" citeas="ISO 216"/>
|
127
127
|
</p>
|
128
128
|
</foreword></preface><sections>
|
129
|
-
</sections><bibliography><references id="_" obligation="informative">
|
129
|
+
</sections><bibliography><references id="_" obligation="informative" normative="false">
|
130
130
|
<title>Bibliography</title>
|
131
131
|
<bibitem id="iso216" type="standard">
|
132
132
|
<title format="text/plain">Reference</title>
|
133
133
|
<docidentifier>ISO 216</docidentifier>
|
134
|
+
<docnumber>216</docnumber>
|
134
135
|
<contributor>
|
135
136
|
<role type="publisher"/>
|
136
137
|
<organization>
|
@@ -160,7 +161,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
160
161
|
<title>Terms and definitions</title>
|
161
162
|
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
162
163
|
#{TERMS_BOILERPLATE}
|
163
|
-
<term id="
|
164
|
+
<term id="term-term1">
|
164
165
|
<preferred>Term1</preferred>
|
165
166
|
<termsource status="identical">
|
166
167
|
<origin bibitemid="ISO2191" type="inline" citeas="">
|
@@ -188,11 +189,12 @@ RSpec.describe Asciidoctor::Iec do
|
|
188
189
|
INPUT
|
189
190
|
#{BLANK_HDR}
|
190
191
|
<sections></sections>
|
191
|
-
<bibliography><references id="_" obligation="informative"><title>Normative References</title>
|
192
|
+
<bibliography><references id="_" obligation="informative" normative="true"><title>Normative References</title>
|
192
193
|
<p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
|
193
194
|
<bibitem id="iso216" type="standard">
|
194
195
|
<title format="text/plain">Reference</title>
|
195
196
|
<docidentifier>ISO 216</docidentifier>
|
197
|
+
<docnumber>216</docnumber>
|
196
198
|
<contributor>
|
197
199
|
<role type="publisher"/>
|
198
200
|
<organization>
|
@@ -20,7 +20,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
20
20
|
<?xml version='1.0' encoding='UTF-8'?>
|
21
21
|
<iec-standard xmlns='https://www.metanorma.org/ns/iec'>
|
22
22
|
<bibdata type='standard'>
|
23
|
-
<docidentifier type='
|
23
|
+
<docidentifier type='ISO'>IEC 60050 ED 1</docidentifier>
|
24
24
|
<docnumber>60050</docnumber>
|
25
25
|
<contributor>
|
26
26
|
<role type='author'/>
|
@@ -67,7 +67,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
67
67
|
#{BOILERPLATE}
|
68
68
|
<sections> </sections>
|
69
69
|
<bibliography>
|
70
|
-
<references id='_' obligation='informative'>
|
70
|
+
<references id='_' obligation='informative' normative="true">
|
71
71
|
<title>Normative References</title>
|
72
72
|
<p id='_'>There are no normative references in this document.</p>
|
73
73
|
<bibitem id='A'>
|
@@ -98,7 +98,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
98
98
|
INPUT
|
99
99
|
<iec-standard xmlns='https://www.metanorma.org/ns/iec'>
|
100
100
|
<bibdata type='standard'>
|
101
|
-
<docidentifier type='
|
101
|
+
<docidentifier type='ISO'>IEC 60050 ED 1</docidentifier>
|
102
102
|
<docnumber>60050</docnumber>
|
103
103
|
<contributor>
|
104
104
|
<role type='author'/>
|
@@ -148,7 +148,7 @@ INPUT
|
|
148
148
|
<title>Terms and definitions</title>
|
149
149
|
<terms id='_' obligation='normative'>
|
150
150
|
<title>General</title>
|
151
|
-
<term id='
|
151
|
+
<term id='term-term-1'>
|
152
152
|
<preferred>Term 1</preferred>
|
153
153
|
</term>
|
154
154
|
</terms>
|
@@ -127,7 +127,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
127
127
|
#{BLANK_HDR}
|
128
128
|
<sections>
|
129
129
|
|
130
|
-
</sections><bibliography><references id="_" obligation="informative">
|
130
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
131
131
|
<title>Normative References</title>
|
132
132
|
<p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
|
133
133
|
<bibitem id="ISO712">
|
@@ -137,6 +137,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
137
137
|
<bibitem id="ISO713">
|
138
138
|
<formattedref format="application/x-isodoc+xml">Reference</formattedref>
|
139
139
|
<docidentifier>ISO713</docidentifier>
|
140
|
+
<docnumber>713</docnumber>
|
140
141
|
</bibitem>
|
141
142
|
</references>
|
142
143
|
</bibliography>
|
@@ -69,7 +69,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
69
69
|
<title>Terms and definitions</title>
|
70
70
|
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
71
71
|
#{TERMS_BOILERPLATE}
|
72
|
-
<term id="
|
72
|
+
<term id="term-term1">
|
73
73
|
<preferred>Term1</preferred>
|
74
74
|
</term>
|
75
75
|
</terms>
|
@@ -94,7 +94,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
94
94
|
</p>
|
95
95
|
</li>
|
96
96
|
</ul>
|
97
|
-
<term id="
|
97
|
+
<term id="term-term2">
|
98
98
|
<preferred>Term2</preferred>
|
99
99
|
</term>
|
100
100
|
</terms>
|
@@ -118,11 +118,11 @@ RSpec.describe Asciidoctor::Iec do
|
|
118
118
|
</clause>
|
119
119
|
<appendix id="_" inline-header="false" obligation="normative">
|
120
120
|
<title>Appendix 1</title>
|
121
|
-
</appendix></annex><bibliography><references id="_" obligation="informative">
|
121
|
+
</appendix></annex><bibliography><references id="_" obligation="informative" normative="true">
|
122
122
|
<title>Normative References</title><p id="_">There are no normative references in this document.</p>
|
123
123
|
</references><clause id="_" obligation="informative">
|
124
124
|
<title>Bibliography</title>
|
125
|
-
<references id="_" obligation="informative">
|
125
|
+
<references id="_" obligation="informative" normative="false">
|
126
126
|
<title>Bibliography Subsection</title>
|
127
127
|
</references>
|
128
128
|
</clause>
|
@@ -209,7 +209,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
209
209
|
<title>Terms and definitions</title>
|
210
210
|
<p id="_">For the purposes of this document, the following terms and definitions apply.</p>
|
211
211
|
#{TERMS_BOILERPLATE}
|
212
|
-
<term id="
|
212
|
+
<term id="term-term1">
|
213
213
|
<preferred>Term1</preferred>
|
214
214
|
</term>
|
215
215
|
</terms>
|
@@ -236,7 +236,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
236
236
|
</p>
|
237
237
|
</li>
|
238
238
|
</ul>
|
239
|
-
<term id='
|
239
|
+
<term id='term-term2'>
|
240
240
|
<preferred>Term2</preferred>
|
241
241
|
</term>
|
242
242
|
</terms>
|
@@ -267,13 +267,13 @@ RSpec.describe Asciidoctor::Iec do
|
|
267
267
|
</appendix>
|
268
268
|
</annex>
|
269
269
|
<bibliography>
|
270
|
-
<references id='_' obligation='informative'>
|
270
|
+
<references id='_' obligation='informative' normative="true">
|
271
271
|
<title>Normative References</title>
|
272
272
|
<p id="_">There are no normative references in this document.</p>
|
273
273
|
</references>
|
274
274
|
<clause id='_' obligation='informative'>
|
275
275
|
<title>Bibliography</title>
|
276
|
-
<references id='_' obligation='informative'>
|
276
|
+
<references id='_' obligation='informative' normative="false">
|
277
277
|
<title>Bibliography Subsection</title>
|
278
278
|
</references>
|
279
279
|
</clause>
|
data/spec/assets/iso.xml
CHANGED
@@ -1,8 +1,71 @@
|
|
1
|
-
|
1
|
+
<iec-standard xmlns="https://www.metanorma.org/ns/iec">
|
2
|
+
<bibdata type="standard">
|
3
|
+
<title type="title-intro" language="en" format="text/plain">Cereals and pulses</title>
|
4
|
+
<title type="title-main" language="en" format="text/plain">Specifications and test methods</title>
|
5
|
+
<title type="main" language="en" format="text/plain">Specifications and test methods</title>
|
6
|
+
<title type="title-part" language="en" format="text/plain">Rice</title>
|
7
|
+
<title type="title-intro" language="fr" format="text/plain">Céréales et légumineuses</title>
|
8
|
+
<title type="title-main" language="fr" format="text/plain">Spécification et méthodes d'essai</title>
|
9
|
+
<title type="title-part" language="fr" format="text/plain">Riz</title>
|
10
|
+
<docidentifier type="iso">ISO/PreCD3 17301-1</docidentifier>
|
11
|
+
<docidentifier type="iso-tc">17301</docidentifier>
|
12
|
+
<docnumber>1730</docnumber>
|
13
|
+
<date type="published"><on>2011</on></date>
|
14
|
+
<date type="accessed"><on>2012</on></date>
|
15
|
+
<date type="created"><from>2010</from><to>2011</to></date>
|
16
|
+
<date type="activated"><on>2013</on></date>
|
17
|
+
<date type="obsoleted"><on>2014</on></date>
|
18
|
+
<edition>2</edition>
|
19
|
+
<version>
|
20
|
+
<revision-date>2016-05-01</revision-date>
|
21
|
+
<draft>0.4</draft>
|
22
|
+
</version>
|
23
|
+
<contributor>
|
24
|
+
<role type="author"/>
|
25
|
+
<organization>
|
26
|
+
<name>International Organization for Standardization</name>
|
27
|
+
<abbreviation>ISO</abbreviation>
|
28
|
+
</organization>
|
29
|
+
</contributor>
|
30
|
+
<contributor>
|
31
|
+
<role type="publisher"/>
|
32
|
+
<organization>
|
33
|
+
<name>International Organization for Standardization</name>
|
34
|
+
<abbreviation>ISO</abbreviation>
|
35
|
+
</organization>
|
36
|
+
</contributor>
|
37
|
+
<language>en</language>
|
38
|
+
<script>Latn</script>
|
39
|
+
<status>
|
40
|
+
<stage abbreviation="CD">35</stage>
|
41
|
+
<substage abbreviation="3CD">20</substage>
|
42
|
+
<iteration>3</iteration>
|
43
|
+
</status>
|
44
|
+
<copyright>
|
45
|
+
<from>2016</from>
|
46
|
+
<owner>
|
47
|
+
<organization>
|
48
|
+
<abbreviation>ISO</abbreviation>
|
49
|
+
</organization>
|
50
|
+
</owner>
|
51
|
+
</copyright>
|
52
|
+
<ext>
|
53
|
+
<doctype>international-standard</doctype>
|
54
|
+
<editorialgroup>
|
55
|
+
<technical-committee number="34">Food products</technical-committee>
|
56
|
+
<subcommittee number="4">Cereals and pulses</subcommittee>
|
57
|
+
<workgroup number="3">Rice Group</workgroup>
|
58
|
+
<secretariat>GB</secretariat>
|
59
|
+
</editorialgroup>
|
60
|
+
<structuredidentifier>
|
61
|
+
<project-number part="1">ISO/PreCD3 17301</project-number>
|
62
|
+
</structuredidentifier>
|
63
|
+
</ext>
|
64
|
+
</bibdata>
|
2
65
|
<foreword>
|
3
66
|
<note>
|
4
67
|
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
5
68
|
</note>
|
6
69
|
</foreword>
|
7
|
-
</
|
70
|
+
</iec-standard>
|
8
71
|
|