isodoc 1.3.1 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,14 +43,14 @@ INPUT
43
43
  OUTPUT
44
44
  end
45
45
 
46
- it "processes inline formatting" do
46
+ it "processes inline formatting (HTML)" do
47
47
  expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
48
48
  <iso-standard xmlns="http://riboseinc.com/isoxml">
49
49
  <preface><foreword>
50
50
  <p>
51
51
  <em>A</em> <strong>B</strong> <sup>C</sup> <sub>D</sub> <tt>E</tt>
52
52
  <strike>F</strike> <smallcap>G</smallcap> <keyword>I</keyword> <br/> <hr/>
53
- <bookmark id="H"/> <pagebreak/> <pagebreak orientation="landscape"/>
53
+ <bookmark id="H"/> <pagebreak/> <pagebreak orientation="landscape"/> <underline>J</underline>
54
54
  </p>
55
55
  </foreword></preface>
56
56
  <sections>
@@ -64,6 +64,7 @@ OUTPUT
64
64
  <i>A</i> <b>B</b> <sup>C</sup> <sub>D</sub> <tt>E</tt>
65
65
  <s>F</s> <span style="font-variant:small-caps;">G</span> <span class="keyword">I</span> <br/> <hr/>
66
66
  <a id="H"/> <br/> <br/>
67
+ <span style='text-decoration: underline;'>J</span>
67
68
  </p>
68
69
  </div>
69
70
  <p class="zzSTDTitle1"/>
@@ -80,7 +81,7 @@ OUTPUT
80
81
  <p>
81
82
  <em>A</em> <strong>B</strong> <sup>C</sup> <sub>D</sub> <tt>E</tt>
82
83
  <strike>F</strike> <smallcap>G</smallcap> <keyword>I</keyword> <br/> <hr/>
83
- <bookmark id="H"/> <pagebreak/> <pagebreak orientation="landscape"/>
84
+ <bookmark id="H"/> <pagebreak/> <pagebreak orientation="landscape"/> <underline>J</underline>
84
85
  </p>
85
86
  </clause></sections>
86
87
  </iso-standard>
@@ -107,6 +108,7 @@ OUTPUT
107
108
  <p>
108
109
  <br clear='all' class='section' orientation='landscape'/>
109
110
  </p>
111
+ <u>J</u>
110
112
  </p>
111
113
  </div>
112
114
  </div>
@@ -60,6 +60,8 @@ RSpec.describe IsoDoc do
60
60
  </name>
61
61
  <affiliation>
62
62
  <organization><name>Slate Inc.</name>
63
+ <subdivision>Hermeneutics Unit</subdivision>
64
+ <subdivision>Exegesis Subunit</subdivision>
63
65
  <address>
64
66
  <formattedAddress>Bedrock</formattedAddress>
65
67
  </address>
@@ -106,7 +108,7 @@ INPUT
106
108
  :activateddate=>"2013",
107
109
  :agency=>"ISO",
108
110
  :authors=>["Barney Rubble", "Fred Flintstone"],
109
- :authors_affiliations=>{"Slate Inc., Bedrock"=>["Barney Rubble"], ""=>["Fred Flintstone"]},
111
+ :authors_affiliations=>{"Slate Inc., Hermeneutics Unit, Exegesis Subunit, Bedrock"=>["Barney Rubble"], ""=>["Fred Flintstone"]},
110
112
  :circulateddate=>"2015",
111
113
  :confirmeddate=>"2017",
112
114
  :copieddate=>"2016",
@@ -591,6 +591,7 @@ TOCLEVEL
591
591
  <image src="spec/assets/rice_image1.png" id="_" width="20000" height="300000" mimetype="image/png"/>
592
592
  <image src="spec/assets/rice_image1.png" id="_" width="99" height="auto" mimetype="image/png"/>
593
593
  <image src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7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V9zY2hlbWEueG1sIiAvPgo8L2ltZz4KPC9pbWdmaWxlLmNvbnRlbnQ+Cg==" height="20" width="auto" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f2" mimetype="application/xml"/>
594
595
  </figure>
595
596
  </foreword></preface>
596
597
  </iso-standard>
