metanorma-iec 1.0.4 → 1.0.9

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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/macos.yml +8 -7
  3. data/.github/workflows/ubuntu.yml +12 -9
  4. data/.github/workflows/windows.yml +8 -8
  5. data/lib/asciidoctor/iec/biblio.rng +89 -32
  6. data/lib/asciidoctor/iec/converter.rb +8 -0
  7. data/lib/asciidoctor/iec/front.rb +3 -3
  8. data/lib/asciidoctor/iec/isodoc.rng +475 -2
  9. data/lib/asciidoctor/iec/isostandard.rng +12 -1
  10. data/lib/asciidoctor/iec/reqt.rng +23 -0
  11. data/lib/isodoc/iec/base_convert.rb +17 -3
  12. data/lib/isodoc/iec/html/htmlstyle.scss +6 -6
  13. data/lib/isodoc/iec/html/isodoc.scss +15 -9
  14. data/lib/isodoc/iec/html/scripts.html +23 -21
  15. data/lib/isodoc/iec/html/wordstyle.scss +0 -3
  16. data/lib/isodoc/iec/html_convert.rb +8 -0
  17. data/lib/isodoc/iec/iec.international-standard.xsl +4133 -0
  18. data/lib/isodoc/iec/pdf_convert.rb +31 -0
  19. data/lib/isodoc/iec/word_convert.rb +17 -6
  20. data/lib/metanorma-iec.rb +1 -0
  21. data/lib/metanorma/iec/processor.rb +12 -1
  22. data/lib/metanorma/iec/version.rb +1 -1
  23. data/spec/asciidoctor-iec/base_spec.rb +9 -23
  24. data/spec/asciidoctor-iec/blocks_spec.rb +4 -4
  25. data/spec/asciidoctor-iec/cleanup_spec.rb +8 -6
  26. data/spec/asciidoctor-iec/iev_spec.rb +4 -4
  27. data/spec/asciidoctor-iec/inline_spec.rb +2 -1
  28. data/spec/asciidoctor-iec/section_spec.rb +8 -8
  29. data/spec/assets/iso.xml +65 -2
  30. data/spec/examples/rice.html +5 -5
  31. data/spec/isodoc/blocks_spec.rb +154 -0
  32. data/spec/isodoc/i18n_spec.rb +17 -25
  33. data/spec/isodoc/iev_spec.rb +15 -14
  34. data/spec/isodoc/inline_spec.rb +11 -11
  35. data/spec/isodoc/iso_spec.rb +6 -23
  36. data/spec/isodoc/metadata_spec.rb +90 -7
  37. data/spec/isodoc/postproc_spec.rb +10 -4
  38. data/spec/isodoc/ref_spec.rb +249 -0
  39. data/spec/isodoc/section_spec.rb +53 -20
  40. data/spec/isodoc/terms_spec.rb +12 -14
  41. data/spec/metanorma/processor_spec.rb +3 -6
  42. data/spec/spec_helper.rb +7 -0
  43. metadata +6 -2
@@ -269,14 +269,14 @@ p.Terms {
269
269
  font-size: 0.9em;
270
270
  overflow: auto;
271
271
  padding: 0 0 0 20px;
272
- background-color: #f7f7f7;
272
+ background-color: #f5faff;
273
273
  line-height: 1.2em; }
274
274
  #toggle {
275
275
  position: fixed;
276
276
  height: 100%;
277
277
  width: 30px;
278
278
  border-right: solid black 1px;
279
- background-color: #f7f7f7;
279
+ background-color: #f5faff;
280
280
  color: black !important;
281
281
  cursor: pointer;
282
282
  margin-left: -4em;
@@ -506,7 +506,7 @@ p.Biblio, p.NormRef {
506
506
  font-variant-ligatures: none; }
507
507
 
