Contents
@@ -265,7 +262,7 @@
ISO 639:1967
ISO 639-2:1998
- https://doi.org/10.1017/9781108877831
+ Aluffi, Anderson, Hering, Mustaţă and Payne 2022a
REF4
ISO 639:1967 [B3]
Aluffi, Anderson, Hering, Mustaţă and Payne [B2]
@@ -321,7 +318,8 @@
IEEE 194-1977 has been withdrawn; however, copies can be obtained from Global Engineering, 15 Inverness Way East, Englewood, CO 80112-5704, USA, tel. (303) 792-2181 (http://global.ihs.com/).
-
+ Aluffi, Anderson, Hering, Mustaţă and Payne 2022a
+ Aluffi, Anderson, Hering, Mustaţă and Payne 2022a,
Indiana Jones and the Last Crusade.
@@ -520,4 +518,73 @@
expect(Xml::C14n.format(strip_guid(out.to_xml)))
.to be_equivalent_to Xml::C14n.format(presxml)
end
+
+ it "removes page locality" do
+ input = <<~INPUT
+
+
+
+ Clause
+
+
+ 49
+
+
+ 49
+
+
+ 49
+
+
+ 49
+
+
+
+
+
+
+ Normative References
+
+ Title 1
+ IETF 6281
+
+
+ Title 1
+ Johns 2022
+
+
+
+
+ INPUT
+ presxml = <<~PRESXML
+
+
+ 2.
+
+ Clause
+
+
+
+ IETF
+ 6281
+ , 4–9
+
+
+ IETF
+ 6281
+ , Figure 4–9
+
+ Johns 2022, 4–9
+ Johns 2022, Figure 4–9
+
+
+ PRESXML
+ out = Nokogiri::XML(
+ IsoDoc::IEEE::PresentationXMLConvert.new(presxml_options)
+ .convert("test", input, true),
+ )
+ out = out.at("//xmlns:clause[@id = 'A']")
+ expect(Xml::C14n.format(strip_guid(out.to_xml)))
+ .to be_equivalent_to Xml::C14n.format(presxml)
+ end
end
diff --git a/spec/isodoc/terms_spec.rb b/spec/isodoc/terms_spec.rb
index fc4a0ba..cfa7698 100644
--- a/spec/isodoc/terms_spec.rb
+++ b/spec/isodoc/terms_spec.rb
@@ -302,13 +302,14 @@
expect(Xml::C14n.format(strip_guid(IsoDoc::IEEE::PresentationXMLConvert
.new(presxml_options)
- .convert("test", input, true)))).to be_equivalent_to Xml::C14n.format(presxml)
+ .convert("test", input, true))))
+ .to be_equivalent_to Xml::C14n.format(presxml)
expect(Xml::C14n.format(Nokogiri::XML(IsoDoc::IEEE::HtmlConvert.new({})
.convert("test", presxml, true))
.at("//body").to_xml)).to be_equivalent_to Xml::C14n.format(html)
expect(Xml::C14n.format(Nokogiri::XML(IsoDoc::IEEE::WordConvert.new({})
.convert("test", presxml, true))
- .at("//body").to_xml)).to be_equivalent_to Xml::C14n.format(word)
+ .at("//body").to_xml)).to be_equivalent_to Xml::C14n.format(word)
end
it "sorts terms" do
@@ -417,7 +418,8 @@
OUTPUT
expect(Xml::C14n.format(strip_guid(IsoDoc::IEEE::PresentationXMLConvert
.new(presxml_options)
- .convert("test", input, true)))).to be_equivalent_to Xml::C14n.format(output)
+ .convert("test", input, true))))
+ .to be_equivalent_to Xml::C14n.format(output)
end
it "processes IsoXML term with multiple paragraph definitions" do
@@ -478,7 +480,8 @@
PRESXML
expect(Xml::C14n.format(strip_guid(IsoDoc::IEEE::PresentationXMLConvert
.new(presxml_options)
- .convert("test", input, true)))).to be_equivalent_to Xml::C14n.format(presxml)
+ .convert("test", input, true))))
+ .to be_equivalent_to Xml::C14n.format(presxml)
end
it "processes IsoXML term with multiple definitions" do
@@ -564,7 +567,8 @@
PRESXML
expect(Xml::C14n.format(strip_guid(IsoDoc::IEEE::PresentationXMLConvert
.new(presxml_options)
- .convert("test", input, true)))).to be_equivalent_to Xml::C14n.format(presxml)
+ .convert("test", input, true))))
+ .to be_equivalent_to Xml::C14n.format(presxml)
input = <<~INPUT
@@ -652,7 +656,8 @@
PRESXML
expect(Xml::C14n.format(strip_guid(IsoDoc::IEEE::PresentationXMLConvert
.new(presxml_options)
- .convert("test", input, true)))).to be_equivalent_to Xml::C14n.format(presxml)
+ .convert("test", input, true))))
+ .to be_equivalent_to Xml::C14n.format(presxml)
end
it "processes IsoXML term with multiple preferred or preferred and admitted terms" do
@@ -801,7 +806,8 @@
PRESXML
expect(Xml::C14n.format(strip_guid(IsoDoc::IEEE::PresentationXMLConvert
.new(presxml_options)
- .convert("test", input, true)))).to be_equivalent_to Xml::C14n.format(presxml)
+ .convert("test", input, true))))
+ .to be_equivalent_to Xml::C14n.format(presxml)
end
it "processes IsoXML term with grammatical information" do
@@ -870,7 +876,8 @@
PRESXML
expect(Xml::C14n.format(strip_guid(IsoDoc::IEEE::PresentationXMLConvert
.new(presxml_options)
- .convert("test", input, true)))).to be_equivalent_to Xml::C14n.format(presxml)
+ .convert("test", input, true))))
+ .to be_equivalent_to Xml::C14n.format(presxml)
end
it "processes IsoXML term with empty or graphical designations" do
@@ -919,7 +926,8 @@
PRESXML
expect(Xml::C14n.format(strip_guid(IsoDoc::IEEE::PresentationXMLConvert
.new(presxml_options)
- .convert("test", input, true)))).to be_equivalent_to Xml::C14n.format(presxml)
+ .convert("test", input, true))))
+ .to be_equivalent_to Xml::C14n.format(presxml)
end
it "processes IsoXML term with nonverbal definitions" do
@@ -1031,8 +1039,9 @@
PRESXML
expect(Xml::C14n.format(strip_guid(IsoDoc::IEEE::PresentationXMLConvert
-.new(presxml_options)
- .convert("test", input, true)))).to be_equivalent_to Xml::C14n.format(presxml)
+ .new(presxml_options)
+ .convert("test", input, true))))
+ .to be_equivalent_to Xml::C14n.format(presxml)
end
it "processes related terms and admitted terms" do
@@ -1147,7 +1156,8 @@
OUTPUT
expect(Xml::C14n.format(strip_guid(IsoDoc::IEEE::PresentationXMLConvert
.new(presxml_options)
- .convert("test", input, true)))).to be_equivalent_to Xml::C14n.format(output)
+ .convert("test", input, true))))
+ .to be_equivalent_to Xml::C14n.format(output)
end
it "processes missing related terms" do
@@ -1218,7 +1228,8 @@
OUTPUT
expect(Xml::C14n.format(strip_guid(IsoDoc::IEEE::PresentationXMLConvert
-.new(presxml_options)
- .convert("test", input, true)))).to be_equivalent_to Xml::C14n.format(output)
+ .new(presxml_options)
+ .convert("test", input, true))))
+ .to be_equivalent_to Xml::C14n.format(output)
end
end