@@ -609,6 +610,7 @@ TOCLEVEL
609
610
  <img src="test_htmlimages/_.png" height="800" width="53" />
610
611
  <img src="test_htmlimages/_.png" height="83" width="99" />
611
612
  <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAfQCAAAAAC/U5ulAAAjo0lEQVR4nOzVMQ0AMAzAsPInvYHoMS2yEeTLHADge/M6AADYM3QACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIMHQACDB0AAgwdAAIuAAAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQOgAMCB0ABgQOgAMCB0ABoQOAANCB4ABoQPAgNABYEDoADAgdAAYEDoADAgdAAaEDgADQgeAAaEDwIDQAWBA6AAwIHQAGBA6AAwIHQAGhA4AA0IHgAGhA8CA0AFgQOgAMCB0ABgQOgAMCB0ABgIAAP//7NWBDAAAAMAgf+t7fCWR0AFgQO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GQvdGV4dC5lbnQiPgo8aW1nZmlsZS5jb250ZW50IG1vZHVsZT0iZnVuZGFtZW50YWxzX29mX3Byb2R1Y3RfZGVzY3JpcHRpb25fYW5kX3N1cHBvcnQiIGZpbGU9ImFjdGlvbl9zY2hlbWFleHBnMS54bWwiPgo8aW1nIHNyYz0iYWN0aW9uX3NjaGVtYWV4cGcxLmdpZiI+CjxpbWcuYXJlYSBzaGFwZT0icmVjdCIgY29vcmRzPSIyMTAsMTg2LDM0MywyMjciIGhyZWY9Ii4uLy4uL3Jlc291cmNlcy9iYXNpY19hdHRyaWJ1dGVfc2NoZW1hL2Jhc2ljX2F0dHJpYnV0ZV9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMTAsMTAsOTYsNTEiIGhyZWY9Ii4uLy4uL3Jlc291cmNlcy9hY3Rpb25fc2NoZW1hL2FjdGlvbl9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMjEwLDI2NCwzNTgsMzA1IiBocmVmPSIuLi8uLi9yZXNvdXJjZXMvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEueG1sIiAvPgo8L2ltZz4KPC9pbWdmaWxlLmNvbnRlbnQ+Cg==' height='' width=''/>
612
614
  <p class="FigureTitle" style="text-align:center;">Split-it-right sample divider</p></div>
613
615
  </div>
614
616
  <p class="zzSTDTitle1"></p>
@@ -617,6 +619,169 @@ TOCLEVEL
617
619
 
618
620
  end
619
621
 
