metanorma-iec 1.2.7 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +29 -8
- data/README.adoc +3 -4
- data/lib/asciidoctor/iec/basicdoc.rng +50 -3
- data/lib/asciidoctor/iec/converter.rb +22 -1
- data/lib/asciidoctor/iec/front.rb +18 -7
- data/lib/asciidoctor/iec/iec.rng +81 -1
- data/lib/asciidoctor/iec/iec_intro_en.xml +110 -56
- data/lib/asciidoctor/iec/iec_intro_fr.xml +78 -22
- data/lib/asciidoctor/iec/isodoc.rng +61 -3
- data/lib/asciidoctor/iec/isostandard.rng +27 -10
- data/lib/isodoc/iec/base_convert.rb +2 -2
- data/lib/isodoc/iec/html/htmlstyle.css +5 -5
- data/lib/isodoc/iec/html/htmlstyle.scss +4 -4
- data/lib/isodoc/iec/html/isodoc.css +79 -79
- data/lib/isodoc/iec/html/isodoc.scss +79 -79
- data/lib/isodoc/iec/html/wordstyle.css +120 -120
- data/lib/isodoc/iec/html/wordstyle.scss +120 -120
- data/lib/isodoc/iec/html_convert.rb +8 -0
- data/lib/isodoc/iec/i18n-en.yaml +17 -0
- data/lib/isodoc/iec/i18n-fr.yaml +18 -0
- data/lib/isodoc/iec/iec.international-standard.xsl +817 -382
- data/lib/isodoc/iec/metadata.rb +33 -0
- data/lib/isodoc/iec/presentation_xml_convert.rb +12 -0
- data/lib/isodoc/iec/word_convert.rb +10 -0
- data/lib/metanorma/iec/processor.rb +11 -8
- data/lib/metanorma/iec/version.rb +1 -1
- data/metanorma-iec.gemspec +1 -2
- data/spec/asciidoctor-iec/base_spec.rb +429 -8
- data/spec/asciidoctor-iec/blocks_spec.rb +25 -21
- data/spec/asciidoctor-iec/cleanup_spec.rb +99 -98
- data/spec/asciidoctor-iec/iev_spec.rb +15 -6
- data/spec/asciidoctor-iec/inline_spec.rb +11 -7
- data/spec/asciidoctor-iec/lists_spec.rb +13 -9
- data/spec/asciidoctor-iec/section_spec.rb +9 -5
- data/spec/asciidoctor-iec/validate_spec.rb +15 -0
- data/spec/isodoc/i18n_spec.rb +30 -0
- data/spec/isodoc/iso_spec.rb +2 -2
- data/spec/isodoc/metadata_spec.rb +23 -1
- data/spec/isodoc/ref_spec.rb +2 -2
- data/spec/metanorma/processor_spec.rb +1 -1
- data/spec/spec_helper.rb +20 -31
- metadata +4 -18
data/lib/isodoc/iec/metadata.rb
CHANGED
@@ -20,6 +20,39 @@ module IsoDoc
|
|
20
20
|
set(:revdate, revdate&.text)
|
21
21
|
end
|
22
22
|
|
23
|
+
def doctype(isoxml, _out)
|
24
|
+
super
|
25
|
+
b = isoxml&.at(ns("//bibdata/ext/doctype#{NOLANG}"))&.text
|
26
|
+
b1 = isoxml&.at(ns("//bibdata/ext/doctype[@language = 'en']"))&.text || b
|
27
|
+
b1 and set(:doctype_en, status_print(b1))
|
28
|
+
b1 = isoxml&.at(ns("//bibdata/ext/doctype[@language = 'fr']"))&.text || b
|
29
|
+
b1 and set(:doctype_fr, status_print(b1))
|
30
|
+
docfunction(isoxml)
|
31
|
+
dochorizontal(isoxml)
|
32
|
+
end
|
33
|
+
|
34
|
+
def docfunction(isoxml)
|
35
|
+
b = isoxml&.at(ns("//bibdata/ext/function#{NOLANG}"))&.text || return
|
36
|
+
b and set(:function, status_print(b))
|
37
|
+
b1 = isoxml&.at(ns("//bibdata/ext/function#{currlang}"))&.text || b
|
38
|
+
b1 and set(:function_display, status_print(b1))
|
39
|
+
b1 = isoxml&.at(ns("//bibdata/ext/function[@language = 'en']"))&.text || b
|
40
|
+
b1 and set(:function_en, status_print(b1))
|
41
|
+
b1 = isoxml&.at(ns("//bibdata/ext/function[@language = 'fr']"))&.text || b
|
42
|
+
b1 and set(:function_fr, status_print(b1))
|
43
|
+
end
|
44
|
+
|
45
|
+
def dochorizontal(isoxml)
|
46
|
+
b = isoxml&.at(ns("//bibdata/ext/horizontal#{NOLANG}"))&.text || return
|
47
|
+
b and set(:horizontal, status_print(b))
|
48
|
+
b1 = isoxml&.at(ns("//bibdata/ext/horizontal#{currlang}"))&.text
|
49
|
+
b1 and set(:horizontal_display, status_print(b1))
|
50
|
+
b1 = isoxml&.at(ns("//bibdata/ext/horizontal[@language = 'en']"))&.text
|
51
|
+
b1 and set(:horizontal_en, status_print(b1))
|
52
|
+
b1 = isoxml&.at(ns("//bibdata/ext/horizontal[@language = 'fr']"))&.text
|
53
|
+
b1 and set(:horizontal_fr, status_print(b1))
|
54
|
+
end
|
55
|
+
|
23
56
|
def unpublished(status)
|
24
57
|
status.to_i > 0 && status.to_i < 60
|
25
58
|
end
|
@@ -28,6 +28,18 @@ module IsoDoc
|
|
28
28
|
call(f)
|
29
29
|
end
|
30
30
|
|
31
|
+
def bibdata_i18n(b)
|
32
|
+
fr = IsoDoc::Iec::I18n.new("fr", "Latn")
|
33
|
+
en = IsoDoc::Iec::I18n.new("en", "Latn")
|
34
|
+
[{ lang: "en", i18n: en }, { lang: "fr", i18n: fr }].each do |v|
|
35
|
+
hash_translate(b, v[:i18n].get["doctype_dict"], "./ext/doctype", v[:lang])
|
36
|
+
hash_translate(b, v[:i18n].get["stage_dict"], "./status/stage", v[:lang])
|
37
|
+
hash_translate(b, v[:i18n].get["substage_dict"], "./status/substage", v[:lang])
|
38
|
+
hash_translate(b, v[:i18n].get["function_dict"], "./ext/function", v[:lang])
|
39
|
+
hash_translate(b, v[:i18n].get["horizontal_dict"], "./ext/horizontal", v[:lang])
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
31
43
|
include Init
|
32
44
|
end
|
33
45
|
end
|
@@ -16,6 +16,10 @@ module IsoDoc
|
|
16
16
|
bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' : '"Arial",sans-serif'),
|
17
17
|
headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' : '"Arial",sans-serif'),
|
18
18
|
monospacefont: '"Courier New",monospace',
|
19
|
+
normalfontsize: "10.0pt",
|
20
|
+
footnotefontsize: "8.0pt",
|
21
|
+
smallerfontsize: "8.0pt",
|
22
|
+
monospacefontsize: "9.0pt",
|
19
23
|
}
|
20
24
|
end
|
21
25
|
|
@@ -161,6 +165,12 @@ module IsoDoc
|
|
161
165
|
b.replace(b.children)
|
162
166
|
end
|
163
167
|
|
168
|
+
def authority_cleanup(docxml)
|
169
|
+
auth = docxml.at("//div[@id = 'boilerplate-feedback' or @class = 'boilerplate-feedback']")
|
170
|
+
auth&.remove
|
171
|
+
super
|
172
|
+
end
|
173
|
+
|
164
174
|
def make_body1(body, _docxml)
|
165
175
|
end
|
166
176
|
|
@@ -2,14 +2,6 @@ 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
|
-
|
13
5
|
class Processor < Metanorma::Processor
|
14
6
|
|
15
7
|
def initialize
|
@@ -26,6 +18,17 @@ module Metanorma
|
|
26
18
|
)
|
27
19
|
end
|
28
20
|
|
21
|
+
def fonts_manifest
|
22
|
+
{
|
23
|
+
"Arial" => nil,
|
24
|
+
"Times New Roman" => nil,
|
25
|
+
"STIX Two Math" => nil,
|
26
|
+
"Source Han Sans" => nil,
|
27
|
+
"Courier" => nil,
|
28
|
+
"Courier New" => nil,
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
29
32
|
def version
|
30
33
|
"Metanorma::Iec #{Metanorma::Iec::VERSION}"
|
31
34
|
end
|
data/metanorma-iec.gemspec
CHANGED
@@ -28,8 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
29
29
|
|
30
30
|
spec.add_dependency "ruby-jing"
|
31
|
-
spec.add_dependency "
|
32
|
-
spec.add_dependency "metanorma-iso", "~> 1.5.10"
|
31
|
+
spec.add_dependency "metanorma-iso", "~> 1.6.1"
|
33
32
|
|
34
33
|
spec.add_development_dependency "byebug"
|
35
34
|
spec.add_development_dependency "sassc", "2.4.0"
|
@@ -2,6 +2,11 @@ require "spec_helper"
|
|
2
2
|
require "fileutils"
|
3
3
|
|
4
4
|
RSpec.describe Asciidoctor::Iec do
|
5
|
+
before(:all) do
|
6
|
+
@blank_hdr = blank_hdr_gen
|
7
|
+
end
|
8
|
+
|
9
|
+
|
5
10
|
it "has a version number" do
|
6
11
|
expect(Metanorma::Iec::VERSION).not_to be nil
|
7
12
|
end
|
@@ -21,7 +26,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
21
26
|
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
22
27
|
#{ASCIIDOC_BLANK_HDR}
|
23
28
|
INPUT
|
24
|
-
#{
|
29
|
+
#{@blank_hdr}
|
25
30
|
<sections/>
|
26
31
|
</iec-standard>
|
27
32
|
OUTPUT
|
@@ -38,7 +43,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
38
43
|
:novalid:
|
39
44
|
:no-isobib:
|
40
45
|
INPUT
|
41
|
-
#{
|
46
|
+
#{@blank_hdr}
|
42
47
|
<sections/>
|
43
48
|
</iec-standard>
|
44
49
|
OUTPUT
|
@@ -91,6 +96,11 @@ RSpec.describe Asciidoctor::Iec do
|
|
91
96
|
:title-main-fr: Titre Principal
|
92
97
|
:title-part-fr: Part du Titre
|
93
98
|
:library-ics: 1,2,3
|
99
|
+
:accessibility-color-inside: true
|
100
|
+
:price-code: XC
|
101
|
+
:cen-processing: true
|
102
|
+
:secretary: Fred Nerk
|
103
|
+
:interest-to-committees: TC 6121, SC 12
|
94
104
|
INPUT
|
95
105
|
<?xml version="1.0" encoding="UTF-8"?>
|
96
106
|
<iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
|
@@ -142,6 +152,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
142
152
|
</copyright>
|
143
153
|
<ext>
|
144
154
|
<doctype>article</doctype>
|
155
|
+
<horizontal>false</horizontal>
|
145
156
|
<editorialgroup>
|
146
157
|
<technical-committee number="1" type="A">TC</technical-committee>
|
147
158
|
<technical-committee number="11" type="A1">TC1</technical-committee>
|
@@ -164,9 +175,144 @@ RSpec.describe Asciidoctor::Iec do
|
|
164
175
|
<project-number part="1">IEC 1000</project-number>
|
165
176
|
</structuredidentifier>
|
166
177
|
<stagename>New work item proposal</stagename>
|
178
|
+
<accessibility-color-inside>true</accessibility-color-inside>
|
179
|
+
<price-code>XC</price-code>
|
180
|
+
<cen-processing>true</cen-processing>
|
181
|
+
<secretary>Fred Nerk</secretary>
|
182
|
+
<interest-to-committees>TC 6121, SC 12</interest-to-committees>
|
167
183
|
</ext>
|
168
184
|
</bibdata>
|
169
|
-
|
185
|
+
<boilerplate>
|
186
|
+
<copyright-statement>
|
187
|
+
<clause>
|
188
|
+
<p id='_'>
|
189
|
+
<strong>Copyright © #{Time.now.year} International Electrotechnical Commission, IEC.</strong>
|
190
|
+
All rights reserved. It is permitted to download this electronic
|
191
|
+
file, to make a copy and to print out the content for the sole purpose
|
192
|
+
of preparing National Committee positions. You may not copy or
|
193
|
+
“mirror” the file or printed version of the document, or any part of
|
194
|
+
it, for any other purpose without permission in writing from IEC.
|
195
|
+
</p>
|
196
|
+
</clause>
|
197
|
+
</copyright-statement>
|
198
|
+
<legal-statement>
|
199
|
+
<clause>
|
200
|
+
<ol id='_'>
|
201
|
+
<li>
|
202
|
+
<p id='_'>
|
203
|
+
The International Electrotechnical Commission (IEC) is a worldwide
|
204
|
+
organization for standardization comprising all national
|
205
|
+
electrotechnical committees (IEC National Committees). The object
|
206
|
+
of IEC is to promote international co-operation on all questions
|
207
|
+
concerning standardization in the electrical and electronic
|
208
|
+
fields. To this end and in addition to other activities, IEC
|
209
|
+
publishes International Standards, Technical Specifications,
|
210
|
+
Technical Reports, Publicly Available Specifications (PAS) and
|
211
|
+
Guides (hereafter referred to as “IEC Publication(s)”). Their
|
212
|
+
preparation is entrusted to technical committees; any IEC National
|
213
|
+
Committee interested in the subject dealt with may participate in
|
214
|
+
this preparatory work. International, governmental and
|
215
|
+
non-governmental organizations liaising with the IEC also
|
216
|
+
participate in this preparation. IEC collaborates closely with the
|
217
|
+
International Organization for Standardization (ISO) in accordance
|
218
|
+
with conditions determined by agreement between the two
|
219
|
+
organizations.
|
220
|
+
</p>
|
221
|
+
</li>
|
222
|
+
<li>
|
223
|
+
<p id='_'>
|
224
|
+
The formal decisions or agreements of IEC on technical matters
|
225
|
+
express, as nearly as possible, an international consensus of
|
226
|
+
opinion on the relevant subjects since each technical committee
|
227
|
+
has representation from all interested IEC National Committees.
|
228
|
+
</p>
|
229
|
+
</li>
|
230
|
+
<li>
|
231
|
+
<p id='_'>
|
232
|
+
IEC Publications have the form of recommendations for
|
233
|
+
international use and are accepted by IEC National Committees in
|
234
|
+
that sense. While all reasonable efforts are made to ensure that
|
235
|
+
the technical content of IEC Publications is accurate, IEC cannot
|
236
|
+
be held responsible for the way in which they are used or for any
|
237
|
+
misinterpretation by any end user.
|
238
|
+
</p>
|
239
|
+
</li>
|
240
|
+
<li>
|
241
|
+
<p id='_'>
|
242
|
+
In order to promote international uniformity, IEC National
|
243
|
+
Committees undertake to apply IEC Publications transparently to
|
244
|
+
the maximum extent possible in their national and regional
|
245
|
+
publications. Any divergence between any IEC Publication and the
|
246
|
+
corresponding national or regional publication shall be clearly
|
247
|
+
indicated in the latter.
|
248
|
+
</p>
|
249
|
+
</li>
|
250
|
+
<li>
|
251
|
+
<p id='_'>
|
252
|
+
IEC itself does not provide any attestation of conformity.
|
253
|
+
Independent certification bodies provide conformity assessment
|
254
|
+
services and, in some areas, access to IEC marks of conformity.
|
255
|
+
IEC is not responsible for any services carried out by independent
|
256
|
+
certification bodies.
|
257
|
+
</p>
|
258
|
+
</li>
|
259
|
+
<li>
|
260
|
+
<p id='_'>All users should ensure that they have the latest edition of this publication.</p>
|
261
|
+
</li>
|
262
|
+
<li>
|
263
|
+
<p id='_'>
|
264
|
+
No liability shall attach to IEC or its directors, employees,
|
265
|
+
servants or agents including individual experts and members of its
|
266
|
+
technical committees and IEC National Committees for any personal
|
267
|
+
injury, property damage or other damage of any nature whatsoever,
|
268
|
+
whether direct or indirect, or for costs (including legal fees)
|
269
|
+
and expenses arising out of the publication, use of, or reliance
|
270
|
+
upon, this IEC Publication or any other IEC Publications.
|
271
|
+
</p>
|
272
|
+
</li>
|
273
|
+
<li>
|
274
|
+
<p id='_'>
|
275
|
+
Attention is drawn to the Normative references cited in this
|
276
|
+
publication. Use of the referenced publications is indispensable
|
277
|
+
for the correct application of this publication.
|
278
|
+
</p>
|
279
|
+
</li>
|
280
|
+
<li>
|
281
|
+
<p id='_'>
|
282
|
+
Attention is drawn to the possibility that some of the elements of
|
283
|
+
this IEC Publication may be the subject of patent rights. IEC
|
284
|
+
shall not be held responsible for identifying any or all such
|
285
|
+
patent rights.
|
286
|
+
</p>
|
287
|
+
</li>
|
288
|
+
</ol>
|
289
|
+
</clause>
|
290
|
+
</legal-statement>
|
291
|
+
<license-statement>
|
292
|
+
<clause>
|
293
|
+
<p id='_'>
|
294
|
+
This document is still under study and subject to change. It should
|
295
|
+
not be used for reference purposes.
|
296
|
+
</p>
|
297
|
+
until published as such.
|
298
|
+
<p id='_'>
|
299
|
+
Recipients of this document are invited to submit, with their
|
300
|
+
comments, notification of any relevant patent rights of which they are
|
301
|
+
aware and to provide supporting documentation.
|
302
|
+
</p>
|
303
|
+
</clause>
|
304
|
+
</license-statement>
|
305
|
+
<feedback-statement>
|
306
|
+
<clause id='boilerplate-cenelec-attention'>
|
307
|
+
<title>Attention IEC-CENELEC parallel voting</title>
|
308
|
+
<p id='_'>
|
309
|
+
The attention of IEC National Committees, members of CENELEC, is drawn
|
310
|
+
to the fact that this (NWIP) is submitted for parallel voting.
|
311
|
+
</p>
|
312
|
+
<p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
|
313
|
+
</clause>
|
314
|
+
</feedback-statement>
|
315
|
+
</boilerplate>
|
170
316
|
<sections/>
|
171
317
|
</iec-standard>
|
172
318
|
OUTPUT
|
@@ -186,10 +332,12 @@ RSpec.describe Asciidoctor::Iec do
|
|
186
332
|
:tc-docnumber: 2000
|
187
333
|
:language: el
|
188
334
|
:script: Grek
|
189
|
-
:publisher: IEC
|
335
|
+
:publisher: IEC;IETF;ISO
|
190
336
|
:copyright-year: 2001
|
191
337
|
:docstage: A2CD
|
192
338
|
:doctype: technical-specification
|
339
|
+
:function: emc
|
340
|
+
:horizontal: true
|
193
341
|
INPUT
|
194
342
|
<?xml version="1.0" encoding="UTF-8"?>
|
195
343
|
<iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
|
@@ -272,6 +420,8 @@ RSpec.describe Asciidoctor::Iec do
|
|
272
420
|
</copyright>
|
273
421
|
<ext>
|
274
422
|
<doctype>technical-specification</doctype>
|
423
|
+
<horizontal>true</horizontal>
|
424
|
+
<function>emc</function>
|
275
425
|
<editorialgroup>
|
276
426
|
<technical-committee/>
|
277
427
|
<subcommittee/>
|
@@ -283,7 +433,138 @@ RSpec.describe Asciidoctor::Iec do
|
|
283
433
|
<stagename>Committee draft</stagename>
|
284
434
|
</ext>
|
285
435
|
</bibdata>
|
286
|
-
|
436
|
+
<boilerplate>
|
437
|
+
<copyright-statement>
|
438
|
+
<clause>
|
439
|
+
<p id='_'>
|
440
|
+
<strong>Copyright © 2001 International Electrotechnical Commission, IEC.</strong>
|
441
|
+
All rights reserved. It is permitted to download this electronic
|
442
|
+
file, to make a copy and to print out the content for the sole purpose
|
443
|
+
of preparing National Committee positions. You may not copy or
|
444
|
+
“mirror” the file or printed version of the document, or any part of
|
445
|
+
it, for any other purpose without permission in writing from IEC.
|
446
|
+
</p>
|
447
|
+
</clause>
|
448
|
+
</copyright-statement>
|
449
|
+
<legal-statement>
|
450
|
+
<clause>
|
451
|
+
<ol id='_'>
|
452
|
+
<li>
|
453
|
+
<p id='_'>
|
454
|
+
The International Electrotechnical Commission (IEC) is a worldwide
|
455
|
+
organization for standardization comprising all national
|
456
|
+
electrotechnical committees (IEC National Committees). The object
|
457
|
+
of IEC is to promote international co-operation on all questions
|
458
|
+
concerning standardization in the electrical and electronic
|
459
|
+
fields. To this end and in addition to other activities, IEC
|
460
|
+
publishes International Standards, Technical Specifications,
|
461
|
+
Technical Reports, Publicly Available Specifications (PAS) and
|
462
|
+
Guides (hereafter referred to as “IEC Publication(s)”). Their
|
463
|
+
preparation is entrusted to technical committees; any IEC National
|
464
|
+
Committee interested in the subject dealt with may participate in
|
465
|
+
this preparatory work. International, governmental and
|
466
|
+
non-governmental organizations liaising with the IEC also
|
467
|
+
participate in this preparation. IEC collaborates closely with the
|
468
|
+
International Organization for Standardization (ISO) in accordance
|
469
|
+
with conditions determined by agreement between the two
|
470
|
+
organizations.
|
471
|
+
</p>
|
472
|
+
</li>
|
473
|
+
<li>
|
474
|
+
<p id='_'>
|
475
|
+
The formal decisions or agreements of IEC on technical matters
|
476
|
+
express, as nearly as possible, an international consensus of
|
477
|
+
opinion on the relevant subjects since each technical committee
|
478
|
+
has representation from all interested IEC National Committees.
|
479
|
+
</p>
|
480
|
+
</li>
|
481
|
+
<li>
|
482
|
+
<p id='_'>
|
483
|
+
IEC Publications have the form of recommendations for
|
484
|
+
international use and are accepted by IEC National Committees in
|
485
|
+
that sense. While all reasonable efforts are made to ensure that
|
486
|
+
the technical content of IEC Publications is accurate, IEC cannot
|
487
|
+
be held responsible for the way in which they are used or for any
|
488
|
+
misinterpretation by any end user.
|
489
|
+
</p>
|
490
|
+
</li>
|
491
|
+
<li>
|
492
|
+
<p id='_'>
|
493
|
+
In order to promote international uniformity, IEC National
|
494
|
+
Committees undertake to apply IEC Publications transparently to
|
495
|
+
the maximum extent possible in their national and regional
|
496
|
+
publications. Any divergence between any IEC Publication and the
|
497
|
+
corresponding national or regional publication shall be clearly
|
498
|
+
indicated in the latter.
|
499
|
+
</p>
|
500
|
+
</li>
|
501
|
+
<li>
|
502
|
+
<p id='_'>
|
503
|
+
IEC itself does not provide any attestation of conformity.
|
504
|
+
Independent certification bodies provide conformity assessment
|
505
|
+
services and, in some areas, access to IEC marks of conformity.
|
506
|
+
IEC is not responsible for any services carried out by independent
|
507
|
+
certification bodies.
|
508
|
+
</p>
|
509
|
+
</li>
|
510
|
+
<li>
|
511
|
+
<p id='_'>All users should ensure that they have the latest edition of this publication.</p>
|
512
|
+
</li>
|
513
|
+
<li>
|
514
|
+
<p id='_'>
|
515
|
+
No liability shall attach to IEC or its directors, employees,
|
516
|
+
servants or agents including individual experts and members of its
|
517
|
+
technical committees and IEC National Committees for any personal
|
518
|
+
injury, property damage or other damage of any nature whatsoever,
|
519
|
+
whether direct or indirect, or for costs (including legal fees)
|
520
|
+
and expenses arising out of the publication, use of, or reliance
|
521
|
+
upon, this IEC Publication or any other IEC Publications.
|
522
|
+
</p>
|
523
|
+
</li>
|
524
|
+
<li>
|
525
|
+
<p id='_'>
|
526
|
+
Attention is drawn to the Normative references cited in this
|
527
|
+
publication. Use of the referenced publications is indispensable
|
528
|
+
for the correct application of this publication.
|
529
|
+
</p>
|
530
|
+
</li>
|
531
|
+
<li>
|
532
|
+
<p id='_'>
|
533
|
+
Attention is drawn to the possibility that some of the elements of
|
534
|
+
this IEC Publication may be the subject of patent rights. IEC
|
535
|
+
shall not be held responsible for identifying any or all such
|
536
|
+
patent rights.
|
537
|
+
</p>
|
538
|
+
</li>
|
539
|
+
</ol>
|
540
|
+
</clause>
|
541
|
+
</legal-statement>
|
542
|
+
<license-statement>
|
543
|
+
<clause>
|
544
|
+
<p id='_'>
|
545
|
+
This document is still under study and subject to change. It should
|
546
|
+
not be used for reference purposes.
|
547
|
+
</p>
|
548
|
+
until published as such.
|
549
|
+
<p id='_'>
|
550
|
+
Recipients of this document are invited to submit, with their
|
551
|
+
comments, notification of any relevant patent rights of which they are
|
552
|
+
aware and to provide supporting documentation.
|
553
|
+
</p>
|
554
|
+
</clause>
|
555
|
+
</license-statement>
|
556
|
+
<feedback-statement>
|
557
|
+
<clause id='boilerplate-cenelec-attention'>
|
558
|
+
<title>Attention IEC-CENELEC parallel voting</title>
|
559
|
+
<p id='_'>
|
560
|
+
The attention of IEC National Committees, members of CENELEC, is drawn
|
561
|
+
to the fact that this Committee Draft (CD) is submitted for parallel
|
562
|
+
voting.
|
563
|
+
</p>
|
564
|
+
<p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
|
565
|
+
</clause>
|
566
|
+
</feedback-statement>
|
567
|
+
</boilerplate>
|
287
568
|
<sections/>
|
288
569
|
</iec-standard>
|
289
570
|
OUTPUT
|
@@ -376,6 +657,7 @@ RSpec.describe Asciidoctor::Iec do
|
|
376
657
|
</copyright>
|
377
658
|
<ext>
|
378
659
|
<doctype>article</doctype>
|
660
|
+
<horizontal>false</horizontal>
|
379
661
|
<editorialgroup>
|
380
662
|
<technical-committee/>
|
381
663
|
<subcommittee/>
|
@@ -387,7 +669,144 @@ RSpec.describe Asciidoctor::Iec do
|
|
387
669
|
<stagename>Final draft international standard</stagename>
|
388
670
|
</ext>
|
389
671
|
</bibdata>
|
390
|
-
|
672
|
+
<boilerplate>
|
673
|
+
<copyright-statement>
|
674
|
+
<clause>
|
675
|
+
<p id='_'>
|
676
|
+
<strong>Copyright © #{Time.now.year} International Electrotechnical Commission, IEC.</strong>
|
677
|
+
All rights reserved. It is permitted to download this electronic
|
678
|
+
file, to make a copy and to print out the content for the sole purpose
|
679
|
+
of preparing National Committee positions. You may not copy or
|
680
|
+
“mirror” the file or printed version of the document, or any part of
|
681
|
+
it, for any other purpose without permission in writing from IEC.
|
682
|
+
</p>
|
683
|
+
</clause>
|
684
|
+
</copyright-statement>
|
685
|
+
<legal-statement>
|
686
|
+
<clause>
|
687
|
+
<ol id='_'>
|
688
|
+
<li>
|
689
|
+
<p id='_'>
|
690
|
+
The International Electrotechnical Commission (IEC) is a worldwide
|
691
|
+
organization for standardization comprising all national
|
692
|
+
electrotechnical committees (IEC National Committees). The object
|
693
|
+
of IEC is to promote international co-operation on all questions
|
694
|
+
concerning standardization in the electrical and electronic
|
695
|
+
fields. To this end and in addition to other activities, IEC
|
696
|
+
publishes International Standards, Technical Specifications,
|
697
|
+
Technical Reports, Publicly Available Specifications (PAS) and
|
698
|
+
Guides (hereafter referred to as “IEC Publication(s)”). Their
|
699
|
+
preparation is entrusted to technical committees; any IEC National
|
700
|
+
Committee interested in the subject dealt with may participate in
|
701
|
+
this preparatory work. International, governmental and
|
702
|
+
non-governmental organizations liaising with the IEC also
|
703
|
+
participate in this preparation. IEC collaborates closely with the
|
704
|
+
International Organization for Standardization (ISO) in accordance
|
705
|
+
with conditions determined by agreement between the two
|
706
|
+
organizations.
|
707
|
+
</p>
|
708
|
+
</li>
|
709
|
+
<li>
|
710
|
+
<p id='_'>
|
711
|
+
The formal decisions or agreements of IEC on technical matters
|
712
|
+
express, as nearly as possible, an international consensus of
|
713
|
+
opinion on the relevant subjects since each technical committee
|
714
|
+
has representation from all interested IEC National Committees.
|
715
|
+
</p>
|
716
|
+
</li>
|
717
|
+
<li>
|
718
|
+
<p id='_'>
|
719
|
+
IEC Publications have the form of recommendations for
|
720
|
+
international use and are accepted by IEC National Committees in
|
721
|
+
that sense. While all reasonable efforts are made to ensure that
|
722
|
+
the technical content of IEC Publications is accurate, IEC cannot
|
723
|
+
be held responsible for the way in which they are used or for any
|
724
|
+
misinterpretation by any end user.
|
725
|
+
</p>
|
726
|
+
</li>
|
727
|
+
<li>
|
728
|
+
<p id='_'>
|
729
|
+
In order to promote international uniformity, IEC National
|
730
|
+
Committees undertake to apply IEC Publications transparently to
|
731
|
+
the maximum extent possible in their national and regional
|
732
|
+
publications. Any divergence between any IEC Publication and the
|
733
|
+
corresponding national or regional publication shall be clearly
|
734
|
+
indicated in the latter.
|
735
|
+
</p>
|
736
|
+
</li>
|
737
|
+
<li>
|
738
|
+
<p id='_'>
|
739
|
+
IEC itself does not provide any attestation of conformity.
|
740
|
+
Independent certification bodies provide conformity assessment
|
741
|
+
services and, in some areas, access to IEC marks of conformity.
|
742
|
+
IEC is not responsible for any services carried out by independent
|
743
|
+
certification bodies.
|
744
|
+
</p>
|
745
|
+
</li>
|
746
|
+
<li>
|
747
|
+
<p id='_'>All users should ensure that they have the latest edition of this publication.</p>
|
748
|
+
</li>
|
749
|
+
<li>
|
750
|
+
<p id='_'>
|
751
|
+
No liability shall attach to IEC or its directors, employees,
|
752
|
+
servants or agents including individual experts and members of its
|
753
|
+
technical committees and IEC National Committees for any personal
|
754
|
+
injury, property damage or other damage of any nature whatsoever,
|
755
|
+
whether direct or indirect, or for costs (including legal fees)
|
756
|
+
and expenses arising out of the publication, use of, or reliance
|
757
|
+
upon, this IEC Publication or any other IEC Publications.
|
758
|
+
</p>
|
759
|
+
</li>
|
760
|
+
<li>
|
761
|
+
<p id='_'>
|
762
|
+
Attention is drawn to the Normative references cited in this
|
763
|
+
publication. Use of the referenced publications is indispensable
|
764
|
+
for the correct application of this publication.
|
765
|
+
</p>
|
766
|
+
</li>
|
767
|
+
<li>
|
768
|
+
<p id='_'>
|
769
|
+
Attention is drawn to the possibility that some of the elements of
|
770
|
+
this IEC Publication may be the subject of patent rights. IEC
|
771
|
+
shall not be held responsible for identifying any or all such
|
772
|
+
patent rights.
|
773
|
+
</p>
|
774
|
+
</li>
|
775
|
+
</ol>
|
776
|
+
</clause>
|
777
|
+
</legal-statement>
|
778
|
+
<license-statement>
|
779
|
+
<clause>
|
780
|
+
<p id='_'>
|
781
|
+
This document is a draft distributed for approval. It may not be
|
782
|
+
referred to as an International Standard until published as such.
|
783
|
+
</p>
|
784
|
+
<p id='_'>
|
785
|
+
In addition to their evaluation as being acceptable for industrial,
|
786
|
+
technological, commercial and user purposes, Final Draft International
|
787
|
+
Standards may on occasion have to be considered in the light of their
|
788
|
+
potential to become standards to which reference may be made in
|
789
|
+
national regulations.
|
790
|
+
</p>
|
791
|
+
<p id='_'>
|
792
|
+
Recipients of this document are invited to submit, with their
|
793
|
+
comments, notification of any relevant patent rights of which they are
|
794
|
+
aware and to provide supporting documentation.
|
795
|
+
</p>
|
796
|
+
</clause>
|
797
|
+
</license-statement>
|
798
|
+
<feedback-statement>
|
799
|
+
<clause id='boilerplate-cenelec-attention'>
|
800
|
+
<title>Attention IEC-CENELEC parallel voting</title>
|
801
|
+
<p id='_'>
|
802
|
+
The attention of IEC National Committees, members of CENELEC, is drawn
|
803
|
+
to the fact that this Final Draft International Standard (FDIS) is
|
804
|
+
submitted for parallel voting.
|
805
|
+
</p>
|
806
|
+
<p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
|
807
|
+
</clause>
|
808
|
+
</feedback-statement>
|
809
|
+
</boilerplate>
|
391
810
|
<sections/>
|
392
811
|
</iec-standard>
|
393
812
|
OUTPUT
|
@@ -440,6 +859,7 @@ OUTPUT
|
|
440
859
|
</copyright>
|
441
860
|
<ext>
|
442
861
|
<doctype>article</doctype>
|
862
|
+
<horizontal>false</horizontal>
|
443
863
|
<editorialgroup>
|
444
864
|
<technical-committee/>
|
445
865
|
<subcommittee/>
|
@@ -451,7 +871,7 @@ OUTPUT
|
|
451
871
|
<stagename>International standard</stagename>
|
452
872
|
</ext>
|
453
873
|
</bibdata>
|
454
|
-
#{
|
874
|
+
#{boilerplate(Nokogiri::XML(BLANK_HDR + "</iec-standard>"))}
|
455
875
|
<sections/>
|
456
876
|
</iec-standard>
|
457
877
|
OUTPUT
|
@@ -505,6 +925,7 @@ OUTPUT
|
|
505
925
|
</copyright>
|
506
926
|
<ext>
|
507
927
|
<doctype>article</doctype>
|
928
|
+
<horizontal>false</horizontal>
|
508
929
|
<editorialgroup>
|
509
930
|
<technical-committee/>
|
510
931
|
<subcommittee/>
|
@@ -516,7 +937,7 @@ OUTPUT
|
|
516
937
|
<stagename>International standard</stagename>
|
517
938
|
</ext>
|
518
939
|
</bibdata>
|
519
|
-
#{
|
940
|
+
#{boilerplate(Nokogiri::XML(BLANK_HDR + "</iec-standard>"))}
|
520
941
|
<sections/>
|
521
942
|
</iec-standard>
|
522
943
|
OUTPUT
|