metanorma-iec 1.0.3 → 1.0.4
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/lib/asciidoctor/iec/biblio.rng +54 -6
- data/lib/asciidoctor/iec/converter.rb +14 -130
- data/lib/asciidoctor/iec/front.rb +220 -0
- data/lib/asciidoctor/iec/isostandard.rng +8 -0
- data/lib/isodoc/iec/base_convert.rb +118 -0
- data/lib/isodoc/iec/html/htmlstyle.scss +5 -2
- data/lib/isodoc/iec/i18n-en.yaml +2 -0
- data/lib/isodoc/iec/i18n-fr.yaml +2 -0
- data/lib/isodoc/iec/metadata.rb +3 -52
- data/lib/metanorma/iec/version.rb +1 -1
- data/spec/asciidoctor-iec/base_spec.rb +15 -10
- data/spec/asciidoctor-iec/blocks_spec.rb +11 -3
- data/spec/asciidoctor-iec/cleanup_spec.rb +5 -1
- data/spec/asciidoctor-iec/iev_spec.rb +161 -0
- data/spec/examples/rice_img/rice_image1.png +0 -0
- data/spec/examples/rice_img/rice_image2.png +0 -0
- data/spec/examples/rice_img/rice_image3_1.png +0 -0
- data/spec/examples/rice_img/rice_image3_2.png +0 -0
- data/spec/examples/rice_img/rice_image3_3.png +0 -0
- data/spec/isodoc/i18n_spec.rb +1 -0
- data/spec/isodoc/iev_spec.rb +356 -0
- data/spec/isodoc/metadata_spec.rb +5 -5
- data/spec/isodoc/section_spec.rb +4 -2
- data/spec/spec_helper.rb +3 -2
- metadata +10 -2
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/spec/isodoc/i18n_spec.rb
CHANGED
@@ -5,6 +5,7 @@ RSpec.describe IsoDoc do
|
|
5
5
|
expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
6
6
|
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
7
7
|
<bibdata>
|
8
|
+
<docnumber>1</docnumber>
|
8
9
|
<language>en</language>
|
9
10
|
</bibdata>
|
10
11
|
<preface>
|
@@ -0,0 +1,356 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe IsoDoc do
|
4
|
+
it "processes introductions under IEV" do
|
5
|
+
expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
6
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
7
|
+
<bibdata>
|
8
|
+
<docidentifier type="iso">IEC/PWI 60050-871 ED 2</docidentifier>
|
9
|
+
<docnumber>60050</docnumber>
|
10
|
+
</bibdata>
|
11
|
+
<preface>
|
12
|
+
<foreword obligation="informative">
|
13
|
+
<title>Foreword</title>
|
14
|
+
<p id="A">This is a preamble</p>
|
15
|
+
</foreword>
|
16
|
+
<introduction id="B" obligation="informative"><title>Introduction</title>
|
17
|
+
<clause id="C" inline-header="false" obligation="informative">
|
18
|
+
<title>Introduction Subsection</title>
|
19
|
+
</clause>
|
20
|
+
</introduction></preface><sections/>
|
21
|
+
</iso-standard>
|
22
|
+
INPUT
|
23
|
+
#{HTML_HDR}
|
24
|
+
<div>
|
25
|
+
<h1 class='ForewordTitle'>FOREWORD</h1>
|
26
|
+
<div class='boilerplate_legal'/>
|
27
|
+
<p id='A'>This is a preamble</p>
|
28
|
+
</div>
|
29
|
+
<br/>
|
30
|
+
<div class='Section3' id='B'>
|
31
|
+
<h1 class='IntroTitle'>
|
32
|
+
INTRODUCTION
|
33
|
+
<br/>
|
34
|
+
Principles and rules followed
|
35
|
+
</h1>
|
36
|
+
<div id='C'>
|
37
|
+
<h2>Introduction Subsection</h2>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
#{IEC_TITLE}
|
41
|
+
</div>
|
42
|
+
</body>
|
43
|
+
</html>
|
44
|
+
OUTPUT
|
45
|
+
end
|
46
|
+
|
47
|
+
it "processes bibliographies under IEV" do
|
48
|
+
expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
49
|
+
<iec-standard xmlns='https://www.metanorma.org/ns/iec'>
|
50
|
+
<bibdata type='standard'>
|
51
|
+
<docidentifier type='iso'>IEC 60050 ED 1</docidentifier>
|
52
|
+
<docnumber>60050</docnumber>
|
53
|
+
<contributor>
|
54
|
+
<role type='author'/>
|
55
|
+
<organization>
|
56
|
+
<name>International Electrotechnical Commission</name>
|
57
|
+
<abbreviation>IEC</abbreviation>
|
58
|
+
</organization>
|
59
|
+
</contributor>
|
60
|
+
<contributor>
|
61
|
+
<role type='publisher'/>
|
62
|
+
<organization>
|
63
|
+
<name>International Electrotechnical Commission</name>
|
64
|
+
<abbreviation>IEC</abbreviation>
|
65
|
+
</organization>
|
66
|
+
</contributor>
|
67
|
+
<language>en</language>
|
68
|
+
<script>Latn</script>
|
69
|
+
<status>
|
70
|
+
<stage>60</stage>
|
71
|
+
<substage>60</substage>
|
72
|
+
</status>
|
73
|
+
<copyright>
|
74
|
+
<from>2020</from>
|
75
|
+
<owner>
|
76
|
+
<organization>
|
77
|
+
<name>International Electrotechnical Commission</name>
|
78
|
+
<abbreviation>IEC</abbreviation>
|
79
|
+
</organization>
|
80
|
+
</owner>
|
81
|
+
</copyright>
|
82
|
+
<ext>
|
83
|
+
<doctype>article</doctype>
|
84
|
+
<editorialgroup>
|
85
|
+
<technical-committee/>
|
86
|
+
<subcommittee/>
|
87
|
+
<workgroup/>
|
88
|
+
</editorialgroup>
|
89
|
+
<structuredidentifier>
|
90
|
+
<project-number>IEC 60050</project-number>
|
91
|
+
</structuredidentifier>
|
92
|
+
</ext>
|
93
|
+
</bibdata>
|
94
|
+
<sections> </sections>
|
95
|
+
<bibliography>
|
96
|
+
<references id='_' obligation='informative'>
|
97
|
+
<title>Normative References</title>
|
98
|
+
<p id='_'>There are no normative references in this document.</p>
|
99
|
+
<bibitem id='A'>
|
100
|
+
<formattedref format='application/x-isodoc+xml'>
|
101
|
+
<em>TITLE</em>
|
102
|
+
</formattedref>
|
103
|
+
<docidentifier>B</docidentifier>
|
104
|
+
</bibitem>
|
105
|
+
</references>
|
106
|
+
<references id='_' obligation='informative'>
|
107
|
+
<title>Bibliography</title>
|
108
|
+
<p id='_'>There are no normative references in this document.</p>
|
109
|
+
<bibitem id='A'>
|
110
|
+
<formattedref format='application/x-isodoc+xml'>
|
111
|
+
<em>TITLE</em>
|
112
|
+
</formattedref>
|
113
|
+
<docidentifier>B</docidentifier>
|
114
|
+
</bibitem>
|
115
|
+
</references>
|
116
|
+
|
117
|
+
</bibliography>
|
118
|
+
</iec-standard>
|
119
|
+
INPUT
|
120
|
+
#{HTML_HDR}
|
121
|
+
<div id=''>
|
122
|
+
<h1 class='ForewordTitle'>FOREWORD</h1>
|
123
|
+
<div class='boilerplate_legal'/>
|
124
|
+
</div>
|
125
|
+
#{IEC_TITLE}
|
126
|
+
<div>
|
127
|
+
<h1>1  Normative references</h1>
|
128
|
+
<p id='_'>There are no normative references in this document.</p>
|
129
|
+
</div>
|
130
|
+
</div>
|
131
|
+
</body>
|
132
|
+
</html>
|
133
|
+
OUTPUT
|
134
|
+
end
|
135
|
+
|
136
|
+
it "processes IEV terms" do
|
137
|
+
expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
138
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
139
|
+
<bibdata type='standard'>
|
140
|
+
<docidentifier type='iso'>IEC 60050-192 ED 1</docidentifier>
|
141
|
+
<docnumber>60050</docnumber>
|
142
|
+
</bibdata>
|
143
|
+
<sections>
|
144
|
+
<clause id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
|
145
|
+
<terms id="_general" obligation="normative"><title>General</title>
|
146
|
+
|
147
|
+
<term id="paddy1"><preferred>paddy</preferred>
|
148
|
+
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
149
|
+
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
|
150
|
+
<p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
|
151
|
+
<ul>
|
152
|
+
<li>A</li>
|
153
|
+
</ul>
|
154
|
+
</termexample>
|
155
|
+
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f894">
|
156
|
+
<ul>
|
157
|
+
<li>A</li>
|
158
|
+
</ul>
|
159
|
+
</termexample>
|
160
|
+
|
161
|
+
<termsource status="modified">
|
162
|
+
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
|
163
|
+
<modification>
|
164
|
+
<p id="_e73a417d-ad39-417d-a4c8-20e4e2529489">The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here</p>
|
165
|
+
</modification>
|
166
|
+
</termsource></term>
|
167
|
+
|
168
|
+
<term id="paddy"><preferred>paddy</preferred><admitted>paddy rice</admitted>
|
169
|
+
<admitted>rough rice</admitted>
|
170
|
+
<deprecates>cargo rice</deprecates>
|
171
|
+
<domain>rice</domain>
|
172
|
+
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
173
|
+
<termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f893">
|
174
|
+
<ul>
|
175
|
+
<li>A</li>
|
176
|
+
</ul>
|
177
|
+
</termexample>
|
178
|
+
<termnote id="_671a1994-4783-40d0-bc81-987d06ffb74e">
|
179
|
+
<p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
|
180
|
+
</termnote>
|
181
|
+
<termnote id="_671a1994-4783-40d0-bc81-987d06ffb74f">
|
182
|
+
<ul><li>A</li></ul>
|
183
|
+
<p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
|
184
|
+
</termnote>
|
185
|
+
<termsource status="identical">
|
186
|
+
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
|
187
|
+
</termsource></term>
|
188
|
+
</terms>
|
189
|
+
</sections>
|
190
|
+
</iso-standard>
|
191
|
+
INPUT
|
192
|
+
#{HTML_HDR}
|
193
|
+
<div id=''>
|
194
|
+
<h1 class='ForewordTitle'>FOREWORD</h1>
|
195
|
+
<div class='boilerplate_legal'/>
|
196
|
+
</div>
|
197
|
+
#{IEC_TITLE}
|
198
|
+
<div id='_terms_and_definitions'>
|
199
|
+
<h1>1  Terms and definitions</h1>
|
200
|
+
<br/>
|
201
|
+
<div id='_general'>
|
202
|
+
<p class='zzSTDTitle2'>
|
203
|
+
<b>192-01 General</b>
|
204
|
+
</p>
|
205
|
+
<p class='TermNum' id='paddy1'>192-01-01</p>
|
206
|
+
<p class='Terms' style='text-align:left;'>paddy</p>
|
207
|
+
<p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>rice retaining its husk after threshing</p>
|
208
|
+
<div id='_bd57bbf1-f948-4bae-b0ce-73c00431f892' class='example'>
|
209
|
+
<p>
|
210
|
+
<span class='example_label'>EXAMPLE 1</span>
|
211
|
+
  Foreign seeds, husks, bran, sand, dust.