622
+ describe "mathvariant to plain" do
623
+ context "when `mathvariant` attr equal to `script`" do
624
+ it "converts mathvariant text chars into associated plain chars" do
625
+ FileUtils.rm_f "test.html"
626
+ FileUtils.rm_rf "test_htmlimages"
627
+ input = <<~INPUT
628
+ <?xml version="1.0" encoding="UTF-8"?>
629
+ <iso-standard xmlns="https://www.metanorma.org/ns/iso" type="semantic" version="1.5.14">
630
+ <sections>
631
+ <clause id="_clause" inline-header="false" obligation="normative">
632
+ <title>Clause</title>
633
+ <p id="_20514f5a-9f86-454e-b6ce-927f65ba6441">
634
+ <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML">
635
+ <mi>x</mi>
636
+ <mo>=</mo>
637
+ <mstyle mathvariant="script">
638
+ <mi>l</mi>
639
+ </mstyle>
640
+ <mo>+</mo>
641
+ <mn>1</mn>
642
+ </math></stem>
643
+ </p>
644
+ </clause>
645
+ </sections>
646
+ </iso-standard>
647
+ INPUT
648
+ output = <<~OUTPUT
649
+ <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
650
+ <p class="zzSTDTitle1"></p>
651
+ <div id="_clause">
652
+ <h1>Clause</h1>
653
+ <p id="_20514f5a-9f86-454e-b6ce-927f65ba6441">
654
+ <span class="stem"><math xmlns="http://www.w3.org/1998/Math/MathML">
655
+ <mi>x</mi>
656
+ <mo>=</mo>
657
+ <mstyle mathvariant="script">
658
+ <mi>&#x1D4C1;</mi>
659
+ </mstyle>
660
+ <mo>+</mo>
661
+ <mn>1</mn>
662
+ </math></span>
663
+ </p>
664
+ </div>
665
+ </main>
666
+ OUTPUT
667
+ IsoDoc::HtmlConvert.new({}).convert("test", input, false)
668
+ html = File.read("test.html")
669
+ .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
670
+ .sub(%r{</main>.*$}m, "</main>")
671
+ expect(html).to(be_equivalent_to(output))
672
+ end
673
+ end
674
+
675
+ context "when complex `mathvariant` combinations" do
676
+ it "converts mathvariant text chars into associated plain chars" do
677
+ FileUtils.rm_f "test.html"
678
+ FileUtils.rm_rf "test_htmlimages"
679
+ input = <<~INPUT
680
+ <?xml version="1.0" encoding="UTF-8"?>
681
+ <iso-standard xmlns="https://www.metanorma.org/ns/iso" type="semantic" version="1.5.14">
682
+ <sections>
683
+ <clause id="_clause" inline-header="false" obligation="normative">
684
+ <title>Clause</title>
685
+ <p id="_20514f5a-9f86-454e-b6ce-927f65ba6441">
686
+ <stem type="MathML">
687
+ <math xmlns="http://www.w3.org/1998/Math/MathML">
688
+ <mstyle mathvariant="sans-serif">
689
+ <mfrac>
690
+ <mrow>
691
+ <mrow>
692
+ <mi>n</mi>
693
+ <mfenced open="(" close=")">
694
+ <mrow>
695
+ <mstyle mathvariant="bold">
696
+ <mrow>
697
+ <mi>n</mi>
698
+ <mo>+</mo>
699
+ <mn>1</mn>
700
+ <mo>+</mo>
701
+ <mstyle mathvariant="italic">
702
+ <mi>x</mi>
703
+ </mstyle>
704
+ </mrow>
705
+ </mstyle>
706
+ </mrow>
707
+ </mfenced>
708
+ </mrow>
709
+ </mrow>
710
+ <mrow>
711
+ <mstyle mathvariant="bold">
712
+ <mrow>
713
+ <mi>y</mi>
714
+ <mo>+</mo>
715
+ <mstyle mathvariant="fraktur">
716
+ <mi>z</mi>
717
+ </mstyle>
718
+ </mrow>
719
+ </mstyle>
720
+ </mrow>
721
+ </mfrac>
722
+ </mstyle>
723
+ </math>
724
+ </stem>
725
+ </p>
726
+ </clause>
727
+ </sections>
728
+ </iso-standard>
729
+ INPUT
730
+ output = <<~OUTPUT
731
+ <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
732
+ <p class="zzSTDTitle1"></p>
733
+ <div id="_clause">
734
+ <h1>Clause</h1>
735
+ <p id="_20514f5a-9f86-454e-b6ce-927f65ba6441">
736
+ <span class="stem"><math xmlns="http://www.w3.org/1998/Math/MathML">
737
+ <mstyle mathvariant="sans-serif">
738
+ <mfrac>
739
+ <mrow>
740
+ <mrow>
741
+ <mi>&#x1D5C7;</mi>
742
+ <mfenced open="(" close=")">
743
+ <mrow>
744
+ <mstyle mathvariant="bold">
745
+ <mrow>
746
+ <mi>&#x1D5FB;</mi>
747
+ <mo>+</mo>
748
+ <mn>&#x1D7ED;</mn>
749
+ <mo>+</mo>
750
+ <mstyle mathvariant="italic">
751
+ <mi>&#x1D66D;</mi>
752
+ </mstyle>
753
+ </mrow>
754
+ </mstyle>
755
+ </mrow>
756
+ </mfenced>
757
+ </mrow>
758
+ </mrow>
759
+ <mrow>
760
+ <mstyle mathvariant="bold">
761
+ <mrow>
762
+ <mi>&#x1D606;</mi>
763
+ <mo>+</mo>
764
+ <mstyle mathvariant="fraktur">
765
+ <mi>&#x1D59F;</mi>
766
+ </mstyle>
767
+ </mrow>
768
+ </mstyle>
769
+ </mrow>
770
+ </mfrac>
771
+ </mstyle>
772
+ </math></span>
773
+ </p>
774
+ </div>
775
+ </main>
776
+ OUTPUT
777
+ IsoDoc::HtmlConvert.new({}).convert("test", input, false)
778
+ html = File.read("test.html")
779
+ .sub(/^.*<main class="main-section">/m, '<main class="main-section">')
780
+ .sub(%r{</main>.*$}m, "</main>")
781
+ expect(html).to(be_equivalent_to(output))
782
+ end
783
+ end
784
+ end
620
785
 
