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.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +0 -1
- data/.github/workflows/ubuntu.yml +10 -7
- data/.github/workflows/windows.yml +0 -1
- data/Rakefile +2 -0
- data/lib/asciidoctor/iec/biblio.rng +1 -1
- data/lib/asciidoctor/iec/converter.rb +5 -0
- data/lib/asciidoctor/iec/front.rb +1 -1
- data/lib/asciidoctor/iec/isodoc.rng +427 -0
- data/lib/asciidoctor/iec/isostandard.rng +3 -0
- data/lib/asciidoctor/iec/reqt.rng +23 -0
- data/lib/isodoc/iec/base_convert.rb +10 -65
- data/lib/isodoc/iec/html/htmlstyle.css +962 -0
- data/lib/isodoc/iec/html/htmlstyle.scss +0 -3
- data/lib/isodoc/iec/html/isodoc.css +845 -0
- data/lib/isodoc/iec/html/isodoc.scss +0 -1
- data/lib/isodoc/iec/html/wordstyle.css +2013 -0
- data/lib/isodoc/iec/html/wordstyle.scss +0 -1
- data/lib/isodoc/iec/iec.international-standard.xsl +1130 -524
- 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 +4 -4
- data/lib/isodoc/iec/xref.rb +45 -0
- data/lib/metanorma-iec.rb +2 -0
- data/lib/metanorma/iec/processor.rb +6 -8
- data/lib/metanorma/iec/version.rb +1 -1
- data/metanorma-iec.gemspec +3 -2
- data/spec/asciidoctor-iec/base_spec.rb +5 -5
- data/spec/asciidoctor-iec/cleanup_spec.rb +1 -1
- data/spec/asciidoctor-iec/iev_spec.rb +2 -2
- data/spec/isodoc/blocks_spec.rb +12 -18
- data/spec/isodoc/i18n_spec.rb +4 -4
- data/spec/isodoc/iev_spec.rb +7 -10
- data/spec/isodoc/inline_spec.rb +9 -9
- data/spec/isodoc/iso_spec.rb +4 -4
- data/spec/isodoc/metadata_spec.rb +2 -2
- data/spec/isodoc/postproc_spec.rb +3 -3
- data/spec/isodoc/ref_spec.rb +5 -5
- data/spec/isodoc/section_spec.rb +9 -9
- data/spec/isodoc/terms_spec.rb +10 -12
- data/spec/metanorma/processor_spec.rb +2 -5
- data/spec/spec_helper.rb +7 -0
- metadata +29 -11
@@ -13,18 +13,8 @@ module IsoDoc
|
|
13
13
|
super
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
17
|
-
|
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
|
@@ -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'> </span>TOC
|
50
|
-
\\h \\z \\t "TableTitle,
|
50
|
+
\\h \\z \\t "TableTitle,tabletitle" <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'> </span>TOC
|
58
|
-
\\h \\z \\t "FigureTitle,
|
58
|
+
\\h \\z \\t "FigureTitle,figuretitle" <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(
|
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
|
data/lib/metanorma-iec.rb
CHANGED
@@ -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
|
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(
|
36
|
+
IsoDoc::Iec::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
41
37
|
when :doc
|
42
|
-
IsoDoc::Iec::WordConvert.new(options).convert(
|
38
|
+
IsoDoc::Iec::WordConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
43
39
|
when :pdf
|
44
|
-
IsoDoc::Iec::PdfConvert.new(options).convert(
|
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
|
data/metanorma-iec.gemspec
CHANGED
@@ -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.
|
32
|
-
spec.add_dependency "metanorma-iso", "~> 1.
|
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="
|
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="
|
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="
|
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="
|
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="
|
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><
|
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='
|
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='
|
101
|
+
<docidentifier type='ISO'>IEC 60050 ED 1</docidentifier>
|
102
102
|
<docnumber>60050</docnumber>
|
103
103
|
<contributor>
|
104
104
|
<role type='author'/>
|
data/spec/isodoc/blocks_spec.rb
CHANGED
@@ -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
|
-
#{
|
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
|
-
#{
|
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'>  </span>
|
111
111
|
<span class='stem'>(#(r = 1 %)#)</span>
|
112
112
|
</p>
|
113
113
|
</div>
|
114
|
-
<
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
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
|
-
|
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'>  </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> </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
|
-
#{
|
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'/>
|
data/spec/isodoc/i18n_spec.rb
CHANGED
@@ -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>
|
@@ -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>
|
@@ -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>
|
@@ -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>
|
@@ -122,7 +122,7 @@ 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>
|
@@ -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='
|
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
|
-
#{
|
201
|
+
#{IEC_TITLE1}
|
202
202
|
<div id='_terms_and_definitions'>
|
203
203
|
<h1>1  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='
|
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'> </p>
|
318
315
|
<p class='zzSTDTitle1'>
|
319
316
|
<b/>
|
320
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>
|
@@ -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>
|
@@ -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>
|