|
212
|
+
</p>
|
213
|
+
<ul>
|
214
|
+
<li>A</li>
|
215
|
+
</ul>
|
216
|
+
</div>
|
217
|
+
<div id='_bd57bbf1-f948-4bae-b0ce-73c00431f894' class='example'>
|
218
|
+
<p>
|
219
|
+
<span class='example_label'>EXAMPLE 2</span>
|
220
|
+
 
|
221
|
+
</p>
|
222
|
+
<ul>
|
223
|
+
<li>A</li>
|
224
|
+
</ul>
|
225
|
+
</div>
|
226
|
+
<p>
|
227
|
+
[TERMREF]
|
228
|
+
<a href='#ISO7301'>ISO 7301:2011, 3.1</a>
|
229
|
+
[MODIFICATION]The term "cargo rice" is shown as deprecated, and
|
230
|
+
Note 1 to entry is not included here [/TERMREF]
|
231
|
+
</p>
|
232
|
+
<p class='TermNum' id='paddy'>192-01-02</p>
|
233
|
+
<p class='Terms' style='text-align:left;'>paddy, <rice></p>
|
234
|
+
<p class='AltTerms' style='text-align:left;'>paddy rice, <rice></p>
|
235
|
+
<p class='AltTerms' style='text-align:left;'>rough rice, <rice></p>
|
236
|
+
<p class='DeprecatedTerms' style='text-align:left;'>DEPRECATED: cargo rice, <rice></p>
|
237
|
+
<p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>rice retaining its husk after threshing</p>
|
238
|
+
<div id='_bd57bbf1-f948-4bae-b0ce-73c00431f893' class='example'>
|
239
|
+
<p>
|
240
|
+
<span class='example_label'>EXAMPLE</span>
|
241
|
+
 
