metanorma-iso 1.5.10 → 1.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "1.5.10".freeze
3
+ VERSION = "1.5.11".freeze
4
4
  end
5
5
  end
@@ -6,17 +6,6 @@ RSpec.describe Asciidoctor::ISO do
6
6
  expect(Metanorma::ISO::VERSION).not_to be nil
7
7
  end
8
8
 
9
- #it "generates output for the Rice document" do
10
- #FileUtils.rm_f %w(spec/examples/rice.xml spec/examples/rice.doc spec/examples/rice.html spec/examples/rice_alt.html)
11
- #FileUtils.cd "spec/examples"
12
- #Asciidoctor.convert_file "rice.adoc", {:attributes=>{"backend"=>"iso"}, :safe=>0, :header_footer=>true, :requires=>["metanorma-iso"], :failure_level=>4, :mkdirs=>true, :to_file=>nil}
13
- #FileUtils.cd "../.."
14
- #expect(File.exist?("spec/examples/rice.xml"))).to be true
15
- #expect(File.exist?("spec/examples/rice.doc"))).to be true
16
- #expect(File.exist?("spec/examples/rice.html"))).to be true
17
- #expect(File.exist?("spec/examples/rice_alt.html"))).to be true
18
- #end
19
-
20
9
  it "processes a blank document" do
21
10
  expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
22
11
  #{ASCIIDOC_BLANK_HDR}
@@ -29,22 +18,43 @@ RSpec.describe Asciidoctor::ISO do
29
18
 
30
19
  it "converts a blank document" do
31
20
  FileUtils.rm_f "test.doc"
21
+ FileUtils.rm_f "test.html"
22
+ FileUtils.rm_f "test.pdf"
23
+ FileUtils.rm_f "test_alt.html"
32
24
  expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
33
25
  = Document title
34
26
  Author
35
27
  :docfile: test.adoc
36
28
  :novalid:
37
29
  :no-isobib:
38
- :no-pdf:
39
30
  INPUT
40
31
  #{BLANK_HDR}
41
32
  <sections/>
42
33
  </iso-standard>
43
34
  OUTPUT
35
+ expect(File.exist?("test_alt.html")).to be true
36
+ expect(File.exist?("test.html")).to be true
44
37
  expect(File.exist?("test.doc")).to be true
38
+ expect(File.exist?("test.pdf")).to be true
45
39
  expect(File.exist?("htmlstyle.css")).to be false
46
40
  end
47
41
 
42
+ it "converts a blank document in French" do
43
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
44
+ = Document title
45
+ Author
46
+ :docfile: test.adoc
47
+ :novalid:
48
+ :no-isobib:
49
+ :no-pdf:
50
+ :language: fr
51
+ INPUT
52
+ #{BLANK_HDR_FR}
53
+ <sections/>
54
+ </iso-standard>
55
+ OUTPUT
56
+ end
57
+
48
58
  it "processes default metadata" do
49
59
  expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
50
60
  = Document title
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  RSpec.describe IsoDoc do
4
4
  it "cross-references notes in amendments" do
5
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
5
+ expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", <<~"INPUT", true)).sub(%r{<localized-strings>.*</localized-strings>}m, "")).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
6
  <iso-standard xmlns="http://riboseinc.com/isoxml">
7
7
  <bibdata> <ext> <doctype>amendment</doctype> </ext> </bibdata>
8
8
  <preface>
@@ -60,14 +60,9 @@ RSpec.describe IsoDoc do
60
60
  <iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
61
61
  <bibdata>
62
62
  <ext>
63
- <doctype>amendment</doctype>
63
+ <doctype language="">amendment</doctype>
64
64
  </ext>
65
65
  </bibdata>
66
- <local_bibdata>
67
- <ext>
68
- <doctype>amendment</doctype>
69
- </ext>
70
- </local_bibdata>
71
66
  <preface>
72
67
  <foreword>
73
68
  <p>
@@ -158,7 +153,7 @@ RSpec.describe IsoDoc do
158
153
  end
159
154
 
160
155
  it "cross-references sections" do
161
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
156
+ expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", <<~"INPUT", true)).sub(%r{<localized-strings>.*</localized-strings>}m, "")).to be_equivalent_to xmlpp(<<~"OUTPUT")
162
157
  <iso-standard xmlns="http://riboseinc.com/isoxml">
163
158
  <bibdata> <ext> <doctype>amendment</doctype> </ext> </bibdata>
164
159
  <preface>
