diff --git a/lib/metanorma/iec/version.rb b/lib/metanorma/iec/version.rb index 43d8ec39..d087016b 100644 --- a/lib/metanorma/iec/version.rb +++ b/lib/metanorma/iec/version.rb @@ -1,6 +1,6 @@ module Metanorma module Iec - VERSION = "1.3.1".freeze + VERSION = "1.3.2".freeze end end diff --git a/spec/asciidoctor/base_spec.rb b/spec/asciidoctor/base_spec.rb index ca7223c5..61b0807c 100644 --- a/spec/asciidoctor/base_spec.rb +++ b/spec/asciidoctor/base_spec.rb @@ -2,33 +2,32 @@ require "fileutils" RSpec.describe Asciidoctor::Iec do -before(:all) do - @blank_hdr = blank_hdr_gen -end - + before(:all) do + @blank_hdr = blank_hdr_gen + end it "has a version number" do expect(Metanorma::Iec::VERSION).not_to be nil end - #it "generates output for the Rice document" do - #FileUtils.rm_f %w(spec/examples/rice.xml spec/examples/rice.doc spec/examples/rice.html spec/examples/rice_alt.html) - #FileUtils.cd "spec/examples" - #Asciidoctor.convert_file "rice.adoc", {:attributes=>{"backend"=>"iso"}, :safe=>0, :header_footer=>true, :requires=>["metanorma-iso"], :failure_level=>4, :mkdirs=>true, :to_file=>nil} - #FileUtils.cd "../.." - #expect(File.exist?("spec/examples/rice.xml")).to be true - #expect(File.exist?("spec/examples/rice.doc")).to be true - #expect(File.exist?("spec/examples/rice.html")).to be true - #expect(File.exist?("spec/examples/rice_alt.html")).to be true - #end + # it "generates output for the Rice document" do + # FileUtils.rm_f %w(spec/examples/rice.xml spec/examples/rice.doc spec/examples/rice.html spec/examples/rice_alt.html) + # FileUtils.cd "spec/examples" + # Asciidoctor.convert_file "rice.adoc", {:attributes=>{"backend"=>"iso"}, :safe=>0, :header_footer=>true, :requires=>["metanorma-iso"], :failure_level=>4, :mkdirs=>true, :to_file=>nil} + # FileUtils.cd "../.." + # expect(File.exist?("spec/examples/rice.xml")).to be true + # expect(File.exist?("spec/examples/rice.doc")).to be true + # expect(File.exist?("spec/examples/rice.html")).to be true + # expect(File.exist?("spec/examples/rice_alt.html")).to be true + # end it "processes a blank document" do expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT") - #{ASCIIDOC_BLANK_HDR} + #{ASCIIDOC_BLANK_HDR} INPUT - #{@blank_hdr} - - + #{@blank_hdr} + + OUTPUT end @@ -43,9 +42,9 @@ :novalid: :no-isobib: INPUT - #{@blank_hdr} - - + #{@blank_hdr} + + OUTPUT expect(File.exist?("test.pdf")).to be true expect(File.exist?("test.html")).to be true @@ -103,235 +102,233 @@ :interest-to-committees: TC 6121, SC 12 :obsoletes: ABC; DEF INPUT - - - - Introduction — Main Title — Title — Title Part - Introduction - Main Title — Title - Title Part - Introduction Française — Titre Principal — Part du Titre - Introduction Française - Titre Principal - Part du Titre - IEC/3NWIP 1000-1 ED 2 -1000 - - - - International Electrotechnical Commission - IEC - - - - - - International Electrotechnical Commission - IEC - - - 2 - - 2000-01-01 - 0.3.4 - - en - - - 10 - 20 - 3 - - - #{Date.today.year} - - - International Electrotechnical Commission - IEC - - - - - - -- - ABC - - - - - -- - DEF - - - - article - false - - TC - TC1 - SC - SC1 - WG - WG1 - SECRETARIAT - - - 1 - - - 2 - - - 3 - - - IEC 1000 - -New work item proposal -true -XC -true -Fred Nerk -TC 6121, SC 12 - - - - - -

