metanorma-iec 1.0.8 → 1.1.3

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 +0 -1
  3. data/.github/workflows/ubuntu.yml +10 -7
  4. data/.github/workflows/windows.yml +0 -1
  5. data/Rakefile +2 -0
  6. data/lib/asciidoctor/iec/biblio.rng +1 -1
  7. data/lib/asciidoctor/iec/converter.rb +5 -0
  8. data/lib/asciidoctor/iec/front.rb +1 -1
  9. data/lib/asciidoctor/iec/isodoc.rng +427 -0
  10. data/lib/asciidoctor/iec/isostandard.rng +3 -0
  11. data/lib/asciidoctor/iec/reqt.rng +23 -0
  12. data/lib/isodoc/iec/base_convert.rb +10 -65
  13. data/lib/isodoc/iec/html/htmlstyle.css +962 -0
  14. data/lib/isodoc/iec/html/htmlstyle.scss +0 -3
  15. data/lib/isodoc/iec/html/isodoc.css +845 -0
  16. data/lib/isodoc/iec/html/isodoc.scss +0 -1
  17. data/lib/isodoc/iec/html/wordstyle.css +2013 -0
  18. data/lib/isodoc/iec/html/wordstyle.scss +0 -1
  19. data/lib/isodoc/iec/iec.international-standard.xsl +1130 -524
  20. data/lib/isodoc/iec/pdf_convert.rb +2 -12
  21. data/lib/isodoc/iec/presentation_xml_convert.rb +10 -0
  22. data/lib/isodoc/iec/word_convert.rb +4 -4
  23. data/lib/isodoc/iec/xref.rb +45 -0
  24. data/lib/metanorma-iec.rb +2 -0
  25. data/lib/metanorma/iec/processor.rb +6 -8
  26. data/lib/metanorma/iec/version.rb +1 -1
  27. data/metanorma-iec.gemspec +3 -2
  28. data/spec/asciidoctor-iec/base_spec.rb +5 -5
  29. data/spec/asciidoctor-iec/cleanup_spec.rb +1 -1
  30. data/spec/asciidoctor-iec/iev_spec.rb +2 -2
  31. data/spec/isodoc/blocks_spec.rb +12 -18
  32. data/spec/isodoc/i18n_spec.rb +4 -4
  33. data/spec/isodoc/iev_spec.rb +7 -10
  34. data/spec/isodoc/inline_spec.rb +9 -9
  35. data/spec/isodoc/iso_spec.rb +4 -4
  36. data/spec/isodoc/metadata_spec.rb +2 -2
  37. data/spec/isodoc/postproc_spec.rb +3 -3
  38. data/spec/isodoc/ref_spec.rb +5 -5
  39. data/spec/isodoc/section_spec.rb +9 -9
  40. data/spec/isodoc/terms_spec.rb +10 -12
  41. data/spec/metanorma/processor_spec.rb +2 -5
  42. data/spec/spec_helper.rb +7 -0
  43. metadata +29 -11
@@ -13,18 +13,8 @@ module IsoDoc
13
13
  super
14
14
  end
15
15
 
16
- def convert(filename, file = nil, debug = false)
17
- file = File.read(filename, encoding: "utf-8") if file.nil?
18
- docxml, outname_html, dir = convert_init(file, filename, debug)
19
- /\.xml$/.match(filename) or
20
- filename = Tempfile.open([outname_html, ".xml"], encoding: "utf-8") do |f|
21
- f.write file
22
- f.path
23
- end
24
- FileUtils.rm_rf dir
25
- ::Metanorma::Output::XslfoPdf.new.convert(
26
- filename, outname_html + ".pdf",
27
- File.join(@libdir, "iec.international-standard.xsl"))
16
+ def pdf_stylesheet(docxml)
17
+ "iec.international-standard.xsl"
28
18
  end
29
19
  end
30
20
  end