508
508
  .figure, .Sourcecode {
509
- background-color: #f7f7f7;
509
+ background-color: #f5faff;
510
510
  line-height: 1.6em;
511
511
  padding: 1.5em;
512
512
  margin: 2em 0 1em 0;
@@ -639,7 +639,7 @@ ol > li > p:before {
639
639
  3.11 Blockquotes
640
640
  */
641
641
  .blockquote, .Quote {
642
- background-color: #f7f7f7;
642
+ background-color: #f5faff;
643
643
  font-style: italic;
644
644
  width: 80%;
645
645
  padding: 1.5em;
@@ -651,7 +651,7 @@ ol > li > p:before {
651
651
  3.12 Formulas
652
652
  */
653
653
  .formula {
654
- background-color: #f7f7f7;
654
+ background-color: #f5faff;
655
655
  padding: 1.5em;
656
656
  margin-top: 2em;
657
657
  text-align: center;
@@ -0,0 +1,154 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe IsoDoc::Iec do
4
+
5
+ it "processes admonitions" do
6
+ expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
7
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
8
+ <preface><foreword>
9
+ <admonition id="_70234f78-64e5-4dfc-8b6f-f3f037348b6a" type="caution">
10
+ <p id="_e94663cc-2473-4ccc-9a72-983a74d989f2">Only use paddy or parboiled rice for the determination of husked rice yield.</p>
11
+ <p id="_e94663cc-2473-4ccc-9a72-983a74d989f3">Para 2.</p>
12
+ </admonition>
13
+ </foreword></preface>
14
+ </iso-standard>
15
+ INPUT
16
+ #{HTML_HDR}
17
+ <div>
18
+ <h1 class='ForewordTitle'>FOREWORD</h1>
19
+ <div class='boilerplate_legal'/>
20
+ <div id='_70234f78-64e5-4dfc-8b6f-f3f037348b6a' class='Admonition'>
21
+ <p>
22
+ CAUTION &#8212; Only use paddy or parboiled rice for the
23
+ determination of husked rice yield.
24
+ </p>
25
+ <p id='_e94663cc-2473-4ccc-9a72-983a74d989f3'>Para 2.</p>
26
+ </div>
27
+ </div>
28
+ #{IEC_TITLE1}
29
+ </div>
30
+ </body>
31
+ </html>
32
+ OUTPUT
33
+ end
34
+
35
+ it "processes admonitions with titles" do
36
+ expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
37
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
38
+ <preface><foreword>
39
+ <admonition id="_70234f78-64e5-4dfc-8b6f-f3f037348b6a" type="caution">
40
+ <name>Title</name>
41
+ <ul>
42
+ <li>List</li>
43
+ </ul>
44
+ <p id="_e94663cc-2473-4ccc-9a72-983a74d989f2">Only use paddy or parboiled rice for the determination of husked rice yield.</p>
45
+ </admonition>
46
+ </foreword></preface>
47
+ </iso-standard>
48
+ INPUT
49
+ #{HTML_HDR}
50
+ <div>
51
+ <h1 class='ForewordTitle'>FOREWORD</h1>
52
+ <div class='boilerplate_legal'/>
53
+ <div id='_70234f78-64e5-4dfc-8b6f-f3f037348b6a' class='Admonition'>
54
+ <p>Title &#8212; </p>
55
+ <ul>
56
+ <li>List</li>
57
+ </ul>
58
+ <p id='_e94663cc-2473-4ccc-9a72-983a74d989f2'>Only use paddy or parboiled rice for the determination of husked rice yield.</p>
59
+ </div>
60
+ </div>
61
+ #{IEC_TITLE1}
62
+ </div>
63
+ </body>
64
+ </html>
65
+ OUTPUT
66
+ end
67
+
68
+ it "processes formulae (Word)" do
69
+ expect(xmlpp(IsoDoc::Iec::WordConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
70
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
71
+ <preface><foreword>
72
+ <formula id="_be9158af-7e93-4ee2-90c5-26d31c181934" unnumbered="true">
73
+ <stem type="AsciiMath">r = 1 %</stem>
74
+ <dl id="_e4fe94fe-1cde-49d9-b1ad-743293b7e21d">
75
+ <dt>
76
+ <stem type="AsciiMath">r</stem>
77
+ </dt>
78
+ <dd>
79
+ <p id="_1b99995d-ff03-40f5-8f2e-ab9665a69b77">is the repeatability limit.</p>
80
+ </dd>
81
+ </dl>
82
+ <note id="_83083c7a-6c85-43db-a9fa-4d8edd0c9fc0">
83
+ <p id="_511aaa98-4116-42af-8e5b-c87cdf5bfdc8">[durationUnits] is essentially a duration statement without the "P" prefix. "P" is unnecessary because between "G" and "U" duration is always expressed.</p>
84
+ </note>
85
+ </formula>
86
+ <formula id="_be9158af-7e93-4ee2-90c5-26d31c181935">
87
+ <stem type="AsciiMath">r = 1 %</stem>
88
+ </formula>
89
+ </foreword></preface>
90
+ </iso-standard>
91
+ INPUT
92
+ <html xmlns:epub='http://www.idpf.org/2007/ops' lang='en'>
93
+ <head>
94
+ <style>
95
+ </style>
96
+ <style>
97
+ </style>
98
+ </head>
99
+ <body lang='EN-US' link='blue' vlink='#954F72'>
100
+ <div class='WordSection2'>
101
+ <p>
102
+ <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
103
+ </p>
104
+ #{IEC_TITLE}
105
+ <div>
106
+ <h1 class='ForewordTitle'>FOREWORD</h1>
107
+ <div class='boilerplate_legal'/>
108
+ <div id='_be9158af-7e93-4ee2-90c5-26d31c181934'><div class='formula'>
109
+ <p class='formula'>
110
+ <span style='mso-tab-count:1'>&#160; </span>
111
+ <span class='stem'>(#(r = 1 %)#)</span>
112
+ </p>
113
+ </div>
114
+ <span class='zzMoveToFollowing'>
115
+ where
116
+ <span class='stem'>(#(r)#)</span>
117
+ </span>
118
+ <p id='_1b99995d-ff03-40f5-8f2e-ab9665a69b77'>is the repeatability limit.</p>
119
+ <div id='_83083c7a-6c85-43db-a9fa-4d8edd0c9fc0' class='Note'>
120
+ <p class='Note'>
121
+ <span class='note_label'>NOTE</span>
122
+ <span style='mso-tab-count:1'>&#160; </span>
123
+ [durationUnits] is essentially a duration statement without the "P"
124
+ prefix. "P" is unnecessary because between "G" and "U" duration is
125
+ always expressed.
126
+ </p>
127
+ </div>
128
+ </div>
129
+ <div id='_be9158af-7e93-4ee2-90c5-26d31c181935'><div class='formula'>
130
+ <p class='formula'>
131
+ <span style='mso-tab-count:1'>&#160; </span>
132
+ <span class='stem'>(#(r = 1 %)#)</span>
133
+ <span style='mso-tab-count:1'>&#160; </span>
134
+ (1)
135
+ </p>
136
+ </div>
137
+ </div>
138
+ </div>
139
+ <p>&#160;</p>
140
+ </div>
141
+ <p>
142
+ <br clear='all' class='section'/>
143
+ </p>
144
+ <div class='WordSection3'>
145
+ #{IEC_TITLE1}
146
+ </div>
147
+ <br clear='all' style='page-break-before:left;mso-break-type:section-break'/>
148
+ <div class='colophon'/>
149
+ </body>
150
+ </html>
151
+ OUTPUT
152
+ end
153
+
154
+ end
@@ -16,16 +16,14 @@ RSpec.describe IsoDoc do
16
16
  <introduction id="B" obligation="informative"><title>Introduction</title><clause id="C" inline-header="false" obligation="informative">
17
17
  <title>Introduction Subsection</title>
18
18
  </clause>
19
- <patent-notice>
20
19
  <p>This is patent boilerplate</p>
21
- </patent-notice>
22
20
  </introduction></preface><sections>
23
21
  <clause id="D" obligation="normative">
24
22
  <title>Scope</title>
25
23
  <p id="E">Text</p>
26
24
  </clause>
27
25
 
28
- <clause id="H" obligation="normative"><title>Terms, Definitions, Symbols and Abbreviated Terms</title><terms id="I" obligation="normative">
26
+ <clause id="H" obligation="normative"><title>Terms, definitions, symbols and abbreviated terms</title><terms id="I" obligation="normative">
29
27
  <title>Normal Terms</title>
30
28
  <term id="J">
31
29
  <preferred>Term2</preferred>
@@ -62,11 +60,11 @@ RSpec.describe IsoDoc do
62
60
  <appendix id="Q2" inline-header="false" obligation="normative">
63
61
  <title>An Appendix</title>
64
62
  </appendix>
65
- </annex><bibliography><references id="R" obligation="informative">
63
+ </annex><bibliography><references id="R" obligation="informative" normative="true">
66
64
  <title>Normative References</title>
67
65
  </references><clause id="S" obligation="informative">
68
66
  <title>Bibliography</title>
69
- <references id="T" obligation="informative">
67
+ <references id="T" obligation="informative" normative="false">
70
68
  <title>Bibliography Subsection</title>
71
69
  </references>
72
70
  </clause>
@@ -87,7 +85,7 @@ RSpec.describe IsoDoc do
87
85
  </div>
88
86
  <p>This is patent boilerplate</p>
89
87
  </div>
90
- #{IEC_TITLE}
88
+ #{IEC_TITLE1}
91
89
  <div id="D">
92
90
  <h1>1&#160; Scope</h1>
93
91
  <p id="E">Text</p>
@@ -162,16 +160,14 @@ RSpec.describe IsoDoc do
162
160
  <introduction id="B" obligation="informative"><title>Introduction</title><clause id="C" inline-header="false" obligation="informative">
163
161
  <title>Introduction Subsection</title>
164
162
  </clause>
165
- <patent-notice>
166
163
  <p>This is patent boilerplate</p>
167
- </patent-notice>
168
164
  </introduction></preface><sections>
169
165
  <clause id="D" obligation="normative">
170
166
  <title>Scope</title>
171
167
  <p id="E">Text</p>
172
168
  </clause>
173
169
 
174
- <clause id="H" obligation="normative"><title>Terms, Definitions, Symbols and Abbreviated Terms</title><terms id="I" obligation="normative">
170
+ <clause id="H" obligation="normative"><title>Terms, definitions, symbols and abbreviated terms</title><terms id="I" obligation="normative">
175
171
  <title>Normal Terms</title>
176
172
  <term id="J">
177
173
  <preferred>Term2</preferred>
@@ -208,11 +204,11 @@ RSpec.describe IsoDoc do
208
204
  <appendix id="Q2" inline-header="false" obligation="normative">
209
205
  <title>An Appendix</title>
210
206
  </appendix>
211
- </annex><bibliography><references id="R" obligation="informative">
207
+ </annex><bibliography><references id="R" obligation="informative" normative="true">
212
208
  <title>Normative References</title>
213
209
  </references><clause id="S" obligation="informative">
214
210
  <title>Bibliography</title>
215
- <references id="T" obligation="informative">
211
+ <references id="T" obligation="informative" normative="false">
216
212
  <title>Bibliography Subsection</title>
217
213
  </references>
218
214
  </clause>
@@ -233,7 +229,7 @@ RSpec.describe IsoDoc do
233
229
  </div>
234
230
  <p>This is patent boilerplate</p>
235
231
  </div>
236
- #{IEC_TITLE}
232
+ #{IEC_TITLE1}
237
233
  <div id="D">
238
234
  <h1>1&#160; Scope</h1>
239
235
  <p id="E">Text</p>
@@ -308,16 +304,14 @@ RSpec.describe IsoDoc do
308
304
  <introduction id="B" obligation="informative"><title>Introduction</title><clause id="C" inline-header="false" obligation="informative">
309
305
  <title>Introduction Subsection</title>
310
306
  </clause>
311
- <patent-notice>
312
307
  <p>This is patent boilerplate</p>
313
- </patent-notice>
314
308
  </introduction></preface><sections>
315
309
  <clause id="D" obligation="normative">
316
310
  <title>Scope</title>
317
311
  <p id="E">Text</p>
318
312
  </clause>
319
313
 
320
- <clause id="H" obligation="normative"><title>Terms, Definitions, Symbols and Abbreviated Terms</title><terms id="I" obligation="normative">
314
+ <clause id="H" obligation="normative"><title>Terms, definitions, symbols and abbreviated terms</title><terms id="I" obligation="normative">
321
315
  <title>Normal Terms</title>
322
316
  <term id="J">
323
317
  <preferred>Term2</preferred>
@@ -354,11 +348,11 @@ RSpec.describe IsoDoc do
354
348
  <appendix id="Q2" inline-header="false" obligation="normative">
355
349
  <title>An Appendix</title>
356
350
  </appendix>
357
- </annex><bibliography><references id="R" obligation="informative">
351
+ </annex><bibliography><references id="R" obligation="informative" normative="true">
358
352
  <title>Normative References</title>
359
353
  </references><clause id="S" obligation="informative">
360
354
  <title>Bibliography</title>
361
- <references id="T" obligation="informative">
355
+ <references id="T" obligation="informative" normative="false">
362
356
  <title>Bibliography Subsection</title>
363
357
  </references>
364
358
  </clause>
@@ -380,7 +374,7 @@ RSpec.describe IsoDoc do
380
374
  </div>
381
375
  <p>This is patent boilerplate</p>
382
376
  </div>
383
- #{IEC_TITLE.sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "COMMISSION ELECTROTECHNIQUE INTERNATIONALE")}
377
+ #{IEC_TITLE1}
384
378
  <div id="D">
385
379
  <h1>1&#160; Domaine d'application</h1>
386
380
  <p id="E">Text</p>
@@ -456,16 +450,14 @@ RSpec.describe IsoDoc do
456
450
  <introduction id="B" obligation="informative"><title>Introduction</title><clause id="C" inline-header="false" obligation="informative">
457
451
  <title>Introduction Subsection</title>
458
452
  </clause>
459
- <patent-notice>
460
453
  <p>This is patent boilerplate</p>
461
- </patent-notice>
462
454
  </introduction></preface><sections>
463
455
  <clause id="D" obligation="normative">
464
456
  <title>Scope</title>
465
457
  <p id="E"><eref type="inline" bibitemid="ISO712"><locality type="table"><referenceFrom>1</referenceFrom><referenceTo>1</referenceTo></locality></eref></p>
466
458
  </clause>
467
459
 
468
- <clause id="H" obligation="normative"><title>Terms, Definitions, Symbols and Abbreviated Terms</title><terms id="I" obligation="normative">
460
+ <clause id="H" obligation="normative"><title>Terms, definitions, symbols and abbreviated terms</title><terms id="I" obligation="normative">
469
461
  <title>Normal Terms</title>
470
462
  <term id="J">
471
463
  <preferred>Term2</preferred>
@@ -502,7 +494,7 @@ RSpec.describe IsoDoc do
502
494
  <appendix id="Q2" inline-header="false" obligation="normative">
503
495
  <title>An Appendix</title>
504
496
  </appendix>
505
- </annex><bibliography><references id="R" obligation="informative">
497
+ </annex><bibliography><references id="R" obligation="informative" normative="true">
506
498
  <title>Normative References</title>
507
499
  <bibitem id="ISO712" type="standard">
508
500
  <title format="text/plain">Cereals and cereal products</title>
@@ -516,14 +508,14 @@ RSpec.describe IsoDoc do
516
508
  </bibitem>
517
509
  </references><clause id="S" obligation="informative">
518
510
  <title>Bibliography</title>
519
- <references id="T" obligation="informative">
511
+ <references id="T" obligation="informative" normative="false">
520
512
  <title>Bibliography Subsection</title>
521
513
  </references>
522
514
  </clause>
523
515
  </bibliography>
524
516
  </iso-standard>
525
517
  INPUT
526
- #{HTML_HDR.gsub(/"en"/, '"zh"').sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "国际电工委员会")}
518
+ #{HTML_HDR.gsub(/"en"/, '"zh"').sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "&#22269;&#38469;&#30005;&#24037;&#22996;&#21592;&#20250;")}
527
519
  <div>
528
520
  <h1 class="ForewordTitle">&#21069;&#35328;</h1>
529
521
  <div class="boilerplate_legal"/>
@@ -537,7 +529,7 @@ RSpec.describe IsoDoc do
537
529
  </div>
538
530
  <p>This is patent boilerplate</p>
539
531
  </div>
540
- #{IEC_TITLE.sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "国际电工委员会")}
532
+ #{IEC_TITLE1}
541
533
  <div id="D">
542
534
  <h1>1&#160; &#33539;&#22260;</h1>
543
535
  <p id="E">
@@ -37,7 +37,7 @@ RSpec.describe IsoDoc do
37
37
  <h2>Introduction Subsection</h2>
38
38
  </div>
39
39
  </div>
40
- #{IEC_TITLE}
40
+ #{IEC_TITLE1}
41
41
  </div>
42
42
  </body>
43
43
  </html>
@@ -93,7 +93,7 @@ RSpec.describe IsoDoc do
93
93
  </bibdata>
94
94
  <sections> </sections>
95
95
  <bibliography>
96
- <references id='_' obligation='informative'>
96
+ <references id='_' obligation='informative' normative="true">
97
97
  <title>Normative References</title>
98
98
  <p id='_'>There are no normative references in this document.</p>
99
99
  <bibitem id='A'>
@@ -103,7 +103,7 @@ RSpec.describe IsoDoc do
103
103
  <docidentifier>B</docidentifier>
104
104
  </bibitem>
105
105
  </references>
106
- <references id='_' obligation='informative'>
106
+ <references id='_' obligation='informative' normative="false">
107
107
  <title>Bibliography</title>
108
108
  <p id='_'>There are no normative references in this document.</p>
109
109
  <bibitem id='A'>
@@ -122,10 +122,14 @@ INPUT
122
122
  <h1 class='ForewordTitle'>FOREWORD</h1>
123
123
  <div class='boilerplate_legal'/>
124
124
  </div>
125
- #{IEC_TITLE}
125
+ #{IEC_TITLE1}
126
126
  <div>
127
127
  <h1>1&#160; Normative references</h1>
128
128
  <p id='_'>There are no normative references in this document.</p>
129
+ <p id='A' class='NormRef'>
130
+ B,
131
+ <i>TITLE</i>
132
+ </p>
129
133
  </div>
130
134
  </div>
131
135
  </body>
@@ -137,11 +141,11 @@ OUTPUT
137
141
  expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
138
142
  <iso-standard xmlns="http://riboseinc.com/isoxml">
139
143
  <bibdata type='standard'>
140
- <docidentifier type='iso'>IEC 60050-192 ED 1</docidentifier>
144
+ <docidentifier type='ISO'>IEC 60050-192 ED 1</docidentifier>
141
145
  <docnumber>60050</docnumber>
142
146
  </bibdata>
143
147
  <sections>
144
- <clause id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
148
+ <clause id="_terms_and_definitions" obligation="normative"><title>Terms and definitions</title>
145
149
  <terms id="_general" obligation="normative"><title>General</title>
146
150
 
147
151
  <term id="paddy1"><preferred>paddy</preferred>
@@ -194,7 +198,7 @@ INPUT
194
198
  <h1 class='ForewordTitle'>FOREWORD</h1>
195
199
  <div class='boilerplate_legal'/>
196
200
  </div>
197
- #{IEC_TITLE}
201
+ #{IEC_TITLE1}
198
202
  <div id='_terms_and_definitions'>
199
203
  <h1>1&#160; Terms and definitions</h1>
200
204
  <br/>
@@ -244,14 +248,14 @@ INPUT
244
248
  <li>A</li>
245
249
  </ul>
246
250
  </div>
247
- <div class='Note'>
251
+ <div class='Note' id='_671a1994-4783-40d0-bc81-987d06ffb74e'>
248
252
  <p>
249
253
  Note 1 to entry: The starch of waxy rice consists almost entirely
250
254
  of amylopectin. The kernels have a tendency to stick together
251
255
  after cooking.
252
256
  </p>
253
257
  </div>
254
- <div class='Note'>
258
+ <div class='Note' id='_671a1994-4783-40d0-bc81-987d06ffb74f'>
255
259
  <p>
256
260
  Note 2 to entry:
257
261
  <ul>
@@ -282,11 +286,11 @@ end
282
286
  IsoDoc::Iec::WordConvert.new({}).convert("test", <<~"INPUT", false)
283
287
  <iso-standard xmlns="http://riboseinc.com/isoxml">
284
288
  <bibdata type='standard'>
285
- <docidentifier type='iso'>IEC 60050-192 ED 1</docidentifier>
289
+ <docidentifier type='ISO'>IEC 60050-192 ED 1</docidentifier>
286
290
  <docnumber>60050</docnumber>
287
291
  </bibdata>
288
292
  <sections>
289
- <clause id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
293
+ <clause id="_terms_and_definitions" obligation="normative"><title>Terms and definitions</title>
290
294
  <terms id="_general" obligation="normative"><title>General</title>
291
295
 
292
296
  <term id="paddy1"><preferred>paddy</preferred>
@@ -308,9 +312,6 @@ end
308
312
  sub(%r{<br clear="all" style="page-break-before:left;mso-break-type:section-break"/>.*$}m, "")
309
313
  expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
310
314
  <div class='WordSection3'>
311
- <p class='zzSTDTitle1'>INTERNATIONAL ELECTROTECHNICAL COMMISSION</p>
312
- <p class='zzSTDTitle1'>____________</p>
313
- <p class='zzSTDTitle1'>&#xA0;</p>
314
315
  <p class='zzSTDTitle1'>
315
316
  <b/>
316
317
  </p>