- Copyright © #{Time.now.year} International Electrotechnical Commission, IEC. - All rights reserved. It is permitted to download this electronic - file, to make a copy and to print out the content for the sole purpose - of preparing National Committee positions. You may not copy or - “mirror” the file or printed version of the document, or any part of - it, for any other purpose without permission in writing from IEC. -

-
-
- - -
    -
  1. -

    - 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. -

    -
  2. -
  3. -

    - 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. -

    -
  4. -
  5. -

    - 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. -

    -
  6. -
  7. -

    - 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. -

    -
  8. -
  9. -

    - 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. -

    -
  10. -
  11. -

    All users should ensure that they have the latest edition of this publication.

    -
  12. -
  13. -

    - 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. -

    -
  14. -
  15. -

    - 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. -

    -
  16. -
  17. -

    - 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. -

    -
  18. -
-
-
- - -

- This document is still under study and subject to change. It should - not be used for reference purposes. -

- until published as such. -

- Recipients of this document are invited to submit, with their - comments, notification of any relevant patent rights of which they are - aware and to provide supporting documentation. -

-
-
- - - Attention IEC-CENELEC parallel voting -

- The attention of IEC National Committees, members of CENELEC, is drawn - to the fact that this (NWIP) is submitted for parallel voting. -

-

The CENELEC members are invited to vote through the CENELEC voting system.

-
-
-
- -
+ + + + Introduction — Main Title — Title — Title Part + Introduction + Main Title — Title + Title Part + Introduction Française — Titre Principal — Part du Titre + Introduction Française + Titre Principal + Part du Titre + IEC/3NWIP 1000-1 ED 2 + 1000 + + + + International Electrotechnical Commission + IEC + + + + + + International Electrotechnical Commission + IEC + + + 2 + + 2000-01-01 + 0.3.4 + + en + + + 10 + 20 + 3 + + + #{Date.today.year} + + + International Electrotechnical Commission + IEC + + + + + + -- + ABC + + + + + -- + DEF + + + + article + false + + TC + TC1 + SC + SC1 + WG + WG1 + SECRETARIAT + + + 1 + + + 2 + + + 3 + + + IEC 1000 + + New work item proposal + true + XC + true + Fred Nerk + TC 6121, SC 12 + + + + + +

+ Copyright © #{Time.now.year} International Electrotechnical Commission, IEC. + All rights reserved. It is permitted to download this electronic + file, to make a copy and to print out the content for the sole purpose + of preparing National Committee positions. You may not copy or + “mirror” the file or printed version of the document, or any part of + it, for any other purpose without permission in writing from IEC. +

+
+
+ + +
    +
  1. +

    + 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. +

    +
  2. +
  3. +

    + 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. +

    +
  4. +
  5. +

    + 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. +

    +
  6. +
  7. +

    + 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. +

    +
  8. +
  9. +

    + 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. +

    +
  10. +
  11. +

    All users should ensure that they have the latest edition of this publication.

    +
  12. +
  13. +

    + 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. +

    +
  14. +
  15. +

    + 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. +

    +
  16. +
  17. +

    + 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. +

    +
  18. +
+
+
+ + +

+ This document is still under study and subject to change. It should + not be used for reference purposes. +

+

+ Recipients of this document are invited to submit, with their + comments, notification of any relevant patent rights of which they are + aware and to provide supporting documentation. +

+
+
+ + + Attention IEC-CENELEC parallel voting +

+ The attention of IEC National Committees, members of CENELEC, is drawn + to the fact that this (NWIP) is submitted for parallel voting. +

+

The CENELEC members are invited to vote through the CENELEC voting system.