@@ -0,0 +1,10 @@
1
+ require_relative "base_convert"
2
+ require "isodoc"
3
+
4
+ module IsoDoc
5
+ module Iec
6
+ class PresentationXMLConvert < IsoDoc::Iso::PresentationXMLConvert
7
+ end
8
+ end
9
+ end
10
+
@@ -47,7 +47,7 @@ module IsoDoc
47
47
  <span lang="EN-GB"><span
48
48
  style='mso-element:field-begin'></span><span
49
49
  style='mso-spacerun:yes'>&#xA0;</span>TOC
50
- \\h \\z \\t &quot;TableTitle,1&quot; <span
50
+ \\h \\z \\t &quot;TableTitle,tabletitle&quot; <span
51
51
  style='mso-element:field-separator'></span></span>
52
52
  TOC
53
53
 
@@ -55,7 +55,7 @@ module IsoDoc
55
55
  <span lang="EN-GB"><span
56
56
  style='mso-element:field-begin'></span><span
57
57
  style='mso-spacerun:yes'>&#xA0;</span>TOC
58
- \\h \\z \\t &quot;FigureTitle,1&quot; <span
58
+ \\h \\z \\t &quot;FigureTitle,figuretitle&quot; <span
59
59
  style='mso-element:field-separator'></span></span>
60
60
  TOC
61
61
 
@@ -167,11 +167,11 @@ module IsoDoc
167
167
  end
168
168
 
169
169
  def formula_parse1(node, out)
170
- out.div **attr_code(id: node["id"], class: "formula") do |div|
170
+ out.div **attr_code(class: "formula") do |div|
171
171
  div.p **attr_code(class: "formula") do |p|
172
172
  insert_tab(div, 1)
173
173
  parse(node.at(ns("./stem")), div)
174
- lbl = anchor(node['id'], :label, false)
174
+ lbl = @xrefs.anchor(node['id'], :label, false)
175
175
  unless lbl.nil?
176
176
  insert_tab(div, 1)
177
177
  div << "(#{lbl})"
@@ -0,0 +1,45 @@
1
+ module IsoDoc
2
+ module Iec
3
+ class Xref < IsoDoc::Iso::Xref
4
+ def parse(docxml)
5
+ id = docxml&.at(ns("//bibdata/docnumber"))&.text
6
+ @is_iev = id == "60050"
7
+ id = docxml&.at(ns("//bibdata/docidentifier[@type = 'ISO']"))&.text
8
+ m = /60050-(\d+)/.match(id) and @iev_part = m[1]
9
+ super
10
+ end
11
+
12
+ def introduction_names(clause)
13
+ return super unless @is_iev
14
+ end
15
+
16
+ def initial_anchor_names(d)
17
+ super
18
+ return unless @is_iev
19
+ terms_iev_names(d)
20
+ middle_section_asset_names(d)
21
+ termnote_anchor_names(d)
22
+ termexample_anchor_names(d)
23
+ end
24
+
25
+ def terms_iev_names(d)
26
+ d.xpath(ns("//sections/clause/terms")).each_with_index do |t, i|
27
+ num = "#{@iev_part}-%02d" % [i+1]
28
+ @anchors[t["id"]] =
29
+ { label: num, xref: l10n("#{@labels["section_iev"]}-#{num}"), level: 2,
30
+ type: "clause" }
31
+ t.xpath(ns("./term")).each_with_index do |c, i|
32
+ num2 = "%02d" % [i+1]
33
+ section_names1(c, "#{num}-#{num2}", 3)
34
+ end
35
+ end
36
+ end
37
+
38
+ def annex_name_lbl(clause, num)
39
+ obl = l10n("(#{@labels["inform_annex"]})")
40
+ obl = l10n("(#{@labels["norm_annex"]})") if clause["obligation"] == "normative"
41
+ l10n("<b>#{@labels["annex"]} #{num}</b><br/><br/>#{obl}")
42
+ end
43
+ end
44
+ end
45
+ end
@@ -4,7 +4,9 @@ require_relative "metanorma/iec/version"
4
4
  require "isodoc/iec/html_convert"
5
5
  require "isodoc/iec/word_convert"
6
6
  require "isodoc/iec/pdf_convert"
