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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +29 -8
  3. data/README.adoc +3 -4
  4. data/lib/asciidoctor/iec/basicdoc.rng +50 -3
  5. data/lib/asciidoctor/iec/converter.rb +22 -1
  6. data/lib/asciidoctor/iec/front.rb +18 -7
  7. data/lib/asciidoctor/iec/iec.rng +81 -1
  8. data/lib/asciidoctor/iec/iec_intro_en.xml +110 -56
  9. data/lib/asciidoctor/iec/iec_intro_fr.xml +78 -22
  10. data/lib/asciidoctor/iec/isodoc.rng +61 -3
  11. data/lib/asciidoctor/iec/isostandard.rng +27 -10
  12. data/lib/isodoc/iec/base_convert.rb +2 -2
  13. data/lib/isodoc/iec/html/htmlstyle.css +5 -5
  14. data/lib/isodoc/iec/html/htmlstyle.scss +4 -4
  15. data/lib/isodoc/iec/html/isodoc.css +79 -79
  16. data/lib/isodoc/iec/html/isodoc.scss +79 -79
  17. data/lib/isodoc/iec/html/wordstyle.css +120 -120
  18. data/lib/isodoc/iec/html/wordstyle.scss +120 -120
  19. data/lib/isodoc/iec/html_convert.rb +8 -0
  20. data/lib/isodoc/iec/i18n-en.yaml +17 -0
  21. data/lib/isodoc/iec/i18n-fr.yaml +18 -0
  22. data/lib/isodoc/iec/iec.international-standard.xsl +817 -382
  23. data/lib/isodoc/iec/metadata.rb +33 -0
  24. data/lib/isodoc/iec/presentation_xml_convert.rb +12 -0
  25. data/lib/isodoc/iec/word_convert.rb +10 -0
  26. data/lib/metanorma/iec/processor.rb +11 -8
  27. data/lib/metanorma/iec/version.rb +1 -1
  28. data/metanorma-iec.gemspec +1 -2
  29. data/spec/asciidoctor-iec/base_spec.rb +429 -8
  30. data/spec/asciidoctor-iec/blocks_spec.rb +25 -21
  31. data/spec/asciidoctor-iec/cleanup_spec.rb +99 -98
  32. data/spec/asciidoctor-iec/iev_spec.rb +15 -6
  33. data/spec/asciidoctor-iec/inline_spec.rb +11 -7
  34. data/spec/asciidoctor-iec/lists_spec.rb +13 -9
  35. data/spec/asciidoctor-iec/section_spec.rb +9 -5
  36. data/spec/asciidoctor-iec/validate_spec.rb +15 -0
  37. data/spec/isodoc/i18n_spec.rb +30 -0
  38. data/spec/isodoc/iso_spec.rb +2 -2
  39. data/spec/isodoc/metadata_spec.rb +23 -1
  40. data/spec/isodoc/ref_spec.rb +2 -2
  41. data/spec/metanorma/processor_spec.rb +1 -1
  42. data/spec/spec_helper.rb +20 -31
  43. metadata +4 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 065b3fdee8a57faf2f698c80f57ece1e0c234b10833e3187cb879bb683778257
4
- data.tar.gz: 12ca28a168eab53a8970421542b883e06c638a535f0648cc7d64babcba4a1314
3
+ metadata.gz: ec393e69e6f5bde6672652cdd455bd95ba7475e9de5672d05df4d1bd4940e7a7
4
+ data.tar.gz: a29da879a00bb09c7f0f35d06916c1163317809225eb49ac5abc8cb265c2d049
5
5
  SHA512:
6
- metadata.gz: 164fecc81e42574d17b366f0f04fde0e12476197fa9d7866d9652854fd181c2eb90a08fffa7ef30d5c7382f6caf318069fef95426a28314be7d22e7d0a105e5e
7
- data.tar.gz: dda40f72589b9a8de4ae3a56a86101a480c1e570880962bec551410e190fc2b5a0d83383124037f5135ef419e0a901a0a68626fb5241da5f33b7ed9c1ccf4217
6
+ metadata.gz: 96679dbdd734fdfaeaa14381b7b52195178fe649da053e0c05f64ff71d5fffa0ea69f49d9249a29fe8e30781c4b2fb019018aad6d0f705a6882a90a64f1c0b35
7
+ data.tar.gz: 0a0dab99cdb0060ccbadfb5dad707a62cce04b7e587f371e5408f1b0319120ff235400b054f6eaf7893ef878830f8d1d2612d3316b704ef1a997b02de09fc89e
@@ -4,7 +4,8 @@ name: rake
4
4
 