+
+
+
+ +
OUTPUT end - it "processes complex metadata" do expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT") = Document title @@ -352,239 +349,238 @@ :function: emc :horizontal: true INPUT - - - - ISO/IEC/IETF/2CDTS 1000-1-1 ED 1 - 2000 - 1000 - - - - International Electrotechnical Commission - IEC - - - - - - IETF - - - - - - International Organization for Standardization - ISO - - - - - - International Electrotechnical Commission - IEC - - - - - - IETF - - - - - - International Organization for Standardization - ISO - - - el - - - 30 - 99 - 2 - - - 2001 - - - International Electrotechnical Commission - IEC - - - - - 2001 - - - IETF - - - - - 2001 - - - International Organization for Standardization - ISO - - - - - technical-specification - true - emc - - - - - - - ISO/IEC/IETF 1000 - - Committee draft - - - - - -

- Copyright © 2001 International Electrotechnical Commission, IEC. - All rights reserved. It is permitted to download this electronic - file, to make a copy and to print out the content for the sole purpose - of preparing National Committee positions. You may not copy or - “mirror” the file or printed version of the document, or any part of - it, for any other purpose without permission in writing from IEC. -

-
-
- - -
    -
  1. -

    - 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. -

    -
  2. -
  3. -

    - 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. -

    -
  4. -
  5. -

    - 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. -

    -
  6. -
  7. -

    - 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. -

    -
  8. -
  9. -

    - 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. -

    -
  10. -
  11. -

    All users should ensure that they have the latest edition of this publication.

    -
  12. -
  13. -

    - 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. -

    -
  14. -
  15. -

    - 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. -

    -
  16. -
  17. -

    - 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. -

    -
  18. -
-
-
- - -

- This document is still under study and subject to change. It should - not be used for reference purposes. -

- until published as such. -

- Recipients of this document are invited to submit, with their - comments, notification of any relevant patent rights of which they are - aware and to provide supporting documentation. -

-
-
- - - Attention IEC-CENELEC parallel voting -

- The attention of IEC National Committees, members of CENELEC, is drawn - to the fact that this Committee Draft (CD) is submitted for parallel - voting. -

-

The CENELEC members are invited to vote through the CENELEC voting system.

-
-
-
- -
+ + + + ISO/IEC/IETF/2CDTS 1000-1-1 ED 1 + 2000 + 1000 + + + + International Electrotechnical Commission + IEC + + + + + + IETF + + + + + + International Organization for Standardization + ISO + + + + + + International Electrotechnical Commission + IEC + + + + + + IETF + + + + + + International Organization for Standardization + ISO + + + el + + + 30 + 99 + 2 + + + 2001 + + + International Electrotechnical Commission + IEC + + + + + 2001 + + + IETF + + + + + 2001 + + + International Organization for Standardization + ISO + + + + + technical-specification + true + emc + + + + + + + ISO/IEC/IETF 1000 + + Committee draft + + + + + +

+ Copyright © 2001 International Electrotechnical Commission, IEC. + All rights reserved. It is permitted to download this electronic + file, to make a copy and to print out the content for the sole purpose + of preparing National Committee positions. You may not copy or + “mirror” the file or printed version of the document, or any part of + it, for any other purpose without permission in writing from IEC. +

+
+
+ + +
    +
  1. +

    + 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. +

    +
  2. +
  3. +

    + 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. +

    +
  4. +
  5. +

    + 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. +

    +
  6. +
  7. +

    + 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. +

    +
  8. +
  9. +

    + 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. +

    +
  10. +
  11. +

    All users should ensure that they have the latest edition of this publication.

    +
  12. +
  13. +

    + 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. +

    +
  14. +
  15. +

    + 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. +

    +
  16. +
  17. +

    + 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. +

    +
  18. +
+
+
+ + +

+ This document is still under study and subject to change. It should + not be used for reference purposes. +

+

+ Recipients of this document are invited to submit, with their + comments, notification of any relevant patent rights of which they are + aware and to provide supporting documentation. +

+
+
+ + + Attention IEC-CENELEC parallel voting +

+ The attention of IEC National Committees, members of CENELEC, is drawn + to the fact that this Committee Draft (CD) is submitted for parallel + voting. +

+

The CENELEC members are invited to vote through the CENELEC voting system.