621
786
  it "moves images in HTML with no file suffix" do
622
787
  FileUtils.rm_f "test.html"
@@ -1047,7 +1212,7 @@ TOCLEVEL
1047
1212
  OUTPUT
1048
1213
  end
1049
1214
 
1050
- it "deals with image captions (Word)" do
1215
+ it "deals with image captions (Word)" do
1051
1216
  FileUtils.rm_f "test.doc"
1052
1217
  FileUtils.rm_f "test.html"
1053
1218
  IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.scss"}).convert("test", <<~"INPUT", false)
@@ -1366,7 +1531,7 @@ expect(xmlpp(html.sub(/^.*<body /m, "<body ").sub(%r{</body>.*$}m, "</body>"))).
1366
1531
  <div class='Section3' id=''>
1367
1532
  <h1 class='IntroTitle'>Preface 1</h1>
1368
1533
  <p align='center' style='text-align:center;' class='MsoNormal'>
1369
- This is a
1534
+ This is a
1370
1535
  <p class='MsoNormal'>
1371
1536
  <br clear='all' class='section'/>
1372
1537
  </p>
@@ -1412,7 +1577,7 @@ expect(xmlpp(html.sub(/^.*<body /m, "<body ").sub(%r{</body>.*$}m, "</body>"))).
1412
1577
  <p class='Note'>
1413
1578
  <span class='note_label'/>
1414
1579
  <span style='mso-tab-count:1'>&#xA0; </span>
1415
- For further information on the Foreword, see
1580
+ For further information on the Foreword, see
1416
1581
  <b>ISO/IEC Directives, Part 2, 2016, Clause 12.</b>
1417
1582
  </p>
1418
1583
  <p class='Note'>
@@ -37,7 +37,7 @@ it "localises numbers in MathML" do
37
37
 
38
38
  <preface>
39
39
  <p>
40
- <stem type='MathML'>30,000</stem>
40
+ 30,000
41
41
  <stem type='MathML'>
42
42
  <math xmlns='http://www.w3.org/1998/Math/MathML'>
43
43
  <mi>P</mi>
@@ -248,7 +248,7 @@ end
248
248
 
249
249
  <preface>
250
250
  <p>
251
- <stem type='MathML'>30,000</stem>
251
+ 30,000
252
252
  <stem type='MathML'>
253
253
  <math xmlns='http://www.w3.org/1998/Math/MathML'>
254
254
  <mi>P</mi>
@@ -382,7 +382,7 @@ it "localises numbers in MathML in French" do
382
382
  <language>fr</language>
383
383
  </bibdata>
384
384
  <preface>
385
- <p><stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mn>30000</mn></math></stem>
385
+ <p><math xmlns="http://www.w3.org/1998/Math/MathML"><mn>30000</mn></math>
386
386
  <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>P</mi><mfenced open="(" close=")"><mrow><mi>X</mi><mo>≥</mo><msub><mrow><mi>X</mi></mrow><mrow><mo>max</mo></mrow></msub></mrow></mfenced><mo>=</mo><munderover><mrow><mo>∑</mo></mrow><mrow><mrow><mi>j</mi><mo>=</mo><msub><mrow><mi>X</mi></mrow><mrow><mo>max</mo></mrow></msub></mrow></mrow><mrow><mn>1000</mn></mrow></munderover><mfenced open="(" close=")"><mtable><mtr><mtd><mn>1000</mn></mtd></mtr><mtr><mtd><mi>j</mi></mtd></mtr></mtable></mfenced><msup><mrow><mi>p</mi></mrow><mrow><mi>j</mi></mrow></msup><msup><mrow><mfenced open="(" close=")"><mrow><mn>1</mn><mo>−</mo><mi>p</mi></mrow></mfenced></mrow><mrow><mrow><mn>1.003</mn><mo>−</mo><mi>j</mi></mrow></mrow></msup></math></stem></p>
