metanorma-iso 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/README.adoc +7 -0
- data/docs/outputs.adoc +42 -0
- data/lib/asciidoctor/iso/biblio.rng +32 -4
- data/lib/asciidoctor/iso/front.rb +0 -13
- data/lib/isodoc/iso/html/html_iso_titlepage.html +14 -2
- data/lib/isodoc/iso/html/isodoc.scss +13 -0
- data/lib/isodoc/iso/html/style-human.scss +7 -1
- data/lib/isodoc/iso/html/style-iso.scss +7 -0
- data/lib/isodoc/iso/html/word_iso_titlepage.html +15 -1
- data/lib/isodoc/iso/html/wordstyle.scss +6 -12
- data/lib/isodoc/iso/metadata.rb +5 -1
- data/lib/isodoc/iso/word_convert.rb +2 -0
- data/lib/metanorma/iso/processor.rb +2 -2
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +1 -4
- data/spec/asciidoctor-iso/base_spec.rb +12 -1
- data/spec/asciidoctor-iso/blocks_spec.rb +1 -0
- data/spec/asciidoctor-iso/cleanup_spec.rb +1 -0
- data/spec/asciidoctor-iso/refs_spec.rb +19 -13
- data/spec/assets/iso.doc +25 -9
- data/spec/assets/iso.html +10 -5
- data/spec/isodoc/metadata_spec.rb +2 -2
- data/spec/isodoc/section_spec.rb +61 -0
- data/spec/isodoc/terms_spec.rb +6 -6
- data/spec/isodoc/xref_spec.rb +7 -7
- data/spec/metanorma/processor_spec.rb +1 -1
- metadata +3 -45
- data/spec/asciidoctor-iso/isobib_cache_spec.rb +0 -332
data/spec/assets/iso.doc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
MIME-Version: 1.0
|
2
|
-
Content-Type: multipart/related; boundary="----=
|
2
|
+
Content-Type: multipart/related; boundary="----=_NextPart_691b2032.9b8c.4b97"
|
3
3
|
|
4
|
-
------=
|
4
|
+
------=_NextPart_691b2032.9b8c.4b97
|
5
5
|
Content-Location: file:///C:/Doc/spec/assets/iso.htm
|
6
6
|
Content-Type: text/html; charset="utf-8"
|
7
7
|
|
@@ -533,6 +533,8 @@ table.MsoISOTable {
|
|
533
533
|
mso-yfti-tbllook: 480;
|
534
534
|
mso-border-insideh: .75pt solid windowtext;
|
535
535
|
mso-border-insidev: .75pt solid windowtext;
|
536
|
+
mso-table-anchor-vertical: paragraph;
|
537
|
+
mso-table-bspace: 12.0pt;
|
536
538
|
font-size: 10.0pt;
|
537
539
|
font-family: "Cambria", serif; }
|
538
540
|
|
@@ -563,6 +565,8 @@ table.MsoTableGrid {
|
|
563
565
|
mso-para-margin: 0cm;
|
564
566
|
mso-para-margin-bottom: .0001pt;
|
565
567
|
mso-pagination: widow-orphan;
|
568
|
+
mso-table-anchor-vertical: paragraph;
|
569
|
+
mso-table-bspace: 12.0pt;
|
566
570
|
font-size: 10.0pt;
|
567
571
|
font-family: "Cambria", serif; }
|
568
572
|
|
@@ -720,6 +724,12 @@ p.example, li.example, div.example, td.example {
|
|
720
724
|
font-size: 10.0pt;
|
721
725
|
font-family: "Cambria", serif; }
|
722
726
|
|
727
|
+
table.example {
|
728
|
+
margin-bottom: 12pt; }
|
729
|
+
|
730
|
+
td.example p.MsoListParagraph {
|
731
|
+
font-size: 10.0pt; }
|
732
|
+
|
723
733
|
span.note_label, span.example_label, td.example_label, td.note_label {
|
724
734
|
font-size: 10.0pt;
|
725
735
|
font-family: "Cambria", serif; }
|
@@ -728,7 +738,8 @@ span.note_label, span.example_label, td.example_label, td.note_label {
|
|
728
738
|
</style>
|
729
739
|
</head>
|
730
740
|
<body lang="EN-US" link="blue" vlink="#954F72" xml:lang="EN-US">
|
731
|
-
<div class="WordSection1"
|
741
|
+
<div class="WordSection1">
|
742
|
+
<p class="MsoNormal" align="right" style="text-align:right">
|
732
743
|
<b style="mso-bidi-font-weight: normal">
|
733
744
|
<span lang="EN-GB" style="font-size:14.0pt;mso-no-proof:yes" xml:lang="EN-GB">:(E) </span>
|
734
745
|
</b>
|
@@ -739,8 +750,13 @@ span.note_label, span.example_label, td.example_label, td.note_label {
|
|
739
750
|
</b>
|
740
751
|
</p>
|
741
752
|
|
753
|
+
|
754
|
+
|
755
|
+
|
756
|
+
|
757
|
+
|
742
758
|
<p class="MsoNormal" align="right" style="text-align:right">
|
743
|
-
<span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB"
|
759
|
+
<span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">/</span>
|
744
760
|
</p>
|
745
761
|
|
746
762
|
<p class="MsoNormal" align="right" style="margin-bottom:100.0pt;text-align:right">
|
@@ -818,11 +834,11 @@ Switzerland<p class="MsoNormal"></p></span></p>
|
|
818
834
|
<p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes"> </span>TOC
|
819
835
|
\o "1-2" \h \z \u <span style="mso-element:field-separator"></span></span>
|
820
836
|
<span class="MsoHyperlink"><span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
|
821
|
-
<a href="#
|
837
|
+
<a href="#_Toc999875168">Foreword<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
822
838
|
<span style="mso-tab-count:1 dotted">. </span>
|
823
839
|
</span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
|
824
840
|
<span style="mso-element:field-begin"></span></span>
|
825
|
-
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF
|
841
|
+
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc999875168 \h </span>
|
826
842
|
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
|
827
843
|
<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span></span></p>
|
828
844
|
|
@@ -855,7 +871,7 @@ Switzerland<p class="MsoNormal"></p></span></p>
|
|
855
871
|
</html>
|
856
872
|
|
857
873
|
|
858
|
-
------=
|
874
|
+
------=_NextPart_691b2032.9b8c.4b97
|
859
875
|
Content-Location: file:///C:/Doc/spec/assets/iso_files/filelist.xml
|
860
876
|
Content-Transfer-Encoding: base64
|
861
877
|
Content-Type: application/xml
|
@@ -865,7 +881,7 @@ ICAgICAgIDxvOk1haW5GaWxlIEhSZWY9Ii4uL3NwZWMvYXNzZXRzL2lzby5odG0iLz4gIDxvOkZp
|
|
865
881
|
bGUgSFJlZj0iZmlsZWxpc3QueG1sIi8+CiAgPG86RmlsZSBIUmVmPSJoZWFkZXIuaHRtbCIvPgo8
|
866
882
|
L3htbD4K
|
867
883
|
|
868
|
-
------=
|
884
|
+
------=_NextPart_691b2032.9b8c.4b97
|
869
885
|
Content-Location: file:///C:/Doc/spec/assets/iso_files/header.html
|
870
886
|
Content-Transfer-Encoding: base64
|
871
887
|
Content-Type: text/html charset="utf-8"
|
@@ -1058,4 +1074,4 @@ cD4NCg0KPHAgY2xhc3M9TXNvRm9vdGVyPjxzcGFuIGxhbmc9RU4tQVUgc3R5bGU9J2ZvbnQtc2l6
|
|
1058
1074
|
ZToxMC4wcHQ7Jz7CqQ0KJm5ic3A7Jm5ic3A74oCTIEFsbCByaWdodHMgcmVzZXJ2ZWQ8bzpwPjwv
|
1059
1075
|
bzpwPjwvc3Bhbj48L3A+DQoNCjwvZGl2Pg0KDQoNCg0KPC9ib2R5Pg0KDQo8L2h0bWw+DQo=
|
1060
1076
|
|
1061
|
-
------=
|
1077
|
+
------=_NextPart_691b2032.9b8c.4b97--
|
data/spec/assets/iso.html
CHANGED
@@ -21,9 +21,15 @@
|
|
21
21
|
</head>
|
22
22
|
<body lang="EN-US" link="blue" vlink="#954F72" xml:lang="EN-US">
|
23
23
|
<div class="title-section"> <div id="toggle"> <span>•</span> </div>
|
24
|
-
|
24
|
+
|
25
|
+
<p class="coverpage_docnumber">:(E) </p>
|
26
|
+
|
25
27
|
|
26
|
-
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
<p class="coverpage_techcommittee">/</p>
|
27
33
|
|
28
34
|
<p class="coverpage_techcommittee"><a name="CVP_Secretariat_Loca" id="CVP_Secretariat_Loca">Secretariat</a>: XXXX</p>
|
29
35
|
|
@@ -42,7 +48,7 @@
|
|
42
48
|
|
43
49
|
|
44
50
|
<p> </p>
|
45
|
-
</
|
51
|
+
</body>
|
46
52
|
<br />
|
47
53
|
<div class="prefatory-section"><div class="copyright">
|
48
54
|
<p class="year">
|
@@ -273,5 +279,4 @@ $('#toggle').on('click', function(){
|
|
273
279
|
$(function() {
|
274
280
|
$("[rel=footnote]").inlineFootnote();
|
275
281
|
});
|
276
|
-
</script></
|
277
|
-
</html>
|
282
|
+
</script></html>
|
@@ -69,7 +69,7 @@ RSpec.describe IsoDoc::Iso::Metadata do
|
|
69
69
|
</version>
|
70
70
|
</iso-standard>
|
71
71
|
INPUT
|
72
|
-
{:accesseddate=>"2012", :activateddate=>"2013", :agency=>"ISO", :confirmeddate=>"XXX", :createddate=>"2010–2011", :docnumber=>"ISO
|
72
|
+
{:accesseddate=>"2012", :activateddate=>"2013", :agency=>"ISO", :confirmeddate=>"XXX", :createddate=>"2010–2011", :docnumber=>"ISO/PreCD3 17301-1", :docsubtitle=>"Céréales et légumineuses — Spécification et méthodes d'essai — Partie 1: Riz", :docsubtitleintro=>"Céréales et légumineuses", :docsubtitlemain=>"Spécification et méthodes d'essai", :docsubtitlepart=>"Partie 1: Riz", :doctitle=>"Cereals and pulses — Specifications and test methods — Part 1: Rice", :doctitleintro=>"Cereals and pulses", :doctitlemain=>"Specifications and test methods", :doctitlepart=>"Part 1: Rice", :doctype=>"International Standard", :docyear=>"2016", :draft=>"0.4", :draftinfo=>" (draft 0.4, 2016-05-01)", :editorialgroup=>["TC 34", "SC 4", "WG 3"], :ics=>"XXX", :implementeddate=>"XXX", :issueddate=>"XXX", :obsoleteddate=>"2014", :obsoletes=>nil, :obsoletes_part=>nil, :publisheddate=>"2011", :revdate=>"2016-05-01", :sc=>"SC 4", :secretariat=>"GB", :stage=>"30", :stage_int=>30, :stageabbr=>"PreCD3", :tc=>"TC 34", :tc_docnumber=>"17301", :updateddate=>"XXX", :wg=>"WG 3"}
|
73
73
|
OUTPUT
|
74
74
|
end
|
75
75
|
|
@@ -145,7 +145,7 @@ OUTPUT
|
|
145
145
|
</version>
|
146
146
|
</iso-standard>
|
147
147
|
INPUT
|
148
|
-
{:accesseddate=>"XXX", :agency=>"ISO/IEC", :confirmeddate=>"XXX", :createddate=>"XXX", :docnumber=>"ISO/IEC
|
148
|
+
{:accesseddate=>"XXX", :agency=>"ISO/IEC", :confirmeddate=>"XXX", :createddate=>"XXX", :docnumber=>"ISO/IEC/CD 17301-1-3", :docsubtitle=>"Céréales et légumineuses — Spécification et méthodes d'essai — Partie 1–3: Riz", :docsubtitleintro=>"Céréales et légumineuses", :docsubtitlemain=>"Spécification et méthodes d'essai", :docsubtitlepart=>"Partie 1–3: Riz", :doctitle=>"Cereals and pulses — Specifications and test methods — Part 1–3: Rice", :doctitleintro=>"Cereals and pulses", :doctitlemain=>"Specifications and test methods", :doctitlepart=>"Part 1–3: Rice", :doctype=>"International Standard", :docyear=>"2016", :draft=>"12", :draftinfo=>" (draft 12, 2016-05-01)", :editorialgroup=>["ABC 34", "DEF 4", "GHI 3"], :ics=>"1.2.3, 1.2.3", :implementeddate=>"XXX", :issueddate=>"XXX", :obsoleteddate=>"XXX", :obsoletes=>"IEC 8121", :obsoletes_part=>"3.1", :publisheddate=>"XXX", :revdate=>"2016-05-01", :sc=>"DEF 4", :secretariat=>"XXXX", :stage=>"30", :stage_int=>30, :stageabbr=>"CD", :tc=>"ABC 34", :tc_docnumber=>"17301", :updateddate=>"XXX", :wg=>"GHI 3"}
|
149
149
|
OUTPUT
|
150
150
|
end
|
151
151
|
|
data/spec/isodoc/section_spec.rb
CHANGED
@@ -519,4 +519,65 @@ OUTPUT
|
|
519
519
|
OUTPUT
|
520
520
|
end
|
521
521
|
|
522
|
+
it "adds colophon to published standard (Word)" do
|
523
|
+
expect(IsoDoc::Iso::WordConvert.new({}).convert("test", <<~"INPUT", true).sub(/^.*<body /m, "<body ")).to be_equivalent_to <<~"OUTPUT"
|
524
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
525
|
+
<bibdata>
|
526
|
+
<status>
|
527
|
+
<stage>60</stage>
|
528
|
+
</status>
|
529
|
+
</bibdata>
|
530
|
+
<sections>
|
531
|
+
</sections>
|
532
|
+
</iso-standard>
|
533
|
+
INPUT
|
534
|
+
<body lang="EN-US" link="blue" vlink="#954F72">
|
535
|
+
<div class="WordSection1">
|
536
|
+
<p> </p>
|
537
|
+
</div>
|
538
|
+
<br clear="all" class="section"/>
|
539
|
+
<div class="WordSection2">
|
540
|
+
<p> </p>
|
541
|
+
</div>
|
542
|
+
<br clear="all" class="section"/>
|
543
|
+
<div class="WordSection3">
|
544
|
+
<p class="zzSTDTitle1"/>
|
545
|
+
</div>
|
546
|
+
<br clear="all" style="page-break-before:left;mso-break-type:section-break"/>
|
547
|
+
<div class="colophon"/>
|
548
|
+
</body>
|
549
|
+
</html>
|
550
|
+
OUTPUT
|
551
|
+
end
|
552
|
+
|
553
|
+
it "does not add colophon to draft standard (Word)" do
|
554
|
+
expect(IsoDoc::Iso::WordConvert.new({}).convert("test", <<~"INPUT", true).sub(/^.*<body /m, "<body ")).to be_equivalent_to <<~"OUTPUT"
|
555
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
556
|
+
<bibdata>
|
557
|
+
<status>
|
558
|
+
<stage>30</stage>
|
559
|
+
</status>
|
560
|
+
</bibdata>
|
561
|
+
<sections>
|
562
|
+
</sections>
|
563
|
+
</iso-standard>
|
564
|
+
INPUT
|
565
|
+
<body lang="EN-US" link="blue" vlink="#954F72">
|
566
|
+
<div class="WordSection1">
|
567
|
+
<p> </p>
|
568
|
+
</div>
|
569
|
+
<br clear="all" class="section"/>
|
570
|
+
<div class="WordSection2">
|
571
|
+
<p> </p>
|
572
|
+
</div>
|
573
|
+
<br clear="all" class="section"/>
|
574
|
+
<div class="WordSection3">
|
575
|
+
<p class="zzSTDTitle1"/>
|
576
|
+
</div>
|
577
|
+
</body>
|
578
|
+
</html>
|
579
|
+
OUTPUT
|
580
|
+
end
|
581
|
+
|
582
|
+
|
522
583
|
end
|
data/spec/isodoc/terms_spec.rb
CHANGED
@@ -68,13 +68,13 @@ RSpec.describe IsoDoc do
|
|
68
68
|
<p class="TermNum" id="paddy1">1.1</p><p class="Terms" style="text-align:left;">paddy</p>
|
69
69
|
|
70
70
|
<p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f"><rice> rice retaining its husk after threshing</p>
|
71
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f892" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td><td valign="top" class="example">
|
71
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f892" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 1</td><td valign="top" class="example">
|
72
72
|
<p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
|
73
73
|
<ul>
|
74
74
|
<li>A</li>
|
75
75
|
</ul>
|
76
76
|
</td></tr></table>
|
77
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f894" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td><td valign="top" class="example">
|
77
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f894" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 2</td><td valign="top" class="example">
|
78
78
|
<ul>
|
79
79
|
<li>A</li>
|
80
80
|
</ul>
|
@@ -87,7 +87,7 @@ RSpec.describe IsoDoc do
|
|
87
87
|
<p class="AltTerms" style="text-align:left;">rough rice</p>
|
88
88
|
<p class="DeprecatedTerms" style="text-align:left;">DEPRECATED: cargo rice</p>
|
89
89
|
<p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p>
|
90
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f893" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td><td valign="top" class="example">
|
90
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f893" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td><td valign="top" class="example">
|
91
91
|
<ul>
|
92
92
|
<li>A</li>
|
93
93
|
</ul>
|
@@ -169,13 +169,13 @@ OUTPUT
|
|
169
169
|
<p class="TermNum" id="paddy1">1.1</p><p class="Terms" style="text-align:left;">paddy</p>
|
170
170
|
|
171
171
|
<p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f"><rice> rice retaining its husk after threshing</p>
|
172
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f892" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td><td valign="top" class="example">
|
172
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f892" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 1</td><td valign="top" class="example">
|
173
173
|
<p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
|
174
174
|
<ul>
|
175
175
|
<li>A</li>
|
176
176
|
</ul>
|
177
177
|
</td></tr></table>
|
178
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f894" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td><td valign="top" class="example">
|
178
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f894" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 2</td><td valign="top" class="example">
|
179
179
|
<ul>
|
180
180
|
<li>A</li>
|
181
181
|
</ul>
|
@@ -188,7 +188,7 @@ OUTPUT
|
|
188
188
|
<p class="AltTerms" style="text-align:left;">rough rice</p>
|
189
189
|
<p class="DeprecatedTerms" style="text-align:left;">DEPRECATED: cargo rice</p>
|
190
190
|
<p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p>
|
191
|
-
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f893" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td><td valign="top" class="example">
|
191
|
+
<table id="_bd57bbf1-f948-4bae-b0ce-73c00431f893" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td><td valign="top" class="example">
|
192
192
|
<ul>
|
193
193
|
<li>A</li>
|
194
194
|
</ul>
|
data/spec/isodoc/xref_spec.rb
CHANGED
@@ -434,9 +434,9 @@ RSpec.describe IsoDoc do
|
|
434
434
|
<p class="zzSTDTitle1"/>
|
435
435
|
<div id="scope">
|
436
436
|
<h1>1.  Scope</h1>
|
437
|
-
<table id="N" class="example">
|
437
|
+
<table id="N" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
|
438
438
|
<tr>
|
439
|
-
<td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td>
|
439
|
+
<td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td>
|
440
440
|
<td valign="top" class="example">
|
441
441
|
<p>Hello</p>
|
442
442
|
</td>
|
@@ -460,10 +460,10 @@ RSpec.describe IsoDoc do
|
|
460
460
|
<div id="widgets">
|
461
461
|
<h1>3.  Widgets</h1>
|
462
462
|
<div id="widgets1"><h2>3.1. </h2>
|
463
|
-
<table id="note1" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td><td valign="top" class="example">
|
463
|
+
<table id="note1" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 1</td><td valign="top" class="example">
|
464
464
|
<p>Hello</p>
|
465
465
|
</td></tr></table>
|
466
|
-
<table id="note2" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td><td valign="top" class="example">
|
466
|
+
<table id="note2" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 2</td><td valign="top" class="example">
|
467
467
|
<p>Hello</p>
|
468
468
|
</td></tr></table>
|
469
469
|
<p> <a href="#note1">Example 1</a> <a href="#note2">Example 2</a> </p>
|
@@ -472,15 +472,15 @@ RSpec.describe IsoDoc do
|
|
472
472
|
<br/>
|
473
473
|
<div id="annex1" class="Section3">
|
474
474
|
<div id="annex1a"><h2>A.1. </h2>
|
475
|
-
<table id="AN" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td><td valign="top" class="example">
|
475
|
+
<table id="AN" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td><td valign="top" class="example">
|
476
476
|
<p>Hello</p>
|
477
477
|
</td></tr></table>
|
478
478
|
</div>
|
479
479
|
<div id="annex1b"><h2>A.2. </h2>
|
480
|
-
<table id="Anote1" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td><td valign="top" class="example">
|
480
|
+
<table id="Anote1" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 1</td><td valign="top" class="example">
|
481
481
|
<p>Hello</p>
|
482
482
|
</td></tr></table>
|
483
|
-
<table id="Anote2" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td><td valign="top" class="example">
|
483
|
+
<table id="Anote2" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tr><td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 2</td><td valign="top" class="example">
|
484
484
|
<p>Hello</p>
|
485
485
|
</td></tr></table>
|
486
486
|
</div>
|
@@ -24,7 +24,7 @@ RSpec.describe Metanorma::Iso::Processor do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it "generates IsoDoc XML from a blank document" do
|
27
|
-
expect(processor.input_to_isodoc(<<~"INPUT")).to be_equivalent_to <<~"OUTPUT"
|
27
|
+
expect(processor.input_to_isodoc(<<~"INPUT", nil)).to be_equivalent_to <<~"OUTPUT"
|
28
28
|
#{ASCIIDOC_BLANK_HDR}
|
29
29
|
INPUT
|
30
30
|
#{BLANK_HDR}
|
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.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: 2018-10-
|
11
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.2.0
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: relaton
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.2.0
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.2.0
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: metanorma-standoc
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -236,20 +222,6 @@ dependencies:
|
|
236
222
|
version: '0.9'
|
237
223
|
- !ruby/object:Gem::Dependency
|
238
224
|
name: metanorma
|
239
|
-
requirement: !ruby/object:Gem::Requirement
|
240
|
-
requirements:
|
241
|
-
- - "~>"
|
242
|
-
- !ruby/object:Gem::Version
|
243
|
-
version: 0.2.6
|
244
|
-
type: :development
|
245
|
-
prerelease: false
|
246
|
-
version_requirements: !ruby/object:Gem::Requirement
|
247
|
-
requirements:
|
248
|
-
- - "~>"
|
249
|
-
- !ruby/object:Gem::Version
|
250
|
-
version: 0.2.6
|
251
|
-
- !ruby/object:Gem::Dependency
|
252
|
-
name: isobib
|
253
225
|
requirement: !ruby/object:Gem::Requirement
|
254
226
|
requirements:
|
255
227
|
- - "~>"
|
@@ -262,20 +234,6 @@ dependencies:
|
|
262
234
|
- - "~>"
|
263
235
|
- !ruby/object:Gem::Version
|
264
236
|
version: 0.3.0
|
265
|
-
- !ruby/object:Gem::Dependency
|
266
|
-
name: ietfbib
|
267
|
-
requirement: !ruby/object:Gem::Requirement
|
268
|
-
requirements:
|
269
|
-
- - "~>"
|
270
|
-
- !ruby/object:Gem::Version
|
271
|
-
version: 0.4.0
|
272
|
-
type: :development
|
273
|
-
prerelease: false
|
274
|
-
version_requirements: !ruby/object:Gem::Requirement
|
275
|
-
requirements:
|
276
|
-
- - "~>"
|
277
|
-
- !ruby/object:Gem::Version
|
278
|
-
version: 0.4.0
|
279
237
|
description: |
|
280
238
|
metanorma-iso lets you write ISO standards in AsciiDoc syntax.
|
281
239
|
|
@@ -307,6 +265,7 @@ files:
|
|
307
265
|
- docs/customisation.adoc
|
308
266
|
- docs/guidance.adoc
|
309
267
|
- docs/htmloutput.adoc
|
268
|
+
- docs/outputs.adoc
|
310
269
|
- docs/quickstart.adoc
|
311
270
|
- lib/asciidoctor/iso/base.rb
|
312
271
|
- lib/asciidoctor/iso/biblio.rng
|
@@ -344,7 +303,6 @@ files:
|
|
344
303
|
- spec/asciidoctor-iso/blocks_spec.rb
|
345
304
|
- spec/asciidoctor-iso/cleanup_spec.rb
|
346
305
|
- spec/asciidoctor-iso/inline_spec.rb
|
347
|
-
- spec/asciidoctor-iso/isobib_cache_spec.rb
|
348
306
|
- spec/asciidoctor-iso/lists_spec.rb
|
349
307
|
- spec/asciidoctor-iso/macros_spec.rb
|
350
308
|
- spec/asciidoctor-iso/refs_spec.rb
|