metanorma-iec 1.0.6 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/macos.yml +8 -1
  3. data/.github/workflows/ubuntu.yml +20 -7
  4. data/.github/workflows/windows.yml +8 -1
  5. data/lib/asciidoctor/iec/biblio.rng +36 -6
  6. data/lib/asciidoctor/iec/converter.rb +8 -0
  7. data/lib/asciidoctor/iec/front.rb +2 -2
  8. data/lib/asciidoctor/iec/isodoc.rng +444 -1
  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 +21 -37
  12. data/lib/isodoc/iec/html/isodoc.scss +15 -9
  13. data/lib/isodoc/iec/html/scripts.html +18 -0
  14. data/lib/isodoc/iec/html/wordstyle.scss +0 -3
  15. data/lib/isodoc/iec/iec.international-standard.xsl +1346 -608
  16. data/lib/isodoc/iec/pdf_convert.rb +2 -12
  17. data/lib/isodoc/iec/presentation_xml_convert.rb +10 -0
  18. data/lib/isodoc/iec/word_convert.rb +19 -8
  19. data/lib/isodoc/iec/xref.rb +45 -0
  20. data/lib/metanorma-iec.rb +2 -0
  21. data/lib/metanorma/iec/processor.rb +11 -9
  22. data/lib/metanorma/iec/version.rb +1 -1
  23. data/metanorma-iec.gemspec +2 -2
  24. data/spec/asciidoctor-iec/base_spec.rb +7 -6
  25. data/spec/asciidoctor-iec/cleanup_spec.rb +1 -1
  26. data/spec/asciidoctor-iec/iev_spec.rb +2 -2
  27. data/spec/isodoc/blocks_spec.rb +154 -0
  28. data/spec/isodoc/i18n_spec.rb +4 -4
  29. data/spec/isodoc/iev_spec.rb +11 -10
  30. data/spec/isodoc/inline_spec.rb +9 -9
  31. data/spec/isodoc/iso_spec.rb +4 -4
  32. data/spec/isodoc/metadata_spec.rb +90 -7
  33. data/spec/isodoc/postproc_spec.rb +3 -3
  34. data/spec/isodoc/ref_spec.rb +249 -0
  35. data/spec/isodoc/section_spec.rb +46 -9
  36. data/spec/isodoc/terms_spec.rb +10 -12
  37. data/spec/metanorma/processor_spec.rb +2 -5
  38. data/spec/spec_helper.rb +7 -0
  39. metadata +14 -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
 
@@ -137,6 +137,9 @@ module IsoDoc
137
137
  docxml.xpath("//h1[not(@class)]").each do |h1|
138
138
  h1["class"] = "main"
139
139
  end
140
+ docxml.xpath("//h1[@class = 'Section3']").each do |h1|
141
+ h1["class"] = "main"
142
+ end
140
143
  end
141
144
 
142
145
  # Incredibly, the numbered boilerplate list in IEC is NOT A LIST,
@@ -160,15 +163,23 @@ module IsoDoc
160
163
  def make_body1(body, _docxml)
161
164
  end
162
165
 
163
- #def make_body2(body, docxml)
164
- #FileUtils.rm_rf tmpimagedir
165
- #FileUtils.mkdir tmpimagedir
166
- #super
167
- #end
168
-
169
166
  def word_cover(docxml)
170
167
  end
171
168
 
169
+ def formula_parse1(node, out)
170
+ out.div **attr_code(class: "formula") do |div|
171
+ div.p **attr_code(class: "formula") do |p|
172
+ insert_tab(div, 1)
173
+ parse(node.at(ns("./stem")), div)
174
+ lbl = @xrefs.anchor(node['id'], :label, false)
175
+ unless lbl.nil?
176
+ insert_tab(div, 1)
177
+ div << "(#{lbl})"
178
+ end
179
+ end
180
+ end
181
+ end
182
+
172
183
  include BaseConvert
173
184
  end
174
185
  end
@@ -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"
@@ -3,7 +3,11 @@ require "metanorma/processor"
3
3
  module Metanorma