387
387
  </preface>
388
388
  </iso-standard>
@@ -395,7 +395,7 @@ it "localises numbers in MathML in French" do
395
395
 
396
396
  <preface>
397
397
  <p>
398
- <stem type='MathML'>30&#x202F;000</stem>
398
+ 30&#x202F;000
399
399
  <stem type='MathML'>
400
400
  <math xmlns='http://www.w3.org/1998/Math/MathML'>
401
401
  <mi>P</mi>
@@ -506,7 +506,7 @@ it "customises localisation of numbers" do
506
506
 
507
507
  <preface>
508
508
  <p>
509
- <stem type='MathML'>30'000</stem>
509
+ 30'000
510
510
  <stem type='MathML'>
511
511
  <math xmlns='http://www.w3.org/1998/Math/MathML'>
512
512
  <mi>P</mi>
@@ -2810,6 +2810,31 @@ INPUT
2810
2810
  <xref target="N12"/>
2811
2811
  <xref target="N13"/>
2812
2812
  </p>
2813
+ <p>
2814
+ <xref target="S1"/>
2815
+ <xref target="S2"/>
2816
+ <xref target="S3"/>
2817
+ <xref target="S4"/>
2818
+ <xref target="S12"/>
2819
+ <xref target="S13"/>
2820
+ <xref target="S14"/>
2821
+ <xref target="S15"/>
2822
+ <xref target="S16"/>
2823
+ <xref target="S17"/>
2824
+ <xref target="S18"/>
2825
+ <xref target="S19"/>
2826
+ <xref target="S20"/>
2827
+ <xref target="S21"/>
2828
+ <xref target="S22"/>
2829
+ <xref target="S23"/>
2830
+ <xref target="S24"/>
2831
+ <xref target="S25"/>
2832
+ <xref target="S26"/>
2833
+ <xref target="S27"/>
2834
+ <xref target="S28"/>
2835
+ <xref target="S29"/>
2836
+ <xref target="S30"/>
2837
+ </p>
2813
2838
  </foreword>
2814
2839
  <introduction id="intro">
2815
2840
  <figure id="N1"> <name>Split-it-right sample divider</name>
@@ -2852,6 +2877,83 @@ INPUT
2852
2877
  <image src="rice_images/rice_image1.png" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" mimetype="image/png"/>
2853
2878
  </figure>
2854
2879
  </introduction>
