#{@meta.get[:full_doctitle]}"
@meta.get[:amd] || @meta.get[:corr] and ret += " "
@meta.get[:amd] and ret += "Amendment #{@meta.get[:amd]}"
@meta.get[:amd] && @meta.get[:corr] and ret += " "
@meta.get[:corr] and ret += "Corrigenda #{@meta.get[:corr]}"
ret += "
"
- s.children.first.previous = ret
+ ret
+ end
+
+ def middle_title_insert(docxml)
+ s = docxml.at(ns("//sections")) or return
+ s.children.first
+ end
+
+ def preface_rearrange(doc)
+ move_abstract(doc)
+ super
+ end
+
+ def move_abstract(doc)
+ doc.at(ns("//bibdata/ext/doctype"))&.text == "whitepaper" or return
+ source = doc.at(ns("//preface/abstract")) or return
+ dest = doc.at(ns("//sections")) ||
+ doc.at(ns("//preface")).after("").next_element
+ dest.children.empty? and dest.children = " "
+ dest.children.first.next = source
end
include Init
diff --git a/lib/isodoc/ieee/word_authority.rb b/lib/isodoc/ieee/word_authority.rb
index 4a965a7..e8f7ba1 100644
--- a/lib/isodoc/ieee/word_authority.rb
+++ b/lib/isodoc/ieee/word_authority.rb
@@ -71,7 +71,7 @@ def officeholder_style(para)
def officemember_style(docxml)
docxml.xpath("//p[@type = 'officemember' or @type = 'officeorgmember']")
.each do |p|
- p["class"] = "IEEEStdsNamesList"
+ p["class"] = stylesmap[:nameslist]
end
docxml.xpath("//p[@type = 'emeritus_sign']").each do |p|
p["class"] = "IEEEStdsParaMemEmeritus"
@@ -80,20 +80,19 @@ def officemember_style(docxml)
def officeorgrep_style(docxml)
docxml.xpath("//p[@type = 'officeorgrepmemberhdr']").each do |p|
- p["class"] = "IEEEStdsNamesList"
+ p["class"] = stylesmap[:nameslist]
p["style"] =
"margin-bottom:6.0pt;tab-stops:right 432.0pt;"
end
docxml.xpath("//p[@type = 'officeorgrepmember']").each do |p|
- p["class"] = "IEEEStdsNamesList"
+ p["class"] = stylesmap[:nameslist]
p["style"] =
"margin-top:6.0pt;tab-stops:right dotted 432.0pt;"
end
end
def three_column_officemembers(div)
- return unless div
-
+ div or return
ret = three_column_officemembers_split(div)
three_column_officemembers_render(div, ret)
end
@@ -128,6 +127,7 @@ def feedback_table(docxml)
end
end
+ # STYLE
def feedback_table1(trow)
trow.name = "p"
trow["class"] = "IEEEStdsCRTextReg"
@@ -149,6 +149,7 @@ def feedback_style(docxml)
end
end
+ # STYLE
def feedback_style1(div, idx)
div.xpath(".//p").each_with_index do |p, j|
p["class"] = idx == 4 ? "IEEEStdsCRTextItal" : "IEEEStdsCRTextReg"
@@ -160,7 +161,7 @@ def feedback_style1(div, idx)
def authority_cleanup1(docxml, klass)
dest = docxml.at("//div[@id = 'boilerplate-#{klass}-destination']")
- auth = docxml.at("//div[@id = 'boilerplate-#{klass}' "\
+ auth = docxml.at("//div[@id = 'boilerplate-#{klass}' " \
"or @class = 'boilerplate-#{klass}']")
auth&.xpath(".//h1[not(text())] | .//h2[not(text())]")&.each(&:remove)
authority_cleanup_hdr(auth)
@@ -171,7 +172,7 @@ def authority_cleanup_hdr(auth)
(1..2).each do |i|
auth&.xpath(".//h#{i}")&.each do |h|
h.name = "p"
- h["class"] = "IEEEStdsLevel#{i}frontmatter"
+ h["class"] = "level#{i}frontmatter"
end
end
end
@@ -191,18 +192,18 @@ def abstract_cleanup(docxml)
def abstract_cleanup1(source, dest)
source.elements.reject { |e| %w(h1 h2).include?(e.name) }.each do |e|
e1 = e.dup
- e1.xpath(".//p").each do |p|
+ e1.xpath("self::p | .//p").each do |p|
+ p["class"] = stylesmap[:abstract]
p["style"] ||= ""
- p["style"] = 'font-family: "Arial", sans-serif;' + p["style"]
+ p["style"] = "font-family: 'Arial', sans-serif;#{p['style']}"
end
- %w(ul ol).include?(e1.name) or e1["class"] = "IEEEStdsAbstractBody"
- dest << e1
+ dest and dest << e1
end
end
def abstract_header(dest)
dest.elements.first.children.first.previous =
- ""\
+ "" \
"Abstract: "
end
@@ -221,7 +222,7 @@ def introduction_cleanup1(intro, dest)
dest.replace(intro.remove)
i = docxml.at("//h1[@class = 'IntroTitle']")
if i.next_element.name == "div" &&
- i.next_element["class"] == "IEEEStdsIntroduction"
+ i.next_element["class"] == stylesmap[:intro]
i.next_element.name = "p"
end
end
diff --git a/lib/isodoc/ieee/word_cleanup.rb b/lib/isodoc/ieee/word_cleanup.rb
index 21ca436..beddd9c 100644
--- a/lib/isodoc/ieee/word_cleanup.rb
+++ b/lib/isodoc/ieee/word_cleanup.rb
@@ -3,7 +3,7 @@ module IEEE
class WordConvert < IsoDoc::WordConvert
def toWord(result, filename, dir, header)
result = from_xhtml(word_cleanup(to_xhtml(result)))
- .gsub(/-DOUBLE_HYPHEN_ESCAPE-/, "--")
+ .gsub("-DOUBLE_HYPHEN_ESCAPE-", "--")
@wordstylesheet = wordstylesheet_update
::Html2Doc::IEEE.new(
filename: filename,
@@ -18,7 +18,7 @@ def toWord(result, filename, dir, header)
end
def sourcecode_style
- "IEEEStdsComputerCode"
+ stylesmap[:Sourcecode]
end
def word_cleanup(docxml)
@@ -75,10 +75,10 @@ def headings_style(hdr, idx)
hdr["style"] = "mso-list:l13 level#{idx} lfo33;"
elsif hdr.at("./ancestor::div[@class = 'Section3' or @class = 'WordSectionContents']")
hdr.name = "p"
- hdr["class"] = "IEEEStdsLevel#{idx}frontmatter"
+ hdr["class"] = stylesmap["level#{idx}frontmatter".to_sym]
else
hdr.name = "p"
- hdr["class"] = "IEEEStdsLevel#{idx}Header"
+ hdr["class"] = stylesmap["level#{idx}header".to_sym]
end
end
@@ -89,6 +89,7 @@ def headings_strip(hdr)
end
end
+ # STYLE
def div_cleanup(docxml)
d = docxml.at("//div[@class = 'WordSection2']" \
"[div[@class = 'WordSection2']]") and
@@ -102,36 +103,58 @@ def div_cleanup(docxml)
end
end
- STYLESMAP = {
- example: "IEEEStdsParagraph",
- MsoNormal: "IEEEStdsParagraph",
- NormRef: "IEEEStdsParagraph",
- Biblio: "IEEEStdsBibliographicEntry",
- figure: "IEEEStdsImage",
- formula: "IEEEStdsEquation",
- Sourcecode: "IEEEStdsComputerCode",
- TableTitle: "IEEEStdsRegularTableCaption",
- FigureTitle: "IEEEStdsRegularFigureCaption",
- }.freeze
+ def stylesmap
+ {
+ example: "IEEEStdsParagraph",
+ MsoNormal: "IEEEStdsParagraph",
+ NormRef: "IEEEStdsParagraph",
+ Biblio: "IEEEStdsBibliographicEntry",
+ figure: "IEEEStdsImage",
+ formula: "IEEEStdsEquation",
+ Sourcecode: "IEEEStdsComputerCode",
+ TableTitle: "IEEEStdsRegularTableCaption",
+ FigureTitle: "IEEEStdsRegularFigureCaption",
+ admonition: "IEEEStdsWarning",
+ abstract: "IEEEStdsAbstractBody",
+ AbstractTitle: "AbstractTitle",
+ level1frontmatter: "IEEEStdsLevel1frontmatter",
+ level2frontmatter: "IEEEStdsLevel2frontmatter",
+ level3frontmatter: "IEEEStdsLevel3frontmatter",
+ level1header: "IEEEStdsLevel1Header",
+ level2header: "IEEEStdsLevel2Header",
+ level3header: "IEEEStdsLevel3Header",
+ level4header: "IEEEStdsLevel4Header",
+ level5header: "IEEEStdsLevel5Header",
+ level6header: "IEEEStdsLevel6Header",
+ zzSTDTitle1: "IEEEStdsTitle",
+ tabledata_center: "IEEEStdsTableData-Center",
+ tabledata_left: "IEEEStdsTableData-Left",
+ table_head: "IEEEStdsTableLineHead",
+ table_subhead: "IEEEStdsTableLineSubhead",
+ table_columnhead: "IEEEStdsTableColumnHead",
+ nameslist: "IEEEStdsNamesList",
+ intro: "IEEEStdsIntroduction",
+ }
+ end
def table_toc_class
- %w(IEEEStdsRegularTableCaption TableTitle tabletitle)
+ [stylesmap[:TableTitle], "TableTitle", "tabletitle"]
end
def figure_toc_class
- %w(IEEEStdsRegularFigureCaption FigureTitle figuretitle)
+ [stylesmap[:FigureTitle], "FigureTitle", "figuretitle"]
end
def style_cleanup(docxml)
note_style_cleanup(docxml)
docxml.xpath("//div[@class = 'formula']/p").each do |p|
- p["class"] = "IEEEStdsEquation"
+ p["class"] = stylesmap[:formula]
end
- STYLESMAP.each do |k, v|
+ stylesmap.each do |k, v|
docxml.xpath("//*[@class = '#{k}']").each { |s| s["class"] = v }
end
docxml.xpath("//p[not(@class)]").each do |p|
- p["class"] = "IEEEStdsParagraph"
+ p["class"] = stylesmap[:MsoNormal]
end
end
end
diff --git a/lib/isodoc/ieee/word_cleanup_blocks.rb b/lib/isodoc/ieee/word_cleanup_blocks.rb
index 0874ad8..adfdf1e 100644
--- a/lib/isodoc/ieee/word_cleanup_blocks.rb
+++ b/lib/isodoc/ieee/word_cleanup_blocks.rb
@@ -1,13 +1,13 @@
module IsoDoc
module IEEE
class WordConvert < IsoDoc::WordConvert
+ # STYLE
def admonition_cleanup(docxml)
super
docxml.xpath("//div[@class = 'zzHelp']").each do |d|
d.xpath(".//p").each do |p|
- %w(IEEEStdsWarning IEEEStdsParagraph).include?(p["class"]) ||
- !p["class"] or next
-
+ [stylesmap[:admonition], stylesmap[:MsoNormal]]
+ .include?(p["class"]) || !p["class"] or next
p["class"] = "zzHelp"
end
end
@@ -22,15 +22,20 @@ def table_cleanup(docxml)
def thead_cleanup(docxml)
docxml.xpath("//thead").each do |h|
h.xpath(".//td | .//th").each do |t|
- if t.at("./p")
- t.xpath("./p").each do |p|
- p["class"] = "IEEEStdsTableColumnHead"
- end
- else
- t.children =
- "
#{to_xml(t.children)}
"
- end
+ thead_cell_cleanup(t)
+ end
+ end
+ end
+
+ def thead_cell_cleanup(cell)
+ s = stylesmap[:table_columnhead]
+ if cell.at("./p")
+ cell.xpath("./p").each do |p|
+ p["class"] = s
end
+ else
+ cell.children =
+ "
OUTPUT
p = IsoDoc::IEEE::PresentationXMLConvert
diff --git a/spec/isodoc/terms_spec.rb b/spec/isodoc/terms_spec.rb
index 204c6a1..1b8f23b 100644
--- a/spec/isodoc/terms_spec.rb
+++ b/spec/isodoc/terms_spec.rb
@@ -201,7 +201,7 @@
OUTPUT
word = <<~WORD
-
+
@@ -218,7 +218,7 @@
-
??? for ???
+
??? for ???
diff --git a/spec/isodoc/word_boilerplate_spec.rb b/spec/isodoc/word_boilerplate_spec.rb
new file mode 100644
index 0000000..dc3b045
--- /dev/null
+++ b/spec/isodoc/word_boilerplate_spec.rb
@@ -0,0 +1,1605 @@
+require "spec_helper"
+require "fileutils"
+
+RSpec.describe IsoDoc::IEEE::WordConvert do
+ it "processes boilerplate" do
+ FileUtils.rm_f "test.doc"
+ input = <<~INPUT
+
+
+ Empty
+
+ Introduction
+
+ Main Title -- Title
+
+ Title Part
+
+ Introduction Française
+
+ Titre Principal
+
+ Part du Titre
+ 10001000
+ 1000-12-01
+ 01 Dec 1000
+ 1001-12-01
+ 01 Dec 1001
+ Working Group Chair
+ AB
+ Working Group Vice-Chair
+ CD
+ Working Group Member
+ E, F, Jr.
+ Working Group Member
+ GH
+ Working Group Member
+ IJ
+ Balloting Group Member
+ KL
+ Balloting Group Member
+ MN
+ Standards Board Chair
+ OP
+ Standards Board Vice-Chair
+ QR
+ Standards Board Past Chair
+ ST
+ Standards Board Secretary
+ UV
+ Standards Board Member
+ KL
+ Standards Board Member
+ MN
+
+ Institute of Electrical and Electronic Engineers
+ IEEE22000-01-010.3.4en202032000
+ Institute of Electrical and Electronic Engineers
+ IEEEstandardSECRETARIATSCWGWG1TCTC1123
+
+
+
+
This document is an unapproved draft of a proposed IEEE Standard. As such, this document is subject to change. USE AT YOUR OWN RISK! IEEE copyright statements SHALL NOT BE REMOVED from draft or approved IEEE standards, or modified in any way. Because this is an unapproved draft, this document must not be utilized for any conformance/compliance purposes. Permission is hereby granted for officers from each IEEE Standards Working Group or Committee to reproduce the draft document developed by that Working Group for purposes of international standardization consideration. IEEE Standards Department must be informed of the submission for consideration prior to any reproduction for international standardization consideration (). Prior to adoption of this document, in whole or in part, by another standards development organization, permission must first be obtained from the IEEE Standards Department (). When requesting permission, IEEE Standards Department will require a copy of the standard development organization’s document highlighting the use of IEEE content. Other entities seeking permission to reproduce this document, in whole or in part, must also obtain permission from the IEEE Standards Department.
+
IEEE Standards Department 445 Hoes Lane Piscataway, NJ 08854, USA
+
+
+
+
+ Important Notices and Disclaimers Concerning IEEE Standards Documents
+
+
IEEE Standards
+ documents are made available for use subject to important notices and legal
+ disclaimers. These notices and disclaimers, or a reference to this page (),
+ appear in all standards and may be found under the heading “Important Notices
+ and Disclaimers Concerning IEEE Standards Documents.”
+
+
+ Notice
+ and Disclaimer of Liability Concerning the Use of IEEE Standards Documents
+
+
IEEE Standards documents are
+ developed within the IEEE Societies and the Standards Coordinating Committees
+ of the IEEE Standards Association (IEEE SA) Standards Board. IEEE develops its
+ standards through an accredited consensus development process, which brings
+ together volunteers representing varied viewpoints and interests to achieve the
+ final product. IEEE Standards are documents developed by volunteers with
+ scientific, academic, and industry-based expertise in technical working groups.
+ Volunteers are not necessarily members of IEEE or IEEE SA, and participate
+ without compensation from IEEE. While IEEE administers the process and
+ establishes rules to promote fairness in the consensus development process,
+ IEEE does not independently evaluate, test, or verify the accuracy of any of
+ the information or the soundness of any judgments contained in its standards.
+
+
IEEE makes no warranties or
+ representations concerning its standards, and expressly disclaims all
+ warranties, express or implied, concerning this standard, including but not
+ limited to the warranties of merchantability, fitness for a particular purpose
+ and non-infringement. In addition, IEEE
+ does not warrant or represent that the use of the material contained in its
+ standards is free from patent infringement. IEEE standards documents are
+ supplied “AS IS” and “WITH ALL FAULTS.”
+
+
Use of an IEEE standard is wholly
+ voluntary. The existence of an IEEE Standard does not imply that there are no
+ other ways to produce, test, measure, purchase, market, or provide other goods
+ and services related to the scope of the IEEE standard. Furthermore, the
+ viewpoint expressed at the time a standard is approved and issued is subject to
+ change brought about through developments in the state of the art and comments
+ received from users of the standard.
+
+
In publishing and
+ making its standards available, IEEE is not suggesting or rendering
+ professional or other services for, or on behalf of, any person or entity, nor
+ is IEEE undertaking to perform any duty owed by any other person or entity to
+ another. Any person utilizing any IEEE Standards document, should rely upon his
+ or her own independent judgment in the exercise of reasonable care in any given
+ circumstances or, as appropriate, seek the advice of a competent professional
+ in determining the appropriateness of a given IEEE standard.
+
+
IN NO EVENT SHALL IEEE
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO: THE NEED TO PROCURE
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+ IN ANY WAY OUT OF THE PUBLICATION, USE OF, OR RELIANCE UPON ANY STANDARD, EVEN
+ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE AND REGARDLESS OF WHETHER SUCH
+ DAMAGE WAS FORESEEABLE.
+
+
+ Translations
+
+
The IEEE consensus
+ development process involves the review of documents in English only. In the
+ event that an IEEE standard is translated, only the English version published
+ by IEEE is the approved IEEE standard.
+
+
+ Official statements
+
+
A statement, written
+ or oral, that is not processed in accordance with the IEEE SA Standards Board
+ Operations Manual shall not be considered or inferred to be the official
+ position of IEEE or any of its committees and shall not be considered to be,
+ nor be relied upon as, a formal position of IEEE. At lectures, symposia,
+ seminars, or educational courses, an individual presenting information on IEEE
+ standards shall make it clear that the presenter’s views should be considered
+ the personal views of that individual rather than the formal position of IEEE,
+ IEEE SA, the Standards Committee, or the Working Group.
+
+
+ Comments on standards
+
+
Comments for revision of IEEE
+ Standards documents are welcome from any interested party, regardless of membership
+ affiliation with IEEE or IEEE SA. However, IEEE does not provide interpretations, consulting information, or advice pertaining to IEEE Standards documents.
+
+
Suggestions for changes in
+ documents should be in the form of a proposed change of text, together with
+ appropriate supporting comments. Since IEEE standards represent a consensus of
+ concerned interests, it is important that any responses to comments and
+ questions also receive the concurrence of a balance of interests. For this
+ reason, IEEE and the members of its Societies and Standards Coordinating
+ Committees are not able to provide an instant response to comments, or
+ questions except in those cases where the matter has previously been addressed.
+ For the same reason, IEEE does not respond to interpretation requests. Any
+ person who would like to participate in evaluating comments or in revisions to
+ an IEEE standard is welcome to join the relevant IEEE working group. You can
+ indicate interest in a working group using the Interests tab in the Manage
+ Profile & Interests area of the IEEE
+ SA myProject system.
Available at: .
+ An IEEE Account is needed to access the application.
+
+
Comments on standards should be submitted using the Contact Us form.
Available at: .
+
+
+ Laws and regulations
+
+
Users of IEEE
+ Standards documents should consult all applicable laws and regulations.
+ Compliance with the provisions of any IEEE Standards document does not
+ constitute compliance to any applicable regulatory requirements. Implementers
+ of the standard are responsible for observing or referring to the applicable
+ regulatory requirements. IEEE does not, by the publication of its standards,
+ intend to urge action that is not in compliance with applicable laws, and these
+ documents may not be construed as doing so.
+
+
+ Data privacy
+
+
Users of IEEE Standards documents
+ should evaluate the standards for considerations of data privacy and data
+ ownership in the context of assessing and using the standards in compliance
+ with applicable laws and regulations.
+
+
+ Copyrights
+
+
IEEE draft and
+ approved standards are copyrighted by IEEE under US and international copyright
+ laws. They are made available by IEEE and are adopted for a wide variety of
+ both public and private uses. These include both use, by reference, in laws and
+ regulations, and use in private self-regulation, standardization, and the
+ promotion of engineering practices and methods. By making these documents
+ available for use and adoption by public authorities and private users, IEEE
+ does not waive any rights in copyright to the documents.
+
+
+ Photocopies
+
+
Subject to payment of
+ the appropriate licensing fees, IEEE will grant users a limited, non-exclusive
+ license to photocopy portions of any individual standard for company or
+ organizational internal use or individual, non-commercial use only. To arrange
+ for payment of licensing fees, please contact Copyright Clearance Center,
+ Customer Service, 222 Rosewood Drive, Danvers, MA 01923 USA; +1 978 750 8400;
+ https://www.copyright.com/. Permission to photocopy portions of any individual
+ standard for educational classroom use can also be obtained through the
+ Copyright Clearance Center.
+
+
+ Updating of IEEE Standards documents
+
+
Users
+ of IEEE Standards documents should be aware that these documents may be
+ superseded at any time by the issuance of new editions or may be amended from
+ time to time through the issuance of amendments, corrigenda, or errata. An
+ official IEEE document at any point in time consists of the current edition of
+ the document together with any amendments, corrigenda, or errata then in
+ effect.
+
+
Every
+ IEEE standard is subjected to review at least every 10 years. When a document
+ is more than 10 years old and has not undergone a revision process, it is
+ reasonable to conclude that its contents, although still of some value, do not
+ wholly reflect the present state of the art. Users are cautioned to check to
+ determine that they have the latest edition of any IEEE standard.
+
+
In
+ order to determine whether a given document is the current edition and whether
+ it has been amended through the issuance of amendments, corrigenda, or errata,
+ visit IEEE
+ Xplore or contact IEEE.
Available at .
+ For more information about the IEEE SA or IEEE’s standards development process,
+ visit the IEEE SA Website.
+
+
+
+ Errata
+
+
Errata, if any, for all IEEE standards can be accessed on the IEEE SA Website.
Available at: .
Search for standard number and year of approval to access the web page of the published standard. Errata links are located under the Additional Resources Details section. Errata are also available in IEEE Xplore. Users are encouraged to periodically check for errata.
+
+
+ Patents
+
+
IEEE Standards are developed in compliance with the IEEE SA Patent Policy.
Available at: .
+
Attention is called to
+ the possibility that implementation of this standard may require use of subject
+ matter covered by patent rights. By publication of this standard, no position
+ is taken by the IEEE with respect to the existence or validity of any patent
+ rights in connection therewith. If a patent holder or patent applicant has
+ filed a statement of assurance via an Accepted Letter of Assurance, then the
+ statement is listed on the IEEE SA Website at . Letters of Assurance may
+ indicate whether the Submitter is willing or unwilling to grant licenses under
+ patent rights without compensation or under reasonable rates, with reasonable
+ terms and conditions that are demonstrably free of any unfair discrimination to
+ applicants desiring to obtain such licenses.
+
+
Essential Patent
+ Claims may exist for which a Letter of Assurance has not been received. The
+ IEEE is not responsible for identifying Essential Patent Claims for which a
+ license may be required, for conducting inquiries into the legal validity or
+ scope of Patents Claims, or determining whether any licensing terms or
+ conditions provided in connection with submission of a Letter of Assurance, if
+ any, or in any licensing agreements are reasonable or non-discriminatory. Users
+ of this standard are expressly advised that determination of the validity of
+ any patent rights, and the risk of infringement of such rights, is entirely
+ their own responsibility. Further information may be obtained from the IEEE
+ Standards Association.
+
+
+ IMPORTANT NOTICE
+
+
IEEE Standards do not
+ guarantee or ensure safety, security, health, or environmental protection, or
+ ensure against interference with or from other devices or networks. IEEE
+ Standards development activities consider research and information presented to
+ the standards development group in developing any safety recommendations. Other
+ information about safety practices, changes in technology or technology implementation,
+ or impact by peripheral systems also may be pertinent to safety considerations
+ during implementation of the standard. Implementers and users of IEEE Standards
+ documents are responsible for determining and complying with all appropriate
+ safety, security, environmental, health, and interference protection practices
+ and all applicable laws and regulations.
+
+
+
+ Participants
+
At the time this draft Standard was completed, the WG Working Group had the following membership:
+
AB, Chair
+
CD, Vice Chair
+
E, F, Jr.
+
GH
+
IJ
+
The following members of the SC Standards Association balloting group voted on this Standard. Balloters may have voted for approval, disapproval, or abstention.
+
KL
+
MN
+
When the IEEE SA Standards Board approved this Standard on , it had the following membership:
+
OP, Chair
+
QR, Vice Chair
+
ST, Past Chair
+
UV, Secretary
+
KL
+
MN
+
*Member Emeritus
+
+
+
+
+
The Institute of Electrical and Electronics Engineers, Inc. 3 Park Avenue, New York, NY 10016-5997, USA
All rights reserved. Published . Printed in the United States of America.
+
+
+
+
IEEE is a registered trademark in the U.S. Patent & Trademark Office, owned by The Institute of Electrical and Electronics Engineers, Incorporated.
+
+
+
+
+
+
PDF:
ISBN 978-0-XXXX-XXXX-X
STDXXXXX
+
Print:
ISBN 978-0-XXXX-XXXX-X
STDPDXXXXX
+
+
+
+
+
+
IEEE prohibits discrimination, harassment, and bullying.
+
For more information, visit .
+
No part of this publication may be reproduced in any form, in an electronic retrieval system or otherwise, without the prior written permission of the publisher.
+
+ This document is an unapproved draft of a proposed IEEE Standard. As
+ such, this document is subject to change. USE AT YOUR OWN RISK! IEEE
+ copyright statements SHALL NOT BE REMOVED from draft or approved IEEE
+ standards, or modified in any way. Because this is an unapproved
+ draft, this document must not be utilized for any
+ conformance/compliance purposes. Permission is hereby granted for
+ officers from each IEEE Standards Working Group or Committee to
+ reproduce the draft document developed by that Working Group for
+ purposes of international standardization consideration. IEEE
+ Standards Department must be informed of the submission for
+ consideration prior to any reproduction for international
+ standardization consideration (
+ stds-ipr@ieee.org
+ ). Prior to adoption of this document, in whole or in part, by another
+ standards development organization, permission must first be obtained
+ from the IEEE Standards Department (
+ stds-ipr@ieee.org
+ ). When requesting permission, IEEE Standards Department will require
+ a copy of the standard development organization’s document
+ highlighting the use of IEEE content. Other entities seeking
+ permission to reproduce this document, in whole or in part, must also
+ obtain permission from the IEEE Standards Department.
+
+
+
+ IEEE Standards Department
+
+ 445 Hoes Lane
+
+ Piscataway, NJ 08854, USA
+
Important Notices and Disclaimers Concerning IEEE Standards Documents
+
+
+ IEEE Standards documents are made available for use subject to important
+ notices and legal disclaimers. These notices and disclaimers, or a
+ reference to this page (
+ https://standards.ieee.org/ipr/disclaimers.html
+ ), appear in all standards and may be found under the heading
+ “Important Notices and Disclaimers Concerning IEEE Standards
+ Documents.”
+
+
+
+ Notice and Disclaimer of Liability Concerning the Use of IEEE
+ Standards Documents
+
+
+
+ IEEE Standards documents are developed within the IEEE Societies and
+ the Standards Coordinating Committees of the IEEE Standards
+ Association (IEEE SA) Standards Board. IEEE develops its standards
+ through an accredited consensus development process, which brings
+ together volunteers representing varied viewpoints and interests to
+ achieve the final product. IEEE Standards are documents developed by
+ volunteers with scientific, academic, and industry-based expertise in
+ technical working groups. Volunteers are not necessarily members of
+ IEEE or IEEE SA, and participate without compensation from IEEE. While
+ IEEE administers the process and establishes rules to promote fairness
+ in the consensus development process, IEEE does not independently
+ evaluate, test, or verify the accuracy of any of the information or
+ the soundness of any judgments contained in its standards.
+
+
+
+ IEEE makes no warranties or representations concerning its standards,
+ and expressly disclaims all warranties, express or implied, concerning
+ this standard, including but not limited to the warranties of
+ merchantability, fitness for a particular purpose and
+ non-infringement. In addition, IEEE does not warrant or represent that
+ the use of the material contained in its standards is free from patent
+ infringement. IEEE standards documents are supplied “AS
+ IS” and “WITH ALL FAULTS.”
+
+
+
+ Use of an IEEE standard is wholly voluntary. The existence of an IEEE
+ Standard does not imply that there are no other ways to produce, test,
+ measure, purchase, market, or provide other goods and services related
+ to the scope of the IEEE standard. Furthermore, the viewpoint
+ expressed at the time a standard is approved and issued is subject to
+ change brought about through developments in the state of the art and
+ comments received from users of the standard.
+
+
+
+ In publishing and making its standards available, IEEE is not
+ suggesting or rendering professional or other services for, or on
+ behalf of, any person or entity, nor is IEEE undertaking to perform
+ any duty owed by any other person or entity to another. Any person
+ utilizing any IEEE Standards document, should rely upon his or her own
+ independent judgment in the exercise of reasonable care in any given
+ circumstances or, as appropriate, seek the advice of a competent
+ professional in determining the appropriateness of a given IEEE
+ standard.
+
+
+
+ IN NO EVENT SHALL IEEE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO: THE NEED TO PROCURE SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+ PUBLICATION, USE OF, OR RELIANCE UPON ANY STANDARD, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE AND REGARDLESS OF WHETHER SUCH DAMAGE
+ WAS FORESEEABLE.
+
+
+
+
Translations
+
+
+ The IEEE consensus development process involves the review of
+ documents in English only. In the event that an IEEE standard is
+ translated, only the English version published by IEEE is the approved
+ IEEE standard.
+
+
+
+
Official statements
+
+
+ A statement, written or oral, that is not processed in accordance with
+ the IEEE SA Standards Board Operations Manual shall not be considered
+ or inferred to be the official position of IEEE or any of its
+ committees and shall not be considered to be, nor be relied upon as, a
+ formal position of IEEE. At lectures, symposia, seminars, or
+ educational courses, an individual presenting information on IEEE
+ standards shall make it clear that the presenter’s views should
+ be considered the personal views of that individual rather than the
+ formal position of IEEE, IEEE SA, the Standards Committee, or the
+ Working Group.
+
+
+
+
Comments on standards
+
+
+ Comments for revision of IEEE Standards documents are welcome from any
+ interested party, regardless of membership affiliation with IEEE or
+ IEEE SA. However,
+
+ IEEE does not provide interpretations, consulting information, or
+ advice pertaining to IEEE Standards documents
+
+ .
+
+
+
+ Suggestions for changes in documents should be in the form of a
+ proposed change of text, together with appropriate supporting
+ comments. Since IEEE standards represent a consensus of concerned
+ interests, it is important that any responses to comments and
+ questions also receive the concurrence of a balance of interests. For
+ this reason, IEEE and the members of its Societies and Standards
+ Coordinating Committees are not able to provide an instant response to
+ comments, or questions except in those cases where the matter has
+ previously been addressed. For the same reason, IEEE does not respond
+ to interpretation requests. Any person who would like to participate
+ in evaluating comments or in revisions to an IEEE standard is welcome
+ to join the relevant IEEE working group. You can indicate interest in
+ a working group using the Interests tab in the Manage Profile
+ Interests area of the
+ IEEE SA myProject system
+ .
+
+
+
+
+
+
+
+ An IEEE Account is needed to access the application.
+
+
+
+ Comments on standards should be submitted using the
+ Contact Us
+ form.
+
+
+
+
+
+
+
+
+
+
+
Laws and regulations
+
+
+ Users of IEEE Standards documents should consult all applicable laws
+ and regulations. Compliance with the provisions of any IEEE Standards
+ document does not constitute compliance to any applicable regulatory
+ requirements. Implementers of the standard are responsible for
+ observing or referring to the applicable regulatory requirements. IEEE
+ does not, by the publication of its standards, intend to urge action
+ that is not in compliance with applicable laws, and these documents
+ may not be construed as doing so.
+
+
+
+
Data privacy
+
+
+ Users of IEEE Standards documents should evaluate the standards for
+ considerations of data privacy and data ownership in the context of
+ assessing and using the standards in compliance with applicable laws
+ and regulations.
+
+
+
+
Copyrights
+
+
+ IEEE draft and approved standards are copyrighted by IEEE under US and
+ international copyright laws. They are made available by IEEE and are
+ adopted for a wide variety of both public and private uses. These
+ include both use, by reference, in laws and regulations, and use in
+ private self-regulation, standardization, and the promotion of
+ engineering practices and methods. By making these documents available
+ for use and adoption by public authorities and private users, IEEE
+ does not waive any rights in copyright to the documents.
+
+
+
+
Photocopies
+
+
+ Subject to payment of the appropriate licensing fees, IEEE will grant
+ users a limited, non-exclusive license to photocopy portions of any
+ individual standard for company or organizational internal use or
+ individual, non-commercial use only. To arrange for payment of
+ licensing fees, please contact Copyright Clearance Center, Customer
+ Service, 222 Rosewood Drive, Danvers, MA 01923 USA; +1 978 750 8400;
+ https://www.copyright.com/. Permission to photocopy portions of any
+ individual standard for educational classroom use can also be obtained
+ through the Copyright Clearance Center.
+
+
+
+
Updating of IEEE Standards documents
+
+
+ Users of IEEE Standards documents should be aware that these documents
+ may be superseded at any time by the issuance of new editions or may
+ be amended from time to time through the issuance of amendments,
+ corrigenda, or errata. An official IEEE document at any point in time
+ consists of the current edition of the document together with any
+ amendments, corrigenda, or errata then in effect.
+
+
+
+ Every IEEE standard is subjected to review at least every 10 years.
+ When a document is more than 10 years old and has not undergone a
+ revision process, it is reasonable to conclude that its contents,
+ although still of some value, do not wholly reflect the present state
+ of the art. Users are cautioned to check to determine that they have
+ the latest edition of any IEEE standard.
+
+
+
+ In order to determine whether a given document is the current edition
+ and whether it has been amended through the issuance of amendments,
+ corrigenda, or errata, visit
+ IEEE Xplore
+ or
+ contact IEEE
+ .
+
+
+
+
+
+
+
+ For more information about the IEEE SA or IEEE’s standards
+ development process, visit the IEEE SA Website.
+
+
+
+
Errata
+
+
+ Errata, if any, for all IEEE standards can be accessed on the
+ IEEE SA Website
+ .
+
+
+
+
+
+
+
+ Search for standard number and year of approval to access the web
+ page of the published standard. Errata links are located under the
+ Additional Resources Details section. Errata are also available in
+ IEEE Xplore
+ . Users are encouraged to periodically check for errata.
+
+
+ Attention is called to the possibility that implementation of this
+ standard may require use of subject matter covered by patent rights.
+ By publication of this standard, no position is taken by the IEEE with
+ respect to the existence or validity of any patent rights in
+ connection therewith. If a patent holder or patent applicant has filed
+ a statement of assurance via an Accepted Letter of Assurance, then the
+ statement is listed on the IEEE SA Website at
+ https://standards.ieee.org/about/sasb/patcom/patents.html
+ . Letters of Assurance may indicate whether the Submitter is willing
+ or unwilling to grant licenses under patent rights without
+ compensation or under reasonable rates, with reasonable terms and
+ conditions that are demonstrably free of any unfair discrimination to
+ applicants desiring to obtain such licenses.
+
+
+
+ Essential Patent Claims may exist for which a Letter of Assurance has
+ not been received. The IEEE is not responsible for identifying
+ Essential Patent Claims for which a license may be required, for
+ conducting inquiries into the legal validity or scope of Patents
+ Claims, or determining whether any licensing terms or conditions
+ provided in connection with submission of a Letter of Assurance, if
+ any, or in any licensing agreements are reasonable or
+ non-discriminatory. Users of this standard are expressly advised that
+ determination of the validity of any patent rights, and the risk of
+ infringement of such rights, is entirely their own responsibility.
+ Further information may be obtained from the IEEE Standards
+ Association.
+
+
+
+
IMPORTANT NOTICE
+
+
+ IEEE Standards do not guarantee or ensure safety, security, health, or
+ environmental protection, or ensure against interference with or from
+ other devices or networks. IEEE Standards development activities
+ consider research and information presented to the standards
+ development group in developing any safety recommendations. Other
+ information about safety practices, changes in technology or
+ technology implementation, or impact by peripheral systems also may be
+ pertinent to safety considerations during implementation of the
+ standard. Implementers and users of IEEE Standards documents are
+ responsible for determining and complying with all appropriate safety,
+ security, environmental, health, and interference protection practices
+ and all applicable laws and regulations.
+
+
+
+
+
+
+
+
+
+
Participants
+
+
+ At the time this draft Standard was completed, the WG Working Group had
+ the following membership:
+
+
+
+ AB
+ ,
+ Chair
+
+
+
+ CD
+ ,
+ Vice Chair
+
+
+
+
+
+
+
+ E, F, Jr.
+
+
+
+ GH
+
+
+
+ IJ
+
+
+
+
+
+
+
+
+ The following members of the SC Standards Association balloting group
+ voted on this Standard. Balloters may have voted for approval,
+ disapproval, or abstention.
+
+
+
+
+
+
+
+ KL
+
+
+
+ MN
+
+
+
+
+
+
+
+
+ When the IEEE SA Standards Board approved this Standard on , it
+ had the following membership:
+
+
+
+ OP
+ ,
+ Chair
+
+
+
+ QR
+ ,
+ Vice Chair
+
+
+
+ ST
+ ,
+ Past Chair
+
+
+
+ UV
+ ,
+ Secretary
+
+
+
+
+
+
+
+ KL
+
+
+
+ MN
+
+
+
+
+
+
+
+ *Member Emeritus
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Draft Standard for Empty
+
+
+
+
+
+
+
+
Clause
+
+
+ Hello
+
+
+
+
+
+
+
+
+
+ The Institute of Electrical and Electronics Engineers, Inc.
+
+ 3 Park Avenue, New York, NY 10016-5997, USA
+
+
+ All rights reserved. Published . Printed in the United States of
+ America.
+
+
+
+
+ IEEE is a registered trademark in the U.S. Patent Trademark Office,
+ owned by The Institute of Electrical and Electronics Engineers,
+ Incorporated.
+
+
+
+ PDF:
+
+ ISBN 978-0-XXXX-XXXX-X
+
+ STDXXXXX
+
+
+ Print:
+
+ ISBN 978-0-XXXX-XXXX-X
+
+ STDPDXXXXX
+
+
+
+
+ IEEE prohibits discrimination, harassment, and bullying.
+
+
+ No part of this publication may be reproduced in any form, in an
+ electronic retrieval system or otherwise, without the prior written
+ permission of the publisher.
+
All rights reserved. 2929. Printed in the United States of America.
+
+
+
+
PDF:
+
ISBN ISBN 2
+
STD 2
+
+
Print:
+
ISBN ISBN 3
+
STD 3
+
+
+
+
+
+
IEEE is a registered trademark in the U.S. Patent & Trademark Office, owned by The Institute of Electrical and Electronics Engineers, Incorporated. All other trademarks are the property of the respective trademark owners.
+
+
+
+
IEEE prohibits discrimination, harassment, and bullying.
+ For more information, visit .
+
+
No part of this publication may be reproduced in any form, in an electronic retrieval system or otherwise, without the prior written permission of the publisher.
+
+
Find IEEE standards and standards-related product listings at: .
+
+
+
+
+
+
+ Trademarks and Disclaimers
+
IEEE believes the information in this publication is accurate as of its publication date; such information is subject to change without notice. IEEE is not responsible for any inadvertent errors.
+
The ideas and proposals in this specification are the respective author’s views and do not represent the views of the affiliated organization.
+
+
+
+ Notice and Disclaimer of Liability Concerning the Use of IEEE SA Documents
+
This IEEE Standards Association (“IEEE SA”) publication (“Work”) is not a consensus standard document. Specifically, this document is NOT AN IEEE STANDARD. Information contained in this Work has been created by, or obtained from, sources believed to be reliable, and reviewed by members of the activity that produced this Work. IEEE and the NAME OF GROUP expressly disclaim all warranties (express, implied, and statutory) related to this Work, including, but not limited to, the warranties of: merchantability; fitness for a particular purpose; non-infringement; quality, accuracy, effectiveness, currency, or completeness of the Work or content within the Work. In addition, IEEE and the NAME OF GROUP disclaim any and all conditions relating to: results; and workmanlike effort. This document is supplied “AS IS” and “WITH ALL FAULTS.”
+
+
Although the NAME OF GROUP members who have created this Work believe that the information and guidance given in this Work serve as an enhancement to users, all persons must rely upon their own skill and judgment when making use of it. IN NO EVENT SHALL IEEE SA OR NAME OF GROUP MEMBERS BE LIABLE FOR ANY ERRORS OR OMISSIONS OR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO: PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS WORK, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE AND REGARDLESS OF WHETHER SUCH DAMAGE WAS FORESEEABLE.
+
+
Further, information contained in this Work may be protected by intellectual property rights held by third parties or organizations, and the use of this information may require the user to negotiate with any such rights holders in order to legally acquire the rights to do so, and such rights holders may refuse to grant such rights. Attention is also called to the possibility that implementation of any or all of this Work may require use of subject matter covered by patent rights. By publication of this Work, no position is taken by the IEEE with respect to the existence or validity of any patent rights in connection therewith. The IEEE is not responsible for identifying patent rights for which a license may be required, or for conducting inquiries into the legal validity or scope of patents claims. Users are expressly advised that determination of the validity of any patent rights, and the risk of infringement of such rights, is entirely their own responsibility. No commitment to grant licenses under patent rights on a reasonable or non-discriminatory basis has been sought or received from any rights holder.
+
+
This Work is published with the understanding that IEEE and the NAME OF GROUP members are supplying information through this Work, not attempting to render engineering or other professional services. If such services are required, the assistance of an appropriate professional should be sought. IEEE is not responsible for the statements and opinions advanced in this Work.
+
+
+
+ Acknowledgements
+
+
Special thanks are given to the following reviewers of this paper:
IEEE believes the information in this publication is accurate as of its publication date; such information is subject to change without notice. IEEE is not responsible for any inadvertent errors.
+
The ideas and proposals in this specification are the respective author’s views and do not represent the views of the affiliated organization.
+
+
+
+
Acknowledgements
+
+
+
Special thanks are given to the following reviewers of this paper:
+
Balloter1
+
Balloter2
+
Balloter3
+
Balloter4
+
Balloter5
+
Balloter6
+
Balloter7
+
Balloter8
+
Balloter9
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The Institute of Electrical and Electronics Engineers, Inc. 3 Park Avenue, New York, NY 10016-5997, USA
All rights reserved. 2929. Printed in the United States of America.
+
+
+
+
+
Print:ISBN ISBN 3STD 3
+
+
+
+
+
IEEE is a registered trademark in the U.S. Patent Trademark Office, owned by The Institute of Electrical and Electronics Engineers, Incorporated. All other trademarks are the property of the respective trademark owners.
No part of this publication may be reproduced in any form, in an electronic retrieval system or otherwise, without the prior written permission of the publisher.
Notice and Disclaimer of Liability Concerning the Use of IEEE SA Documents
+
This IEEE Standards Association (“IEEE SA”) publication (“Work”) is not a consensus standard document. Specifically, this document is NOT AN IEEE STANDARD. Information contained in this Work has been created by, or obtained from, sources believed to be reliable, and reviewed by members of the activity that produced this Work. IEEE and the NAME OF GROUP expressly disclaim all warranties (express, implied, and statutory) related to this Work, including, but not limited to, the warranties of: merchantability; fitness for a particular purpose; non-infringement; quality, accuracy, effectiveness, currency, or completeness of the Work or content within the Work. In addition, IEEE and the NAME OF GROUP disclaim any and all conditions relating to: results; and workmanlike effort. This document is supplied “AS IS” and “WITH ALL FAULTS.”
+
Although the NAME OF GROUP members who have created this Work believe that the information and guidance given in this Work serve as an enhancement to users, all persons must rely upon their own skill and judgment when making use of it. IN NO EVENT SHALL IEEE SA OR NAME OF GROUP MEMBERS BE LIABLE FOR ANY ERRORS OR OMISSIONS OR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO: PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS WORK, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE AND REGARDLESS OF WHETHER SUCH DAMAGE WAS FORESEEABLE.
+
Further, information contained in this Work may be protected by intellectual property rights held by third parties or organizations, and the use of this information may require the user to negotiate with any such rights holders in order to legally acquire the rights to do so, and such rights holders may refuse to grant such rights. Attention is also called to the possibility that implementation of any or all of this Work may require use of subject matter covered by patent rights. By publication of this Work, no position is taken by the IEEE with respect to the existence or validity of any patent rights in connection therewith. The IEEE is not responsible for identifying patent rights for which a license may be required, or for conducting inquiries into the legal validity or scope of patents claims. Users are expressly advised that determination of the validity of any patent rights, and the risk of infringement of such rights, is entirely their own responsibility. No commitment to grant licenses under patent rights on a reasonable or non-discriminatory basis has been sought or received from any rights holder.
+
This Work is published with the understanding that IEEE and the NAME OF GROUP members are supplying information through this Work, not attempting to render engineering or other professional services. If such services are required, the assistance of an appropriate professional should be sought. IEEE is not responsible for the statements and opinions advanced in this Work.
+ OUTPUT
+ IsoDoc::IEEE::WordConvert.new({}).convert("test", input
+ .sub("standard", "whitepaper"), false)
+ expect(File.exist?("test.doc")).to be true
+ doc = Nokogiri::XML(word2xml("test.doc"))
+ .at("//xmlns:div[xmlns:a[@id = 'A']]")
+ expect(strip_guid(xmlpp(doc.to_xml)))
+ .to be_equivalent_to xmlpp(word)
end
it "processes notes" do
@@ -547,1143 +632,6 @@
.to be_equivalent_to xmlpp(word)
end
- it "processes boilerplate" do
- FileUtils.rm_f "test.doc"
- input = <<~INPUT
-
-
- Empty
-
- Introduction
-
- Main Title -- Title
-
- Title Part
-
- Introduction Française
-
- Titre Principal
-
- Part du Titre
- 10001000
- 1000-12-01
- 01 Dec 1000
- 1001-12-01
- 01 Dec 1001
- Working Group Chair
- AB
- Working Group Vice-Chair
- CD
- Working Group Member
- E, F, Jr.
- Working Group Member
- GH
- Working Group Member
- IJ
- Balloting Group Member
- KL
- Balloting Group Member
- MN
- Standards Board Chair
- OP
- Standards Board Vice-Chair
- QR
- Standards Board Past Chair
- ST
- Standards Board Secretary
- UV
- Standards Board Member
- KL
- Standards Board Member
- MN
-
- Institute of Electrical and Electronic Engineers
- IEEE22000-01-010.3.4en202032000
- Institute of Electrical and Electronic Engineers
- IEEEstandardSECRETARIATSCWGWG1TCTC1123
-
-
-
-
This document is an unapproved draft of a proposed IEEE Standard. As such, this document is subject to change. USE AT YOUR OWN RISK! IEEE copyright statements SHALL NOT BE REMOVED from draft or approved IEEE standards, or modified in any way. Because this is an unapproved draft, this document must not be utilized for any conformance/compliance purposes. Permission is hereby granted for officers from each IEEE Standards Working Group or Committee to reproduce the draft document developed by that Working Group for purposes of international standardization consideration. IEEE Standards Department must be informed of the submission for consideration prior to any reproduction for international standardization consideration (). Prior to adoption of this document, in whole or in part, by another standards development organization, permission must first be obtained from the IEEE Standards Department (). When requesting permission, IEEE Standards Department will require a copy of the standard development organization’s document highlighting the use of IEEE content. Other entities seeking permission to reproduce this document, in whole or in part, must also obtain permission from the IEEE Standards Department.
-
IEEE Standards Department 445 Hoes Lane Piscataway, NJ 08854, USA
-
-
-
-
- Important Notices and Disclaimers Concerning IEEE Standards Documents
-
-
IEEE Standards
- documents are made available for use subject to important notices and legal
- disclaimers. These notices and disclaimers, or a reference to this page (),
- appear in all standards and may be found under the heading “Important Notices
- and Disclaimers Concerning IEEE Standards Documents.”
-
-
- Notice
- and Disclaimer of Liability Concerning the Use of IEEE Standards Documents
-
-
IEEE Standards documents are
- developed within the IEEE Societies and the Standards Coordinating Committees
- of the IEEE Standards Association (IEEE SA) Standards Board. IEEE develops its
- standards through an accredited consensus development process, which brings
- together volunteers representing varied viewpoints and interests to achieve the
- final product. IEEE Standards are documents developed by volunteers with
- scientific, academic, and industry-based expertise in technical working groups.
- Volunteers are not necessarily members of IEEE or IEEE SA, and participate
- without compensation from IEEE. While IEEE administers the process and
- establishes rules to promote fairness in the consensus development process,
- IEEE does not independently evaluate, test, or verify the accuracy of any of
- the information or the soundness of any judgments contained in its standards.
-
-
IEEE makes no warranties or
- representations concerning its standards, and expressly disclaims all
- warranties, express or implied, concerning this standard, including but not
- limited to the warranties of merchantability, fitness for a particular purpose
- and non-infringement. In addition, IEEE
- does not warrant or represent that the use of the material contained in its
- standards is free from patent infringement. IEEE standards documents are
- supplied “AS IS” and “WITH ALL FAULTS.”
-
-
Use of an IEEE standard is wholly
- voluntary. The existence of an IEEE Standard does not imply that there are no
- other ways to produce, test, measure, purchase, market, or provide other goods
- and services related to the scope of the IEEE standard. Furthermore, the
- viewpoint expressed at the time a standard is approved and issued is subject to
- change brought about through developments in the state of the art and comments
- received from users of the standard.
-
-
In publishing and
- making its standards available, IEEE is not suggesting or rendering
- professional or other services for, or on behalf of, any person or entity, nor
- is IEEE undertaking to perform any duty owed by any other person or entity to
- another. Any person utilizing any IEEE Standards document, should rely upon his
- or her own independent judgment in the exercise of reasonable care in any given
- circumstances or, as appropriate, seek the advice of a competent professional
- in determining the appropriateness of a given IEEE standard.
-
-
IN NO EVENT SHALL IEEE
- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO: THE NEED TO PROCURE
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
- IN ANY WAY OUT OF THE PUBLICATION, USE OF, OR RELIANCE UPON ANY STANDARD, EVEN
- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE AND REGARDLESS OF WHETHER SUCH
- DAMAGE WAS FORESEEABLE.
-
-
- Translations
-
-
The IEEE consensus
- development process involves the review of documents in English only. In the
- event that an IEEE standard is translated, only the English version published
- by IEEE is the approved IEEE standard.
-
-
- Official statements
-
-
A statement, written
- or oral, that is not processed in accordance with the IEEE SA Standards Board
- Operations Manual shall not be considered or inferred to be the official
- position of IEEE or any of its committees and shall not be considered to be,
- nor be relied upon as, a formal position of IEEE. At lectures, symposia,
- seminars, or educational courses, an individual presenting information on IEEE
- standards shall make it clear that the presenter’s views should be considered
- the personal views of that individual rather than the formal position of IEEE,
- IEEE SA, the Standards Committee, or the Working Group.
-
-
- Comments on standards
-
-
Comments for revision of IEEE
- Standards documents are welcome from any interested party, regardless of membership
- affiliation with IEEE or IEEE SA. However, IEEE does not provide interpretations, consulting information, or advice pertaining to IEEE Standards documents.
-
-
Suggestions for changes in
- documents should be in the form of a proposed change of text, together with
- appropriate supporting comments. Since IEEE standards represent a consensus of
- concerned interests, it is important that any responses to comments and
- questions also receive the concurrence of a balance of interests. For this
- reason, IEEE and the members of its Societies and Standards Coordinating
- Committees are not able to provide an instant response to comments, or
- questions except in those cases where the matter has previously been addressed.
- For the same reason, IEEE does not respond to interpretation requests. Any
- person who would like to participate in evaluating comments or in revisions to
- an IEEE standard is welcome to join the relevant IEEE working group. You can
- indicate interest in a working group using the Interests tab in the Manage
- Profile & Interests area of the IEEE
- SA myProject system.
Available at: .
- An IEEE Account is needed to access the application.
-
-
Comments on standards should be submitted using the Contact Us form.
Available at: .
-
-
- Laws and regulations
-
-
Users of IEEE
- Standards documents should consult all applicable laws and regulations.
- Compliance with the provisions of any IEEE Standards document does not
- constitute compliance to any applicable regulatory requirements. Implementers
- of the standard are responsible for observing or referring to the applicable
- regulatory requirements. IEEE does not, by the publication of its standards,
- intend to urge action that is not in compliance with applicable laws, and these
- documents may not be construed as doing so.
-
-
- Data privacy
-
-
Users of IEEE Standards documents
- should evaluate the standards for considerations of data privacy and data
- ownership in the context of assessing and using the standards in compliance
- with applicable laws and regulations.
-
-
- Copyrights
-
-
IEEE draft and
- approved standards are copyrighted by IEEE under US and international copyright
- laws. They are made available by IEEE and are adopted for a wide variety of
- both public and private uses. These include both use, by reference, in laws and
- regulations, and use in private self-regulation, standardization, and the
- promotion of engineering practices and methods. By making these documents
- available for use and adoption by public authorities and private users, IEEE
- does not waive any rights in copyright to the documents.
-
-
- Photocopies
-
-
Subject to payment of
- the appropriate licensing fees, IEEE will grant users a limited, non-exclusive
- license to photocopy portions of any individual standard for company or
- organizational internal use or individual, non-commercial use only. To arrange
- for payment of licensing fees, please contact Copyright Clearance Center,
- Customer Service, 222 Rosewood Drive, Danvers, MA 01923 USA; +1 978 750 8400;
- https://www.copyright.com/. Permission to photocopy portions of any individual
- standard for educational classroom use can also be obtained through the
- Copyright Clearance Center.
-
-
- Updating of IEEE Standards documents
-
-
Users
- of IEEE Standards documents should be aware that these documents may be
- superseded at any time by the issuance of new editions or may be amended from
- time to time through the issuance of amendments, corrigenda, or errata. An
- official IEEE document at any point in time consists of the current edition of
- the document together with any amendments, corrigenda, or errata then in
- effect.
-
-
Every
- IEEE standard is subjected to review at least every 10 years. When a document
- is more than 10 years old and has not undergone a revision process, it is
- reasonable to conclude that its contents, although still of some value, do not
- wholly reflect the present state of the art. Users are cautioned to check to
- determine that they have the latest edition of any IEEE standard.
-
-
In
- order to determine whether a given document is the current edition and whether
- it has been amended through the issuance of amendments, corrigenda, or errata,
- visit IEEE
- Xplore or contact IEEE.
Available at .
- For more information about the IEEE SA or IEEE’s standards development process,
- visit the IEEE SA Website.
-
-
-
- Errata
-
-
Errata, if any, for all IEEE standards can be accessed on the IEEE SA Website.
Available at: .
Search for standard number and year of approval to access the web page of the published standard. Errata links are located under the Additional Resources Details section. Errata are also available in IEEE Xplore. Users are encouraged to periodically check for errata.
-
-
- Patents
-
-
IEEE Standards are developed in compliance with the IEEE SA Patent Policy.
Available at: .
-
Attention is called to
- the possibility that implementation of this standard may require use of subject
- matter covered by patent rights. By publication of this standard, no position
- is taken by the IEEE with respect to the existence or validity of any patent
- rights in connection therewith. If a patent holder or patent applicant has
- filed a statement of assurance via an Accepted Letter of Assurance, then the
- statement is listed on the IEEE SA Website at . Letters of Assurance may
- indicate whether the Submitter is willing or unwilling to grant licenses under
- patent rights without compensation or under reasonable rates, with reasonable
- terms and conditions that are demonstrably free of any unfair discrimination to
- applicants desiring to obtain such licenses.
-
-
Essential Patent
- Claims may exist for which a Letter of Assurance has not been received. The
- IEEE is not responsible for identifying Essential Patent Claims for which a
- license may be required, for conducting inquiries into the legal validity or
- scope of Patents Claims, or determining whether any licensing terms or
- conditions provided in connection with submission of a Letter of Assurance, if
- any, or in any licensing agreements are reasonable or non-discriminatory. Users
- of this standard are expressly advised that determination of the validity of
- any patent rights, and the risk of infringement of such rights, is entirely
- their own responsibility. Further information may be obtained from the IEEE
- Standards Association.
-
-
- IMPORTANT NOTICE
-
-
IEEE Standards do not
- guarantee or ensure safety, security, health, or environmental protection, or
- ensure against interference with or from other devices or networks. IEEE
- Standards development activities consider research and information presented to
- the standards development group in developing any safety recommendations. Other
- information about safety practices, changes in technology or technology implementation,
- or impact by peripheral systems also may be pertinent to safety considerations
- during implementation of the standard. Implementers and users of IEEE Standards
- documents are responsible for determining and complying with all appropriate
- safety, security, environmental, health, and interference protection practices
- and all applicable laws and regulations.
-
-
-
- Participants
-
At the time this draft Standard was completed, the WG Working Group had the following membership:
-
AB, Chair
-
CD, Vice Chair
-
E, F, Jr.
-
GH
-
IJ
-
The following members of the SC Standards Association balloting group voted on this Standard. Balloters may have voted for approval, disapproval, or abstention.
-
KL
-
MN
-
When the IEEE SA Standards Board approved this Standard on , it had the following membership:
-
OP, Chair
-
QR, Vice Chair
-
ST, Past Chair
-
UV, Secretary
-
KL
-
MN
-
*Member Emeritus
-
-
-
-
-
The Institute of Electrical and Electronics Engineers, Inc. 3 Park Avenue, New York, NY 10016-5997, USA
All rights reserved. Published . Printed in the United States of America.
-
-
-
-
IEEE is a registered trademark in the U.S. Patent & Trademark Office, owned by The Institute of Electrical and Electronics Engineers, Incorporated.
-
-
-
-
-
-
PDF:
ISBN 978-0-XXXX-XXXX-X
STDXXXXX
-
Print:
ISBN 978-0-XXXX-XXXX-X
STDPDXXXXX
-
-
-
-
-
-
IEEE prohibits discrimination, harassment, and bullying.
-
For more information, visit .
-
No part of this publication may be reproduced in any form, in an electronic retrieval system or otherwise, without the prior written permission of the publisher.
-
- This document is an unapproved draft of a proposed IEEE Standard. As
- such, this document is subject to change. USE AT YOUR OWN RISK! IEEE
- copyright statements SHALL NOT BE REMOVED from draft or approved IEEE
- standards, or modified in any way. Because this is an unapproved
- draft, this document must not be utilized for any
- conformance/compliance purposes. Permission is hereby granted for
- officers from each IEEE Standards Working Group or Committee to
- reproduce the draft document developed by that Working Group for
- purposes of international standardization consideration. IEEE
- Standards Department must be informed of the submission for
- consideration prior to any reproduction for international
- standardization consideration (
- stds-ipr@ieee.org
- ). Prior to adoption of this document, in whole or in part, by another
- standards development organization, permission must first be obtained
- from the IEEE Standards Department (
- stds-ipr@ieee.org
- ). When requesting permission, IEEE Standards Department will require
- a copy of the standard development organization’s document
- highlighting the use of IEEE content. Other entities seeking
- permission to reproduce this document, in whole or in part, must also
- obtain permission from the IEEE Standards Department.
-
-
-
- IEEE Standards Department
-
- 445 Hoes Lane
-
- Piscataway, NJ 08854, USA
-
Important Notices and Disclaimers Concerning IEEE Standards Documents
-
-
- IEEE Standards documents are made available for use subject to important
- notices and legal disclaimers. These notices and disclaimers, or a
- reference to this page (
- https://standards.ieee.org/ipr/disclaimers.html
- ), appear in all standards and may be found under the heading
- “Important Notices and Disclaimers Concerning IEEE Standards
- Documents.”
-
-
-
- Notice and Disclaimer of Liability Concerning the Use of IEEE
- Standards Documents
-
-
-
- IEEE Standards documents are developed within the IEEE Societies and
- the Standards Coordinating Committees of the IEEE Standards
- Association (IEEE SA) Standards Board. IEEE develops its standards
- through an accredited consensus development process, which brings
- together volunteers representing varied viewpoints and interests to
- achieve the final product. IEEE Standards are documents developed by
- volunteers with scientific, academic, and industry-based expertise in
- technical working groups. Volunteers are not necessarily members of
- IEEE or IEEE SA, and participate without compensation from IEEE. While
- IEEE administers the process and establishes rules to promote fairness
- in the consensus development process, IEEE does not independently
- evaluate, test, or verify the accuracy of any of the information or
- the soundness of any judgments contained in its standards.
-
-
-
- IEEE makes no warranties or representations concerning its standards,
- and expressly disclaims all warranties, express or implied, concerning
- this standard, including but not limited to the warranties of
- merchantability, fitness for a particular purpose and
- non-infringement. In addition, IEEE does not warrant or represent that
- the use of the material contained in its standards is free from patent
- infringement. IEEE standards documents are supplied “AS
- IS” and “WITH ALL FAULTS.”
-
-
-
- Use of an IEEE standard is wholly voluntary. The existence of an IEEE
- Standard does not imply that there are no other ways to produce, test,
- measure, purchase, market, or provide other goods and services related
- to the scope of the IEEE standard. Furthermore, the viewpoint
- expressed at the time a standard is approved and issued is subject to
- change brought about through developments in the state of the art and
- comments received from users of the standard.
-
-
-
- In publishing and making its standards available, IEEE is not
- suggesting or rendering professional or other services for, or on
- behalf of, any person or entity, nor is IEEE undertaking to perform
- any duty owed by any other person or entity to another. Any person
- utilizing any IEEE Standards document, should rely upon his or her own
- independent judgment in the exercise of reasonable care in any given
- circumstances or, as appropriate, seek the advice of a competent
- professional in determining the appropriateness of a given IEEE
- standard.
-
-
-
- IN NO EVENT SHALL IEEE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO: THE NEED TO PROCURE SUBSTITUTE GOODS OR SERVICES; LOSS OF
- USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
- TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
- PUBLICATION, USE OF, OR RELIANCE UPON ANY STANDARD, EVEN IF ADVISED OF
- THE POSSIBILITY OF SUCH DAMAGE AND REGARDLESS OF WHETHER SUCH DAMAGE
- WAS FORESEEABLE.
-
-
-
-
Translations
-
-
- The IEEE consensus development process involves the review of
- documents in English only. In the event that an IEEE standard is
- translated, only the English version published by IEEE is the approved
- IEEE standard.
-
-
-
-
Official statements
-
-
- A statement, written or oral, that is not processed in accordance with
- the IEEE SA Standards Board Operations Manual shall not be considered
- or inferred to be the official position of IEEE or any of its
- committees and shall not be considered to be, nor be relied upon as, a
- formal position of IEEE. At lectures, symposia, seminars, or
- educational courses, an individual presenting information on IEEE
- standards shall make it clear that the presenter’s views should
- be considered the personal views of that individual rather than the
- formal position of IEEE, IEEE SA, the Standards Committee, or the
- Working Group.
-
-
-
-
Comments on standards
-
-
- Comments for revision of IEEE Standards documents are welcome from any
- interested party, regardless of membership affiliation with IEEE or
- IEEE SA. However,
-
- IEEE does not provide interpretations, consulting information, or
- advice pertaining to IEEE Standards documents
-
- .
-
-
-
- Suggestions for changes in documents should be in the form of a
- proposed change of text, together with appropriate supporting
- comments. Since IEEE standards represent a consensus of concerned
- interests, it is important that any responses to comments and
- questions also receive the concurrence of a balance of interests. For
- this reason, IEEE and the members of its Societies and Standards
- Coordinating Committees are not able to provide an instant response to
- comments, or questions except in those cases where the matter has
- previously been addressed. For the same reason, IEEE does not respond
- to interpretation requests. Any person who would like to participate
- in evaluating comments or in revisions to an IEEE standard is welcome
- to join the relevant IEEE working group. You can indicate interest in
- a working group using the Interests tab in the Manage Profile
- Interests area of the
- IEEE SA myProject system
- .
-
-
-
-
-
-
-
- An IEEE Account is needed to access the application.
-
-
-
- Comments on standards should be submitted using the
- Contact Us
- form.
-
-
-
-
-
-
-
-
-
-
-
Laws and regulations
-
-
- Users of IEEE Standards documents should consult all applicable laws
- and regulations. Compliance with the provisions of any IEEE Standards
- document does not constitute compliance to any applicable regulatory
- requirements. Implementers of the standard are responsible for
- observing or referring to the applicable regulatory requirements. IEEE
- does not, by the publication of its standards, intend to urge action
- that is not in compliance with applicable laws, and these documents
- may not be construed as doing so.
-
-
-
-
Data privacy
-
-
- Users of IEEE Standards documents should evaluate the standards for
- considerations of data privacy and data ownership in the context of
- assessing and using the standards in compliance with applicable laws
- and regulations.
-
-
-
-
Copyrights
-
-
- IEEE draft and approved standards are copyrighted by IEEE under US and
- international copyright laws. They are made available by IEEE and are
- adopted for a wide variety of both public and private uses. These
- include both use, by reference, in laws and regulations, and use in
- private self-regulation, standardization, and the promotion of
- engineering practices and methods. By making these documents available
- for use and adoption by public authorities and private users, IEEE
- does not waive any rights in copyright to the documents.
-
-
-
-
Photocopies
-
-
- Subject to payment of the appropriate licensing fees, IEEE will grant
- users a limited, non-exclusive license to photocopy portions of any
- individual standard for company or organizational internal use or
- individual, non-commercial use only. To arrange for payment of
- licensing fees, please contact Copyright Clearance Center, Customer
- Service, 222 Rosewood Drive, Danvers, MA 01923 USA; +1 978 750 8400;
- https://www.copyright.com/. Permission to photocopy portions of any
- individual standard for educational classroom use can also be obtained
- through the Copyright Clearance Center.
-
-
-
-
Updating of IEEE Standards documents
-
-
- Users of IEEE Standards documents should be aware that these documents
- may be superseded at any time by the issuance of new editions or may
- be amended from time to time through the issuance of amendments,
- corrigenda, or errata. An official IEEE document at any point in time
- consists of the current edition of the document together with any
- amendments, corrigenda, or errata then in effect.
-
-
-
- Every IEEE standard is subjected to review at least every 10 years.
- When a document is more than 10 years old and has not undergone a
- revision process, it is reasonable to conclude that its contents,
- although still of some value, do not wholly reflect the present state
- of the art. Users are cautioned to check to determine that they have
- the latest edition of any IEEE standard.
-
-
-
- In order to determine whether a given document is the current edition
- and whether it has been amended through the issuance of amendments,
- corrigenda, or errata, visit
- IEEE Xplore
- or
- contact IEEE
- .
-
-
-
-
-
-
-
- For more information about the IEEE SA or IEEE’s standards
- development process, visit the IEEE SA Website.
-
-
-
-
Errata
-
-
- Errata, if any, for all IEEE standards can be accessed on the
- IEEE SA Website
- .
-
-
-
-
-
-
-
- Search for standard number and year of approval to access the web
- page of the published standard. Errata links are located under the
- Additional Resources Details section. Errata are also available in
- IEEE Xplore
- . Users are encouraged to periodically check for errata.
-
-
- Attention is called to the possibility that implementation of this
- standard may require use of subject matter covered by patent rights.
- By publication of this standard, no position is taken by the IEEE with
- respect to the existence or validity of any patent rights in
- connection therewith. If a patent holder or patent applicant has filed
- a statement of assurance via an Accepted Letter of Assurance, then the
- statement is listed on the IEEE SA Website at
- https://standards.ieee.org/about/sasb/patcom/patents.html
- . Letters of Assurance may indicate whether the Submitter is willing
- or unwilling to grant licenses under patent rights without
- compensation or under reasonable rates, with reasonable terms and
- conditions that are demonstrably free of any unfair discrimination to
- applicants desiring to obtain such licenses.
-
-
-
- Essential Patent Claims may exist for which a Letter of Assurance has
- not been received. The IEEE is not responsible for identifying
- Essential Patent Claims for which a license may be required, for
- conducting inquiries into the legal validity or scope of Patents
- Claims, or determining whether any licensing terms or conditions
- provided in connection with submission of a Letter of Assurance, if
- any, or in any licensing agreements are reasonable or
- non-discriminatory. Users of this standard are expressly advised that
- determination of the validity of any patent rights, and the risk of
- infringement of such rights, is entirely their own responsibility.
- Further information may be obtained from the IEEE Standards
- Association.
-
-
-
-
IMPORTANT NOTICE
-
-
- IEEE Standards do not guarantee or ensure safety, security, health, or
- environmental protection, or ensure against interference with or from
- other devices or networks. IEEE Standards development activities
- consider research and information presented to the standards
- development group in developing any safety recommendations. Other
- information about safety practices, changes in technology or
- technology implementation, or impact by peripheral systems also may be
- pertinent to safety considerations during implementation of the
- standard. Implementers and users of IEEE Standards documents are
- responsible for determining and complying with all appropriate safety,
- security, environmental, health, and interference protection practices
- and all applicable laws and regulations.
-
-
-
-
-
-
-
-
-
-
Participants
-
-
- At the time this draft Standard was completed, the WG Working Group had
- the following membership:
-
-
-
- AB
- ,
- Chair
-
-
-
- CD
- ,
- Vice Chair
-
-
-
-
-
-
-
- E, F, Jr.
-
-
-
- GH
-
-
-
- IJ
-
-
-
-
-
-
-
-
- The following members of the SC Standards Association balloting group
- voted on this Standard. Balloters may have voted for approval,
- disapproval, or abstention.
-
-
-
-
-
-
-
- KL
-
-
-
- MN
-
-
-
-
-
-
-
-
- When the IEEE SA Standards Board approved this Standard on , it
- had the following membership:
-
-
-
- OP
- ,
- Chair
-
-
-
- QR
- ,
- Vice Chair
-
-
-
- ST
- ,
- Past Chair
-
-
-
- UV
- ,
- Secretary
-
-
-
-
-
-
-
- KL
-
-
-
- MN
-
-
-
-
-
-
-
- *Member Emeritus
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Draft Standard for Empty
-
-
-
-
-
-
-
-
Clause
-
-
- Hello
-
-
-
-
-
-
-
-
-
- The Institute of Electrical and Electronics Engineers, Inc.
-
- 3 Park Avenue, New York, NY 10016-5997, USA
-
-
- All rights reserved. Published . Printed in the United States of
- America.
-
-
-
-
- IEEE is a registered trademark in the U.S. Patent Trademark Office,
- owned by The Institute of Electrical and Electronics Engineers,
- Incorporated.
-
-
-
- PDF:
-
- ISBN 978-0-XXXX-XXXX-X
-
- STDXXXXX
-
-
- Print:
-
- ISBN 978-0-XXXX-XXXX-X
-
- STDPDXXXXX
-
-
-
-
- IEEE prohibits discrimination, harassment, and bullying.
-
-
- No part of this publication may be reproduced in any form, in an
- electronic retrieval system or otherwise, without the prior written
- permission of the publisher.
-
-
-
- Introduction
- This introduction is not part of P, Standard for Document title
-
-
- Introduction Subsection
-
-
-
- Dedication
-
-
- Acknowledgements
-
-
-
-
- Overview
-
Text
-
- Scope
-
Text
-
-
- Purpose
-
Text
-
-
- Word usage
-
The word shall indicates mandatory requirements strictly to be followed in order to conform to the standard and from which no deviation is permitted (shall equals is required to).
The use of the word must is deprecated and cannot be used when stating mandatory requirements; must is used only to describe unavoidable situations.
The use of will is deprecated and cannot be used when stating mandatory requirements; will is only used in statements of fact.
-
The word should indicates that among several possibilities one is recommended as particularly suitable, without mentioning or excluding others; or that a certain course of action is preferred but not necessarily required (should equals is recommended that).
-
The word may is used to indicate a course of action permissible within the limits of the standard (may equals is permitted to).
-
The word can is used for statements of possibility and capability, whether material, physical, or causal (can equals is able to).
No terms and definitions are listed in this document.
-
For the purposes of this document, the following terms and definitions apply. The IEEE Standards Dictionary Online should be consulted for terms not defined in this clause.
IEEE Standards Dictionary Online is available at: . An IEEE Account is required for access to the dictionary, and one can be created at no charge on the dictionary sign-in page.
Bibliographical references are resources that provide additional or helpful material but do not need to be understood or used to implement this standard. Reference to these resources is made for informational use only.
-
-
-
-
- Normative references
-
There are no normative references in this document.
-
-
-
- Index
-
This is an index
-
-
- Thematic Index
-
-
+ #{@blank_hdr.sub(%r{}, '
Text
').sub(%r{.*}m, '')}
+
+
+ Abstract
+
Text
+
+
+ Foreword
+
Text
+
+
+ Introduction
+ This introduction is not part of P, Standard for Document title
+
+
+ Introduction Subsection
+
+
+
+ Dedication
+
+
+ Acknowledgements
+
+
+
+
+ Overview
+
Text
+
+ Scope
+
Text
+
+
+ Purpose
+
Text
+
+
+ Word usage
+
The word shall indicates mandatory requirements strictly to be followed in order to conform to the standard and from which no deviation is permitted (shall equals is required to).
The use of the word must is deprecated and cannot be used when stating mandatory requirements; must is used only to describe unavoidable situations.
The use of will is deprecated and cannot be used when stating mandatory requirements; will is only used in statements of fact.
+
The word should indicates that among several possibilities one is recommended as particularly suitable, without mentioning or excluding others; or that a certain course of action is preferred but not necessarily required (should equals is recommended that).
+
The word may is used to indicate a course of action permissible within the limits of the standard (may equals is permitted to).
+
The word can is used for statements of possibility and capability, whether material, physical, or causal (can equals is able to).
No terms and definitions are listed in this document.
+
For the purposes of this document, the following terms and definitions apply. The IEEE Standards Dictionary Online should be consulted for terms not defined in this clause.
IEEE Standards Dictionary Online is available at: . An IEEE Account is required for access to the dictionary, and one can be created at no charge on the dictionary sign-in page.
Bibliographical references are resources that provide additional or helpful material but do not need to be understood or used to implement this standard. Reference to these resources is made for informational use only.
+
+
+
+
+ Normative references
+
There are no normative references in this document.
No terms and definitions are listed in this document.
+
For the purposes of this document, the following terms and definitions apply. The IEEE Standards Dictionary Online should be consulted for terms not defined in this clause.
IEEE Standards Dictionary Online is available at: . An IEEE Account is required for access to the dictionary, and one can be created at no charge on the dictionary sign-in page.
Bibliographical references are resources that provide additional or helpful material but do not need to be understood or used to implement this standard. Reference to these resources is made for informational use only.
+
+
+
+
+ References
+
There are no normative references in this document.
+
+
+
+ Index
+
This is an index
+
+
+ Thematic Index
+
+
OUTPUT
expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS)
.sub(%r{.*}m, ""))))
diff --git a/spec/metanorma/validate_spec.rb b/spec/metanorma/validate_spec.rb
index e877b0b..ffa486d 100644
--- a/spec/metanorma/validate_spec.rb
+++ b/spec/metanorma/validate_spec.rb
@@ -2,7 +2,7 @@
RSpec.describe Metanorma::IEEE do
before(:all) do
- FileUtils.rm_f "test.err"
+ FileUtils.rm_f "test.err.html"
end
it "Warns of illegal doctype" do
@@ -16,7 +16,7 @@
text
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "pizza is not a recognised document type"
end
@@ -31,7 +31,7 @@
text
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "pizza is not a recognised document subtype"
end
@@ -46,7 +46,7 @@
text
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "pizza is not a recognised stage"
end
@@ -61,7 +61,7 @@
text
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Title contains uncapitalised word other than preposition"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
@@ -74,7 +74,7 @@
text
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Title contains uncapitalised word other than preposition"
end
@@ -90,7 +90,7 @@
.uncapitalised caption
image::spec/assets/rice_image1.png[]
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "figure heading should be capitalised"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
@@ -104,7 +104,7 @@
.Capitalised caption
image::spec/assets/rice_image1.png[]
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "figure heading should be capitalised"
end
@@ -122,7 +122,7 @@
|A |B
|===
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "table heading should be capitalised"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
@@ -138,7 +138,7 @@
|A |B
|===
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "table heading should be capitalised"
end
@@ -157,7 +157,7 @@
|C |D
|===
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "table heading should be capitalised"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
@@ -174,7 +174,7 @@
h|c |D
|===
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "table heading should be capitalised"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
@@ -191,7 +191,7 @@
|c |D
|===
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "table heading should be capitalised"
end
@@ -206,7 +206,7 @@
== Normative References
* [[[iso123,ISO 123]]] _Standard_
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Normative reference iso123 is not dated"
VCR.use_cassette "iso123" do
@@ -223,7 +223,7 @@
== Normative References
* [[[iso123,ISO 123]]] _Standard_
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Normative reference iso123 is not dated"
end
end
@@ -239,7 +239,7 @@
== Normative References
* [[[iso123,ISO 123]]] _Standard_
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Undated reference ISO 123 should not contain " \
"specific elements"
@@ -253,7 +253,7 @@
== Normative References
* [[[iso123,ISO 123-2000]]] _Standard_
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Undated reference ISO 123-2000 should not contain " \
"specific elements"
end
@@ -268,7 +268,7 @@
** List
*** List
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Use ordered lists for lists more than two levels deep"
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
@@ -279,7 +279,7 @@
* List
** List
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Use ordered lists for lists more than two levels deep"
end
@@ -296,7 +296,7 @@
..... List
...... List
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Ordered lists should not be more than five levels deep"
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
@@ -310,7 +310,7 @@
.... List
..... List
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Ordered lists should not be more than five levels deep"
end
@@ -332,7 +332,7 @@
====== Clause
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Exceeds the maximum clause depth of 5"
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
@@ -349,7 +349,7 @@
====== Clause
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "exceeds the maximum clause depth of 5"
end
@@ -361,7 +361,7 @@
=== Subclause
INPUT
- expect(File.read("test.err")).to include "subclause is only child"
+ expect(File.read("test.err.html")).to include "subclause is only child"
end
it "Warn if more than one ordered lists in a clause" do
@@ -384,7 +384,7 @@
. B
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "More than 1 ordered list in a numbered clause"
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
@@ -405,7 +405,7 @@
a
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "More than 1 ordered list in a numbered clause"
end
@@ -426,7 +426,7 @@
* [[[ref1,XYZ]]] _Standard_
INPUT
- expect(File.read("test.err")).to include "Cross-reference contains range, should be separate cross-references"
+ expect(File.read("test.err.html")).to include "Cross-reference contains range, should be separate cross-references"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
= Document title
@@ -444,7 +444,7 @@
* [[[ref1,XYZ]]] _Standard_
INPUT
- expect(File.read("test.err")).to include "Cross-reference contains range, should be separate cross-references"
+ expect(File.read("test.err.html")).to include "Cross-reference contains range, should be separate cross-references"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
= Document title
@@ -462,7 +462,7 @@
* [[[ref1,XYZ]]] _Standard_
INPUT
- expect(File.read("test.err")).not_to include "Cross-reference contains range, should be separate cross-references"
+ expect(File.read("test.err.html")).not_to include "Cross-reference contains range, should be separate cross-references"
end
context "Warns of missing overview" do
@@ -478,9 +478,9 @@
text
INPUT
- expect(File.read("test.err")).to include "Overview clause missing"
- expect(File.read("test.err")).to include "Scope subclause missing"
- expect(File.read("test.err")).to include "Word Usage subclause missing"
+ expect(File.read("test.err.html")).to include "Overview clause missing"
+ expect(File.read("test.err.html")).to include "Scope subclause missing"
+ expect(File.read("test.err.html")).to include "Word Usage subclause missing"
end
it "Overview clause not missing if supplied" do
@@ -494,9 +494,9 @@
== Overview
INPUT
- expect(File.read("test.err")).not_to include "Overview clause missing"
- expect(File.read("test.err")).to include "Scope subclause missing"
- expect(File.read("test.err")).to include "Word Usage subclause missing"
+ expect(File.read("test.err.html")).not_to include "Overview clause missing"
+ expect(File.read("test.err.html")).to include "Scope subclause missing"
+ expect(File.read("test.err.html")).to include "Word Usage subclause missing"
end
it "Scope and Word usage clause not missing if supplied" do
@@ -514,13 +514,13 @@
=== Word Usage
INPUT
- expect(File.read("test.err")).not_to include "Overview clause missing"
- expect(File.read("test.err")).not_to include "Scope subclause missing"
- expect(File.read("test.err")).not_to include "Word Usage subclause missing"
+ expect(File.read("test.err.html")).not_to include "Overview clause missing"
+ expect(File.read("test.err.html")).not_to include "Scope subclause missing"
+ expect(File.read("test.err.html")).not_to include "Word Usage subclause missing"
end
it "Overview clause not missing in amendments" do
- FileUtils.rm_f "test.err"
+ FileUtils.rm_f "test.err.html"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
= Document title
Author
@@ -531,9 +531,9 @@
text
INPUT
- expect(File.read("test.err")).not_to include "Overview clause missing"
- expect(File.read("test.err")).not_to include "Scope subclause missing"
- expect(File.read("test.err")).not_to include "Word Usage subclause missing"
+ expect(File.read("test.err.html")).not_to include "Overview clause missing"
+ expect(File.read("test.err.html")).not_to include "Scope subclause missing"
+ expect(File.read("test.err.html")).not_to include "Word Usage subclause missing"
end
end
@@ -548,8 +548,8 @@
:no-pdf:
INPUT
- expect(File.exist?("test.err")).to be true
- expect(File.read("test.err"))
+ expect(File.exist?("test.err.html")).to be true
+ expect(File.read("test.err.html"))
.to include "Expected title to start as: " \
"Draft Trial-Use Recommended Practice"
end
@@ -567,8 +567,8 @@
== Change Clause
INPUT
- expect(File.exist?("test.err")).to be true
- expect(File.read("test.err"))
+ expect(File.exist?("test.err.html")).to be true
+ expect(File.read("test.err.html"))
.to include "Editorial instruction is missing from change"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
@@ -583,8 +583,8 @@
_This table contains information on polygon cells which are not included in ISO 10303-52. Remove table 2 completely and replace with:_
INPUT
- expect(File.exist?("test.err")).to be true
- expect(File.read("test.err"))
+ expect(File.exist?("test.err.html")).to be true
+ expect(File.read("test.err.html"))
.not_to include "Editorial instruction is missing from change"
end
@@ -601,8 +601,8 @@
_This table contains information on polygon cells which are not included in ISO 10303-52. Remove table 2 completely and replace with:_
INPUT
- expect(File.exist?("test.err")).to be true
- expect(File.read("test.err"))
+ expect(File.exist?("test.err.html")).to be true
+ expect(File.read("test.err.html"))
.to include "'Add' change description should start with _Insert_"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
@@ -617,8 +617,8 @@
_This table contains information on polygon cells which are not included in ISO 10303-52. Remove table 2 completely and replace with:_
INPUT
- expect(File.exist?("test.err")).to be true
- expect(File.read("test.err"))
+ expect(File.exist?("test.err.html")).to be true
+ expect(File.read("test.err.html"))
.to include "'Delete' change description should start with _Delete_"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
@@ -633,8 +633,8 @@
_This table contains information on polygon cells which are not included in ISO 10303-52. Remove table 2 completely and replace with:_
INPUT
- expect(File.exist?("test.err")).to be true
- expect(File.read("test.err"))
+ expect(File.exist?("test.err.html")).to be true
+ expect(File.read("test.err.html"))
.to include "'Modify' change description should start with _Change_ " \
"or _Replace_"
@@ -655,8 +655,8 @@
____
INPUT
- expect(File.exist?("test.err")).to be true
- expect(File.read("test.err"))
+ expect(File.exist?("test.err.html")).to be true
+ expect(File.read("test.err.html"))
.to include "'Modify' change description for change not involving " \
"figure or equation should start with _Change_"
@@ -680,8 +680,8 @@
____
INPUT
- expect(File.exist?("test.err")).to be true
- expect(File.read("test.err"))
+ expect(File.exist?("test.err.html")).to be true
+ expect(File.read("test.err.html"))
.to include "'Modify' change description for change involving figure " \
"or equation should start with _Replace_"
@@ -705,14 +705,14 @@
____
INPUT
- expect(File.exist?("test.err")).to be true
- expect(File.read("test.err"))
+ expect(File.exist?("test.err.html")).to be true
+ expect(File.read("test.err.html"))
.not_to include "'Modify' change description for change involving " \
"figure or equation should start with _Replace_"
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "'Modify' change description for change not involving " \
"figure or equation should start with _Change_"
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "'Modify' change description should start with " \
"_Change_ or _Replace_"
end
@@ -720,7 +720,7 @@
context "Warns of missing normative references" do
it "Normative references missing" do
- FileUtils.rm_f "test.err"
+ FileUtils.rm_f "test.err.html"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
= Document title
Author
@@ -731,7 +731,7 @@
text
INPUT
- expect(File.read("test.err")).to include "Normative references missing"
+ expect(File.read("test.err.html")).to include "Normative references missing"
end
it "Normative references not missing if supplied" do
@@ -746,7 +746,7 @@
[bibliography]
== Normative references
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Normative references missing"
end
@@ -761,7 +761,7 @@
text
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Normative references missing"
end
end
@@ -778,7 +778,7 @@
text
INPUT
- expect(File.read("test.err")).to include "Definitions missing"
+ expect(File.read("test.err.html")).to include "Definitions missing"
end
it "Terms & definitions not missing if supplied" do
@@ -793,7 +793,7 @@
== Terms and definitions
=== Term 1
INPUT
- expect(File.read("test.err")).not_to include "Definitions missing"
+ expect(File.read("test.err.html")).not_to include "Definitions missing"
end
it "Terms & definitions not missing in amendment" do
@@ -807,7 +807,7 @@
text
INPUT
- expect(File.read("test.err")).not_to include "Definitions missing"
+ expect(File.read("test.err.html")).not_to include "Definitions missing"
end
end
@@ -820,7 +820,7 @@
Paragraph
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Initial section must be (content) Abstract"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
@@ -838,7 +838,7 @@
Paragraph
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Initial section must be (content) Abstract"
end
@@ -852,7 +852,7 @@
Paragraph
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Prefatory material must be followed by (clause) Overview"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
@@ -870,7 +870,7 @@
Paragraph
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Prefatory material must be followed by (clause) Overview"
end
@@ -890,7 +890,7 @@
Paragraph
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Normative References must be followed by " \
"Definitions"
@@ -914,7 +914,7 @@
Paragraph
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Normative References must be followed by " \
"Definitions"
end
@@ -929,7 +929,7 @@
== Bibiliography
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Bibliography must be either the first or the last " \
"document annex"
@@ -949,7 +949,7 @@
[appendix]
== Appendix
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Bibliography must be either the first or the last " \
"document annex"
@@ -967,7 +967,7 @@
=== Bibiliography
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Bibliography must be either the first or the last " \
"document annex"
@@ -984,7 +984,7 @@
[appendix]
== Appendix
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Bibliography must be either the first or the last " \
"document annex"
end
@@ -998,7 +998,7 @@
== Clause
8,1
INPUT
- expect(File.read("test.err")).to include "possible decimal comma"
+ expect(File.read("test.err.html")).to include "possible decimal comma"
end
it "Style warning if leading decimal point without zero" do
@@ -1008,7 +1008,7 @@
== Clause
Number: .1
INPUT
- expect(File.read("test.err")).to include "decimal without initial zero"
+ expect(File.read("test.err.html")).to include "decimal without initial zero"
end
it "Style warning if percent sign without space" do
@@ -1018,7 +1018,7 @@
== Clause
9%
INPUT
- expect(File.read("test.err")).to include "no space before percent sign"
+ expect(File.read("test.err.html")).to include "no space before percent sign"
end
it "Style warning if no space between number and unit" do
@@ -1028,7 +1028,7 @@
== Clause
7km
INPUT
- expect(File.read("test.err")).to include "no space between number and SI unit"
+ expect(File.read("test.err.html")).to include "no space between number and SI unit"
end
it "Style warning if no unit on both unit and tolerance" do
@@ -1038,7 +1038,7 @@
== Clause
7 ± 2 km
INPUT
- expect(File.read("test.err")).to include "unit is needed on both value and tolerance"
+ expect(File.read("test.err.html")).to include "unit is needed on both value and tolerance"
end
it "Style warning if 5-digit numeral in table" do
@@ -1054,7 +1054,7 @@
|===
INPUT
- expect(File.read("test.err")).not_to include "number in table not broken up in threes"
+ expect(File.read("test.err.html")).not_to include "number in table not broken up in threes"
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
#{VALIDATING_BLANK_HDR}
@@ -1064,7 +1064,7 @@
| 98765 | 0
|===
INPUT
- expect(File.read("test.err")).to include "number in table not broken up in threes"
+ expect(File.read("test.err.html")).to include "number in table not broken up in threes"
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
#{VALIDATING_BLANK_HDR}
@@ -1074,7 +1074,7 @@
| 10.98765 | 0
|===
INPUT
- expect(File.read("test.err")).to include "number in table not broken up in threes"
+ expect(File.read("test.err.html")).to include "number in table not broken up in threes"
end
it "Style warning if 4-digit numeral in table column with 5-digit numerals" do
@@ -1088,7 +1088,7 @@
|===
INPUT
- expect(File.read("test.err")).not_to include " is a 4-digit number in a table column with numbers broken up in threes"
+ expect(File.read("test.err.html")).not_to include " is a 4-digit number in a table column with numbers broken up in threes"
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
#{VALIDATING_BLANK_HDR}
@@ -1100,7 +1100,7 @@
|===
INPUT
- expect(File.read("test.err")).to include " is a 4-digit number in a table column with numbers broken up in threes"
+ expect(File.read("test.err.html")).to include " is a 4-digit number in a table column with numbers broken up in threes"
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
#{VALIDATING_BLANK_HDR}
@@ -1112,7 +1112,7 @@
|===
INPUT
- expect(File.read("test.err")).to include " is a 4-digit number in a table column with numbers broken up in threes"
+ expect(File.read("test.err.html")).to include " is a 4-digit number in a table column with numbers broken up in threes"
end
end
@@ -1135,11 +1135,11 @@
image::spec/assets/1000-2000_fig4.png[]
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Image name document-2000_fig1 is expected to be 1000-2000_fig1"
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Image name 1000-2000_fig2 is expected to be 1000-2000_fig2"
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Image name 1000-2000_fig4 is expected to be 1000-2000_fig3"
end
@@ -1167,11 +1167,11 @@
a| image::spec/assets/1000-fig4.png[] | D
|===
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "Image name Tab2Row1Col2.png is expected to be Tab2Row1Col2"
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Image name 1000-fig2.png is expected to be Tab2Row2Col2"
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "Image name 1000-fig4.png is expected to be Tab2Row3Col1"
end
@@ -1191,7 +1191,7 @@
image::spec/assets/rice_image2.png[] | B
|===
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.to include "More than one image in the table cell"
Asciidoctor.convert(<<~INPUT, *OPTIONS)
@@ -1208,7 +1208,7 @@
a| image::spec/assets/rice_image1.png[] | B
|===
INPUT
- expect(File.read("test.err"))
+ expect(File.read("test.err.html"))
.not_to include "More than one image in the table cell"
end
@@ -1221,8 +1221,8 @@
=== Term
related:contrast[que]
INPUT
- expect(File.read("test.err"))
- .not_to include "Error: Term reference to `que` missing:`"
+ expect(File.read("test.err.html"))
+ .not_to include "Error: Term reference to que missing:`"
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
#{VALIDATING_BLANK_HDR}
@@ -1232,8 +1232,8 @@
=== Term
symbol:[que]
INPUT
- expect(File.read("test.err"))
- .to include "Symbol reference in `symbol[que]` missing:"
+ expect(File.read("test.err.html"))
+ .to include "Symbol reference in symbol[que] missing:"
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
#{VALIDATING_BLANK_HDR}
@@ -1250,10 +1250,10 @@
que1:: X
INPUT
- expect(File.read("test.err"))
- .not_to include "Error: Term reference to `que` missing:`"
- expect(File.read("test.err"))
- .not_to include "Symbol reference in `symbol[que1]` missing:"
+ expect(File.read("test.err.html"))
+ .not_to include "Error: Term reference to que missing:"
+ expect(File.read("test.err.html"))
+ .not_to include "Symbol reference in symbol[que1] missing:"
end
end
end