@@ -226,14 +221,9 @@ RSpec.describe IsoDoc do
226
221
  <iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
227
222
  <bibdata>
228
223
  <ext>
229
- <doctype>amendment</doctype>
224
+ <doctype language="">amendment</doctype>
230
225
  </ext>
231
226
  </bibdata>
232
- <local_bibdata>
233
- <ext>
234
- <doctype>amendment</doctype>
235
- </ext>
236
- </local_bibdata>
237
227
  <preface>
238
228
  <foreword obligation='informative'>
239
229
  <title>Foreword</title>
@@ -409,14 +399,9 @@ RSpec.describe IsoDoc do
409
399
  <iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
410
400
  <bibdata>
411
401
  <ext>
412
- <doctype>amendment</doctype>
402
+ <doctype language="">amendment</doctype>
413
403
  </ext>
414
404
  </bibdata>
415
- <local_bibdata>
416
- <ext>
417
- <doctype>amendment</doctype>
418
- </ext>
419
- </local_bibdata>
420
405
  <boilerplate>
421
406
  <copyright-statement>
422
407
  <clause>
@@ -633,7 +618,7 @@ RSpec.describe IsoDoc do
633
618
  </body>
634
619
  </html>
635
620
  OUTPUT
636
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", input, true))).to be_equivalent_to xmlpp(presxml)
621
+ expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", input, true)).sub(%r{<localized-strings>.*</localized-strings>}m, "")).to be_equivalent_to xmlpp(presxml)
637
622
  expect(xmlpp(IsoDoc::Iso::HtmlConvert.new({}).convert("test", presxml, true))).to be_equivalent_to xmlpp(html)
638
623
  end
639
624
 
@@ -734,7 +719,11 @@ OUTPUT
734
719
  <sections/>
735
720
  </iso-standard>
736
721
  INPUT