+
+
+
+ +
OUTPUT end - it "processes boilerplate in English" do - doc = (strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true))) + it "processes boilerplate in English" do + doc = strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)) = Document title Author :docfile: test.adoc @@ -601,10 +597,10 @@ INPUT expect(doc).to include "including individual experts" expect(doc).not_to include "y compris ses experts particuliers" - end + end - it "processes boilerplate in French" do - doc = (strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true))) + it "processes boilerplate in French" do + doc = strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)) = Document title Author :docfile: test.adoc @@ -621,9 +617,9 @@ INPUT expect(doc).not_to include "including individual experts" expect(doc).to include "y compris ses experts particuliers" - end + end - it "defaults substage" do + it "defaults substage" do expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT") = Document title Author @@ -634,198 +630,197 @@ :docnumber: 1000 :docstage: 50 INPUT - - - IEC/FDIS 1000 ED 1 - 1000 - - - - International Electrotechnical Commission - IEC - - - - - - International Electrotechnical Commission - IEC - - - - en - - - 50 - 00 - - - #{Date.today.year} - - - International Electrotechnical Commission - IEC - - - - - article - false - - - - - - - IEC 1000 - - Final draft international standard - - - - - -

- Copyright © #{Time.now.year} International Electrotechnical Commission, IEC. - All rights reserved. It is permitted to download this electronic - file, to make a copy and to print out the content for the sole purpose - of preparing National Committee positions. You may not copy or - “mirror” the file or printed version of the document, or any part of - it, for any other purpose without permission in writing from IEC. -

-
-
- - -
    -
  1. -

    - 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. -

    -
  2. -
  3. -

    - 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. -

    -
  4. -
  5. -

    - 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. -

    -
  6. -
  7. -

    - 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. -

    -
  8. -
  9. -

    - 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. -

    -
  10. -
  11. -

    All users should ensure that they have the latest edition of this publication.

    -
  12. -
  13. -

    - 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. -

    -
  14. -
  15. -

    - 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. -

    -
  16. -
  17. -

    - 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. -

    -
  18. -
-
-
- - -

- This document is a draft distributed for approval. It may not be - referred to as an International Standard until published as such. -

-

- In addition to their evaluation as being acceptable for industrial, - technological, commercial and user purposes, Final Draft International - Standards may on occasion have to be considered in the light of their - potential to become standards to which reference may be made in - national regulations. -

-

- Recipients of this document are invited to submit, with their - comments, notification of any relevant patent rights of which they are - aware and to provide supporting documentation. -

-
-
- - - Attention IEC-CENELEC parallel voting -

- The attention of IEC National Committees, members of CENELEC, is drawn - to the fact that this Final Draft International Standard (FDIS) is - submitted for parallel voting. -

-

The CENELEC members are invited to vote through the CENELEC voting system.

-
-
-
- -
-OUTPUT - end + + + IEC/FDIS 1000 ED 1 + 1000 + + + + International Electrotechnical Commission + IEC + + + + + + International Electrotechnical Commission + IEC + + + en + + + 50 + 00 + + + #{Date.today.year} + + + International Electrotechnical Commission + IEC + + + + + article + false + + + + + + + IEC 1000 + + Final draft international standard + + + + + +

+ Copyright © #{Time.now.year} International Electrotechnical Commission, IEC. + All rights reserved. It is permitted to download this electronic + file, to make a copy and to print out the content for the sole purpose + of preparing National Committee positions. You may not copy or + “mirror” the file or printed version of the document, or any part of + it, for any other purpose without permission in writing from IEC. +

+
+
+ + +
    +
  1. +

    + 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. +

    +
  2. +
  3. +

    + 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. +

    +
  4. +
  5. +

    + 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. +

    +
  6. +
  7. +

    + 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. +

    +
  8. +
  9. +

    + 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. +

    +
  10. +
  11. +

    All users should ensure that they have the latest edition of this publication.

    +
  12. +
  13. +

    + 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. +

    +
  14. +
  15. +

    + 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. +

    +
  16. +
  17. +

    + 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. +

    +
  18. +
+
+
+ + +

+ This document is a draft distributed for approval. It may not be + referred to as an International Standard until published as such. +

+