5
5
  on:
6
6
  push:
7
- branches: [ master ]
7
+ branches: [ master, main ]
8
+ tags: [ v* ]
8
9
  pull_request:
9
10
 
10
11
  jobs:
@@ -31,14 +32,34 @@ jobs:
31
32
  steps:
32
33
  - uses: actions/checkout@master
33
34
 
34
- - name: Use Ruby
35
- uses: ruby/setup-ruby@v1
35
+ - uses: ruby/setup-ruby@v1
36
36
  with:
37
37
  ruby-version: ${{ matrix.ruby }}
38
- bundler-cache: true
39
38
 
40
- - name: Update gems
41
- run: bundle install --jobs 4 --retry 3
39
+ - if: matrix.os == 'macos-latest'
40
+ run: brew install autoconf automake libtool
42
41
 
43
- - name: Run specs
44
- run: bundle exec rake
42
+ - uses: actions/cache@v2
43
+ with:
44
+ path: vendor/bundle
45
+ key: bundle-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}
46
+ restore-keys: bundle-${{ matrix.os }}-${{ matrix.ruby }}
47
+
48
+ - run: bundle config set path 'vendor/bundle'
49
+
50
+ - run: bundle install --jobs 4 --retry 3
51
+
52
+ - run: bundle exec rake
53
+
54
+ tests-passed:
55
+ needs: rake
56
+ runs-on: ubuntu-latest
57
+ steps:
58
+ - name: Trigger tests passed event
59
+ uses: Sibz/github-status-action@v1
60
+ with:
61
+ authToken: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }}
62
+ context: 'tests-passed-successfully'
63
+ description: 'Tests passed successfully'
64
+ state: 'success'
65
+ sha: ${{ github.event.pull_request.head.sha || github.sha }}
@@ -1,16 +1,15 @@
1
1
  = metanorma-iec: Metanorma processor for the International Electrotechnical Commission
2
2
 
3
3
  image:https://img.shields.io/gem/v/metanorma-iec.svg["Gem Version", link="https://rubygems.org/gems/metanorma-iec"]
4
- image:https://github.com/metanorma/metanorma-iec/workflows/macos/badge.svg["Build Status (macOS)", link="https://github.com/metanorma/metanorma-iec/actions?workflow=macos"]
5
- image:https://github.com/metanorma/metanorma-iec/workflows/ubuntu/badge.svg["Build Status (ubuntu)", link="https://github.com/metanorma/metanorma-iec/actions?workflow=ubuntu"]
6
- image:https://github.com/metanorma/metanorma-iec/workflows/windows/badge.svg["Build Status (Windows)", link="https://github.com/metanorma/metanorma-iec/actions?workflow=windows"]
4
+ image:https://github.com/metanorma/metanorma-iec/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/metanorma-iec/actions?workflow=rake"]
7
5
  image:https://codeclimate.com/github/metanorma/metanorma-iec/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-iec"]
8
6
  image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-iec.svg["Pull Requests", link="https://github.com/metanorma/metanorma-iec/pulls"]
9
7
  image:https://img.shields.io/github/commits-since/metanorma/metanorma-iec/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-iec/releases"]
10
8
 
11
9
  == Functionality
12
10
 
13
- This gem processes Metanorma documents into the IEC document class.
11
+ This gem processes https://www.metanorma.com[Metanorma documents] following
12
+ the Metanorma model for generating IEC standards.
14
13
 
15
14
  The gem is basically the https://github.com/metanorma/metanorma-iso gem, with some tweaking of rendering to meet the particular requirements of the IEC.
16
15
 
@@ -596,6 +596,7 @@
596
596
  <ref name="bookmark"/>
597
597
  <ref name="image"/>
598
598
  <ref name="index"/>
599
+ <ref name="index-xref"/>
599
600
  </choice>
600
601
  </define>
601
602
  <define name="PureTextElement">
@@ -728,15 +729,61 @@
728
729
  </define>
729
730
  <define name="index">
730
731
  <element name="index">
731
- <attribute name="primary"/>
732
+ <attribute name="to">
733
+ <data type="IDREF"/>
734
+ </attribute>
735
+ <element name="primary">
736
+ <oneOrMore>
737
+ <ref name="PureTextElement"/>
738
+ </oneOrMore>
739
+ </element>
732
740
  <optional>