|
242
|
+
</p>
|
243
|
+
<ul>
|
244
|
+
<li>A</li>
|
245
|
+
</ul>
|
246
|
+
</div>
|
247
|
+
<div class='Note'>
|
248
|
+
<p>
|
249
|
+
Note 1 to entry: The starch of waxy rice consists almost entirely
|
250
|
+
of amylopectin. The kernels have a tendency to stick together
|
251
|
+
after cooking.
|
252
|
+
</p>
|
253
|
+
</div>
|
254
|
+
<div class='Note'>
|
255
|
+
<p>
|
256
|
+
Note 2 to entry:
|
257
|
+
<ul>
|
258
|
+
<li>A</li>
|
259
|
+
</ul>
|
260
|
+
<p id='_19830f33-e46c-42cc-94ca-a5ef101132d5'>
|
261
|
+
The starch of waxy rice consists almost entirely of amylopectin.
|
262
|
+
The kernels have a tendency to stick together after cooking.
|
263
|
+
</p>
|
264
|
+
</p>
|
265
|
+
</div>
|
266
|
+
<p>
|
267
|
+
[TERMREF]
|
268
|
+
<a href='#ISO7301'>ISO 7301:2011, 3.1</a>
|
269
|
+
[/TERMREF]
|
270
|
+
</p>
|
271
|
+
</div>
|
272
|
+
</div>
|
273
|
+
</div>
|
274
|
+
</body>
|
275
|
+
</html>
|
276
|
+
OUTPUT
|
277
|
+
end
|
278
|
+
|
279
|
+
it "populates Word template with terms reference labels" do
|
280
|
+
FileUtils.rm_f "test.doc"
|
281
|
+
FileUtils.rm_f "test.html"
|
282
|
+
IsoDoc::Iec::WordConvert.new({}).convert("test", <<~"INPUT", false)
|
283
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
284
|
+
<bibdata type='standard'>
|
285
|
+
<docidentifier type='iso'>IEC 60050-192 ED 1</docidentifier>
|
286
|
+
<docnumber>60050</docnumber>
|
287
|
+
</bibdata>
|
288
|
+
<sections>
|
289
|
+
<clause id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
|
290
|
+
<terms id="_general" obligation="normative"><title>General</title>
|
291
|
+
|
292
|
+
<term id="paddy1"><preferred>paddy</preferred>
|
293
|
+
<definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
|
294
|
+
<termsource status="modified">
|
295
|
+
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
|
296
|
+
<modification>
|
297
|
+
<p id="_e73a417d-ad39-417d-a4c8-20e4e2529489">The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here</p>
|
298
|
+
</modification>
|
299
|
+
</termsource></term>
|
300
|
+
|
301
|
+
</terms>
|
302
|
+
</clause>
|
303
|
+
</sections>
|
304
|
+
</iso-standard>
|
305
|
+
|
306
|
+
INPUT
|
307
|
+
word = File.read("test.doc").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
|
308
|
+
sub(%r{<br clear="all" style="page-break-before:left;mso-break-type:section-break"/>.*$}m, "")
|
309
|
+
expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
310
|
+
<div class='WordSection3'>
|
311
|
+
<p class='zzSTDTitle1'>INTERNATIONAL ELECTROTECHNICAL COMMISSION</p>
|
312
|
+
<p class='zzSTDTitle1'>____________</p>
|
313
|
+
<p class='zzSTDTitle1'> </p>
|
314
|
+
<p class='zzSTDTitle1'>
|
315
|
+
<b/>
|
316
|
+
</p>
|
317
|
+
<p class='zzSTDTitle1'> </p>
|
318
|
+
<div>
|
319
|
+
<a name='_terms_and_definitions' id='_terms_and_definitions'/>
|
320
|
+
<h1 class='main'>
|
321
|
+
1
|
322
|
+
<span style='mso-tab-count:1'>  </span>
|
323
|
+
Terms and definitions
|
324
|
+
</h1>
|
325
|
+
<p class='MsoNormal'>
|
326
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
327
|
+
</p>
|
328
|
+
<div>
|
329
|
+
<a name='_general' id='_general'/>
|
330
|
+
<p class='zzSTDTitle2'>
|
331
|
+
<b>192-01 General</b>
|
332
|
+
</p>
|
333
|
+
<p class='TermNum'>
|
334
|
+
<a name='paddy1' id='paddy1'/>
|
335
|
+
192-01-01
|
336
|
+
</p>
|
337
|
+
<p class='Terms' style='text-align:left;'>paddy</p>
|
338
|
+
<p class='MsoNormal'>
|
339
|
+
<a name='_eb29b35e-123e-4d1c-b50b-2714d41e747f' id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'/>
|
340
|
+
rice retaining its husk after threshing
|
341
|
+
</p>
|
342
|
+
<p class='MsoNormal'>
|
343
|
+
SOURCE:
|
344
|
+
<a href='#ISO7301'>ISO 7301:2011, 3.1</a>
|
345
|
+
, modified — The term "cargo rice" is shown as deprecated, and
|
346
|
+
Note 1 to entry is not included here
|
347
|
+
</p>
|
348
|
+
</div>
|
349
|
+
</div>
|
350
|
+
</div>
|
351
|
+
OUTPUT
|
352
|
+
end
|
353
|
+
|
354
|
+
|
355
|
+
end
|
356
|
+
|
@@ -46,8 +46,8 @@ RSpec.describe IsoDoc::Iec::Metadata do
|
|
46
46
|
<language>en</language>
|
47
47
|
<script>Latn</script>
|
48
48
|
<status>
|
49
|
-
<stage>35</stage>
|
50
|
-
<substage>20</substage>
|
49
|
+
<stage abbreviation="CD">35</stage>
|
50
|
+
<substage abbreviation="3CD">20</substage>
|
51
51
|
<iteration>3</iteration>
|
52
52
|
</status>
|
53
53
|
<copyright>
|
@@ -121,8 +121,8 @@ OUTPUT
|
|
121
121
|
<language>en</language>
|
122
122
|
<script>Latn</script>
|
123
123
|
<status>
|
124
|
-
<stage>50</stage>
|
125
|
-
<substage>20</substage>
|
124
|
+
<stage abbreviation="FDIS">50</stage>
|
125
|
+
<substage abbreviation="CFDIS">20</substage>
|
126
126
|
</status>
|
127
127
|
<copyright>
|
128
128
|
<from>2016</from>
|
@@ -152,7 +152,7 @@ OUTPUT
|
|
152
152
|
</bibdata>
|
153
153
|
</iso-standard>
|
154
154
|
INPUT
|
155
|
-
{:agency=>"ISO/IEC", :authors=>[], :authors_affiliations=>{}, :docnumber=>"ISO/IEC/CD 17301-1-3", :docnumeric=>nil, :docsubtitle=>"Céréales et légumineuses — Spécification et méthodes d'essai — Partie 1–3: Riz", :docsubtitleintro=>"Céréales et légumineuses", :docsubtitlemain=>"Spécification et méthodes d'essai", :docsubtitlepart=>"Riz", :docsubtitlepartlabel=>"Partie 1–3", :doctitle=>"Cereals and pulses — Specifications and test methods — Part 1–3: Rice", :doctitleintro=>"Cereals and pulses", :doctitlemain=>"Specifications and test methods", :doctitlepart=>"Rice", :doctitlepartlabel=>"Part 1–3", :doctype=>"Technical Report", :docyear=>"2016", :draft=>nil, :draftinfo=>"", :edition=>nil, :editorialgroup=>["ABC 34", "DEF 4", "GHI 3"], :ics=>"1.2.3, 1.2.3", :obsoletes=>"IEC 8121", :obsoletes_part=>"3.1", :publisher=>"International Organization for Standardization and International Electrotechnical Commission", :revdate=>nil, :revdate_monthyear=>nil, :sc=>"DEF 4", :secretariat=>"XXXX", :stage=>"50", :stage_int=>50, :stageabbr=>"
|
155
|
+
{:agency=>"ISO/IEC", :authors=>[], :authors_affiliations=>{}, :docnumber=>"ISO/IEC/CD 17301-1-3", :docnumeric=>nil, :docsubtitle=>"Céréales et légumineuses — Spécification et méthodes d'essai — Partie 1–3: Riz", :docsubtitleintro=>"Céréales et légumineuses", :docsubtitlemain=>"Spécification et méthodes d'essai", :docsubtitlepart=>"Riz", :docsubtitlepartlabel=>"Partie 1–3", :doctitle=>"Cereals and pulses — Specifications and test methods — Part 1–3: Rice", :doctitleintro=>"Cereals and pulses", :doctitlemain=>"Specifications and test methods", :doctitlepart=>"Rice", :doctitlepartlabel=>"Part 1–3", :doctype=>"Technical Report", :docyear=>"2016", :draft=>nil, :draftinfo=>"", :edition=>nil, :editorialgroup=>["ABC 34", "DEF 4", "GHI 3"], :ics=>"1.2.3, 1.2.3", :obsoletes=>"IEC 8121", :obsoletes_part=>"3.1", :publisher=>"International Organization for Standardization and International Electrotechnical Commission", :revdate=>nil, :revdate_monthyear=>nil, :sc=>"DEF 4", :secretariat=>"XXXX", :stage=>"50", :stage_int=>50, :stageabbr=>"FDIS", :statusabbr=>"CFDIS", :tc=>"ABC 34", :tc_docnumber=>["17301"], :unpublished=>true, :wg=>"GHI 3"}
|
156
156
|
OUTPUT
|
157
157
|
end
|
158
158
|
|
data/spec/isodoc/section_spec.rb
CHANGED
@@ -379,7 +379,8 @@ OUTPUT
|
|
379
379
|
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
380
380
|
<bibdata>
|
381
381
|
<status>
|
382
|
-
<stage>60</stage>
|
382
|
+
<stage abbreviation="PPUB">60</stage>
|
383
|
+
<substage abbreviation="PPUB">60</substage>
|
383
384
|
</status>
|
384
385
|
</bibdata>
|
385
386
|
<sections>
|
@@ -413,7 +414,8 @@ OUTPUT
|
|
413
414
|
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
414
415
|
<bibdata>
|
415
416
|
<status>
|
416
|
-
<stage>30</stage>
|
417
|
+
<stage abbreviation="CD">30</stage>
|
418
|
+
<substage abbreviation="CD">00</substage>
|
417
419
|
</status>
|
418
420
|
</bibdata>
|
419
421
|
<sections>
|
data/spec/spec_helper.rb
CHANGED
@@ -160,8 +160,8 @@ BLANK_HDR = <<~"HDR"
|
|
160
160
|
<language>en</language>
|
161
161
|
<script>Latn</script>
|
162
162
|
<status>
|
163
|
-
<stage>60</stage>
|
164
|
-
<substage>60</substage>
|
163
|
+
<stage abbreviation="PPUB">60</stage>
|
164
|
+
<substage abbreviation="PPUB">60</substage>
|
165
165
|
</status>
|
166
166
|
<copyright>
|
167
167
|
<from>#{Time.new.year}</from>
|
@@ -179,6 +179,7 @@ BLANK_HDR = <<~"HDR"
|
|
179
179
|
<subcommittee/>
|
180
180
|
<workgroup/>
|
181
181
|
</editorialgroup>
|
182
|
+
<stagename>International standard</stagename>
|
182
183
|
</ext>
|
183
184
|
</bibdata>
|
184
185
|
#{BOILERPLATE}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
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
|
@@ -217,6 +217,7 @@ files:
|
|
217
217
|
- lib/asciidoctor/iec/basicdoc.rng
|
218
218
|
- lib/asciidoctor/iec/biblio.rng
|
219
219
|
- lib/asciidoctor/iec/converter.rb
|
220
|
+
- lib/asciidoctor/iec/front.rb
|
220
221
|
- lib/asciidoctor/iec/i18n-en.yaml
|
221
222
|
- lib/asciidoctor/iec/i18n-fr.yaml
|
222
223
|
- lib/asciidoctor/iec/i18n-zh-Hans.yaml
|
@@ -250,6 +251,7 @@ files:
|
|
250
251
|
- spec/asciidoctor-iec/base_spec.rb
|
251
252
|
- spec/asciidoctor-iec/blocks_spec.rb
|
252
253
|
- spec/asciidoctor-iec/cleanup_spec.rb
|
254
|
+
- spec/asciidoctor-iec/iev_spec.rb
|
253
255
|
- spec/asciidoctor-iec/inline_spec.rb
|
254
256
|
- spec/asciidoctor-iec/lists_spec.rb
|
255
257
|
- spec/asciidoctor-iec/section_spec.rb
|
@@ -264,7 +266,13 @@ files:
|
|
264
266
|
- spec/examples/rice.doc
|
265
267
|
- spec/examples/rice.html
|
266
268
|
- spec/examples/rice.xml
|
269
|
+
- spec/examples/rice_img/rice_image1.png
|
270
|
+
- spec/examples/rice_img/rice_image2.png
|
271
|
+
- spec/examples/rice_img/rice_image3_1.png
|
272
|
+
- spec/examples/rice_img/rice_image3_2.png
|
273
|
+
- spec/examples/rice_img/rice_image3_3.png
|
267
274
|
- spec/isodoc/i18n_spec.rb
|
275
|
+
- spec/isodoc/iev_spec.rb
|
268
276
|
- spec/isodoc/inline_spec.rb
|
269
277
|
- spec/isodoc/iso_spec.rb
|
270
278
|
- spec/isodoc/metadata_spec.rb
|