metanorma-iso 1.3.26 → 1.3.27
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/lib/asciidoctor/iso/biblio.rng +1 -1
- data/lib/asciidoctor/iso/cleanup.rb +1 -1
- data/lib/asciidoctor/iso/front_id.rb +1 -1
- data/lib/asciidoctor/iso/isodoc.rng +427 -0
- data/lib/asciidoctor/iso/isostandard.rng +3 -0
- data/lib/asciidoctor/iso/reqt.rng +23 -0
- data/lib/asciidoctor/iso/term_lookup_cleanup.rb +2 -2
- data/lib/asciidoctor/iso/validate.rb +1 -5
- data/lib/asciidoctor/iso/validate_title.rb +1 -1
- data/lib/isodoc/iso/base_convert.rb +53 -67
- data/lib/isodoc/iso/html/isodoc.scss +4 -0
- data/lib/isodoc/iso/html/style-human.scss +3 -0
- data/lib/isodoc/iso/html/style-iso.scss +3 -0
- data/lib/isodoc/iso/html/word_iso_intro.html +4 -0
- data/lib/isodoc/iso/metadata.rb +1 -1
- data/lib/isodoc/iso/xref.rb +105 -0
- data/lib/metanorma/iso/version.rb +1 -1
- data/spec/asciidoctor-iso/amd_spec.rb +7 -7
- data/spec/asciidoctor-iso/base_spec.rb +5 -5
- data/spec/asciidoctor-iso/cleanup_spec.rb +1 -1
- data/spec/asciidoctor-iso/macros_spec.rb +20 -6
- data/spec/asciidoctor-iso/refs_spec.rb +1 -1
- data/spec/isodoc/amd_spec.rb +48 -2
- data/spec/isodoc/blocks_spec.rb +112 -27
- data/spec/isodoc/inline_spec.rb +2 -2
- data/spec/isodoc/metadata_spec.rb +86 -4
- data/spec/isodoc/postproc_spec.rb +1 -1
- data/spec/isodoc/ref_spec.rb +4 -4
- data/spec/isodoc/table_spec.rb +8 -8
- data/spec/isodoc/terms_spec.rb +4 -4
- data/spec/isodoc/xref_spec.rb +24 -18
- metadata +3 -2
@@ -730,7 +730,7 @@ end
|
|
730
730
|
<a name='boilerplate-place' id='boilerplate-place'/>
|
731
731
|
Dilbert Associates
|
732
732
|
</p>
|
733
|
-
<p align='left' style='text-align:left' class='zzAddress'>
|
733
|
+
<p align='left' style='text-align:left;' class='zzAddress'>
|
734
734
|
<a name='boilerplate-address' id='boilerplate-address'/>
|
735
735
|
Elbonia 5000
|
736
736
|
</p>
|
data/spec/isodoc/ref_spec.rb
CHANGED
@@ -42,7 +42,7 @@ RSpec.describe IsoDoc do
|
|
42
42
|
<abbreviation>ISO</abbreviation>
|
43
43
|
</organization>
|
44
44
|
</contributor>
|
45
|
-
<note format="text/plain" reference="1"
|
45
|
+
<note format="text/plain" reference="1" type="ISO DATE">Under preparation. (Stage at the time of publication ISO/DIS 16634)</note>
|
46
46
|
<extent type="part">
|
47
47
|
<referenceFrom>all</referenceFrom>
|
48
48
|
</extent>
|
@@ -142,7 +142,7 @@ RSpec.describe IsoDoc do
|
|
142
142
|
<p id="ISO16634" class="NormRef">ISO 16634:-- (all parts)<a class="FootnoteRef" href="#fn:1"><sup>1</sup></a>, <i>Cereals, pulses, milled cereal products, oilseeds and animal feeding stuffs</i></p>
|
143
143
|
<p id="ISO20483" class="NormRef">ISO 20483:2013-2014, <i>Cereals and pulses</i></p>
|
144
144
|
<p id="ref1" class="NormRef">ICC 167, <span style="font-variant:small-caps;">Standard No I.C.C 167</span>. <i>Determination of the protein content in cereal and cereal products for food and animal feeding stuffs according to the Dumas combustion method</i> (see <a href="http://www.icc.or.at">http://www.icc.or.at</a>)</p>
|
145
|
-
<div
|
145
|
+
<div class="Note">
|
146
146
|
<p><span class="note_label">NOTE</span>  This is an annotation of ISO 20483:2013-2014</p>
|
147
147
|
</div>
|
148
148
|
</div>
|
@@ -151,10 +151,10 @@ RSpec.describe IsoDoc do
|
|
151
151
|
<h1 class="Section3">Bibliography</h1>
|
152
152
|
<p id="ISBN" class="Biblio">[1]  <i>Chemicals for analytical laboratory use</i></p>
|
153
153
|
<p id="ISSN" class="Biblio">[2]  <i>Instruments for analytical laboratory use</i></p>
|
154
|
-
<div
|
154
|
+
<div class="Note">
|
155
155
|
<p><span class="note_label">NOTE</span>  This is an annotation of document ISSN.</p>
|
156
156
|
</div>
|
157
|
-
<div
|
157
|
+
<div class="Note">
|
158
158
|
<p><span class="note_label">NOTE</span>  This is another annotation of document ISSN.</p>
|
159
159
|
</div>
|
160
160
|
<p id="ISO3696" class="Biblio">[3]  ISO 3696, <i>Water for analytical laboratory use</i></p>
|
data/spec/isodoc/table_spec.rb
CHANGED
@@ -87,11 +87,11 @@ RSpec.describe IsoDoc do
|
|
87
87
|
<td style='text-align:left;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>Arborio</td>
|
88
88
|
<td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>
|
89
89
|
Drago
|
90
|
-
<a href='#tableD-1a' class='TableFootnoteRef'>a
|
90
|
+
<a href='#tableD-1a' class='TableFootnoteRef'>a</a>
|
91
91
|
</td>
|
92
92
|
<td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>
|
93
93
|
Balilla
|
94
|
-
<a href='#tableD-1a' class='TableFootnoteRef'>a
|
94
|
+
<a href='#tableD-1a' class='TableFootnoteRef'>a</a>
|
95
95
|
</td>
|
96
96
|
<td style='text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;;text-align:center;vertical-align:middle;' scope='col'>Thaibonnet</td>
|
97
97
|
</tr>
|
@@ -128,7 +128,7 @@ RSpec.describe IsoDoc do
|
|
128
128
|
</tr>
|
129
129
|
<tr>
|
130
130
|
<td colspan='5' style='border-top:0pt;border-bottom:solid windowtext 1.5pt;'>
|
131
|
-
<div
|
131
|
+
<div class='Note'>
|
132
132
|
<p>
|
133
133
|
<span class='note_label'>NOTE</span>
|
134
134
|
  This is a table about rice
|
@@ -138,7 +138,7 @@ RSpec.describe IsoDoc do
|
|
138
138
|
<div id='fn:tableD-1a'>
|
139
139
|
<p id='_0fe65e9a-5531-408e-8295-eeff35f41a55' class='TableFootnote'>
|
140
140
|
<span>
|
141
|
-
<span id='tableD-1a' class='TableFootnoteRef'>a
|
141
|
+
<span id='tableD-1a' class='TableFootnoteRef'>a</span>
|
142
142
|
 
|
143
143
|
</span>
|
144
144
|
Parboiled rice.
|
@@ -233,8 +233,8 @@ OUTPUT
|
|
233
233
|
</tr>
|
234
234
|
<tr>
|
235
235
|
<td align="center" style="border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;" valign="middle">Arborio</td>
|
236
|
-
<td align="center" style="border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;" valign="middle">Drago<a href="#tableD-1a" class="TableFootnoteRef">a
|
237
|
-
<td align="center" style="border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;" valign="middle">Balilla<a href="#tableD-1a" class="TableFootnoteRef">a
|
236
|
+
<td align="center" style="border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;" valign="middle">Drago<a href="#tableD-1a" class="TableFootnoteRef">a</a></td>
|
237
|
+
<td align="center" style="border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;" valign="middle">Balilla<a href="#tableD-1a" class="TableFootnoteRef">a</a></td>
|
238
238
|
<td align="center" style="border-top:none;mso-border-top-alt:none;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;" valign="middle">Thaibonnet</td>
|
239
239
|
</tr>
|
240
240
|
</thead>
|
@@ -268,10 +268,10 @@ OUTPUT
|
|
268
268
|
<td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">2,26</td>
|
269
269
|
<td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:0pt;mso-border-bottom-alt:0pt;">6,06</td>
|
270
270
|
</tr>
|
271
|
-
<tr><td colspan="5" style="border-top:0pt;mso-border-top-alt:0pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;"><div
|
271
|
+
<tr><td colspan="5" style="border-top:0pt;mso-border-top-alt:0pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;"><div class="Note">
|
272
272
|
<p class="Note"><span class="note_label">NOTE</span><span style="mso-tab-count:1">  </span>This is a table about rice</p>
|
273
273
|
</div><div class="TableFootnote"><div><a name="ftntableD-1a" id="ftntableD-1a"></a>
|
274
|
-
<p class="TableFootnote"><a name="_0fe65e9a-5531-408e-8295-eeff35f41a55" id="_0fe65e9a-5531-408e-8295-eeff35f41a55"></a><span><span class="TableFootnoteRef"><a name="tableD-1a" id="tableD-1a"></a>a
|
274
|
+
<p class="TableFootnote"><a name="_0fe65e9a-5531-408e-8295-eeff35f41a55" id="_0fe65e9a-5531-408e-8295-eeff35f41a55"></a><span><span class="TableFootnoteRef"><a name="tableD-1a" id="tableD-1a"></a>a</span><span style="mso-tab-count:1">  </span></span>Parboiled rice.</p>
|
275
275
|
</div></div></td></tr></tfoot>
|
276
276
|
|
277
277
|
|
data/spec/isodoc/terms_spec.rb
CHANGED
@@ -79,8 +79,8 @@ RSpec.describe IsoDoc do
|
|
79
79
|
<li>A</li>
|
80
80
|
</ul>
|
81
81
|
</div>
|
82
|
-
<div class="Note"><p>Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div>
|
83
|
-
<div class="Note"><p>Note 2 to entry: <ul><li>A</li></ul><p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></p></div>
|
82
|
+
<div id='_671a1994-4783-40d0-bc81-987d06ffb74e' class="Note"><p>Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div>
|
83
|
+
<div id='_671a1994-4783-40d0-bc81-987d06ffb74f' class="Note"><p>Note 2 to entry: <ul><li>A</li></ul><p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></p></div>
|
84
84
|
<p>[TERMREF]
|
85
85
|
<a href="#ISO7301">ISO 7301:2011, 3.1</a>
|
86
86
|
[/TERMREF]</p></div>
|
@@ -166,8 +166,8 @@ OUTPUT
|
|
166
166
|
<li>A</li>
|
167
167
|
</ul>
|
168
168
|
</div>
|
169
|
-
<div class="Note"><p class="Note">Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div>
|
170
|
-
<div class="Note"><p class="Note">Note 2 to entry: <ul><li>A</li></ul><p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></p></div>
|
169
|
+
<div id='_671a1994-4783-40d0-bc81-987d06ffb74e' class="Note"><p class="Note">Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div>
|
170
|
+
<div id='_671a1994-4783-40d0-bc81-987d06ffb74f' class="Note"><p class="Note">Note 2 to entry: <ul><li>A</li></ul><p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></p></div>
|
171
171
|
<p>[TERMREF]
|
172
172
|
<a href="#ISO7301">ISO 7301:2011, 3.1</a>
|
173
173
|
[/TERMREF]</p></div>
|
data/spec/isodoc/xref_spec.rb
CHANGED
@@ -303,11 +303,11 @@ RSpec.describe IsoDoc do
|
|
303
303
|
<h1 class="ForewordTitle">Foreword</h1>
|
304
304
|
<p>
|
305
305
|
<a href="#N">Figure 1</a>
|
306
|
-
<a href="#note1">Figure 1
|
307
|
-
<a href="#note2">Figure 1
|
306
|
+
<a href="#note1">Figure 1 a)</a>
|
307
|
+
<a href="#note2">Figure 1 b)</a>
|
308
308
|
<a href="#AN">Figure A.1</a>
|
309
|
-
<a href="#Anote1">Figure A.1
|
310
|
-
<a href="#Anote2">Figure A.1
|
309
|
+
<a href="#Anote1">Figure A.1 a)</a>
|
310
|
+
<a href="#Anote2">Figure A.1 b)</a>
|
311
311
|
</p>
|
312
312
|
</div>
|
313
313
|
<p class="zzSTDTitle1"/>
|
@@ -323,14 +323,17 @@ RSpec.describe IsoDoc do
|
|
323
323
|
<div id="note1" class="figure">
|
324
324
|
|
325
325
|
<img src="rice_images/rice_image1.png" height="auto" width="auto"/>
|
326
|
-
<p class=
|
326
|
+
<p class='FigureTitle' style='text-align:center;'>a) — Split-it-right sample divider</p>
|
327
|
+
</div>
|
327
328
|
<div id="note2" class="figure">
|
328
329
|
|
329
330
|
<img src="rice_images/rice_image1.png" height="auto" width="auto"/>
|
330
|
-
<p class=
|
331
|
+
<p class='FigureTitle' style='text-align:center;'>b) — Split-it-right sample divider</p>
|
331
332
|
</div>
|
332
|
-
<p
|
333
|
+
<p class='FigureTitle' style='text-align:center;'>Figure 1</p>
|
333
334
|
</div>
|
335
|
+
<p> <a href="#note1">Figure 1 a)</a> <a href="#note2">Figure 1 b)</a> </p>
|
336
|
+
</div>
|
334
337
|
</div>
|
335
338
|
<br/>
|
336
339
|
<div id="annex1" class="Section3">
|
@@ -349,12 +352,15 @@ RSpec.describe IsoDoc do
|
|
349
352
|
<div id="Anote1" class="figure">
|
350
353
|
|
351
354
|
<img src="rice_images/rice_image1.png" height="auto" width="auto"/>
|
352
|
-
<p class=
|
355
|
+
<p class='FigureTitle' style='text-align:center;'>a) — Split-it-right sample divider</p>
|
356
|
+
</div>
|
353
357
|
<div id="Anote2" class="figure">
|
354
358
|
|
355
359
|
<img src="rice_images/rice_image1.png" height="auto" width="auto"/>
|
356
|
-
<p class=
|
360
|
+
<p class='FigureTitle' style='text-align:center;'>b) — Split-it-right sample divider</p>
|
357
361
|
</div>
|
362
|
+
<p class='FigureTitle' style='text-align:center;'>Figure A.1</p>
|
363
|
+
</div>
|
358
364
|
</div>
|
359
365
|
</div>
|
360
366
|
</div>
|
@@ -555,7 +561,7 @@ RSpec.describe IsoDoc do
|
|
555
561
|
<p class="zzSTDTitle1"/>
|
556
562
|
<div id="scope">
|
557
563
|
<h1>1  Scope</h1>
|
558
|
-
<div id="N" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (1)</p></div>
|
564
|
+
<div id="N"><div class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (1)</p></div></div>
|
559
565
|
<p>
|
560
566
|
<a href="#N">Formula (1)</a>
|
561
567
|
</p>
|
@@ -565,8 +571,8 @@ RSpec.describe IsoDoc do
|
|
565
571
|
<div id="widgets">
|
566
572
|
<h1>3  Widgets</h1>
|
567
573
|
<div id="widgets1"><span class='zzMoveToFollowing'><b>3.1  </b></span>
|
568
|
-
<div id="note1" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (2)</p></div>
|
569
|
-
<div id="note2" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (3)</p></div>
|
574
|
+
<div id="note1"><div class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (2)</p></div></div>
|
575
|
+
<div id="note2"><div class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (3)</p></div></div>
|
570
576
|
<p> <a href="#note1">Formula (2)</a> <a href="#note2">Formula (3)</a> </p>
|
571
577
|
</div>
|
572
578
|
</div>
|
@@ -581,11 +587,11 @@ RSpec.describe IsoDoc do
|
|
581
587
|
<b/>
|
582
588
|
</h1>
|
583
589
|
<div id="annex1a"><span class='zzMoveToFollowing'><b>A.1  </b></span>
|
584
|
-
<div id="AN" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (A.1)</p></div>
|
590
|
+
<div id="AN"><div class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (A.1)</p></div></div>
|
585
591
|
</div>
|
586
592
|
<div id="annex1b"><span class='zzMoveToFollowing'><b>A.2  </b></span>
|
587
|
-
<div id="Anote1" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (A.2)</p></div>
|
588
|
-
<div id="Anote2" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (A.3)</p></div>
|
593
|
+
<div id="Anote1"><div class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (A.2)</p></div></div>
|
594
|
+
<div id="Anote2"><div class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (A.3)</p></div></div>
|
589
595
|
</div>
|
590
596
|
</div>
|
591
597
|
</div>
|
@@ -801,9 +807,9 @@ RSpec.describe IsoDoc do
|
|
801
807
|
</div>
|
802
808
|
<div id="terms"><h1>2  </h1>
|
803
809
|
<p class="TermNum" id="_waxy_rice">2.1</p><p class="Terms" style="text-align:left;">waxy rice</p>
|
804
|
-
<div class="Note"><p>Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div><p class="TermNum" id="_nonwaxy_rice">2.2</p><p class="Terms" style="text-align:left;">nonwaxy rice</p>
|
805
|
-
<div class="Note"><p>Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div>
|
806
|
-
<div class="Note"><p>Note 2 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div></div>
|
810
|
+
<div id="note1" class="Note"><p>Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div><p class="TermNum" id="_nonwaxy_rice">2.2</p><p class="Terms" style="text-align:left;">nonwaxy rice</p>
|
811
|
+
<div id="note2" class="Note"><p>Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div>
|
812
|
+
<div id="note3" class="Note"><p>Note 2 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div></div>
|
807
813
|
</div>
|
808
814
|
</body>
|
809
815
|
</html>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.27
|
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-06-
|
11
|
+
date: 2020-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-jing
|
@@ -311,6 +311,7 @@ files:
|
|
311
311
|
- lib/isodoc/iso/sections.rb
|
312
312
|
- lib/isodoc/iso/sts_convert.rb
|
313
313
|
- lib/isodoc/iso/word_convert.rb
|
314
|
+
- lib/isodoc/iso/xref.rb
|
314
315
|
- lib/metanorma-iso.rb
|
315
316
|
- lib/metanorma/iso.rb
|
316
317
|
- lib/metanorma/iso/processor.rb
|