733
- <attribute name="secondary"/>
741
+ <element name="secondary">
742
+ <oneOrMore>
743
+ <ref name="PureTextElement"/>
744
+ </oneOrMore>
745
+ </element>
734
746
  </optional>
735
747
  <optional>
736
- <attribute name="tertiary"/>
748
+ <element name="tertiary">
749
+ <oneOrMore>
750
+ <ref name="PureTextElement"/>
751
+ </oneOrMore>
752
+ </element>
737
753
  </optional>
738
754
  </element>
739
755
  </define>
756
+ <define name="index-xref">
757
+ <element name="index-xref">
758
+ <attribute name="also">
759
+ <data type="boolean"/>
760
+ </attribute>
761
+ <element name="primary">
762
+ <oneOrMore>
763
+ <ref name="PureTextElement"/>
764
+ </oneOrMore>
765
+ </element>
766
+ <optional>
767
+ <element name="secondary">
768
+ <oneOrMore>
769
+ <ref name="PureTextElement"/>
770
+ </oneOrMore>
771
+ </element>
772
+ </optional>
773
+ <optional>
774
+ <element name="tertiary">
775
+ <oneOrMore>
776
+ <ref name="PureTextElement"/>
777
+ </oneOrMore>
778
+ </element>
779
+ </optional>
780
+ <element name="target">
781
+ <oneOrMore>
782
+ <ref name="PureTextElement"/>
783
+ </oneOrMore>
784
+ </element>
785
+ </element>
786
+ </define>
740
787
  <!-- bare ID element, used for referencing arbitrary spans of text -->
741
788
  <define name="bookmark">
742
789
  <element name="bookmark">
@@ -30,6 +30,10 @@ module Asciidoctor
30
30
  publicly-available-specification international-workshop-agreement
31
31
  guide interpretation-sheet).include? doctype or
32
32
  @log.add("Document Attributes", nil, "#{doctype} is not a recognised document type")
33
+ if function = xmldoc&.at("//bibdata/ext/function")&.text
34
+ %w(emc quality-assurance safety environment).include? function or
35
+ @log.add("Document Attributes", nil, "#{function} is not a recognised document function")
36
+ end
33
37
  end
34
38
 
35
39
  def validate(doc)
@@ -58,7 +62,7 @@ module Asciidoctor
58
62
  node.nil? ? IsoDoc::Iec::PresentationXMLConvert.new({}) :
59
63
  IsoDoc::Iec::PresentationXMLConvert.new(doc_extract_attributes(node))
60
64
  end
61
-
65
+
62
66
  def norm_ref_preface(f)
63
67
  return super unless @is_iev
64
68
  f.at("./title").next =
@@ -76,6 +80,23 @@ module Asciidoctor
76
80
  super
77
81
  @is_iev and replace_title(x, "//introduction", @i18n&.introduction_iev)
78
82
  end
83
+
84
+ def note(n)
85
+ if n.title == "Note from TC/SC Officers"
86
+ noko do |xml|
87
+ xml.tc_sc_officers_note do |c|
88
+ wrap_in_para(n, c)
89
+ end
90
+ end.join("\n")
91
+ else
92
+ super
93
+ end
94
+ end
95
+
96
+ def note_cleanup(xmldoc)
97
+ super
98
+ n = xmldoc.at("//tc-sc-officers-note") and xmldoc.at("//bibdata/ext").add_child(n.remove)
99
+ end
79
100
  end
80
101
  end
81
102
  end
@@ -183,8 +183,7 @@ module Asciidoctor
183
183
 
184
184
  def get_stage(node)
185
185
  stage = node.attr("status") || node.attr("docstage") || "60"
186
- m = /([0-9])CD$/.match(stage) and
187
- node.set_attr("iteration", m[1])
186
+ m = /([0-9])CD$/.match(stage) and node.set_attr("iteration", m[1])
188
187
  STAGE_CODES[stage] and stage = STAGE_CODES[stage][0..1]
189
188
  stage
190
189
  end
@@ -193,9 +192,7 @@ module Asciidoctor
193
192
  st = node.attr("status") || node.attr("docstage")
194
193
  stage = get_stage(node)
195
194
  node.attr("docsubstage") ||