2880
+ </preface>
2881
+ <sections>
2882
+ <clause id='S1' number='1bis' type='scope' inline-header='false' obligation='normative'>
2883
+ <title>Scope</title>
2884
+ <p id='_'>Text</p>
2885
+ </clause>
2886
+ <terms id='S3' number='3bis' obligation='normative'>
2887
+ <title>Terms and definitions</title>
2888
+ <p id='_'>For the purposes of this document, the following terms and definitions apply.</p>
2889
+ <term id='S4' number='4bis'>
2890
+ <preferred>Term1</preferred>
2891
+ </term>
2892
+ </terms>
2893
+ <definitions id='S12' number='12bis' type='abbreviated_terms' obligation='normative'>
2894
+ <title>Abbreviated terms</title>
2895
+ </definitions>
2896
+ <clause id='S13' number='13bis' inline-header='false' obligation='normative'>
2897
+ <title>Clause 4</title>
2898
+ <clause id='S14' number='14bis' inline-header='false' obligation='normative'>
2899
+ <title>Introduction</title>
2900
+ </clause>
2901
+ <clause id='S15' inline-header='false' obligation='normative'>
2902
+ <title>Clause A</title>
2903
+ </clause>
2904
+ <clause id='S16' inline-header='false' obligation='normative'>
2905
+ <title>Clause B</title>
2906
+ </clause>
2907
+ <clause id='S17' number='0' inline-header='false' obligation='normative'>
2908
+ <title>Clause C</title>
2909
+ </clause>
2910
+ <clause id='S18' inline-header='false' obligation='normative'>
2911
+ <title>Clause D</title>
2912
+ </clause>
2913
+ <clause id='S19' inline-header='false' obligation='normative'>
2914
+ <title>Clause E</title>
2915
+ </clause>
2916
+ <clause id='S20' number='a' inline-header='false' obligation='normative'>
2917
+ <title>Clause F</title>
2918
+ </clause>
2919
+ <clause id='S21' inline-header='false' obligation='normative'>
2920
+ <title>Clause G</title>
2921
+ </clause>
2922
+ <clause id='S22' number='B' inline-header='false' obligation='normative'>
2923
+ <title>Clause H</title>
2924
+ </clause>
2925
+ <clause id='S23' inline-header='false' obligation='normative'>
2926
+ <title>Clause I</title>
2927
+ </clause>
2928
+ </clause>
2929
+ <clause id='S24' number='16bis' inline-header='false' obligation='normative'>
2930
+ <title>Terms and Definitions</title>
2931
+ </clause>
2932
+ </sections>
2933
+ <annex id='S25' obligation='normative'>
2934
+ <title>First Annex</title>
2935
+ </annex>
2936
+ <annex id='S26' number='17bis' inline-header='false' obligation='normative'>
2937
+ <title>Annex</title>
2938
+ <clause id='S27' number='18bis' inline-header='false' obligation='normative'>
2939
+ <title>Annex A.1</title>
2940
+ </clause>
2941
+ </annex>
2942
+ <annex id='S28' inline-header='false' obligation='normative'>
2943
+ <title>Another Annex</title>
2944
+ </annex>
2945
+ <bibliography>
2946
+ <references id='S2' number='2bis' normative='true' obligation='informative'>
2947
+ <title>Normative references</title>
2948
+ <p id='_'>There are no normative references in this document.</p>
2949
+ </references>
2950
+ <clause id='S29' number='19bis' obligation='informative'>
2951
+ <title>Bibliography</title>
2952
+ <references id='S30' number='20bis' normative='false' obligation='informative'>
2953
+ <title>Bibliography Subsection</title>
2954
+ </references>
2955
+ </clause>
2956
+ </bibliography>
2855
2957
  </iso-standard>
2856
2958
  INPUT
2857
2959
  <?xml version='1.0'?>
@@ -2861,7 +2963,7 @@ INPUT
2861
2963
  <p>
2862
2964
  <xref target='N1'>Figure 1</xref>
2863
2965
  <xref target='N2'>Figure A</xref>
2864
- <xref target='N3'>Figure 2</xref>
2966
+ <xref target='N3'>Figure B</xref>
2865
2967
  <xref target='N4'>Figure 7</xref>
2866
2968
  <xref target='N5'>Figure 8</xref>
2867
2969
  <xref target='N6'>Figure 9a</xref>
@@ -2873,6 +2975,31 @@ INPUT
2873
2975
  <xref target='N12'>Figure A.2</xref>
2874
2976
  <xref target='N13'>Figure 100</xref>
2875
2977
  </p>
2978
+ <p>
2979
+ <xref target='S1'>Clause 1bis</xref>
2980
+ <xref target='S2'>Clause 2bis</xref>
2981
+ <xref target='S3'>Clause 3bis</xref>
2982
+ <xref target='S4'>Clause 3bis.4bis</xref>
2983
+ <xref target='S12'>Clause 12bis</xref>
2984
+ <xref target='S13'>Clause 13bis</xref>
2985
+ <xref target='S14'>Clause 13bis.14bis</xref>
2986
+ <xref target='S15'>Clause 13bis.14bit</xref>
2987
+ <xref target='S16'>Clause 13bis.14biu</xref>
2988
+ <xref target='S17'>Clause 13bis.0</xref>
2989
+ <xref target='S18'>Clause 13bis.1</xref>
2990
+ <xref target='S19'>Clause 13bis.2</xref>
2991
+ <xref target='S20'>Clause 13bis.a</xref>
2992
+ <xref target='S21'>Clause 13bis.b</xref>
2993
+ <xref target='S22'>Clause 13bis.B</xref>
2994
+ <xref target='S23'>Clause 13bis.C</xref>
2995
+ <xref target='S24'>Clause 16bis</xref>
2996
+ <xref target='S25'>Annex A</xref>
2997
+ <xref target='S26'>Annex 17bis</xref>
2998
+ <xref target='S27'>Annex 17bis.18bis</xref>
2999
+ <xref target='S28'>Annex 17bit</xref>
3000
+ <xref target='S29'>Bibliography</xref>
3001
+ <xref target='S30'>Bibliography Subsection</xref>
3002
+ </p>
2876
3003
  </foreword>
