metanorma-iso 1.3.26 → 1.4.3.pre.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +0 -1
- data/.github/workflows/ubuntu.yml +6 -3
- data/.github/workflows/windows.yml +0 -1
- data/Gemfile +1 -0
- data/Rakefile +2 -0
- data/lib/asciidoctor/iso/base.rb +11 -14
- 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 +66 -79
- data/lib/isodoc/iso/html/htmlstyle.css +47 -0
- data/lib/isodoc/iso/html/htmlstyle.scss +0 -1
- data/lib/isodoc/iso/html/isodoc.css +862 -0
- data/lib/isodoc/iso/html/isodoc.scss +4 -1
- data/lib/isodoc/iso/html/style-human.css +968 -0
- data/lib/isodoc/iso/html/style-human.scss +3 -0
- data/lib/isodoc/iso/html/style-iso.css +996 -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/html/wordstyle.css +1515 -0
- data/lib/isodoc/iso/html/wordstyle.scss +0 -1
- data/lib/isodoc/iso/iso.amendment.xsl +778 -261
- data/lib/isodoc/iso/iso.international-standard.xsl +778 -261
- data/lib/isodoc/iso/metadata.rb +1 -1
- data/lib/isodoc/iso/pdf_convert.rb +1 -14
- data/lib/isodoc/iso/presentation_xml_convert.rb +13 -0
- data/lib/isodoc/iso/sections.rb +2 -2
- data/lib/isodoc/iso/sts_convert.rb +8 -6
- data/lib/isodoc/iso/xref.rb +111 -0
- data/lib/metanorma-iso.rb +1 -0
- data/lib/metanorma/iso/processor.rb +11 -8
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +3 -2
- 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 +2 -2
- data/spec/asciidoctor-iso/macros_spec.rb +20 -6
- data/spec/asciidoctor-iso/refs_spec.rb +1 -1
- data/spec/asciidoctor-iso/table_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 +5 -5
- data/spec/isodoc/table_spec.rb +8 -8
- data/spec/isodoc/terms_spec.rb +4 -4
- data/spec/isodoc/xref_spec.rb +24 -18
- data/spec/metanorma/processor_spec.rb +2 -2
- metadata +35 -15
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>
|
@@ -15,7 +15,7 @@ RSpec.describe Metanorma::Iso::Processor do
|
|
15
15
|
|
16
16
|
it "registers output formats against metanorma" do
|
17
17
|
expect(processor.output_formats.sort.to_s).to be_equivalent_to <<~"OUTPUT"
|
18
|
-
[[:doc, "doc"], [:html, "html"], [:html_alt, "alt.html"], [:pdf, "pdf"], [:rxl, "rxl"], [:sts, "sts.xml"], [:xml, "xml"]]
|
18
|
+
[[:doc, "doc"], [:html, "html"], [:html_alt, "alt.html"], [:pdf, "pdf"], [:presentation, "presentation.xml"], [:rxl, "rxl"], [:sts, "sts.xml"], [:xml, "xml"]]
|
19
19
|
OUTPUT
|
20
20
|
end
|
21
21
|
|
@@ -35,7 +35,7 @@ RSpec.describe Metanorma::Iso::Processor do
|
|
35
35
|
|
36
36
|
it "generates HTML from IsoDoc XML" do
|
37
37
|
FileUtils.rm_f "test.xml"
|
38
|
-
processor.output(<<~"INPUT", "test.html", :html)
|
38
|
+
processor.output(<<~"INPUT", "test.xml", "test.html", :html)
|
39
39
|
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
40
40
|
<sections>
|
41
41
|
<terms id="H" obligation="normative"><title>Terms, Definitions, Symbols and Abbreviated Terms</title>
|
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.4.3.pre.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-jing
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.1.3.pre.alpha3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.1.3.pre.alpha3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: metanorma-standoc
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sassc
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.4.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.4.0
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: equivalent-xml
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,16 +168,16 @@ dependencies:
|
|
154
168
|
name: rake
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
|
-
- - "
|
171
|
+
- - ">="
|
158
172
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
173
|
+
version: '0'
|
160
174
|
type: :development
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
|
-
- - "
|
178
|
+
- - ">="
|
165
179
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
180
|
+
version: '0'
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: rspec
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -295,22 +309,29 @@ files:
|
|
295
309
|
- lib/isodoc/iso/html/header.html
|
296
310
|
- lib/isodoc/iso/html/html_iso_intro.html
|
297
311
|
- lib/isodoc/iso/html/html_iso_titlepage.html
|
312
|
+
- lib/isodoc/iso/html/htmlstyle.css
|
298
313
|
- lib/isodoc/iso/html/htmlstyle.scss
|
314
|
+
- lib/isodoc/iso/html/isodoc.css
|
299
315
|
- lib/isodoc/iso/html/isodoc.scss
|
300
316
|
- lib/isodoc/iso/html/scripts.html
|
317
|
+
- lib/isodoc/iso/html/style-human.css
|
301
318
|
- lib/isodoc/iso/html/style-human.scss
|
319
|
+
- lib/isodoc/iso/html/style-iso.css
|
302
320
|
- lib/isodoc/iso/html/style-iso.scss
|
303
321
|
- lib/isodoc/iso/html/word_iso_intro.html
|
304
322
|
- lib/isodoc/iso/html/word_iso_titlepage.html
|
323
|
+
- lib/isodoc/iso/html/wordstyle.css
|
305
324
|
- lib/isodoc/iso/html/wordstyle.scss
|
306
325
|
- lib/isodoc/iso/html_convert.rb
|
307
326
|
- lib/isodoc/iso/iso.amendment.xsl
|
308
327
|
- lib/isodoc/iso/iso.international-standard.xsl
|
309
328
|
- lib/isodoc/iso/metadata.rb
|
310
329
|
- lib/isodoc/iso/pdf_convert.rb
|
330
|
+
- lib/isodoc/iso/presentation_xml_convert.rb
|
311
331
|
- lib/isodoc/iso/sections.rb
|
312
332
|
- lib/isodoc/iso/sts_convert.rb
|
313
333
|
- lib/isodoc/iso/word_convert.rb
|
334
|
+
- lib/isodoc/iso/xref.rb
|
314
335
|
- lib/metanorma-iso.rb
|
315
336
|
- lib/metanorma/iso.rb
|
316
337
|
- lib/metanorma/iso/processor.rb
|
@@ -374,7 +395,7 @@ homepage: https://github.com/metanorma/metanorma-iso
|
|
374
395
|
licenses:
|
375
396
|
- BSD-2-Clause
|
376
397
|
metadata: {}
|
377
|
-
post_install_message:
|
398
|
+
post_install_message:
|
378
399
|
rdoc_options: []
|
379
400
|
require_paths:
|
380
401
|
- lib
|
@@ -385,13 +406,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
385
406
|
version: 2.4.0
|
386
407
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
387
408
|
requirements:
|
388
|
-
- - "
|
409
|
+
- - ">"
|
389
410
|
- !ruby/object:Gem::Version
|
390
|
-
version:
|
411
|
+
version: 1.3.1
|
391
412
|
requirements: []
|
392
|
-
|
393
|
-
|
394
|
-
signing_key:
|
413
|
+
rubygems_version: 3.0.3
|
414
|
+
signing_key:
|
395
415
|
specification_version: 4
|
396
416
|
summary: metanorma-iso lets you write ISO standards in AsciiDoc.
|
397
417
|
test_files: []
|