7
+ require "isodoc/iec/presentation_xml_convert"
7
8
  require "isodoc/iec/metadata"
9
+ require "isodoc/iec/xref"
8
10
 
9
11
  if defined? Metanorma
10
12
  require_relative "metanorma/iec"
@@ -30,18 +30,16 @@ module Metanorma
30
30
  "Metanorma::Iec #{Metanorma::Iec::VERSION}"
31
31
  end
32
32
 
33
- def input_to_isodoc(file, filename)
34
- Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend)
35
- end
36
-
37
- def output(isodoc_node, outname, format, options={})
33
+ def output(isodoc_node, inname, outname, format, options={})
38
34
  case format
39
35
  when :html
40
- IsoDoc::Iec::HtmlConvert.new(options).convert(outname, isodoc_node)
36
+ IsoDoc::Iec::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname)
41
37
  when :doc
42
- IsoDoc::Iec::WordConvert.new(options).convert(outname, isodoc_node)
38
+ IsoDoc::Iec::WordConvert.new(options).convert(inname, isodoc_node, nil, outname)
43
39
  when :pdf
44
- IsoDoc::Iec::PdfConvert.new(options).convert(outname, isodoc_node)
40
+ IsoDoc::Iec::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname)
41
+ when :presentation
42
+ IsoDoc::Iec::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname)
45
43
  else
46
44
  super
47
45
  end
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "1.0.8"
3
+ VERSION = "1.1.3"
4
4
  end
5
5
  end
6
6
 
@@ -28,10 +28,11 @@ Gem::Specification.new do |spec|
28
28
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
29
29
 
30
30
  spec.add_dependency "ruby-jing"
31
- spec.add_dependency "isodoc", "~> 1.0.0"
32
- spec.add_dependency "metanorma-iso", "~> 1.3.0"
31
+ spec.add_dependency "isodoc", "~> 1.1.0"
32
+ spec.add_dependency "metanorma-iso", "~> 1.4.0"
33
33
 
34
34
  spec.add_development_dependency "byebug"
35
+ spec.add_development_dependency "sassc", "2.4.0"
35
36
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
36
37
  spec.add_development_dependency "guard", "~> 2.14"
37
38
  spec.add_development_dependency "guard-rspec", "~> 4.7"
@@ -99,7 +99,7 @@ RSpec.describe Asciidoctor::Iec do
99
99
  <title language="fr" format="text/plain" type="title-intro">Introduction Française</title>
100
100
  <title language="fr" format="text/plain" type="title-main">Titre Principal</title>
101
101
  <title language="fr" format="text/plain" type="title-part">Part du Titre</title>
102
- <docidentifier type="iso">IEC/3NWIP 1000-1 ED 2</docidentifier>
102
+ <docidentifier type="ISO">IEC/3NWIP 1000-1 ED 2</docidentifier>
103
103
  <docnumber>1000</docnumber>
104
104
  <contributor>
105
105
  <role type="author"/>
@@ -190,7 +190,7 @@ RSpec.describe Asciidoctor::Iec do
190
190
  <?xml version="1.0" encoding="UTF-8"?>
191
191
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
192
192
  <bibdata type="standard">
193
- <docidentifier type="iso">ISO/IEC/IETF/2CDTS 1000-1-1 ED 1</docidentifier>
193
+ <docidentifier type="ISO">ISO/IEC/IETF/2CDTS 1000-1-1 ED 1</docidentifier>
194
194
  <docidentifier type="iso-tc">2000</docidentifier>
195
195
  <docnumber>1000</docnumber>
196
196
  <contributor>
@@ -338,7 +338,7 @@ RSpec.describe Asciidoctor::Iec do
338
338
  INPUT
339
339
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
340
340
  <bibdata type="standard">
341
- <docidentifier type="iso">IEC/FDIS 1000 ED 1</docidentifier>
341
+ <docidentifier type="ISO">IEC/FDIS 1000 ED 1</docidentifier>
342
342
  <docnumber>1000</docnumber>
343
343
  <contributor>
344
344
  <role type="author"/>