737
- {:agency=>"ISO",
722
+ {:accesseddate=>"XXX",
723
+ :agency=>"ISO",
724
+ :circulateddate=>"XXX",
725
+ :confirmeddate=>"XXX",
726
+ :copieddate=>"XXX",
738
727
  :createddate=>"2016-05-01",
739
728
  :docnumber=>"ISO/PreNWIP3 17301-1:2016/Amd.1",
740
729
  :docnumber_lang=>"ISO/PreNWIP3 17301-1:2016/Amd.1(E)",
@@ -757,27 +746,203 @@ INPUT
757
746
  :doctitlepart=>"Title Part",
758
747
  :doctitlepartlabel=>"Part&nbsp;1",
759
748
  :doctype=>"Amendment",
749
+ :doctype_display=>"Amendment",
760
750
  :docyear=>"2017",
761
751
  :draft=>"0.3.4",
762
752
  :draftinfo=>" (draft 0.3.4, 2000-01-01)",
763
753
  :edition=>"2",
764
754
  :editorialgroup=>["A 1", "B 2", "C 3"],
765
755
  :ics=>"1, 2, 3",
756
+ :implementeddate=>"XXX",
757
+ :issueddate=>"XXX",
758
+ :lang=>"en",
759
+ :obsoleteddate=>"XXX",
760
+ :publisheddate=>"XXX",
766
761
  :publisher=>"International Organization for Standardization",
762
+ :receiveddate=>"XXX",
767
763
  :revdate=>"2000-01-01",
768
764
  :revdate_monthyear=>"January 2000",
769
765
  :sc=>"B 2",
766
+ :script=>"Latn",
770
767
  :secretariat=>"SECRETARIAT",
771
768
  :stage=>"10",
772
769
  :stage_int=>10,
773
770
  :stageabbr=>"NWIP",
774
771
  :statusabbr=>"PreNWIP3",
775
772
  :tc=>"A 1",
773
+ :transmitteddate=>"XXX",
774
+ :unchangeddate=>"XXX",
776
775
  :unpublished=>true,
776
+ :updateddate=>"XXX",
777
+ :vote_endeddate=>"XXX",
778
+ :vote_starteddate=>"XXX",
777
779
  :wg=>"C 3"}
778
780
  OUTPUT
779
781
  end
780
782
 
783
+ it "processes IsoXML metadata in French" do
784
+ c = IsoDoc::Iso::HtmlConvert.new({})
785
+ arr = c.convert_init(<<~"INPUT", "test", false)
786
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
787
+ <bibdata>
788
+ <language>fr</language>
789
+ </bibdata>
790
+ </iso-standard>
791
+ INPUT
792
+ expect(metadata(c.info(Nokogiri::XML(<<~"INPUT"), nil))).to be_equivalent_to <<~"OUTPUT"
793
+ <iso-standard xmlns='https://www.metanorma.org/ns/iso'>
794
+ <bibdata type='standard'>
795
+ <title language='en' format='text/plain' type='main'>Introduction — Main Title — Title — Title Part  — Mass fraction of
796
+ extraneous matter, milled rice (nonglutinous), sample dividers and
797
+ recommendations relating to storage and transport conditions</title>
798
+ <title language='en' format='text/plain' type='title-intro'>Introduction</title>
799
+ <title language='en' format='text/plain' type='title-main'>Main Title — Title</title>
800
+ <title language='en' format='text/plain' type='title-part'>Title Part</title>
801
+ <title language='en' format='text/plain' type='title-amd'>Mass fraction of extraneous matter, milled rice (nonglutinous), sample dividers and recommendations relating to storage and transport conditions</title>
802
+ <title language='fr' format='text/plain' type='main'>
803
+ Introduction Française — Titre Principal — Part du Titre — Fraction
804
+ massique de matière étrangère, riz usiné (non gluant), diviseurs
805
+ d’échantillon et recommandations relatives aux conditions d’entreposage et
806
+ de transport
807
+ </title>
808
+ <title language='fr' format='text/plain' type='title-intro'>Introduction Française</title>
809
+ <title language='fr' format='text/plain' type='title-main'>Titre Principal</title>
810
+ <title language='fr' format='text/plain' type='title-part'>Part du Titre</title>
811
+ <title language='fr' format='text/plain' type='title-amd'>Fraction massique de matière étrangère, riz usiné (non gluant), diviseurs d’échantillon et recommandations relatives aux conditions d’entreposage et de transport</title>
812
+ <docidentifier type='ISO'>ISO/PreNWIP3 17301-1:2016/Amd.1</docidentifier>
813
+ <docidentifier type='iso-with-lang'>ISO/PreNWIP3 17301-1:2016/Amd.1(E)</docidentifier>
814
+ <docidentifier type='iso-reference'>ISO/PreNWIP3 17301-1:2016/Amd.1:2017(E)</docidentifier>
815
+ <docnumber>17301</docnumber>
816
+ <date type='created'>
817
+ <on>2016-05-01</on>
818
+ </date>
819
+ <contributor>
820
+ <role type='author'/>
821
+ <organization>
822
+ <name>International Organization for Standardization</name>
823
+ <abbreviation>ISO</abbreviation>
824
+ </organization>
825
+ </contributor>
826
+ <contributor>
827
+ <role type='publisher'/>
828
+ <organization>
829
+ <name>International Organization for Standardization</name>
830
+ <abbreviation>ISO</abbreviation>
831
+ </organization>
832
+ </contributor>
833
+ <edition>2</edition>
834
+ <version>
835
+ <revision-date>2000-01-01</revision-date>
836
+ <draft>0.3.4</draft>
837
+ </version>
838
+ <language>fr</language>
839
+ <script>Latn</script>
840
+ <status>
841
+ <stage abbreviation='NWIP'>10</stage>
842
+ <substage>20</substage>
843
+ <iteration>3</iteration>
844
+ </status>
845
+ <copyright>
846
+ <from>2017</from>
847
+ <owner>
848
+ <organization>
849
+ <name>International Organization for Standardization</name>
850
+ <abbreviation>ISO</abbreviation>
851
+ </organization>
852
+ </owner>
853
+ </copyright>
854
+ <ext>
855
+ <doctype language="">amendment</doctype>
856
+ <doctype language="fr">Amendment</doctype>
857
+ <editorialgroup>
858
+ <technical-committee number='1' type='A'>TC</technical-committee>
859
+ <technical-committee number='11' type='A1'>TC1</technical-committee>
860
+ <subcommittee number='2' type='B'>SC</subcommittee>
861
+ <subcommittee number='21' type='B1'>SC1</subcommittee>
862
+ <workgroup number='3' type='C'>WG</workgroup>
863
+ <workgroup number='31' type='C1'>WG1</workgroup>
864
+ <secretariat>SECRETARIAT</secretariat>
865
+ </editorialgroup>
866
+ <ics>
867
+ <code>1</code>
868
+ </ics>
869
+ <ics>
870
+ <code>2</code>
871
+ </ics>
872
+ <ics>
873
+ <code>3</code>
874
+ </ics>
875
+ <structuredidentifier>
876
+ <project-number part='1' amendment='1' corrigendum='2' origyr='2016-05-01'>17301</project-number>
877
+ </structuredidentifier>
878
+ <stagename>New work item proposal</stagename>
879
+ <updates-document-type>international-standard</updates-document-type>
880
+ </ext>
881
+ </bibdata>
882
+ <sections/>
883
+ </iso-standard>
884
+ INPUT
885
+ {:accesseddate=>"XXX",
886
+ :agency=>"ISO",
887
+ :circulateddate=>"XXX",
888
+ :confirmeddate=>"XXX",
889
+ :copieddate=>"XXX",
890
+ :createddate=>"2016-05-01",
891
+ :docnumber=>"ISO/PreNWIP3 17301-1:2016/Amd.1",
892
+ :docnumber_lang=>"ISO/PreNWIP3 17301-1:2016/Amd.1(E)",
893
+ :docnumber_reference=>"ISO/PreNWIP3 17301-1:2016/Amd.1:2017(E)",
894
+ :docnumeric=>"17301",
895
+ :docsubtitle=>"Introduction&nbsp;&mdash; Main Title&#x2009;&#x2014;&#x2009;Title&nbsp;&mdash; Part&nbsp;1: Title Part",
896
+ :docsubtitleamd=>"Mass fraction of extraneous matter, milled rice (nonglutinous), sample dividers and recommendations relating to storage and transport conditions",
897
+ :docsubtitleamdlabel=>"AMENDMENT&nbsp;1",
898
+ :docsubtitlecorrlabel=>"TECHNICAL CORRIGENDUM&nbsp;2",
899
+ :docsubtitleintro=>"Introduction",
900
+ :docsubtitlemain=>"Main Title&#x2009;&#x2014;&#x2009;Title",
901
+ :docsubtitlepart=>"Title Part",
902
+ :docsubtitlepartlabel=>"Part&nbsp;1",
903
+ :doctitle=>"Introduction Fran&#xe7;aise&nbsp;&mdash; Titre Principal&nbsp;&mdash; Partie&nbsp;1: Part du Titre",
904
+ :doctitleamd=>"Fraction massique de mati&#xe8;re &#xe9;trang&#xe8;re, riz usin&#xe9; (non gluant), diviseurs d&#x2019;&#xe9;chantillon et recommandations relatives aux conditions d&#x2019;entreposage et de transport",
905
+ :doctitleamdlabel=>"AMENDMENT&nbsp;1",
906
+ :doctitlecorrlabel=>"RECTIFICATIF TECHNIQUE&nbsp;2",
907
+ :doctitleintro=>"Introduction Fran&#xe7;aise",
908
+ :doctitlemain=>"Titre Principal",
909
+ :doctitlepart=>"Part du Titre",
910
+ :doctitlepartlabel=>"Partie&nbsp;1",
911
+ :doctype=>"Amendment",
912
+ :doctype_display=>"Amendment",
913
+ :docyear=>"2017",
914
+ :draft=>"0.3.4",
915
+ :draftinfo=>" (brouillon 0.3.4, 2000-01-01)",
916
+ :edition=>"2",
917
+ :editorialgroup=>["A 1", "B 2", "C 3"],
918
+ :ics=>"1, 2, 3",
919
+ :implementeddate=>"XXX",
920
+ :issueddate=>"XXX",
921
+ :lang=>"fr",
922
+ :obsoleteddate=>"XXX",
923
+ :publisheddate=>"XXX",
924
+ :publisher=>"International Organization for Standardization",
925
+ :receiveddate=>"XXX",
926
+ :revdate=>"2000-01-01",
927
+ :revdate_monthyear=>"Janvier 2000",
928
+ :sc=>"B 2",
929
+ :script=>"Latn",
930
+ :secretariat=>"SECRETARIAT",
931
+ :stage=>"10",
932
+ :stage_int=>10,
933
+ :stageabbr=>"NWIP",
934
+ :statusabbr=>"PreNWIP3",
935
+ :tc=>"A 1",
936
+ :transmitteddate=>"XXX",
937
+ :unchangeddate=>"XXX",
938
+ :unpublished=>true,
939
+ :updateddate=>"XXX",
940
+ :vote_endeddate=>"XXX",
941
+ :vote_starteddate=>"XXX",
942
+ :wg=>"C 3"}
943
+ OUTPUT
944
+ end
945
+
781
946
  it "processes middle title" do
782
947
  expect(xmlpp(IsoDoc::Iso::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
783
948
  <iso-standard xmlns="http://riboseinc.com/isoxml">
@@ -74,11 +74,8 @@ RSpec.describe IsoDoc do
74
74
  presxml = <<~OUTPUT
75
75
  <iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
76
76
  <bibdata>
77
- <language>en</language>
77
+ <language current="true">en</language>
78
78
  </bibdata>
79
- <local_bibdata>
80
- <language>en</language>
81
- </local_bibdata>
82
79
  <preface>
83
80
  <foreword obligation='informative'>
84
81
  <title>Foreword</title>
@@ -241,12 +238,12 @@ RSpec.describe IsoDoc do
241
238
  </body>
242
239
  </html>
243
240
  OUTPUT
244
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", input, true))).to be_equivalent_to xmlpp(presxml)
241
+ expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", input, true)).sub(%r{<localized-strings>.*</localized-strings>}m, "")).to be_equivalent_to xmlpp(presxml)
245
242
  expect(xmlpp(IsoDoc::Iso::HtmlConvert.new({}).convert("test", presxml, true))).to be_equivalent_to xmlpp(html)
246
243
  end
247
244
 
248
245
  it "defaults to English" do
249
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
246
+ expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", <<~"INPUT", true)).sub(%r{<localized-strings>.*</localized-strings>}m, "")).to be_equivalent_to xmlpp(<<~"OUTPUT")
250
247
  <iso-standard xmlns="http://riboseinc.com/isoxml">
251
248
  <bibdata>
252
249
  <language>tlh</language>
@@ -316,11 +313,8 @@ RSpec.describe IsoDoc do
316
313
  INPUT
317
314
  <iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
318
315
  <bibdata>
319
- <language>tlh</language>
316
+ <language current="true">tlh</language>
320
317
  </bibdata>
321
- <local_bibdata>
322
- <language>tlh</language>
323
- </local_bibdata>
324
318
  <preface>
325
319
  <foreword obligation='informative'>
326
320
  <title>Foreword</title>
@@ -528,11 +522,8 @@ RSpec.describe IsoDoc do
528
522
  presxml = <<~OUTPUT
529
523
  <iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
530
524
  <bibdata>
531
- <language>fr</language>
525
+ <language current="true">fr</language>
532
526
  </bibdata>
533
- <local_bibdata>
534
- <language>fr</language>
535
- </local_bibdata>
536
527
  <preface>
537
528
  <foreword obligation='informative'>
538
529
  <title>Foreword</title>
@@ -694,7 +685,7 @@ OUTPUT
694
685
  </body>
695
686
  </html>
696
687
  OUTPUT
697
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", input, true))).to be_equivalent_to xmlpp(presxml)
688
+ expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", input, true)).sub(%r{<localized-strings>.*</localized-strings>}m, "")).to be_equivalent_to xmlpp(presxml)
698
689
  expect(xmlpp(IsoDoc::Iso::HtmlConvert.new({}).convert("test", presxml, true))).to be_equivalent_to xmlpp(html)
699
690
  end
700
691
 
@@ -781,13 +772,9 @@ OUTPUT
781
772
  presxml = <<~OUTPUT
782
773
  <iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
783
774
  <bibdata>
784
- <language>zh</language>
785
- <script>Hans</script>
775
+ <language current="true">zh</language>
776
+ <script current="true">Hans</script>
786
777
  </bibdata>
787
- <local_bibdata>
788
- <language>zh</language>
789
- <script>Hans</script>
790
- </local_bibdata>
791
778
  <preface>
792
779
  <foreword obligation='informative'>
793
780
  <title>Foreword</title>
@@ -960,7 +947,7 @@ OUTPUT
960
947
  </body>
961
948
  </html>
962
949
  OUTPUT
963
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", input, true))).to be_equivalent_to xmlpp(presxml)
950
+ expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", input, true)).sub(%r{<localized-strings>.*</localized-strings>}m, "")).to be_equivalent_to xmlpp(presxml)
964
951
  expect(xmlpp(IsoDoc::Iso::HtmlConvert.new({}).convert("test", presxml, true))).to be_equivalent_to xmlpp(html)
965
952
  end
966
953
 
@@ -194,7 +194,7 @@ RSpec.describe IsoDoc do
194
194
  end
195
195
 
196
196
  it "processes eref content" do
197
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
197
+ expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", <<~"INPUT", true)).sub(%r{<i18nyaml>.*</i18nyaml>}m, "")).to be_equivalent_to xmlpp(<<~"OUTPUT")
198
198
  <iso-standard xmlns="http://riboseinc.com/isoxml">
199
199
  <preface><foreword>
200
200
  <p>