2877
3004
  <introduction id='intro'>
2878
3005
  <figure id='N1'>
@@ -2884,7 +3011,7 @@ INPUT
2884
3011
  <image src='rice_images/rice_image1.png' id='_8357ede4-6d44-4672-bac4-9a85e82ab7f0' mimetype='image/png'/>
2885
3012
  </figure>
2886
3013
  <figure id='N3'>
2887
- <name>Figure 2&#xA0;&#x2014; Split-it-right sample divider</name>
3014
+ <name>Figure B&#xA0;&#x2014; Split-it-right sample divider</name>
2888
3015
  <image src='rice_images/rice_image1.png' id='_8357ede4-6d44-4672-bac4-9a85e82ab7f0' mimetype='image/png'/>
2889
3016
  </figure>
2890
3017
  <figure id='N4' number='7'>
@@ -2930,8 +3057,189 @@ INPUT
2930
3057
 
2931
3058
  </introduction>
2932
3059
  </preface>
3060
+ <sections>
3061
+ <clause id='S1' number='1bis' type='scope' inline-header='false' obligation='normative'>
3062
+ <title depth='1'>
3063
+ 1bis.
3064
+ <tab/>
3065
+ Scope
3066
+ </title>
3067
+ <p id='_'>Text</p>
3068
+ </clause>
3069
+ <terms id='S3' number='3bis' obligation='normative'>
3070
+ <title depth='1'>
3071
+ 3bis.
3072
+ <tab/>
3073
+ Terms and definitions
3074
+ </title>
3075
+ <p id='_'>For the purposes of this document, the following terms and definitions apply.</p>
3076
+ <term id='S4' number='4bis'>
3077
+ <name>3bis.4bis.</name>
3078
+ <preferred>Term1</preferred>
3079
+ </term>
3080
+ </terms>
3081
+ <definitions id='S12' number='12bis' type='abbreviated_terms' obligation='normative'>
3082
+ <title depth='1'>
3083
+ 12bis.
3084
+ <tab/>
3085
+ Abbreviated terms
3086
+ </title>
3087
+ </definitions>
3088
+ <clause id='S13' number='13bis' inline-header='false' obligation='normative'>
3089
+ <title depth='1'>
3090
+ 13bis.
3091
+ <tab/>
3092
+ Clause 4
3093
+ </title>
3094
+ <clause id='S14' number='14bis' inline-header='false' obligation='normative'>
3095
+ <title depth='2'>
3096
+ 13bis.14bis.
3097
+ <tab/>
3098
+ Introduction
3099
+ </title>
3100
+ </clause>
3101
+ <clause id='S15' inline-header='false' obligation='normative'>
3102
+ <title depth='2'>
3103
+ 13bis.14bit.
3104
+ <tab/>
3105
+ Clause A
3106
+ </title>
3107
+ </clause>
3108
+ <clause id='S16' inline-header='false' obligation='normative'>
3109
+ <title depth='2'>
3110
+ 13bis.14biu.
3111
+ <tab/>
3112
+ Clause B
3113
+ </title>
3114
+ </clause>
3115
+ <clause id='S17' number='0' inline-header='false' obligation='normative'>
3116
+ <title depth='2'>
3117
+ 13bis.0.
3118
+ <tab/>
3119
+ Clause C
3120
+ </title>
3121
+ </clause>
3122
+ <clause id='S18' inline-header='false' obligation='normative'>
3123
+ <title depth='2'>
3124
+ 13bis.1.
3125
+ <tab/>
3126
+ Clause D
3127
+ </title>
3128
+ </clause>
3129
+ <clause id='S19' inline-header='false' obligation='normative'>
3130
+ <title depth='2'>
3131
+ 13bis.2.
3132
+ <tab/>
3133
+ Clause E
3134
+ </title>
3135
+ </clause>
3136
+ <clause id='S20' number='a' inline-header='false' obligation='normative'>
3137
+ <title depth='2'>
3138
+ 13bis.a.
3139
+ <tab/>
3140
+ Clause F
3141
+ </title>
3142
+ </clause>
3143
+ <clause id='S21' inline-header='false' obligation='normative'>
3144
+ <title depth='2'>
3145
+ 13bis.b.
3146
+ <tab/>
3147
+ Clause G
3148
+ </title>
3149
+ </clause>
3150
+ <clause id='S22' number='B' inline-header='false' obligation='normative'>
3151
+ <title depth='2'>
3152
+ 13bis.B.
3153
+ <tab/>
3154
+ Clause H
3155
+ </title>
3156
+ </clause>
3157
+ <clause id='S23' inline-header='false' obligation='normative'>
3158
+ <title depth='2'>
3159
+ 13bis.C.
3160
+ <tab/>
3161
+ Clause I
3162
+ </title>
3163
+ </clause>
3164
+ </clause>
3165
+ <clause id='S24' number='16bis' inline-header='false' obligation='normative'>
3166
+ <title depth='1'>
3167
+ 16bis.
3168
+ <tab/>
3169
+ Terms and Definitions
3170
+ </title>
3171
+ </clause>
3172
+ </sections>
3173
+ <annex id='S25' obligation='normative'>
3174
+ <title>
3175
+ <strong>Annex A</strong>
3176
+ <br/>
3177
+ (normative)
3178
+ <br/>
3179
+ <br/>
3180
+ <strong>First Annex</strong>
3181
+ </title>
3182
+ </annex>
3183
+ <annex id='S26' number='17bis' inline-header='false' obligation='normative'>
3184
+ <title>
3185
+ <strong>Annex 17bis</strong>
3186
+ <br/>
3187
+ (normative)
3188
+ <br/>
3189
+ <br/>
3190
+ <strong>Annex</strong>
3191
+ </title>
3192
+ <clause id='S27' number='18bis' inline-header='false' obligation='normative'>
3193
+ <title depth='2'>
3194
+ 17bis.18bis.
3195
+ <tab/>
3196
+ Annex A.1
3197
+ </title>
3198
+ </clause>
3199
+ </annex>
3200
+ <annex id='S28' inline-header='false' obligation='normative'>
3201
+ <title>
3202
+ <strong>Annex 17bit</strong>
3203
+ <br/>
3204
+ (normative)
3205
+ <br/>
3206
+ <br/>
3207
+ <strong>Another Annex</strong>
3208
+ </title>
3209
+ </annex>
3210
+ <bibliography>
3211
+ <references id='S2' number='2bis' normative='true' obligation='informative'>
3212
+ <title depth='1'>
3213
+ 2bis.
3214
+ <tab/>
3215
+ Normative references
3216
+ </title>
3217
+ <p id='_'>There are no normative references in this document.</p>
3218
+ </references>
3219
+ <clause id='S29' number='19bis' obligation='informative'>
3220
+ <title depth='1'>Bibliography</title>
3221
+ <references id='S30' number='20bis' normative='false' obligation='informative'>
3222
+ <title depth='2'>Bibliography Subsection</title>
3223
+ </references>
3224
+ </clause>
3225
+ </bibliography>
2933
3226
  </iso-standard>
2934
3227
  OUTPUT
2935
3228
  end
2936
3229
 
3230
+ it "realises roman counter for xrefs" do
3231
+ a = IsoDoc::XrefGen::Counter.new(0, numerals: :roman)
3232
+ a.increment({})
3233
+ expect(a.print).to eq "I"
3234
+ a.increment({})
3235
+ expect(a.print).to eq "II"
3236
+ a.increment({})
3237
+ expect(a.print).to eq "III"
3238
+ a.increment({})
3239
+ expect(a.print).to eq "IV"
3240
+ a.increment({})
3241
+ expect(a.print).to eq "V"
3242
+
3243
+ end
3244
+
2937
3245
  end