@@ -402,7 +402,7 @@ OUTPUT
402
402
  INPUT
403
403
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
404
404
  <bibdata type="standard">
405
- <docidentifier type="iso">IEC 1000 ED 1</docidentifier>
405
+ <docidentifier type="ISO">IEC 1000 ED 1</docidentifier>
406
406
  <docnumber>1000</docnumber>
407
407
  <contributor>
408
408
  <role type="author"/>
@@ -467,7 +467,7 @@ OUTPUT
467
467
  INPUT
468
468
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
469
469
  <bibdata type="standard">
470
- <docidentifier type="iso">IEC 1000 ED 1</docidentifier>
470
+ <docidentifier type="ISO">IEC 1000 ED 1</docidentifier>
471
471
  <docnumber>1000</docnumber>
472
472
  <contributor>
473
473
  <role type="author"/>
@@ -288,7 +288,7 @@ RSpec.describe Asciidoctor::Iec do
288
288
  INPUT
289
289
  #{BLANK_HDR}
290
290
  <sections><formula id="_">
291
- <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>F</mi><mtext>or</mtext><mi>μ</mi><mi>l</mi><mi>a</mi></math></stem>
291
+ <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>F</mi><mi>or</mi><mi>μ</mi><mi>l</mi><mi>a</mi></math></stem>
292
292
  <dl id="_">
293
293
  <dt>a</dt>
294
294
  <dd>
@@ -20,7 +20,7 @@ RSpec.describe Asciidoctor::Iec do
20
20
  <?xml version='1.0' encoding='UTF-8'?>
21
21
  <iec-standard xmlns='https://www.metanorma.org/ns/iec'>
22
22
  <bibdata type='standard'>
23
- <docidentifier type='iso'>IEC 60050 ED 1</docidentifier>
23
+ <docidentifier type='ISO'>IEC 60050 ED 1</docidentifier>
24
24
  <docnumber>60050</docnumber>
25
25
  <contributor>
26
26
  <role type='author'/>
@@ -98,7 +98,7 @@ RSpec.describe Asciidoctor::Iec do
98
98
  INPUT
99
99
  <iec-standard xmlns='https://www.metanorma.org/ns/iec'>
100
100
  <bibdata type='standard'>
101
- <docidentifier type='iso'>IEC 60050 ED 1</docidentifier>
101
+ <docidentifier type='ISO'>IEC 60050 ED 1</docidentifier>
102
102
  <docnumber>60050</docnumber>
103
103
  <contributor>
104
104
  <role type='author'/>
@@ -25,7 +25,7 @@ RSpec.describe IsoDoc::Iec do
25
25
  <p id='_e94663cc-2473-4ccc-9a72-983a74d989f3'>Para 2.</p>
26
26
  </div>
27
27
  </div>
28
- #{IEC_TITLE}
28
+ #{IEC_TITLE1}
29
29
  </div>
30
30
  </body>
31
31
  </html>
@@ -58,7 +58,7 @@ RSpec.describe IsoDoc::Iec do
58
58
  <p id='_e94663cc-2473-4ccc-9a72-983a74d989f2'>Only use paddy or parboiled rice for the determination of husked rice yield.</p>
59
59
  </div>
60
60
  </div>
61
- #{IEC_TITLE}
61
+ #{IEC_TITLE1}
62
62
  </div>
63
63
  </body>
64
64
  </html>
@@ -105,25 +105,17 @@ RSpec.describe IsoDoc::Iec do
105
105
  <div>
106
106
  <h1 class='ForewordTitle'>FOREWORD</h1>
107
107
  <div class='boilerplate_legal'/>
108
- <div id='_be9158af-7e93-4ee2-90c5-26d31c181934' class='formula'>
108
+ <div id='_be9158af-7e93-4ee2-90c5-26d31c181934'><div class='formula'>
109
109
  <p class='formula'>
110
110
  <span style='mso-tab-count:1'>&#160; </span>
