metanorma-iso 1.3.19 → 1.3.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/iso/base.rb +1 -0
- data/lib/asciidoctor/iso/cleanup.rb +3 -1
- data/lib/asciidoctor/iso/isodoc.rng +5 -0
- data/lib/asciidoctor/iso/isostandard.rng +80 -0
- data/lib/asciidoctor/iso/validate.rb +19 -19
- data/lib/asciidoctor/iso/validate_section.rb +19 -19
- data/lib/asciidoctor/iso/validate_title.rb +11 -11
- data/lib/isodoc/iso/base_convert.rb +42 -1
- data/lib/isodoc/iso/html/isodoc.scss +4 -0
- data/lib/isodoc/iso/html/style-human.scss +7 -0
- data/lib/isodoc/iso/html/style-iso.scss +6 -0
- data/lib/isodoc/iso/html_convert.rb +6 -0
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +0 -1
- data/spec/asciidoctor-iso/cleanup_spec.rb +57 -21
- data/spec/asciidoctor-iso/validate_spec.rb +225 -75
- data/spec/isodoc/postproc_spec.rb +123 -3
- data/spec/isodoc/section_spec.rb +45 -0
- data/spec/isodoc/table_spec.rb +289 -0
- data/spec/isodoc/xref_spec.rb +92 -25
- metadata +3 -16
data/spec/isodoc/xref_spec.rb
CHANGED
@@ -82,7 +82,7 @@ RSpec.describe IsoDoc do
|
|
82
82
|
</div>
|
83
83
|
<div id="widgets">
|
84
84
|
<h1>3  Widgets</h1>
|
85
|
-
<div id="widgets1"><
|
85
|
+
<div id="widgets1"><span class='zzMoveToFollowing'><b>3.1  </b></span>
|
86
86
|
<div id="note1" class="Note"><p><span class="note_label">NOTE 1</span>  These results are based on a study carried out on three different types of kernel.</p></div>
|
87
87
|
<div id="note2" class="Note"><p><span class="note_label">NOTE 2</span>  These results are based on a study carried out on three different types of kernel.</p></div>
|
88
88
|
<p> <a href="#note1">Note 1</a> <a href="#note2">Note 2</a> </p>
|
@@ -91,10 +91,18 @@ RSpec.describe IsoDoc do
|
|
91
91
|
</div>
|
92
92
|
<br/>
|
93
93
|
<div id="annex1" class="Section3">
|
94
|
-
|
94
|
+
<h1 class='Annex'>
|
95
|
+
<b>Annex A</b>
|
96
|
+
<br/>
|
97
|
+
(informative)
|
98
|
+
<br/>
|
99
|
+
<br/>
|
100
|
+
<b/>
|
101
|
+
</h1>
|
102
|
+
<div id="annex1a"><span class='zzMoveToFollowing'><b>A.1  </b></span>
|
95
103
|
<div id="AN" class="Note"><p><span class="note_label">NOTE</span>  These results are based on a study carried out on three different types of kernel.</p></div>
|
96
104
|
</div>
|
97
|
-
<div id="annex1b"><
|
105
|
+
<div id="annex1b"><span class='zzMoveToFollowing'><b>A.2  </b></span>
|
98
106
|
<div id="Anote1" class="Note"><p><span class="note_label">NOTE 1</span>  These results are based on a study carried out on three different types of kernel.</p></div>
|
99
107
|
<div id="Anote2" class="Note"><p><span class="note_label">NOTE 2</span>  These results are based on a study carried out on three different types of kernel.</p></div>
|
100
108
|
</div>
|
@@ -191,7 +199,7 @@ RSpec.describe IsoDoc do
|
|
191
199
|
</div>
|
192
200
|
<div id="widgets">
|
193
201
|
<h1>3  Widgets</h1>
|
194
|
-
<div id="widgets1"><
|
202
|
+
<div id="widgets1"><span class='zzMoveToFollowing'><b>3.1  </b></span>
|
195
203
|
<div id="note1" class="figure">
|
196
204
|
|
197
205
|
<img src="rice_images/rice_image1.png" height="auto" width="auto"/>
|
@@ -205,13 +213,21 @@ RSpec.describe IsoDoc do
|
|
205
213
|
</div>
|
206
214
|
<br/>
|
207
215
|
<div id="annex1" class="Section3">
|
208
|
-
|
216
|
+
<h1 class='Annex'>
|
217
|
+
<b>Annex A</b>
|
218
|
+
<br/>
|
219
|
+
(informative)
|
220
|
+
<br/>
|
221
|
+
<br/>
|
222
|
+
<b/>
|
223
|
+
</h1>
|
224
|
+
<div id="annex1a"><span class='zzMoveToFollowing'><b>A.1  </b></span>
|
209
225
|
<div id="AN" class="figure">
|
210
226
|
|
211
227
|
<img src="rice_images/rice_image1.png" height="auto" width="auto"/>
|
212
228
|
<p class="FigureTitle" style="text-align:center;">Figure A.1 — Split-it-right sample divider</p></div>
|
213
229
|
</div>
|
214
|
-
<div id="annex1b"><
|
230
|
+
<div id="annex1b"><span class='zzMoveToFollowing'><b>A.2  </b></span>
|
215
231
|
<div id="Anote1" class="figure">
|
216
232
|
|
217
233
|
<img src="rice_images/rice_image1.png" height="auto" width="auto"/>
|
@@ -302,7 +318,7 @@ RSpec.describe IsoDoc do
|
|
302
318
|
</div>
|
303
319
|
<div id="widgets">
|
304
320
|
<h1>3  Widgets</h1>
|
305
|
-
<div id="widgets1"><
|
321
|
+
<div id="widgets1"><span class='zzMoveToFollowing'><b>3.1  </b></span>
|
306
322
|
<div id="N" class="figure">
|
307
323
|
<div id="note1" class="figure">
|
308
324
|
|
@@ -318,9 +334,17 @@ RSpec.describe IsoDoc do
|
|
318
334
|
</div>
|
319
335
|
<br/>
|
320
336
|
<div id="annex1" class="Section3">
|
321
|
-
|
337
|
+
<h1 class='Annex'>
|
338
|
+
<b>Annex A</b>
|
339
|
+
<br/>
|
340
|
+
(informative)
|
341
|
+
<br/>
|
342
|
+
<br/>
|
343
|
+
<b/>
|
344
|
+
</h1>
|
345
|
+
<div id="annex1a"><span class='zzMoveToFollowing'><b>A.1  </b></span>
|
322
346
|
</div>
|
323
|
-
<div id="annex1b"><
|
347
|
+
<div id="annex1b"><span class='zzMoveToFollowing'><b>A.2  </b></span>
|
324
348
|
<div id="AN" class="figure">
|
325
349
|
<div id="Anote1" class="figure">
|
326
350
|
|
@@ -418,7 +442,7 @@ RSpec.describe IsoDoc do
|
|
418
442
|
</div>
|
419
443
|
<div id="widgets">
|
420
444
|
<h1>3  Widgets</h1>
|
421
|
-
<div id="widgets1"><
|
445
|
+
<div id="widgets1"><span class='zzMoveToFollowing'><b>3.1  </b></span>
|
422
446
|
<div id="note1" class="example"><p><span class="example_label">EXAMPLE 1</span>  Hello</p></div>
|
423
447
|
<div id="note2" class="example"><p><span class="example_label">EXAMPLE 2</span>  Hello</p></div>
|
424
448
|
<p> <a href="#note1">Example 1</a> <a href="#note2">Example 2</a> </p>
|
@@ -426,10 +450,18 @@ RSpec.describe IsoDoc do
|
|
426
450
|
</div>
|
427
451
|
<br/>
|
428
452
|
<div id="annex1" class="Section3">
|
429
|
-
|
453
|
+
<h1 class='Annex'>
|
454
|
+
<b>Annex A</b>
|
455
|
+
<br/>
|
456
|
+
(informative)
|
457
|
+
<br/>
|
458
|
+
<br/>
|
459
|
+
<b/>
|
460
|
+
</h1>
|
461
|
+
<div id="annex1a"><span class='zzMoveToFollowing'><b>A.1  </b></span>
|
430
462
|
<div id="AN" class="example"><p><span class="example_label">EXAMPLE</span>  Hello</p></div>
|
431
463
|
</div>
|
432
|
-
<div id="annex1b"><
|
464
|
+
<div id="annex1b"><span class='zzMoveToFollowing'><b>A.2  </b></span>
|
433
465
|
<div id="Anote1" class="example"><p><span class="example_label">EXAMPLE 1</span>  Hello</p></div>
|
434
466
|
<div id="Anote2" class="example"><p><span class="example_label">EXAMPLE 2</span>  Hello</p></div>
|
435
467
|
</div>
|
@@ -532,7 +564,7 @@ RSpec.describe IsoDoc do
|
|
532
564
|
</div>
|
533
565
|
<div id="widgets">
|
534
566
|
<h1>3  Widgets</h1>
|
535
|
-
<div id="widgets1"><
|
567
|
+
<div id="widgets1"><span class='zzMoveToFollowing'><b>3.1  </b></span>
|
536
568
|
<div id="note1" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (2)</p></div>
|
537
569
|
<div id="note2" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (3)</p></div>
|
538
570
|
<p> <a href="#note1">Formula (2)</a> <a href="#note2">Formula (3)</a> </p>
|
@@ -540,10 +572,18 @@ RSpec.describe IsoDoc do
|
|
540
572
|
</div>
|
541
573
|
<br/>
|
542
574
|
<div id="annex1" class="Section3">
|
543
|
-
|
575
|
+
<h1 class='Annex'>
|
576
|
+
<b>Annex A</b>
|
577
|
+
<br/>
|
578
|
+
(informative)
|
579
|
+
<br/>
|
580
|
+
<br/>
|
581
|
+
<b/>
|
582
|
+
</h1>
|
583
|
+
<div id="annex1a"><span class='zzMoveToFollowing'><b>A.1  </b></span>
|
544
584
|
<div id="AN" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (A.1)</p></div>
|
545
585
|
</div>
|
546
|
-
<div id="annex1b"><
|
586
|
+
<div id="annex1b"><span class='zzMoveToFollowing'><b>A.2  </b></span>
|
547
587
|
<div id="Anote1" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (A.2)</p></div>
|
548
588
|
<div id="Anote2" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>  (A.3)</p></div>
|
549
589
|
</div>
|
@@ -684,7 +724,7 @@ RSpec.describe IsoDoc do
|
|
684
724
|
</div>
|
685
725
|
<div id="widgets">
|
686
726
|
<h1>3  Widgets</h1>
|
687
|
-
<div id="widgets1"><
|
727
|
+
<div id="widgets1"><span class='zzMoveToFollowing'><b>3.1  </b></span>
|
688
728
|
<p class="TableTitle" style="text-align:center;">Table 2 — Repeatability and reproducibility of husked rice yield</p><table id="note1" class="MsoISOTable" style="border-width:1px;border-spacing:0;"><tbody><tr><td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td></tr></tbody></table>
|
689
729
|
<p class="TableTitle" style="text-align:center;">Table 3 — Repeatability and reproducibility of husked rice yield</p><table id="note2" class="MsoISOTable" style="border-width:1px;border-spacing:0;"><tbody><tr><td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td></tr></tbody></table>
|
690
730
|
<p> <a href="#note1">Table 2</a> <a href="#note2">Table 3</a> </p>
|
@@ -692,10 +732,18 @@ RSpec.describe IsoDoc do
|
|
692
732
|
</div>
|
693
733
|
<br/>
|
694
734
|
<div id="annex1" class="Section3">
|
695
|
-
|
735
|
+
<h1 class='Annex'>
|
736
|
+
<b>Annex A</b>
|
737
|
+
<br/>
|
738
|
+
(informative)
|
739
|
+
<br/>
|
740
|
+
<br/>
|
741
|
+
<b/>
|
742
|
+
</h1>
|
743
|
+
<div id="annex1a"><span class='zzMoveToFollowing'><b>A.1  </b></span>
|
696
744
|
<p class="TableTitle" style="text-align:center;">Table A.1 — Repeatability and reproducibility of husked rice yield</p><table id="AN" class="MsoISOTable" style="border-width:1px;border-spacing:0;"><tbody><tr><td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td></tr></tbody></table>
|
697
745
|
</div>
|
698
|
-
<div id="annex1b"><
|
746
|
+
<div id="annex1b"><span class='zzMoveToFollowing'><b>A.2  </b></span>
|
699
747
|
<p class="TableTitle" style="text-align:center;">Table A.2 — Repeatability and reproducibility of husked rice yield</p><table id="Anote1" class="MsoISOTable" style="border-width:1px;border-spacing:0;"><tbody><tr><td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td></tr></tbody></table>
|
700
748
|
<p class="TableTitle" style="text-align:center;">Table A.3 — Repeatability and reproducibility of husked rice yield</p><table id="Anote2" class="MsoISOTable" style="border-width:1px;border-spacing:0;"><tbody><tr><td style="text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">Number of laboratories retained after eliminating outliers</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">13</td><td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;padding:0;">11</td></tr></tbody></table>
|
701
749
|
</div>
|
@@ -874,7 +922,10 @@ RSpec.describe IsoDoc do
|
|
874
922
|
<div id="C">
|
875
923
|
<h2>0.1  Introduction Subsection</h2>
|
876
924
|
</div>
|
877
|
-
<div id="C1"><
|
925
|
+
<div id="C1"><span class='zzMoveToFollowing'>
|
926
|
+
<b>0.2  </b>
|
927
|
+
</span>
|
928
|
+
Text</div>
|
878
929
|
</div>
|
879
930
|
<p class="zzSTDTitle1"/>
|
880
931
|
<div id="D">
|
@@ -1011,7 +1062,7 @@ RSpec.describe IsoDoc do
|
|
1011
1062
|
</div>
|
1012
1063
|
<div id="widgets">
|
1013
1064
|
<h1>3  Widgets</h1>
|
1014
|
-
<div id="widgets1"><
|
1065
|
+
<div id="widgets1"><span class='zzMoveToFollowing'><b>3.1  </b></span>
|
1015
1066
|
<ol type="a" id="note1">
|
1016
1067
|
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
1017
1068
|
</ol>
|
@@ -1022,12 +1073,20 @@ RSpec.describe IsoDoc do
|
|
1022
1073
|
</div>
|
1023
1074
|
<br/>
|
1024
1075
|
<div id="annex1" class="Section3">
|
1025
|
-
|
1076
|
+
<h1 class='Annex'>
|
1077
|
+
<b>Annex A</b>
|
1078
|
+
<br/>
|
1079
|
+
(informative)
|
1080
|
+
<br/>
|
1081
|
+
<br/>
|
1082
|
+
<b/>
|
1083
|
+
</h1>
|
1084
|
+
<div id="annex1a"><span class='zzMoveToFollowing'><b>A.1  </b></span>
|
1026
1085
|
<ol type="a" id="AN">
|
1027
1086
|
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
1028
1087
|
</ol>
|
1029
1088
|
</div>
|
1030
|
-
<div id="annex1b"><
|
1089
|
+
<div id="annex1b"><span class='zzMoveToFollowing'><b>A.2  </b></span>
|
1031
1090
|
<ol type="a" id="Anote1">
|
1032
1091
|
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
|
1033
1092
|
</ol>
|
@@ -1117,7 +1176,7 @@ RSpec.describe IsoDoc do
|
|
1117
1176
|
</div>
|
1118
1177
|
<div id="widgets">
|
1119
1178
|
<h1>3  Widgets</h1>
|
1120
|
-
<div id="widgets1"><
|
1179
|
+
<div id="widgets1"><span class='zzMoveToFollowing'><b>3.1  </b></span>
|
1121
1180
|
<ol type="a" id="note1l">
|
1122
1181
|
<li id="note1"><p>A</p></li>
|
1123
1182
|
</ol>
|
@@ -1128,12 +1187,20 @@ RSpec.describe IsoDoc do
|
|
1128
1187
|
</div>
|
1129
1188
|
<br/>
|
1130
1189
|
<div id="annex1" class="Section3">
|
1131
|
-
|
1190
|
+
<h1 class='Annex'>
|
1191
|
+
<b>Annex A</b>
|
1192
|
+
<br/>
|
1193
|
+
(informative)
|
1194
|
+
<br/>
|
1195
|
+
<br/>
|
1196
|
+
<b/>
|
1197
|
+
</h1>
|
1198
|
+
<div id="annex1a"><span class='zzMoveToFollowing'><b>A.1  </b></span>
|
1132
1199
|
<ol type="a" id="ANl">
|
1133
1200
|
<li id="AN"><p>A</p></li>
|
1134
1201
|
</ol>
|
1135
1202
|
</div>
|
1136
|
-
<div id="annex1b"><
|
1203
|
+
<div id="annex1b"><span class='zzMoveToFollowing'><b>A.2  </b></span>
|
1137
1204
|
<ol type="a" id="Anote1l">
|
1138
1205
|
<li id="Anote1"><p>A</p></li>
|
1139
1206
|
</ol>
|
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.20
|
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-03-
|
11
|
+
date: 2020-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-jing
|
@@ -178,20 +178,6 @@ dependencies:
|
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0.9'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: metanorma
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: 0.3.0
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "~>"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: 0.3.0
|
195
181
|
- !ruby/object:Gem::Dependency
|
196
182
|
name: iev
|
197
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -326,6 +312,7 @@ files:
|
|
326
312
|
- spec/isodoc/postproc_spec.rb
|
327
313
|
- spec/isodoc/ref_spec.rb
|
328
314
|
- spec/isodoc/section_spec.rb
|
315
|
+
- spec/isodoc/table_spec.rb
|
329
316
|
- spec/isodoc/terms_spec.rb
|
330
317
|
- spec/isodoc/xref_spec.rb
|
331
318
|
- spec/metanorma/processor_spec.rb
|