196
- ( stage == "60" ? "60" :
197
- STAGE_CODES[st] ? STAGE_CODES[st][2..3] :
198
- "00" )
195
+ ( stage == "60" ? "60" : STAGE_CODES[st] ? STAGE_CODES[st][2..3] : "00" )
199
196
  end
200
197
 
201
198
  def id_stage_abbr(stage, substage, node)
@@ -211,12 +208,26 @@ module Asciidoctor
211
208
  xml.status do |s|
212
209
  s.stage stage, **attr_code(abbreviation: stage_abbr(stage, substage))
213
210
  s.substage substage,
214
- **attr_code(abbreviation: status_abbrev1(stage, substage,
215
- node.attr("iteration"),
211
+ **attr_code(abbreviation: status_abbrev1(stage, substage, node.attr("iteration"),
216
212
  doctype(node),node.attr("draft")))
217
213
  node.attr("iteration") && (s.iteration node.attr("iteration"))
218
214
  end
219
215
  end
216
+
217
+ def metadata_doctype(node, xml)
218
+ xml.doctype doctype(node)
219
+ xml.horizontal (node.attr("horizontal") || "false")
220
+ a = node.attr("function") and xml.function a
221
+ end
222
+
223
+ def metadata_ext(node, xml)
224
+ super
225
+ a = node.attr("accessibility-color-inside") and xml.accessibility_color_inside a
226
+ a = node.attr("price-code") and xml.price_code a
227
+ a = node.attr("cen-processing") and xml.cen_processing a
228
+ a = node.attr("secretary") and xml.secretary a
229
+ a = node.attr("interest-to-committees") and xml.interest_to_committees a
230
+ end
220
231
  end
221
232
  end
222
233
  end
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <grammar ns="https://www.metanorma.org/ns/iec" xmlns="http://relaxng.org/ns/structure/1.0">
2
+ <grammar ns="https://www.metanorma.org/ns/iec" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
3
  <!-- default namespace = "https://www.metanorma.com/ns/iec" -->
4
4
  <include href="isostandard.rng">
5
5
  <start>
@@ -15,8 +15,88 @@
15
15
  <value>guide</value>
16
16
  </choice>
17
17
  </define>
18
+ <define name="BibDataExtensionType">
19
+ <ref name="doctype"/>
20
+ <optional>
21
+ <ref name="horizontal"/>
22
+ </optional>
23
+ <optional>
24
+ <ref name="function"/>
25
+ </optional>
26
+ <ref name="editorialgroup"/>
27
+ <zeroOrMore>
28
+ <ref name="ics"/>
29
+ </zeroOrMore>
30
+ <ref name="structuredidentifier"/>
31
+ <optional>
32
+ <ref name="stagename"/>
33
+ </optional>
34
+ <optional>
35
+ <ref name="updates_document_type"/>
36
+ </optional>
37
+ <optional>
38
+ <ref name="accessibility-color-inside"/>
39
+ </optional>
40
+ <optional>
41
+ <ref name="price-code"/>
42
+ </optional>
43
+ <optional>
44
+ <ref name="cen-processing"/>
45
+ </optional>
46
+ <optional>
47
+ <ref name="secretary"/>
48
+ </optional>
49
+ <optional>
50
+ <ref name="interest-to-committees"/>
51
+ </optional>
52
+ <optional>
53
+ <ref name="tc-sc-officers-note"/>
54
+ </optional>
55
+ </define>
18
56
  </include>
19
57
  <!-- end overrides -->
58
+ <define name="function">
59
+ <element name="function">
60
+ <choice>
61
+ <value>emc</value>
62
+ <value>safety</value>
63
+ <value>environment</value>
64
+ <value>quality-assurance</value>
65
+ </choice>
66
+ </element>
67
+ </define>
68
+ <define name="accessibility-color-inside">
69
+ <element name="accessibility-color-inside">
70
+ <data type="boolean"/>
71
+ </element>
72
+ </define>
73
+ <define name="price-code">
74
+ <element name="price-code">
75
+ <text/>
76
+ </element>
77
+ </define>
78
+ <define name="cen-processing">
79
+ <element name="cen-processing">
80
+ <data type="boolean"/>
81
+ </element>
82
+ </define>
83
+ <define name="secretary">
84
+ <element name="secretary">
85
+ <text/>
86
+ </element>
87
+ </define>
88
+ <define name="interest-to-committees">
89
+ <element name="interest-to-committees">
90
+ <text/>
91
+ </element>
92
+ </define>
93
+ <define name="tc-sc-officers-note">
94
+ <element name="tc-sc-officers-note">
95
+ <zeroOrMore>
96
+ <ref name="BasicBlock"/>
97
+ </zeroOrMore>
98
+ </element>
99
+ </define>
20
100
  <!--
21
101
  We display the Normative References between scope and terms; but to keep the
22
102
  grammar simple, we keep the references together
@@ -1,61 +1,115 @@
1
1
  <boilerplate>
2
2
  <copyright-statement>
3
- <clause>
3
+ <clause>
4
+ {% if unpublished %}
5
+ <p><strong>Copyright © {{ docyear }} International Electrotechnical Commission, IEC.</strong>
6
+ All rights reserved. It is permitted to download this electronic file, to make a copy and to
7
+ print out the content for the sole purpose of preparing National Committee positions. You
8
+ may not copy or "mirror" the file or printed version of the document, or any part of it,
9
+ for any other purpose without permission in writing from IEC.
10
+ {% else %}
4
11
  <p id="boilerplate-year">
5
- &copy; {{ agency }} {{ docyear }}, Published in Switzerland
6
- </p>
7
-
8
- <p id="boilerplate-message">
9
- All rights
10
- reserved. Unless otherwise specified, no part of this publication may be
11
- reproduced or utilized otherwise in any form or by any means, electronic or
12
- mechanical, including photocopying, or posting on the internet or an intranet,
13
- without prior written permission. Permission can be requested from either IEC
14
- at the address below or IEC's member body in the country of the requester.
15
- </p>
16
-
17
- <p id="boilerplate-name">IEC Central Office</p>
18
-
19
- <p id="boilerplate-address" align="left">
20
- 3, rue de Varemb&eacute;<br/>
21
- CH-1211 Geneva 20, Switzerland<br/>
22
- Tel.&nbsp;&nbsp;+ 41 22 919 02 11<br/>
23
- Fax&nbsp;&nbsp;+ 41 22 919 03 00<br/>
24
- info@iec.ch<br/>
25
- www.iec.ch
26
- </p>
27
- </clause>
28
- </copyright-statement>
29
- <legal-statement>
30
- <clause>
31
- <ol>
32
- <li><p>The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national electrotechnical committees (IEC National Committees). The object of IEC is to promote international co-operation on all questions concerning standardization in the electrical and electronic fields. To this end and in addition to other activities, IEC publishes International Standards, Technical Specifications, Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC Publication(s)”). Their preparation is entrusted to technical committees; any IEC National Committee interested in the subject dealt with may participate in this preparatory work. International, governmental and non-governmental organizations liaising with the IEC also participate in this preparation. IEC collaborates closely with the International Organization for Standardization (ISO) in accordance with conditions determined by agreement between the two organizations.</p></li>
33
- <li><p>The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an international consensus of opinion on the relevant subjects since each technical committee has representation from all interested IEC National Committees.</p></li>
34
- <li><p>IEC Publications have the form of recommendations for international use and are accepted by IEC National Committees in that sense. While all reasonable efforts are made to ensure that the technical content of IEC Publications is accurate, IEC cannot be held responsible for the way in which they are used or for any misinterpretation by any end user.</p></li>
35
- <li><p>In order to promote international uniformity, IEC National Committees undertake to apply IEC Publications transparently to the maximum extent possible in their national and regional publications. Any divergence between any IEC Publication and the corresponding national or regional publication shall be clearly indicated in the latter.</p></li>
36
- <li><p>IEC itself does not provide any attestation of conformity. Independent certification bodies provide conformity assessment services and, in some areas, access to IEC marks of conformity. IEC is not responsible for any services carried out by independent certification bodies.</p></li>
37
- <li><p>All users should ensure that they have the latest edition of this publication.</p></li>
38
- <li><p>No liability shall attach to IEC or its directors, employees, servants or agents including individual experts and members of its technical committees and IEC National Committees for any personal injury, property damage or other damage of any nature whatsoever, whether direct or indirect, or for costs (including legal fees) and expenses arising out of the publication, use of, or reliance upon, this IEC Publication or any other IEC Publications.</p></li>
39
- <li><p>Attention is drawn to the Normative references cited in this publication. Use of the referenced publications is indispensable for the correct application of this publication.</p></li>
40
- <li><p>Attention is drawn to the possibility that some of the elements of this IEC Publication may be the subject of patent rights. IEC shall not be held responsible for identifying any or all such patent rights.</p></li>
41
- </ol>
42
- </clause>
43
- </legal-statement>
12
+ © {{ agency }} {{ docyear }}, Published in Switzerland
13
+ </p>
14
+ <p id="boilerplate-message">
15
+ All rights
16
+ reserved. Unless otherwise specified, no part of this publication may be
17
+ reproduced or utilized otherwise in any form or by any means, electronic or
18
+ mechanical, including photocopying, or posting on the internet or an intranet,
19
+ without prior written permission. Permission can be requested from either IEC
20
+ at the address below or IEC's member body in the country of the requester.
21
+ </p>
22
+ <p id="boilerplate-name">IEC Central Office</p>
23
+ <p id="boilerplate-address" align="left">
24
+ 3, rue de Varembé<br/>
25
+ CH-1211 Geneva 20, Switzerland<br/>
26
+ Tel.&#xa0;&#xa0;+ 41 22 919 02 11<br/>
27
+ Fax&#xa0;&#xa0;+ 41 22 919 03 00<br/>
28
+ info@iec.ch<br/>
29
+ www.iec.ch
30
+ {% endif %}
31
+ </p>
32
+ </clause>
33
+ </copyright-statement>
34
+ <legal-statement>
35
+ <clause>
36
+ <ol>
37
+ <li><p>The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national electrotechnical committees (IEC National Committees). The object of IEC is to promote international co-operation on all questions concerning standardization in the electrical and electronic fields. To this end and in addition to other activities, IEC publishes International Standards, Technical Specifications, Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC Publication(s)”). Their preparation is entrusted to technical committees; any IEC National Committee interested in the subject dealt with may participate in this preparatory work. International, governmental and non-governmental organizations liaising with the IEC also participate in this preparation. IEC collaborates closely with the International Organization for Standardization (ISO) in accordance with conditions determined by agreement between the two organizations.</p></li>
38
+ <li><p>The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an international consensus of opinion on the relevant subjects since each technical committee has representation from all interested IEC National Committees.</p></li>
39
+ <li><p>IEC Publications have the form of recommendations for international use and are accepted by IEC National Committees in that sense. While all reasonable efforts are made to ensure that the technical content of IEC Publications is accurate, IEC cannot be held responsible for the way in which they are used or for any misinterpretation by any end user.</p></li>
40
+ <li><p>In order to promote international uniformity, IEC National Committees undertake to apply IEC Publications transparently to the maximum extent possible in their national and regional publications. Any divergence between any IEC Publication and the corresponding national or regional publication shall be clearly indicated in the latter.</p></li>
41
+ <li><p>IEC itself does not provide any attestation of conformity. Independent certification bodies provide conformity assessment services and, in some areas, access to IEC marks of conformity. IEC is not responsible for any services carried out by independent certification bodies.</p></li>
42
+ <li><p>All users should ensure that they have the latest edition of this publication.</p></li>
43
+ <li><p>No liability shall attach to IEC or its directors, employees, servants or agents including individual experts and members of its technical committees and IEC National Committees for any personal injury, property damage or other damage of any nature whatsoever, whether direct or indirect, or for costs (including legal fees) and expenses arising out of the publication, use of, or reliance upon, this IEC Publication or any other IEC Publications.</p></li>
44
+ <li><p>Attention is drawn to the Normative references cited in this publication. Use of the referenced publications is indispensable for the correct application of this publication.</p></li>
45
+ <li><p>Attention is drawn to the possibility that some of the elements of this IEC Publication may be the subject of patent rights. IEC shall not be held responsible for identifying any or all such patent rights.</p></li>
46
+ </ol>
47
+ </clause>
48
+ </legal-statement>
44
49
  {% if unpublished %}