111
111
  <span class='stem'>(#(r = 1 %)#)</span>
112
112
  </p>
113
113
  </div>
114
- <p>where</p>
115
- <table class='formula_dl'>
116
- <tr>
117
- <td valign='top' align='left'>
118
- <p align='left' style='margin-left:0pt;text-align:left;'>
119
- <span class='stem'>(#(r)#)</span>
120
- </p>
121
- </td>
122
- <td valign='top'>
123
- <p id='_1b99995d-ff03-40f5-8f2e-ab9665a69b77'>is the repeatability limit.</p>
124
- </td>
125
- </tr>
126
- </table>
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>
127
119
  <div id='_83083c7a-6c85-43db-a9fa-4d8edd0c9fc0' class='Note'>
128
120
  <p class='Note'>
129
121
  <span class='note_label'>NOTE</span>
@@ -133,7 +125,8 @@ RSpec.describe IsoDoc::Iec do
133
125
  always expressed.
134
126
  </p>
135
127
  </div>
136
- <div id='_be9158af-7e93-4ee2-90c5-26d31c181935' class='formula'>
128
+ </div>
129
+ <div id='_be9158af-7e93-4ee2-90c5-26d31c181935'><div class='formula'>
137
130
  <p class='formula'>
138
131
  <span style='mso-tab-count:1'>&#160; </span>
139
132
  <span class='stem'>(#(r = 1 %)#)</span>
@@ -141,6 +134,7 @@ RSpec.describe IsoDoc::Iec do
141
134
  (1)
142
135
  </p>
143
136
  </div>
137
+ </div>
144
138
  </div>
145
139
  <p>&#160;</p>
146
140
  </div>
@@ -148,7 +142,7 @@ RSpec.describe IsoDoc::Iec do
148
142
  <br clear='all' class='section'/>
149
143
  </p>
150
144
  <div class='WordSection3'>
151
- #{IEC_TITLE}
145
+ #{IEC_TITLE1}
152
146
  </div>
153
147
  <br clear='all' style='page-break-before:left;mso-break-type:section-break'/>
154
148
  <div class='colophon'/>
@@ -85,7 +85,7 @@ RSpec.describe IsoDoc do
85
85
  </div>
86
86
  <p>This is patent boilerplate</p>
87
87
  </div>
88
- #{IEC_TITLE}
88
+ #{IEC_TITLE1}
89
89
  <div id="D">
90
90
  <h1>1&#160; Scope</h1>
91
91
  <p id="E">Text</p>
@@ -229,7 +229,7 @@ RSpec.describe IsoDoc do
229
229
  </div>
230
230
  <p>This is patent boilerplate</p>
231
231
  </div>
232
- #{IEC_TITLE}
232
+ #{IEC_TITLE1}
233
233
  <div id="D">
234
234
  <h1>1&#160; Scope</h1>
235
235
  <p id="E">Text</p>
@@ -374,7 +374,7 @@ RSpec.describe IsoDoc do
374
374
  </div>
375
375
  <p>This is patent boilerplate</p>
376
376
  </div>
377
- #{IEC_TITLE.sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "COMMISSION ELECTROTECHNIQUE INTERNATIONALE")}
377
+ #{IEC_TITLE1}
378
378
  <div id="D">
379
379
  <h1>1&#160; Domaine d'application</h1>
380
380
  <p id="E">Text</p>
@@ -529,7 +529,7 @@ RSpec.describe IsoDoc do
529
529
  </div>
530
530
  <p>This is patent boilerplate</p>
531
531
  </div>
532
- #{IEC_TITLE.sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "&#22269;&#38469;&#30005;&#24037;&#22996;&#21592;&#20250;")}
532
+ #{IEC_TITLE1}
533
533
  <div id="D">
534
534
  <h1>1&#160; &#33539;&#22260;</h1>
535
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>
@@ -122,7 +122,7 @@ 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>
@@ -141,7 +141,7 @@ OUTPUT
141
141
  expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
142
142
  <iso-standard xmlns="http://riboseinc.com/isoxml">
143
143
  <bibdata type='standard'>
144
- <docidentifier type='iso'>IEC 60050-192 ED 1</docidentifier>
144
+ <docidentifier type='ISO'>IEC 60050-192 ED 1</docidentifier>
145
145
  <docnumber>60050</docnumber>
146
146
  </bibdata>
147
147
  <sections>
@@ -198,7 +198,7 @@ INPUT
198
198
  <h1 class='ForewordTitle'>FOREWORD</h1>
199
199
  <div class='boilerplate_legal'/>
200
200
  </div>
201
- #{IEC_TITLE}
201
+ #{IEC_TITLE1}
202
202
  <div id='_terms_and_definitions'>
203
203
  <h1>1&#160; Terms and definitions</h1>
204
204
  <br/>
@@ -248,14 +248,14 @@ INPUT
248
248
  <li>A</li>
249
249
  </ul>
250
250
  </div>
251
- <div class='Note'>
251
+ <div class='Note' id='_671a1994-4783-40d0-bc81-987d06ffb74e'>
252
252
  <p>
253
253
  Note 1 to entry: The starch of waxy rice consists almost entirely
254
254
  of amylopectin. The kernels have a tendency to stick together
255
255
  after cooking.
256
256
  </p>
257
257
  </div>
258
- <div class='Note'>
258
+ <div class='Note' id='_671a1994-4783-40d0-bc81-987d06ffb74f'>
259
259
  <p>
260
260
  Note 2 to entry:
261
261
  <ul>
@@ -286,7 +286,7 @@ end
286
286
  IsoDoc::Iec::WordConvert.new({}).convert("test", <<~"INPUT", false)
287
287
  <iso-standard xmlns="http://riboseinc.com/isoxml">
288
288
  <bibdata type='standard'>
289
- <docidentifier type='iso'>IEC 60050-192 ED 1</docidentifier>
289
+ <docidentifier type='ISO'>IEC 60050-192 ED 1</docidentifier>
290
290
  <docnumber>60050</docnumber>
291
291
  </bibdata>
292
292
  <sections>
@@ -312,9 +312,6 @@ end
312
312
  sub(%r{<br clear="all" style="page-break-before:left;mso-break-type:section-break"/>.*$}m, "")
313
313
  expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
314
314
  <div class='WordSection3'>
315
- <p class='zzSTDTitle1'>INTERNATIONAL ELECTROTECHNICAL COMMISSION</p>
316
- <p class='zzSTDTitle1'>____________</p>
317
- <p class='zzSTDTitle1'>&#xA0;</p>
318
315
  <p class='zzSTDTitle1'>
319
316
  <b/>
320
317
  </p>
@@ -24,7 +24,7 @@ RSpec.describe IsoDoc do
24
24
  <a id="H"/> <br/>
25
25
  </p>
26
26
  </div>
27
- #{IEC_TITLE}
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
- #{IEC_TITLE}
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">&lt;barry fred="http://example.com"&gt;example&lt;/barry&gt;</b></para>
83
83
  </p>
84
84
  </div>
85
- #{IEC_TITLE}
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
- #{IEC_TITLE}
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
- #{IEC_TITLE}
145
+ #{IEC_TITLE1}
146
146
  </div>
147
147
  </body>
148
148
  </html>
@@ -182,7 +182,7 @@ RSpec.describe IsoDoc do
182
182
  <a href="#ISO712">A</a>
183
183
  </p>
184
184
  </div>
185
- #{IEC_TITLE}
185
+ #{IEC_TITLE1}
186
186
  <div>
187
187
  <h1>1&#160; Normative references</h1>
188
188
  <p id="ISO712" class="NormRef">ISO 712, <i> Cereals and cereal products</i></p>
@@ -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
- #{IEC_TITLE}
251
+ #{IEC_TITLE1}
252
252
  <div>
253
253
  <h1>1&#160; Normative references</h1>
254
- <p id="ISO712" class="NormRef">ISO 712, <i> Cereals and cereal products</i></p>
254
+ <p id="ISO712" class="NormRef">ISO 712, <i>Cereals and cereal products</i></p>
255
255
  </div>
256
256
  </div>
257
257
  </body>