metanorma-iec 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/iec/biblio.rng +13 -3
- data/lib/asciidoctor/iec/converter.rb +3 -0
- data/lib/asciidoctor/iec/front.rb +1 -1
- data/lib/asciidoctor/iec/isodoc.rng +17 -1
- data/lib/asciidoctor/iec/isostandard.rng +7 -1
- data/lib/isodoc/iec/base_convert.rb +40 -1
- data/lib/isodoc/iec/html/isodoc.scss +15 -9
- data/lib/isodoc/iec/html/wordstyle.scss +0 -3
- data/lib/isodoc/iec/iec.international-standard.xsl +354 -190
- data/lib/isodoc/iec/word_convert.rb +17 -6
- data/lib/metanorma/iec/version.rb +1 -1
- data/spec/asciidoctor-iec/base_spec.rb +3 -2
- data/spec/isodoc/blocks_spec.rb +160 -0
- data/spec/isodoc/iev_spec.rb +4 -0
- data/spec/isodoc/metadata_spec.rb +88 -5
- data/spec/isodoc/ref_spec.rb +249 -0
- data/spec/isodoc/section_spec.rb +38 -1
- metadata +4 -2
data/spec/isodoc/section_spec.rb
CHANGED
@@ -307,6 +307,43 @@ OUTPUT
|
|
307
307
|
OUTPUT
|
308
308
|
end
|
309
309
|
|
310
|
+
it "processes subclauses with and without titles" do
|
311
|
+
expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
312
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
313
|
+
<sections>
|
314
|
+
<clause id="D" obligation="normative">
|
315
|
+
<title>Scope</title>
|
316
|
+
<clause id="D1" obligation="normative">
|
317
|
+
<title>Scope 1</title>
|
318
|
+
</clause>
|
319
|
+
<clause id="D2" obligation="normative">
|
320
|
+
</clause>
|
321
|
+
</clause>
|
322
|
+
</sections>
|
323
|
+
</iso-standard>
|
324
|
+
INPUT
|
325
|
+
#{HTML_HDR}
|
326
|
+
<div id=''>
|
327
|
+
<h1 class='ForewordTitle'>FOREWORD</h1>
|
328
|
+
<div class='boilerplate_legal'/>
|
329
|
+
</div>
|
330
|
+
#{IEC_TITLE}
|
331
|
+
<div id='D'>
|
332
|
+
<h1>1  Scope</h1>
|
333
|
+
<div id='D1'>
|
334
|
+
<h2>1.1  Scope 1</h2>
|
335
|
+
</div>
|
336
|
+
<div id='D2'>
|
337
|
+
<h2>1.2  </h2>
|
338
|
+
</div>
|
339
|
+
</div>
|
340
|
+
</div>
|
341
|
+
</body>
|
342
|
+
</html>
|
343
|
+
OUTPUT
|
344
|
+
end
|
345
|
+
|
346
|
+
|
310
347
|
it "processes simple terms & definitions" do
|
311
348
|
expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
312
349
|
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
@@ -361,7 +398,7 @@ OUTPUT
|
|
361
398
|
<h2>1.1  Introduction</h2>
|
362
399
|
</div>
|
363
400
|
<div id="O">
|
364
|
-
<span class="zzMoveToFollowing"><b>1.2  Clause 4.2 </b></span>
|
401
|
+
<span class="zzMoveToFollowing"><b>1.2  Clause 4.2  </b></span>
|
365
402
|
</div>
|
366
403
|
</div>
|
367
404
|
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-jing
|
@@ -273,12 +273,14 @@ files:
|
|
273
273
|
- spec/examples/rice_img/rice_image3_1.png
|
274
274
|
- spec/examples/rice_img/rice_image3_2.png
|
275
275
|
- spec/examples/rice_img/rice_image3_3.png
|
276
|
+
- spec/isodoc/blocks_spec.rb
|
276
277
|
- spec/isodoc/i18n_spec.rb
|
277
278
|
- spec/isodoc/iev_spec.rb
|
278
279
|
- spec/isodoc/inline_spec.rb
|
279
280
|
- spec/isodoc/iso_spec.rb
|
280
281
|
- spec/isodoc/metadata_spec.rb
|
281
282
|
- spec/isodoc/postproc_spec.rb
|
283
|
+
- spec/isodoc/ref_spec.rb
|
282
284
|
- spec/isodoc/section_spec.rb
|
283
285
|
- spec/isodoc/terms_spec.rb
|
284
286
|
- spec/metanorma/processor_spec.rb
|