metanorma-iec 0.0.7 → 0.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/basicdoc.rng +12 -1
- data/lib/asciidoctor/iec/biblio.rng +1 -0
- data/lib/asciidoctor/iec/isodoc.rng +5 -1
- data/lib/asciidoctor/iec/isostandard.rng +12 -0
- data/lib/isodoc/iec/html/isodoc.scss +2 -0
- data/lib/metanorma/iec/version.rb +1 -1
- data/spec/isodoc/i18n_spec.rb +32 -32
- data/spec/isodoc/postproc_spec.rb +2 -78
- data/spec/isodoc/section_spec.rb +18 -18
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14a50dc2b32c18cafc49d34bddf3378697c0bfd3a131a23ac4ef935ccffb98f2
|
4
|
+
data.tar.gz: 4cfeb4b2913e5da41d5ca6606860f8659e33bd803768fd506afc948673c91489
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22d3339a212d87f8e7d193e99e0ee472369d9f40b74c1c836db35a55a84ac7f75bfbf39a965c8ee5e0ee803ac2ffac37023dadc6c41f201d0d954dbb807fdf5b
|
7
|
+
data.tar.gz: 7d77e83db7fba2a0de7b4af8aae779f815c36ae23b5fa0ce39a049d1e60239497dfc82fb888978e97e338e758cc4c01727990aef849e225c063bbb152bea4a8c
|
@@ -336,7 +336,9 @@
|
|
336
336
|
</define>
|
337
337
|
<define name="tname">
|
338
338
|
<element name="name">
|
339
|
-
<
|
339
|
+
<oneOrMore>
|
340
|
+
<ref name="PureTextElement"/>
|
341
|
+
</oneOrMore>
|
340
342
|
</element>
|
341
343
|
</define>
|
342
344
|
<define name="tclass">
|
@@ -812,6 +814,9 @@
|
|
812
814
|
<optional>
|
813
815
|
<attribute name="alt"/>
|
814
816
|
</optional>
|
817
|
+
<optional>
|
818
|
+
<attribute name="title"/>
|
819
|
+
</optional>
|
815
820
|
<optional>
|
816
821
|
<attribute name="longdesc">
|
817
822
|
<data type="anyURI"/>
|
@@ -850,6 +855,9 @@
|
|
850
855
|
<optional>
|
851
856
|
<attribute name="alt"/>
|
852
857
|
</optional>
|
858
|
+
<optional>
|
859
|
+
<attribute name="title"/>
|
860
|
+
</optional>
|
853
861
|
<optional>
|
854
862
|
<attribute name="longdesc">
|
855
863
|
<data type="anyURI"/>
|
@@ -875,6 +883,9 @@
|
|
875
883
|
<optional>
|
876
884
|
<attribute name="alt"/>
|
877
885
|
</optional>
|
886
|
+
<optional>
|
887
|
+
<attribute name="title"/>
|
888
|
+
</optional>
|
878
889
|
<optional>
|
879
890
|
<attribute name="longdesc">
|
880
891
|
<data type="anyURI"/>
|
@@ -252,7 +252,11 @@
|
|
252
252
|
</zeroOrMore>
|
253
253
|
</group>
|
254
254
|
<oneOrMore>
|
255
|
-
<
|
255
|
+
<choice>
|
256
|
+
<ref name="clause-subsection"/>
|
257
|
+
<ref name="terms"/>
|
258
|
+
<ref name="definitions"/>
|
259
|
+
</choice>
|
256
260
|
</oneOrMore>
|
257
261
|
</choice>
|
258
262
|
</define>
|
@@ -215,8 +215,14 @@
|
|
215
215
|
<optional>
|
216
216
|
<ref name="section-title"/>
|
217
217
|
</optional>
|
218
|
+
<zeroOrMore>
|
219
|
+
<ref name="BasicBlock"/>
|
220
|
+
</zeroOrMore>
|
218
221
|
<zeroOrMore>
|
219
222
|
<ref name="bibitem"/>
|
223
|
+
<zeroOrMore>
|
224
|
+
<ref name="note"/>
|
225
|
+
</zeroOrMore>
|
220
226
|
</zeroOrMore>
|
221
227
|
<zeroOrMore>
|
222
228
|
<ref name="references"/>
|
@@ -244,6 +250,9 @@
|
|
244
250
|
</choice>
|
245
251
|
</attribute>
|
246
252
|
</optional>
|
253
|
+
<zeroOrMore>
|
254
|
+
<ref name="BasicBlock"/>
|
255
|
+
</zeroOrMore>
|
247
256
|
<ref name="dl"/>
|
248
257
|
</element>
|
249
258
|
</define>
|
@@ -271,6 +280,9 @@
|
|
271
280
|
<optional>
|
272
281
|
<ref name="section-title"/>
|
273
282
|
</optional>
|
283
|
+
<zeroOrMore>
|
284
|
+
<ref name="BasicBlock"/>
|
285
|
+
</zeroOrMore>
|
274
286
|
<choice>
|
275
287
|
<oneOrMore>
|
276
288
|
<ref name="term"/>
|
@@ -594,6 +594,8 @@ table.MsoISOTable td
|
|
594
594
|
{border:solid windowtext 1pt;
|
595
595
|
mso-border-alt:solid windowtext 1pt;
|
596
596
|
padding:0cm 2.85pt 0cm 2.85pt;}
|
597
|
+
table.MsoISOTable p
|
598
|
+
{font-size:10.0pt; }
|
597
599
|
table.MsoTableGrid
|
598
600
|
{mso-style-name:"Table Grid";
|
599
601
|
mso-tstyle-rowband-size:0;
|
data/spec/isodoc/i18n_spec.rb
CHANGED
@@ -81,7 +81,7 @@ RSpec.describe IsoDoc do
|
|
81
81
|
<br/>
|
82
82
|
<div class="Section3" id="B">
|
83
83
|
<h1 class="IntroTitle">0  INTRODUCTION</h1>
|
84
|
-
<div id="C"><h2>0.1 Introduction Subsection</h2>
|
84
|
+
<div id="C"><h2>0.1  Introduction Subsection</h2>
|
85
85
|
|
86
86
|
</div>
|
87
87
|
<p>This is patent boilerplate</p>
|
@@ -95,12 +95,12 @@ RSpec.describe IsoDoc do
|
|
95
95
|
<h1>2  Normative references</h1>
|
96
96
|
</div>
|
97
97
|
<div id="H"><h1>3  Terms, definitions, symbols and abbreviated terms</h1>
|
98
|
-
<div id="I"><h2>3.1 Normal Terms</h2>
|
98
|
+
<div id="I"><h2>3.1  Normal Terms</h2>
|
99
99
|
|
100
100
|
<p class="TermNum" id="J">3.1.1</p>
|
101
101
|
<p class="Terms" style="text-align:left;">Term2</p>
|
102
102
|
|
103
|
-
</div><div id="K"><h2>3.2 Symbols and abbreviated terms</h2>
|
103
|
+
</div><div id="K"><h2>3.2  Symbols and abbreviated terms</h2>
|
104
104
|
<dl><dt><p>Symbol</p></dt><dd>Definition</dd></dl>
|
105
105
|
</div></div>
|
106
106
|
<div id="L" class="Symbols">
|
@@ -114,23 +114,23 @@ RSpec.describe IsoDoc do
|
|
114
114
|
</div>
|
115
115
|
<div id="M">
|
116
116
|
<h1>5  Clause 4</h1>
|
117
|
-
<div id="N"><h2>5.1 Introduction</h2>
|
117
|
+
<div id="N"><h2>5.1  Introduction</h2>
|
118
118
|
|
119
119
|
</div>
|
120
|
-
<div id="O"><h2>5.2 Clause 4.2</h2>
|
120
|
+
<div id="O"><h2>5.2  Clause 4.2</h2>
|
121
121
|
|
122
122
|
</div>
|
123
123
|
</div>
|
124
124
|
<br/>
|
125
125
|
<div id="P" class="Section3">
|
126
126
|
<h1 class="Annex"><b>Annex A</b><br/><br/>(normative)<br/><br/><b>Annex</b></h1>
|
127
|
-
<div id="Q"><h2>A.1 Annex A.1</h2>
|
127
|
+
<div id="Q"><h2>A.1  Annex A.1</h2>
|
128
128
|
|
129
|
-
<div id="Q1"><h3>A.1.1 Annex A.1a</h3>
|
129
|
+
<div id="Q1"><h3>A.1.1  Annex A.1a</h3>
|
130
130
|
|
131
131
|
</div>
|
132
132
|
</div>
|
133
|
-
<div id="Q2"><h2>Appendix 1 An Appendix</h2>
|
133
|
+
<div id="Q2"><h2>Appendix 1  An Appendix</h2>
|
134
134
|
|
135
135
|
</div>
|
136
136
|
</div>
|
@@ -227,7 +227,7 @@ RSpec.describe IsoDoc do
|
|
227
227
|
<br/>
|
228
228
|
<div class="Section3" id="B">
|
229
229
|
<h1 class="IntroTitle">0  INTRODUCTION</h1>
|
230
|
-
<div id="C"><h2>0.1 Introduction Subsection</h2>
|
230
|
+
<div id="C"><h2>0.1  Introduction Subsection</h2>
|
231
231
|
|
232
232
|
</div>
|
233
233
|
<p>This is patent boilerplate</p>
|
@@ -241,12 +241,12 @@ RSpec.describe IsoDoc do
|
|
241
241
|
<h1>2  Normative references</h1>
|
242
242
|
</div>
|
243
243
|
<div id="H"><h1>3  Terms, definitions, symbols and abbreviated terms</h1>
|
244
|
-
<div id="I"><h2>3.1 Normal Terms</h2>
|
244
|
+
<div id="I"><h2>3.1  Normal Terms</h2>
|
245
245
|
|
246
246
|
<p class="TermNum" id="J">3.1.1</p>
|
247
247
|
<p class="Terms" style="text-align:left;">Term2</p>
|
248
248
|
|
249
|
-
</div><div id="K"><h2>3.2 Symbols and abbreviated terms</h2>
|
249
|
+
</div><div id="K"><h2>3.2  Symbols and abbreviated terms</h2>
|
250
250
|
<dl><dt><p>Symbol</p></dt><dd>Definition</dd></dl>
|
251
251
|
</div></div>
|
252
252
|
<div id="L" class="Symbols">
|
@@ -260,23 +260,23 @@ RSpec.describe IsoDoc do
|
|
260
260
|
</div>
|
261
261
|
<div id="M">
|
262
262
|
<h1>5  Clause 4</h1>
|
263
|
-
<div id="N"><h2>5.1 Introduction</h2>
|
263
|
+
<div id="N"><h2>5.1  Introduction</h2>
|
264
264
|
|
265
265
|
</div>
|
266
|
-
<div id="O"><h2>5.2 Clause 4.2</h2>
|
266
|
+
<div id="O"><h2>5.2  Clause 4.2</h2>
|
267
267
|
|
268
268
|
</div>
|
269
269
|
</div>
|
270
270
|
<br/>
|
271
271
|
<div id="P" class="Section3">
|
272
272
|
<h1 class="Annex"><b>Annex A</b><br/><br/>(normative)<br/><br/><b>Annex</b></h1>
|
273
|
-
<div id="Q"><h2>A.1 Annex A.1</h2>
|
273
|
+
<div id="Q"><h2>A.1  Annex A.1</h2>
|
274
274
|
|
275
|
-
<div id="Q1"><h3>A.1.1 Annex A.1a</h3>
|
275
|
+
<div id="Q1"><h3>A.1.1  Annex A.1a</h3>
|
276
276
|
|
277
277
|
</div>
|
278
278
|
</div>
|
279
|
-
<div id="Q2"><h2>Appendix 1 An Appendix</h2>
|
279
|
+
<div id="Q2"><h2>Appendix 1  An Appendix</h2>
|
280
280
|
|
281
281
|
</div>
|
282
282
|
</div>
|
@@ -374,7 +374,7 @@ RSpec.describe IsoDoc do
|
|
374
374
|
<br/>
|
375
375
|
<div class="Section3" id="B">
|
376
376
|
<h1 class="IntroTitle">0  INTRODUCTION</h1>
|
377
|
-
<div id="C"><h2>0.1 Introduction Subsection</h2>
|
377
|
+
<div id="C"><h2>0.1  Introduction Subsection</h2>
|
378
378
|
|
379
379
|
</div>
|
380
380
|
<p>This is patent boilerplate</p>
|
@@ -388,12 +388,12 @@ RSpec.describe IsoDoc do
|
|
388
388
|
<h1>2  Références normatives</h1>
|
389
389
|
</div>
|
390
390
|
<div id="H"><h1>3  Terms, définitions, symboles et termes abrégés</h1>
|
391
|
-
<div id="I"><h2>3.1 Normal Terms</h2>
|
391
|
+
<div id="I"><h2>3.1  Normal Terms</h2>
|
392
392
|
|
393
393
|
<p class="TermNum" id="J">3.1.1</p>
|
394
394
|
<p class="Terms" style="text-align:left;">Term2</p>
|
395
395
|
|
396
|
-
</div><div id="K"><h2>3.2 Symboles et termes abrégés</h2>
|
396
|
+
</div><div id="K"><h2>3.2  Symboles et termes abrégés</h2>
|
397
397
|
<dl><dt><p>Symbol</p></dt><dd>Definition</dd></dl>
|
398
398
|
</div></div>
|
399
399
|
<div id="L" class="Symbols">
|
@@ -407,23 +407,23 @@ RSpec.describe IsoDoc do
|
|
407
407
|
</div>
|
408
408
|
<div id="M">
|
409
409
|
<h1>5  Clause 4</h1>
|
410
|
-
<div id="N"><h2>5.1 Introduction</h2>
|
410
|
+
<div id="N"><h2>5.1  Introduction</h2>
|
411
411
|
|
412
412
|
</div>
|
413
|
-
<div id="O"><h2>5.2 Clause 4.2</h2>
|
413
|
+
<div id="O"><h2>5.2  Clause 4.2</h2>
|
414
414
|
|
415
415
|
</div>
|
416
416
|
</div>
|
417
417
|
<br/>
|
418
418
|
<div id="P" class="Section3">
|
419
419
|
<h1 class="Annex"><b>Annexe A</b><br/><br/>(normative)<br/><br/><b>Annex</b></h1>
|
420
|
-
<div id="Q"><h2>A.1 Annex A.1</h2>
|
420
|
+
<div id="Q"><h2>A.1  Annex A.1</h2>
|
421
421
|
|
422
|
-
<div id="Q1"><h3>A.1.1 Annex A.1a</h3>
|
422
|
+
<div id="Q1"><h3>A.1.1  Annex A.1a</h3>
|
423
423
|
|
424
424
|
</div>
|
425
425
|
</div>
|
426
|
-
<div id="Q2"><h2>Appendice 1 An Appendix</h2>
|
426
|
+
<div id="Q2"><h2>Appendice 1  An Appendix</h2>
|
427
427
|
|
428
428
|
</div>
|
429
429
|
</div>
|
@@ -531,7 +531,7 @@ RSpec.describe IsoDoc do
|
|
531
531
|
<br/>
|
532
532
|
<div class="Section3" id="B">
|
533
533
|
<h1 class="IntroTitle">0  引言</h1>
|
534
|
-
<div id="C"><h2>0.1 Introduction Subsection</h2>
|
534
|
+
<div id="C"><h2>0.1  Introduction Subsection</h2>
|
535
535
|
|
536
536
|
</div>
|
537
537
|
<p>This is patent boilerplate</p>
|
@@ -548,12 +548,12 @@ RSpec.describe IsoDoc do
|
|
548
548
|
<p id="ISO712" class="NormRef">ISO 712, <i> Cereals and cereal products</i></p>
|
549
549
|
</div>
|
550
550
|
<div id="H"><h1>3  术语、定义、符号、代号和缩略语</h1>
|
551
|
-
<div id="I"><h2>3.1 Normal Terms</h2>
|
551
|
+
<div id="I"><h2>3.1  Normal Terms</h2>
|
552
552
|
|
553
553
|
<p class="TermNum" id="J">3.1.1</p>
|
554
554
|
<p class="Terms" style="text-align:left;">Term2</p>
|
555
555
|
|
556
|
-
</div><div id="K"><h2>3.2 符号、代号和缩略语</h2>
|
556
|
+
</div><div id="K"><h2>3.2  符号、代号和缩略语</h2>
|
557
557
|
<dl><dt><p>Symbol</p></dt><dd>Definition</dd></dl>
|
558
558
|
</div></div>
|
559
559
|
<div id="L" class="Symbols">
|
@@ -567,23 +567,23 @@ RSpec.describe IsoDoc do
|
|
567
567
|
</div>
|
568
568
|
<div id="M">
|
569
569
|
<h1>5  Clause 4</h1>
|
570
|
-
<div id="N"><h2>5.1 Introduction</h2>
|
570
|
+
<div id="N"><h2>5.1  Introduction</h2>
|
571
571
|
|
572
572
|
</div>
|
573
|
-
<div id="O"><h2>5.2 Clause 4.2</h2>
|
573
|
+
<div id="O"><h2>5.2  Clause 4.2</h2>
|
574
574
|
|
575
575
|
</div>
|
576
576
|
</div>
|
577
577
|
<br/>
|
578
578
|
<div id="P" class="Section3">
|
579
579
|
<h1 class="Annex">附件A<br/><br/>(规范性附录)<br/><br/><b>Annex</b></h1>
|
580
|
-
<div id="Q"><h2>A.1 Annex A.1</h2>
|
580
|
+
<div id="Q"><h2>A.1  Annex A.1</h2>
|
581
581
|
|
582
|
-
<div id="Q1"><h3>A.1.1 Annex A.1a</h3>
|
582
|
+
<div id="Q1"><h3>A.1.1  Annex A.1a</h3>
|
583
583
|
|
584
584
|
</div>
|
585
585
|
</div>
|
586
|
-
<div id="Q2"><h2>附录1 An Appendix</h2>
|
586
|
+
<div id="Q2"><h2>附录1  An Appendix</h2>
|
587
587
|
|
588
588
|
</div>
|
589
589
|
</div>
|
@@ -91,43 +91,6 @@ RSpec.describe IsoDoc do
|
|
91
91
|
expect(word).to match(/<style>/)
|
92
92
|
end
|
93
93
|
|
94
|
-
it "converts annex subheadings to h2Annex class for Word" do
|
95
|
-
FileUtils.rm_f "test.doc"
|
96
|
-
FileUtils.rm_f "test.html"
|
97
|
-
IsoDoc::Iec::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.css"}).convert("test", <<~"INPUT", false)
|
98
|
-
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
99
|
-
<annex id="P" inline-header="false" obligation="normative">
|
100
|
-
<title>Annex</title>
|
101
|
-
<clause id="Q" inline-header="false" obligation="normative">
|
102
|
-
<title>Annex A.1</title>
|
103
|
-
</clause>
|
104
|
-
<appendix id="Q2" inline-header="false" obligation="normative">
|
105
|
-
<title>An Appendix</title>
|
106
|
-
</appendix>
|
107
|
-
</annex>
|
108
|
-
</iso-standard>
|
109
|
-
INPUT
|
110
|
-
word = File.read("test.doc", encoding: "UTF-8").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
|
111
|
-
sub(%r{<div style="mso-element:footnote-list"/>.*$}m, "")
|
112
|
-
expect(word).to be_equivalent_to <<~"OUTPUT"
|
113
|
-
<div class="WordSection3">
|
114
|
-
#{IEC_TITLE}
|
115
|
-
<p class="MsoNormal"><br clear="all" style="mso-special-character:line-break;page-break-before:always"/></p>
|
116
|
-
<div class="Section3"><a name="P" id="P"></a>
|
117
|
-
<h1 class="Annex"><b>Annex A</b><br/><br/>(normative)<br/><br/><b>Annex</b></h1>
|
118
|
-
<div><a name="Q" id="Q"></a>
|
119
|
-
<p class="h2Annex">A.1 Annex A.1</p>
|
120
|
-
</div>
|
121
|
-
<div><a name="Q2" id="Q2"></a>
|
122
|
-
<p class="h2Annex">Appendix 1 An Appendix</p>
|
123
|
-
</div>
|
124
|
-
</div>
|
125
|
-
</div>
|
126
|
-
<br clear="all" style="page-break-before:left;mso-break-type:section-break"/>
|
127
|
-
<div class="colophon"></div>
|
128
|
-
OUTPUT
|
129
|
-
end
|
130
|
-
|
131
94
|
it "populates Word template with terms reference labels" do
|
132
95
|
FileUtils.rm_f "test.doc"
|
133
96
|
FileUtils.rm_f "test.html"
|
@@ -314,10 +277,10 @@ RSpec.describe IsoDoc do
|
|
314
277
|
</a>
|
315
278
|
<div id="N">
|
316
279
|
|
317
|
-
<h2>1.1 Introduction to this<a rel="footnote" href="#fn:2" epub:type="footnote" id="fnref:2"><sup>2</sup></a></h2>
|
280
|
+
<h2>1.1  Introduction to this<a rel="footnote" href="#fn:2" epub:type="footnote" id="fnref:2"><sup>2</sup></a></h2>
|
318
281
|
</div>
|
319
282
|
<div id="O">
|
320
|
-
<h2>1.2 Clause 4.2</h2>
|
283
|
+
<h2>1.2  Clause 4.2</h2>
|
321
284
|
<p>A<a rel="footnote" href="#fn:2" epub:type="footnote"><sup>2</sup></a></p>
|
322
285
|
</div>
|
323
286
|
</div>
|
@@ -469,45 +432,6 @@ RSpec.describe IsoDoc do
|
|
469
432
|
OUTPUT
|
470
433
|
end
|
471
434
|
|
472
|
-
it "processes figure keys (Word)" do
|
473
|
-
FileUtils.rm_f "test.doc"
|
474
|
-
FileUtils.rm_f "test.html"
|
475
|
-
IsoDoc::Iec::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.css"}).convert("test", <<~"INPUT", false)
|
476
|
-
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
477
|
-
<annex id="P" inline-header="false" obligation="normative">
|
478
|
-
<figure id="samplecode">
|
479
|
-
<p>Hello</p>
|
480
|
-
<p>Key</p>
|
481
|
-
<dl>
|
482
|
-
<dt><p>A</p></dt>
|
483
|
-
<dd><p>B</p></dd>
|
484
|
-
</dl>
|
485
|
-
</figure>
|
486
|
-
</annex>
|
487
|
-
</iso-standard>
|
488
|
-
INPUT
|
489
|
-
word = File.read("test.doc", encoding: "UTF-8").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
|
490
|
-
sub(%r{<div style="mso-element:footnote-list"/>.*$}m, "")
|
491
|
-
expect(word).to be_equivalent_to <<~"OUTPUT"
|
492
|
-
<div class="WordSection3">
|
493
|
-
#{IEC_TITLE}
|
494
|
-
<p class="MsoNormal">
|
495
|
-
<br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
|
496
|
-
</p>
|
497
|
-
<div class="Section3"><a name="P" id="P"></a>
|
498
|
-
<div class="figure"><a name="samplecode" id="samplecode"></a>
|
499
|
-
<p class="MsoNormal">Hello</p>
|
500
|
-
<p class="MsoNormal">Key</p>
|
501
|
-
<p class="MsoNormal"><b>Key</b></p><div class="figdl"><table class="figdl"><tr><td valign="top" align="left"><p align="left" style="margin-left:0pt;text-align:left;" class="MsoNormal"><p class="MsoNormal">A</p></p></td><td valign="top"><p class="MsoNormal">B</p></td></tr></table></div>
|
502
|
-
<p class="FigureTitle" style="text-align:center;">Figure A.1</p></div>
|
503
|
-
</div>
|
504
|
-
</div>
|
505
|
-
<br clear="all" style="page-break-before:left;mso-break-type:section-break"/>
|
506
|
-
<div class="colophon"></div>
|
507
|
-
|
508
|
-
OUTPUT
|
509
|
-
end
|
510
|
-
|
511
435
|
it "processes source code in tables (Word)" do
|
512
436
|
FileUtils.rm_f "test.doc"
|
513
437
|
FileUtils.rm_f "test.html"
|
data/spec/isodoc/section_spec.rb
CHANGED
@@ -92,7 +92,7 @@ RSpec.describe IsoDoc do
|
|
92
92
|
<div class="Section3" id="B">
|
93
93
|
<h1 class="IntroTitle">0  INTRODUCTION</h1>
|
94
94
|
<div id="C">
|
95
|
-
<h2>0.1 Introduction Subsection</h2>
|
95
|
+
<h2>0.1  Introduction Subsection</h2>
|
96
96
|
</div>
|
97
97
|
<p>This is patent boilerplate</p>
|
98
98
|
</div>
|
@@ -106,11 +106,11 @@ RSpec.describe IsoDoc do
|
|
106
106
|
</div>
|
107
107
|
<div id="H"><h1>3  Terms, definitions, symbols and abbreviated terms</h1>
|
108
108
|
<div id="I">
|
109
|
-
<h2>3.1 Normal Terms</h2>
|
109
|
+
<h2>3.1  Normal Terms</h2>
|
110
110
|
<p class="TermNum" id="J">3.1.1</p>
|
111
111
|
<p class="Terms" style="text-align:left;">Term2</p>
|
112
112
|
|
113
|
-
</div><div id="K"><h2>3.2 Symbols and abbreviated terms</h2>
|
113
|
+
</div><div id="K"><h2>3.2  Symbols and abbreviated terms</h2>
|
114
114
|
<dl><dt><p>Symbol</p></dt><dd>Definition</dd></dl>
|
115
115
|
</div></div>
|
116
116
|
<div id="L" class="Symbols">
|
@@ -125,23 +125,23 @@ RSpec.describe IsoDoc do
|
|
125
125
|
<div id="M">
|
126
126
|
<h1>5  Clause 4</h1>
|
127
127
|
<div id="N">
|
128
|
-
<h2>5.1 Introduction</h2>
|
128
|
+
<h2>5.1  Introduction</h2>
|
129
129
|
</div>
|
130
130
|
<div id="O">
|
131
|
-
<h2>5.2 Clause 4.2</h2>
|
131
|
+
<h2>5.2  Clause 4.2</h2>
|
132
132
|
</div>
|
133
133
|
</div>
|
134
134
|
<br/>
|
135
135
|
<div id="P" class="Section3">
|
136
136
|
<h1 class="Annex"><b>Annex A</b><br/><br/>(normative)<br/><br/><b>Annex</b></h1>
|
137
137
|
<div id="Q">
|
138
|
-
<h2>A.1 Annex A.1</h2>
|
138
|
+
<h2>A.1  Annex A.1</h2>
|
139
139
|
<div id="Q1">
|
140
|
-
<h3>A.1.1 Annex A.1a</h3>
|
140
|
+
<h3>A.1.1  Annex A.1a</h3>
|
141
141
|
</div>
|
142
142
|
</div>
|
143
143
|
<div id="Q2">
|
144
|
-
<h2>Appendix 1 An Appendix</h2>
|
144
|
+
<h2>Appendix 1  An Appendix</h2>
|
145
145
|
</div>
|
146
146
|
|
147
147
|
</div>
|
@@ -239,7 +239,7 @@ OUTPUT
|
|
239
239
|
<div class="Section3" id="B">
|
240
240
|
<h1 class="IntroTitle">0<span style="mso-tab-count:1">  </span>INTRODUCTION</h1>
|
241
241
|
<div id="C">
|
242
|
-
<h2>0.1 Introduction Subsection</h2>
|
242
|
+
<h2>0.1<span style="mso-tab-count:1">  </span>Introduction Subsection</h2>
|
243
243
|
</div>
|
244
244
|
<p>This is patent boilerplate</p>
|
245
245
|
</div>
|
@@ -257,11 +257,11 @@ OUTPUT
|
|
257
257
|
</div>
|
258
258
|
<div id="H"><h1>3<span style="mso-tab-count:1">  </span>Terms, definitions, symbols and abbreviated terms</h1>
|
259
259
|
<div id="I">
|
260
|
-
<h2>3.1 Normal Terms</h2>
|
260
|
+
<h2>3.1<span style="mso-tab-count:1">  </span>Normal Terms</h2>
|
261
261
|
<p class="TermNum" id="J">3.1.1</p>
|
262
262
|
<p class="Terms" style="text-align:left;">Term2</p>
|
263
263
|
|
264
|
-
</div><div id="K"><h2>3.2 Symbols and abbreviated terms</h2>
|
264
|
+
</div><div id="K"><h2>3.2<span style="mso-tab-count:1">  </span>Symbols and abbreviated terms</h2>
|
265
265
|
<table class="dl"><tr><td valign="top" align="left"><p align="left" style="margin-left:0pt;text-align:left;">Symbol</p></td><td valign="top">Definition</td></tr></table>
|
266
266
|
</div></div>
|
267
267
|
<div id="L" class="Symbols">
|
@@ -278,23 +278,23 @@ OUTPUT
|
|
278
278
|
<div id="M">
|
279
279
|
<h1>5<span style="mso-tab-count:1">  </span>Clause 4</h1>
|
280
280
|
<div id="N">
|
281
|
-
<h2>5.1 Introduction</h2>
|
281
|
+
<h2>5.1<span style="mso-tab-count:1">  </span>Introduction</h2>
|
282
282
|
</div>
|
283
283
|
<div id="O">
|
284
|
-
<h2>5.2 Clause 4.2</h2>
|
284
|
+
<h2>5.2<span style="mso-tab-count:1">  </span>Clause 4.2</h2>
|
285
285
|
</div>
|
286
286
|
</div>
|
287
287
|
<p><br clear="all" style="mso-special-character:line-break;page-break-before:always"/></p>
|
288
288
|
<div id="P" class="Section3">
|
289
289
|
<h1 class="Annex"><b>Annex A</b><br/><br/>(normative)<br/><br/><b>Annex</b></h1>
|
290
290
|
<div id="Q">
|
291
|
-
<h2>A.1 Annex A.1</h2>
|
291
|
+
<h2>A.1<span style="mso-tab-count:1">  </span>Annex A.1</h2>
|
292
292
|
<div id="Q1">
|
293
|
-
<h3>A.1.1 Annex A.1a</h3>
|
293
|
+
<h3>A.1.1<span style="mso-tab-count:1">  </span>Annex A.1a</h3>
|
294
294
|
</div>
|
295
295
|
</div>
|
296
296
|
<div id="Q2">
|
297
|
-
<h2>Appendix 1 An Appendix</h2>
|
297
|
+
<h2>Appendix 1<span style="mso-tab-count:1">  </span>An Appendix</h2>
|
298
298
|
</div>
|
299
299
|
</div>
|
300
300
|
<p><br clear="all" style="mso-special-character:line-break;page-break-before:always"/></p>
|
@@ -363,10 +363,10 @@ OUTPUT
|
|
363
363
|
<div id="M">
|
364
364
|
<h1>1  Clause 4</h1>
|
365
365
|
<div id="N">
|
366
|
-
<h2>1.1 Introduction</h2>
|
366
|
+
<h2>1.1  Introduction</h2>
|
367
367
|
</div>
|
368
368
|
<div id="O">
|
369
|
-
<span class="zzMoveToFollowing"><b>1.2 Clause 4.2 </b></span>
|
369
|
+
<span class="zzMoveToFollowing"><b>1.2  Clause 4.2 </b></span>
|
370
370
|
</div>
|
371
371
|
</div>
|
372
372
|
</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: 0.0.
|
4
|
+
version: 0.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: 2019-10-
|
11
|
+
date: 2019-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|