metanorma-iec 1.0.5 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +8 -0
- data/.github/workflows/ubuntu.yml +10 -0
- data/.github/workflows/windows.yml +8 -0
- data/lib/asciidoctor/iec/biblio.rng +36 -6
- data/lib/asciidoctor/iec/converter.rb +8 -0
- data/lib/asciidoctor/iec/front.rb +3 -3
- data/lib/asciidoctor/iec/isodoc.rng +450 -4
- data/lib/asciidoctor/iec/isostandard.rng +12 -1
- data/lib/asciidoctor/iec/reqt.rng +23 -0
- data/lib/isodoc/iec/base_convert.rb +21 -37
- data/lib/isodoc/iec/html/htmlstyle.scss +6 -6
- data/lib/isodoc/iec/html/isodoc.scss +15 -9
- data/lib/isodoc/iec/html/scripts.html +18 -0
- data/lib/isodoc/iec/html/wordstyle.scss +0 -3
- data/lib/isodoc/iec/html_convert.rb +8 -0
- data/lib/isodoc/iec/iec.international-standard.xsl +1534 -728
- data/lib/isodoc/iec/pdf_convert.rb +2 -12
- data/lib/isodoc/iec/presentation_xml_convert.rb +10 -0
- data/lib/isodoc/iec/word_convert.rb +17 -6
- data/lib/isodoc/iec/xref.rb +45 -0
- data/lib/metanorma-iec.rb +2 -0
- data/lib/metanorma/iec/processor.rb +12 -6
- data/lib/metanorma/iec/version.rb +1 -1
- data/metanorma-iec.gemspec +2 -2
- data/spec/asciidoctor-iec/base_spec.rb +9 -23
- data/spec/asciidoctor-iec/blocks_spec.rb +4 -4
- data/spec/asciidoctor-iec/cleanup_spec.rb +7 -7
- data/spec/asciidoctor-iec/iev_spec.rb +4 -4
- data/spec/asciidoctor-iec/inline_spec.rb +1 -1
- data/spec/asciidoctor-iec/section_spec.rb +8 -8
- data/spec/examples/rice.html +5 -5
- data/spec/isodoc/blocks_spec.rb +154 -0
- data/spec/isodoc/i18n_spec.rb +12 -12
- data/spec/isodoc/iev_spec.rb +13 -12
- data/spec/isodoc/inline_spec.rb +11 -11
- data/spec/isodoc/iso_spec.rb +6 -23
- data/spec/isodoc/metadata_spec.rb +90 -7
- data/spec/isodoc/postproc_spec.rb +3 -3
- data/spec/isodoc/ref_spec.rb +249 -0
- data/spec/isodoc/section_spec.rb +50 -13
- data/spec/isodoc/terms_spec.rb +10 -12
- data/spec/metanorma/processor_spec.rb +2 -5
- data/spec/spec_helper.rb +7 -0
- metadata +14 -11
data/spec/examples/rice.html
CHANGED
@@ -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: #
|
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: #
|
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: #
|
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: #
|
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: #
|
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 — 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 — </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'>  </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'>  </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'>  </span>
|
132
|
+
<span class='stem'>(#(r = 1 %)#)</span>
|
133
|
+
<span style='mso-tab-count:1'>  </span>
|
134
|
+
(1)
|
135
|
+
</p>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
<p> </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
|
data/spec/isodoc/i18n_spec.rb
CHANGED
@@ -60,11 +60,11 @@ RSpec.describe IsoDoc do
|
|
60
60
|
<appendix id="Q2" inline-header="false" obligation="normative">
|
61
61
|
<title>An Appendix</title>
|
62
62
|
</appendix>
|
63
|
-
</annex><bibliography><references id="R" obligation="informative">
|
63
|
+
</annex><bibliography><references id="R" obligation="informative" normative="true">
|
64
64
|
<title>Normative References</title>
|
65
65
|
</references><clause id="S" obligation="informative">
|
66
66
|
<title>Bibliography</title>
|
67
|
-
<references id="T" obligation="informative">
|
67
|
+
<references id="T" obligation="informative" normative="false">
|
68
68
|
<title>Bibliography Subsection</title>
|
69
69
|
</references>
|
70
70
|
</clause>
|
@@ -85,7 +85,7 @@ RSpec.describe IsoDoc do
|
|
85
85
|
</div>
|
86
86
|
<p>This is patent boilerplate</p>
|
87
87
|
</div>
|
88
|
-
#{
|
88
|
+
#{IEC_TITLE1}
|
89
89
|
<div id="D">
|
90
90
|
<h1>1  Scope</h1>
|
91
91
|
<p id="E">Text</p>
|
@@ -204,11 +204,11 @@ RSpec.describe IsoDoc do
|
|
204
204
|
<appendix id="Q2" inline-header="false" obligation="normative">
|
205
205
|
<title>An Appendix</title>
|
206
206
|
</appendix>
|
207
|
-
</annex><bibliography><references id="R" obligation="informative">
|
207
|
+
</annex><bibliography><references id="R" obligation="informative" normative="true">
|
208
208
|
<title>Normative References</title>
|
209
209
|
</references><clause id="S" obligation="informative">
|
210
210
|
<title>Bibliography</title>
|
211
|
-
<references id="T" obligation="informative">
|
211
|
+
<references id="T" obligation="informative" normative="false">
|
212
212
|
<title>Bibliography Subsection</title>
|
213
213
|
</references>
|
214
214
|
</clause>
|
@@ -229,7 +229,7 @@ RSpec.describe IsoDoc do
|
|
229
229
|
</div>
|
230
230
|
<p>This is patent boilerplate</p>
|
231
231
|
</div>
|
232
|
-
#{
|
232
|
+
#{IEC_TITLE1}
|
233
233
|
<div id="D">
|
234
234
|
<h1>1  Scope</h1>
|
235
235
|
<p id="E">Text</p>
|
@@ -348,11 +348,11 @@ RSpec.describe IsoDoc do
|
|
348
348
|
<appendix id="Q2" inline-header="false" obligation="normative">
|
349
349
|
<title>An Appendix</title>
|
350
350
|
</appendix>
|
351
|
-
</annex><bibliography><references id="R" obligation="informative">
|
351
|
+
</annex><bibliography><references id="R" obligation="informative" normative="true">
|
352
352
|
<title>Normative References</title>
|
353
353
|
</references><clause id="S" obligation="informative">
|
354
354
|
<title>Bibliography</title>
|
355
|
-
<references id="T" obligation="informative">
|
355
|
+
<references id="T" obligation="informative" normative="false">
|
356
356
|
<title>Bibliography Subsection</title>
|
357
357
|
</references>
|
358
358
|
</clause>
|
@@ -374,7 +374,7 @@ RSpec.describe IsoDoc do
|
|
374
374
|
</div>
|
375
375
|
<p>This is patent boilerplate</p>
|
376
376
|
</div>
|
377
|
-
#{
|
377
|
+
#{IEC_TITLE1}
|
378
378
|
<div id="D">
|
379
379
|
<h1>1  Domaine d'application</h1>
|
380
380
|
<p id="E">Text</p>
|
@@ -494,7 +494,7 @@ RSpec.describe IsoDoc do
|
|
494
494
|
<appendix id="Q2" inline-header="false" obligation="normative">
|
495
495
|
<title>An Appendix</title>
|
496
496
|
</appendix>
|
497
|
-
</annex><bibliography><references id="R" obligation="informative">
|
497
|
+
</annex><bibliography><references id="R" obligation="informative" normative="true">
|
498
498
|
<title>Normative References</title>
|
499
499
|
<bibitem id="ISO712" type="standard">
|
500
500
|
<title format="text/plain">Cereals and cereal products</title>
|
@@ -508,7 +508,7 @@ RSpec.describe IsoDoc do
|
|
508
508
|
</bibitem>
|
509
509
|
</references><clause id="S" obligation="informative">
|
510
510
|
<title>Bibliography</title>
|
511
|
-
<references id="T" obligation="informative">
|
511
|
+
<references id="T" obligation="informative" normative="false">
|
512
512
|
<title>Bibliography Subsection</title>
|
513
513
|
</references>
|
514
514
|
</clause>
|
@@ -529,7 +529,7 @@ RSpec.describe IsoDoc do
|
|
529
529
|
</div>
|
530
530
|
<p>This is patent boilerplate</p>
|
531
531
|
</div>
|
532
|
-
#{
|
532
|
+
#{IEC_TITLE1}
|
533
533
|
<div id="D">
|
534
534
|
<h1>1  范围</h1>
|
535
535
|
<p id="E">
|
data/spec/isodoc/iev_spec.rb
CHANGED
@@ -37,7 +37,7 @@ RSpec.describe IsoDoc do
|
|
37
37
|
<h2>Introduction Subsection</h2>
|
38
38
|
</div>
|
39
39
|
</div>
|
40
|
-
#{
|
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
|
-
#{
|
125
|
+
#{IEC_TITLE1}
|
126
126
|
<div>
|
127
127
|
<h1>1  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,7 +141,7 @@ 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='
|
144
|
+
<docidentifier type='ISO'>IEC 60050-192 ED 1</docidentifier>
|
141
145
|
<docnumber>60050</docnumber>
|
142
146
|
</bibdata>
|
143
147
|
<sections>
|
@@ -194,7 +198,7 @@ INPUT
|
|
194
198
|
<h1 class='ForewordTitle'>FOREWORD</h1>
|
195
199
|
<div class='boilerplate_legal'/>
|
196
200
|
</div>
|
197
|
-
#{
|
201
|
+
#{IEC_TITLE1}
|
198
202
|
<div id='_terms_and_definitions'>
|
199
203
|
<h1>1  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,7 +286,7 @@ 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='
|
289
|
+
<docidentifier type='ISO'>IEC 60050-192 ED 1</docidentifier>
|
286
290
|
<docnumber>60050</docnumber>
|
287
291
|
</bibdata>
|
288
292
|
<sections>
|
@@ -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'> </p>
|
314
315
|
<p class='zzSTDTitle1'>
|
315
316
|
<b/>
|
316
317
|
</p>
|
data/spec/isodoc/inline_spec.rb
CHANGED
@@ -24,7 +24,7 @@ RSpec.describe IsoDoc do
|
|
24
24
|
<a id="H"/> <br/>
|
25
25
|
</p>
|
26
26
|
</div>
|
27
|
-
#{
|
27
|
+
#{IEC_TITLE1}
|
28
28
|
</div>
|
29
29
|
</body>
|
30
30
|
</html>
|
@@ -56,7 +56,7 @@ RSpec.describe IsoDoc do
|
|
56
56
|
<a href="mailto:fred@example.com">mailto:fred@example.com</a>
|
57
57
|
</p>
|
58
58
|
</div>
|
59
|
-
#{
|
59
|
+
#{IEC_TITLE1}
|
60
60
|
</div>
|
61
61
|
</body>
|
62
62
|
</html>
|
@@ -82,7 +82,7 @@ RSpec.describe IsoDoc do
|
|
82
82
|
<para><b role="strong"><barry fred="http://example.com">example</barry></b></para>
|
83
83
|
</p>
|
84
84
|
</div>
|
85
|
-
#{
|
85
|
+
#{IEC_TITLE1}
|
86
86
|
</div>
|
87
87
|
</body>
|
88
88
|
</html>
|
@@ -114,7 +114,7 @@ RSpec.describe IsoDoc do
|
|
114
114
|
<span class="stem">Latex?</span>
|
115
115
|
</p>
|
116
116
|
</div>
|
117
|
-
#{
|
117
|
+
#{IEC_TITLE1}
|
118
118
|
</div>
|
119
119
|
</body>
|
120
120
|
</html>
|
@@ -142,7 +142,7 @@ RSpec.describe IsoDoc do
|
|
142
142
|
(#((Hello))#)
|
143
143
|
</p>
|
144
144
|
</div>
|
145
|
-
#{
|
145
|
+
#{IEC_TITLE1}
|
146
146
|
</div>
|
147
147
|
</body>
|
148
148
|
</html>
|
@@ -158,7 +158,7 @@ RSpec.describe IsoDoc do
|
|
158
158
|
<eref type="inline" bibitemid="ISO712" citeas="ISO 712">A</stem>
|
159
159
|
</p>
|
160
160
|
</foreword></preface>
|
161
|
-
<bibliography><references id="_normative_references" obligation="informative"><title>Normative References</title>
|
161
|
+
<bibliography><references id="_normative_references" obligation="informative" normative="true"><title>Normative References</title>
|
162
162
|
<bibitem id="ISO712" type="standard">
|
163
163
|
<title format="text/plain">Cereals and cereal products</title>
|
164
164
|
<docidentifier>ISO 712</docidentifier>
|
@@ -182,7 +182,7 @@ RSpec.describe IsoDoc do
|
|
182
182
|
<a href="#ISO712">A</a>
|
183
183
|
</p>
|
184
184
|
</div>
|
185
|
-
#{
|
185
|
+
#{IEC_TITLE1}
|
186
186
|
<div>
|
187
187
|
<h1>1  Normative references</h1>
|
188
188
|
<p id="ISO712" class="NormRef">ISO 712, <i> Cereals and cereal products</i></p>
|
@@ -213,7 +213,7 @@ RSpec.describe IsoDoc do
|
|
213
213
|
<eref type="inline" bibitemid="ISO712" citeas="ISO 712">A</eref>
|
214
214
|
</p>
|
215
215
|
</foreword></preface>
|
216
|
-
<bibliography><references id="_normative_references" obligation="informative"><title>Normative References</title>
|
216
|
+
<bibliography><references id="_normative_references" obligation="informative" normative="true"><title>Normative References</title>
|
217
217
|
<bibitem id="ISO712" type="standard">
|
218
218
|
<title format="text/plain">Cereals and cereal products</title>
|
219
219
|
<docidentifier>ISO 712</docidentifier>
|
@@ -243,15 +243,15 @@ RSpec.describe IsoDoc do
|
|
243
243
|
<a href="#ISO712">ISO 712, Clause 1</a>
|
244
244
|
<a href="#ISO712">ISO 712, 1.5</a>
|
245
245
|
<a href="#ISO712">A</a>
|
246
|
-
<a href="#ISO712">ISO 712, </a>
|
246
|
+
<a href="#ISO712">ISO 712, Whole of text</a>
|
247
247
|
<a href="#ISO712">ISO 712, Prelude 7</a>
|
248
248
|
<a href="#ISO712">A</a>
|
249
249
|
</p>
|
250
250
|
</div>
|
251
|
-
#{
|
251
|
+
#{IEC_TITLE1}
|
252
252
|
<div>
|
253
253
|
<h1>1  Normative references</h1>
|
254
|
-
<p id="ISO712" class="NormRef">ISO 712, <i>
|
254
|
+
<p id="ISO712" class="NormRef">ISO 712, <i>Cereals and cereal products</i></p>
|
255
255
|
</div>
|
256
256
|
</div>
|
257
257
|
</body>
|