4
4
  module Iec
5
5
  def self.fonts_used
6
- ["Arial", "Times New Roman", "HanSans", "Courier New"]
6
+ {
7
+ html: ["Arial", "Times New Roman", "HanSans", "Courier New"],
8
+ doc: ["Arial", "Times New Roman", "HanSans", "Courier New"],
9
+ pdf: ["Arial", "Times New Roman", "HanSans", "Courier New"],
10
+ }
7
11
  end
8
12
 
9
13
  class Processor < Metanorma::Processor
@@ -26,18 +30,16 @@ module Metanorma
26
30
  "Metanorma::Iec #{Metanorma::Iec::VERSION}"
27
31
  end
28
32
 
29
- def input_to_isodoc(file, filename)
30
- Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend)
31
- end
32
-
33
- def output(isodoc_node, outname, format, options={})
33
+ def output(isodoc_node, inname, outname, format, options={})
34
34
  case format
35
35
  when :html
36
- IsoDoc::Iec::HtmlConvert.new(options).convert(outname, isodoc_node)
36
+ IsoDoc::Iec::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname)
37
37
  when :doc
38
- IsoDoc::Iec::WordConvert.new(options).convert(outname, isodoc_node)
38
+ IsoDoc::Iec::WordConvert.new(options).convert(inname, isodoc_node, nil, outname)
39
39
  when :pdf
40
- 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)
41
43
  else
42
44
  super
43
45
  end
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "1.0.6"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
6
6
 
@@ -28,8 +28,8 @@ 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
35
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
@@ -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"/>
@@ -185,11 +185,12 @@ RSpec.describe Asciidoctor::Iec do
185
185
  :publisher: IEC,IETF,ISO
186
186
  :copyright-year: 2001
187
187
  :docstage: A2CD
188
+ :doctype: technical-specification
188
189
  INPUT
189
190
  <?xml version="1.0" encoding="UTF-8"?>
190
191
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
191
192
  <bibdata type="standard">
192
- <docidentifier type="iso">ISO/IEC/IETF/2CD 1000-1-1 ED 1</docidentifier>
193
+ <docidentifier type="ISO">ISO/IEC/IETF/2CDTS 1000-1-1 ED 1</docidentifier>
193
194
  <docidentifier type="iso-tc">2000</docidentifier>
194
195
  <docnumber>1000</docnumber>
195
196
  <contributor>
@@ -266,7 +267,7 @@ RSpec.describe Asciidoctor::Iec do
266
267
  </owner>
267
268
  </copyright>
268
269
  <ext>
269
- <doctype>article</doctype>
270
+ <doctype>technical-specification</doctype>
270
271
  <editorialgroup>
271
272
  <technical-committee/>
272
273
  <subcommittee/>
@@ -337,7 +338,7 @@ RSpec.describe Asciidoctor::Iec do
337
338
  INPUT
338
339
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
339
340
  <bibdata type="standard">
340
- <docidentifier type="iso">IEC/FDIS 1000 ED 1</docidentifier>
341
+ <docidentifier type="ISO">IEC/FDIS 1000 ED 1</docidentifier>
341
342
  <docnumber>1000</docnumber>
342
343
  <contributor>
343
344
  <role type="author"/>
@@ -401,7 +402,7 @@ OUTPUT
401
402
  INPUT
402
403
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
403
404
  <bibdata type="standard">
404
- <docidentifier type="iso">IEC 1000 ED 1</docidentifier>
405
+ <docidentifier type="ISO">IEC 1000 ED 1</docidentifier>
405
406
  <docnumber>1000</docnumber>
406
407
  <contributor>
407
408
  <role type="author"/>
@@ -466,7 +467,7 @@ OUTPUT
466
467
  INPUT
467
468
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
468
469
  <bibdata type="standard">
469
- <docidentifier type="iso">IEC 1000 ED 1</docidentifier>
470
+ <docidentifier type="ISO">IEC 1000 ED 1</docidentifier>
470
471
  <docnumber>1000</docnumber>
471
472
  <contributor>
472
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'/>
@@ -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
@@ -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">