45
- <license-statement>
46
- <clause>
47
- <title>Warning for CDs, CDVs and FDISs</title>
48
-
49
- <p>This
50
- document is not an IEC International Standard. It is distributed for review and
51
- comment. It is subject to change without notice and may not be referred to as
52
- an International Standard.</p>
53
-
54
- <p>Recipients
55
- of this draft are invited to submit, with their comments, notification of any
56
- relevant patent rights of which they are aware and to provide supporting
57
- documentation.</p>
58
- </clause>
59
- </license-statement>
60
- {% endif %}
50
+ <license-statement>
51
+ <clause>
52
+ {% if stage_int < 50 %}
53
+ <p>This document is still under study and subject to change. It should not be used for reference purposes.</p>
54
+ until published as such.</p>
55
+ {% endif %}
56
+ {% if stage_int >= 50 %}
57
+ <p>This document is a draft distributed for approval. It may not be referred to as an International Standard
58
+ until published as such.</p>
59
+ {% endif %}
60
+ {% if stage_int >= 50 %}
61
+ <p>In addition to their evaluation as being acceptable for industrial, technological, commercial and user
62
+ purposes, Final Draft International Standards may on occasion have to be considered in the light of their
63
+ potential to become standards to which reference may be made in national regulations.</p>
64
+ {% endif %}
65
+ <p>Recipients of this document are invited to submit, with their comments, notification of any relevant
66
+ patent rights of which they are aware and to provide supporting documentation.</p>
67
+ </clause>
68
+ </license-statement>
69
+ {% endif %}
70
+ <feedback-statement>
71
+ {% if unpublished %}
72
+ <clause id="boilerplate-cenelec-attention">
73
+ <title>Attention IEC-CENELEC parallel voting</title>
74
+ <p>The attention of IEC National Committees, members of CENELEC, is drawn to the fact that this
75
+ {% if stage_int >= 30 and stage_int < 40 %}Committee Draft{% endif %}
76
+ {% if stage_int >= 40 and stage_int < 50 %}Committee Draft For Vote{% endif %}
77
+ {% if stage_int >= 50 and stage_int < 60 %}Final Draft International Standard{% endif %}
78
+ ({{ stageabbr }})
79
+ is submitted for parallel voting.</p>
80
+ <p>The CENELEC members are invited to vote through the CENELEC voting system.</p>
81
+ </clause>
82
+ {% else %}
83
+ <clause>
84
+ <title>About the IEC</title>
85
+ <p>The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes International Standards for all electrical, electronic and related technologies.</p>
86
+ </clause>
87
+ <clause>
88
+ <title>About IEC publications</title>
89
+ <p>The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the latest edition, a corrigenda or an amendment might have been published.</p>
90
+ </clause>
91
+ <clause>
92
+ <clause>
93
+ <title>IEC Catalogue - <link target="https://webstore.iec.ch/catalogue">webstore.iec.ch/catalogue</link></title>
94
+ <p>The stand-alone application for consulting the entire bibliographical information on IEC International Standards, Technical Specifications, Technical Reports and other documents. Available for PC, Mac OS, Android Tablets and iPad.</p>
95
+ </clause>
96
+ <clause><title>IEC publications search - <link target="https://www.iec.ch/searchpub">www.iec.ch/searchpub</link></title>
97
+ <p>The advanced search enables to find IEC publications by a variety of criteria (reference number, text, technical committee,...). It also gives information on projects, replaced and withdrawn publications.</p>
98
+ </clause>
99
+ <clause><title>IEC Just Published - <link target="https://webstore.iec.ch/justpublished">webstore.iec.ch/justpublished</link></title>
100
+ <p>Stay up to date on all new IEC publications. Just Published details all new publications released. Available online and also once a month by email.</p>
101
+ </clause>
102
+ <clause><title>Electropedia - <link target="http://www.electropedia.org">www.electropedia.org</link></title>
103
+ <p>The world's leading online dictionary of electronic and electrical terms containing more than 30 000 terms and definitions in English and French, with equivalent terms in 14 additional languages. Also known as the International Electrotechnical Vocabulary (IEV) online.</p>
104
+ </clause>
105
+ <clause><title>IEC Glossary - <link target="http://std.iec.ch/glossary">std.iec.ch/glossary</link></title>
106
+ <p>More than 55 000 electrotechnical terminology entries in English and French extracted from the Terms and Definitions clause of IEC publications issued since 2002. Some entries have been collected from earlier publications of IEC TC 37, 77, 86 and CISPR.</p>
107
+ </clause>
108
+ <clause><title>IEC Customer Service Centre - <link target="https://webstore.iec.ch/csc">webstore.iec.ch/csc</link></title>
109
+ <p>If you wish to give us your feedback on this publication or need further assistance, please contact the Customer Service Centre: <link target="mailto://csc@iec.ch">csc@iec.ch</link>.</p>
110
+ </clause>
111
+ </clause>
112
+ {% endif %}
113
+ </feedback-statement>
61
114
  </boilerplate>
115
+