+ In addition to their evaluation as being acceptable for industrial, + technological, commercial and user purposes, Final Draft International + Standards may on occasion have to be considered in the light of their + potential to become standards to which reference may be made in + national regulations. +

+

+ Recipients of this document are invited to submit, with their + comments, notification of any relevant patent rights of which they are + aware and to provide supporting documentation. +

+
+
+ + + Attention IEC-CENELEC parallel voting +

+ The attention of IEC National Committees, members of CENELEC, is drawn + to the fact that this Final Draft International Standard (FDIS) is + submitted for parallel voting. +

+

The CENELEC members are invited to vote through the CENELEC voting system.

+
+
+
+ +
+ OUTPUT + end - it "defaults substage for stage 60" do + it "defaults substage for stage 60" do expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT") = Document title Author @@ -836,59 +831,58 @@ :docnumber: 1000 :docstage: 60 INPUT - - - IEC 1000 ED 1 - 1000 - - - - International Electrotechnical Commission - IEC - - - - - - International Electrotechnical Commission - IEC - - - - en - - - 60 - 60 - - - #{Date.today.year} - - - International Electrotechnical Commission - IEC - - - - - article - false - - - - - - - IEC 1000 - - International standard - - -#{boilerplate(Nokogiri::XML(BLANK_HDR + ""))} - - -OUTPUT - end + + + IEC 1000 ED 1 + 1000 + + + + International Electrotechnical Commission + IEC + + + + + + International Electrotechnical Commission + IEC + + + en + + + 60 + 60 + + + #{Date.today.year} + + + International Electrotechnical Commission + IEC + + + + + article + false + + + + + + + IEC 1000 + + International standard + + + #{boilerplate(Nokogiri::XML(BLANK_HDR + ''))} + + + OUTPUT + end it "populates metadata for PRF" do expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT") @@ -902,60 +896,58 @@ :docstage: 60 :docsubstage: 00 INPUT - - - IEC 1000 ED 1 - 1000 - - - - International Electrotechnical Commission - IEC - - - - - - International Electrotechnical Commission - IEC - - - - en - - - 60 - 00 - - - #{Date.today.year} - - - International Electrotechnical Commission - IEC - - - - - article - false - - - - - - - IEC 1000 - - International standard - - -#{boilerplate(Nokogiri::XML(BLANK_HDR + ""))} - - -OUTPUT - end - + + + IEC 1000 ED 1 + 1000 + + + + International Electrotechnical Commission + IEC + + + + + + International Electrotechnical Commission + IEC + + + en + + + 60 + 00 + + + #{Date.today.year} + + + International Electrotechnical Commission + IEC + + + + + article + false + + + + + + + IEC 1000 + + International standard + + + #{boilerplate(Nokogiri::XML(BLANK_HDR + ''))} + + + OUTPUT + end it "reads scripts into blank HTML document" do FileUtils.rm_f "test.html" @@ -1040,6 +1032,4 @@ expect(word).to match(%r[mso-style-name: "Intro Title";]m) expect(html).not_to match(%r[mso-style-name: "Intro Title";]m) end - - end diff --git a/spec/asciidoctor/section_spec.rb b/spec/asciidoctor/section_spec.rb index 10da96f2..a4f47871 100644 --- a/spec/asciidoctor/section_spec.rb +++ b/spec/asciidoctor/section_spec.rb @@ -80,25 +80,6 @@ Terms, definitions, symbols and abbreviated terms Normal Terms -

For the purposes of this document, the following terms and definitions apply.

-

- ISO and IEC maintain terminological databases for use in - standardization at the following addresses: -

-
    -
  • -

    - IEC Electropedia: available at - -

    -
  • -
  • -

    - ISO Online browsing platform: available at - -

    -
  • -
Term2 @@ -223,25 +204,6 @@ Terms, definitions, symbols and abbreviated terms Normal Terms -

For the purposes of this document, the following terms and definitions apply.

-

- ISO and IEC maintain terminological databases for use in - standardization at the following addresses: -

-
    -
  • -

    - IEC Electropedia: available at - -

    -
  • -
  • -

    - ISO Online browsing platform: available at - -

    -
  • -
Term2