metanorma-iso 1.10.3 → 1.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/asciidoctor/iso/base.rb +1 -1
- data/lib/asciidoctor/iso/isodoc.rng +14 -0
- data/lib/asciidoctor/iso/isostandard.rng +14 -0
- data/lib/isodoc/iso/html/style-human.css +21 -0
- data/lib/isodoc/iso/html/style-human.scss +26 -0
- data/lib/isodoc/iso/html/style-iso.css +21 -0
- data/lib/isodoc/iso/html/style-iso.scss +26 -0
- data/lib/isodoc/iso/html_convert.rb +81 -22
- data/lib/isodoc/iso/iso.amendment.xsl +255 -103
- data/lib/isodoc/iso/iso.international-standard.xsl +255 -103
- data/lib/isodoc/iso/presentation_xml_convert.rb +1 -1
- data/lib/isodoc/iso/word_convert.rb +0 -2
- data/lib/metanorma/iso/version.rb +1 -1
- data/spec/isodoc/postproc_spec.rb +111 -28
- data/spec/isodoc/terms_spec.rb +13 -20
- data/spec/vcr_cassettes/docrels.yml +70 -70
- metadata +3 -3
data/spec/isodoc/terms_spec.rb
CHANGED
@@ -74,7 +74,7 @@ RSpec.describe IsoDoc do
|
|
74
74
|
<term id='paddy1'><name>1.1</name>
|
75
75
|
<preferred><strong>paddy</strong></preferred>
|
76
76
|
<definition>
|
77
|
-
<p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'
|
77
|
+
<p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'><rice> rice retaining its husk after threshing</p>
|
78
78
|
</definition>
|
79
79
|
<termexample id='_bd57bbf1-f948-4bae-b0ce-73c00431f892'>
|
80
80
|
<name>EXAMPLE 1</name>
|
@@ -89,11 +89,8 @@ RSpec.describe IsoDoc do
|
|
89
89
|
<li>A</li>
|
90
90
|
</ul>
|
91
91
|
</termexample>
|
92
|
-
<termsource status='modified'>
|
93
|
-
<origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'><locality type='clause'><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin
|
94
|
-
<modification>
|
95
|
-
<p id='_e73a417d-ad39-417d-a4c8-20e4e2529489'>The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here</p>
|
96
|
-
</modification>
|
92
|
+
<termsource status='modified'>[SOURCE:
|
93
|
+
<origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'><locality type='clause'><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>, modified – The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]
|
97
94
|
</termsource>
|
98
95
|
</term>
|
99
96
|
<term id='paddy'><name>1.2</name>
|
@@ -123,8 +120,8 @@ RSpec.describe IsoDoc do
|
|
123
120
|
<li>A</li>
|
124
121
|
</ul>
|
125
122
|
</termexample>
|
126
|
-
<termsource status='identical'>
|
127
|
-
<origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'><locality type='clause'><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>
|
123
|
+
<termsource status='identical'>[SOURCE:
|
124
|
+
<origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'><locality type='clause'><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>]
|
128
125
|
</termsource>
|
129
126
|
</term>
|
130
127
|
<term id='A'>
|
@@ -163,10 +160,9 @@ RSpec.describe IsoDoc do
|
|
163
160
|
<li>A</li>
|
164
161
|
</ul>
|
165
162
|
</div>
|
166
|
-
<p>[
|
167
|
-
<a href="#ISO7301">ISO 7301:2011, 3.1</a
|
168
|
-
|
169
|
-
[/TERMREF]</p>
|
163
|
+
<p>[SOURCE:
|
164
|
+
<a href="#ISO7301">ISO 7301:2011, 3.1</a>, modified –
|
165
|
+
The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p>
|
170
166
|
<p class="TermNum" id="paddy">1.2</p>
|
171
167
|
<p class="Terms" style="text-align:left;"><b>paddy</b></p>
|
172
168
|
<p class="AltTerms" style="text-align:left;">paddy rice</p>
|
@@ -191,8 +187,7 @@ RSpec.describe IsoDoc do
|
|
191
187
|
<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>
|
192
188
|
</p>
|
193
189
|
</div>
|
194
|
-
<p>[
|
195
|
-
[/TERMREF]</p>
|
190
|
+
<p>[SOURCE: <a href="#ISO7301">ISO 7301:2011, 3.1</a>]</p>
|
196
191
|
<p class='TermNum' id='A'>1.3</p>
|
197
192
|
<p class='Terms' style='text-align:left;'><b>term1</b></p>
|
198
193
|
term1 definition
|
@@ -217,10 +212,9 @@ RSpec.describe IsoDoc do
|
|
217
212
|
<li>A</li>
|
218
213
|
</ul></div>
|
219
214
|
|
220
|
-
<p class="Source">[
|
221
|
-
<a href="#ISO7301">ISO 7301:2011, 3.1</a
|
222
|
-
|
223
|
-
[/TERMREF]</p>
|
215
|
+
<p class="Source">[SOURCE:
|
216
|
+
<a href="#ISO7301">ISO 7301:2011, 3.1</a>, modified –
|
217
|
+
The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p>
|
224
218
|
<p class="TermNum" id="paddy">1.2</p>
|
225
219
|
<p class="Terms" style="text-align:left;"><b>paddy</b></p>
|
226
220
|
<p class="AltTerms" style="text-align:left;">paddy rice</p>
|
@@ -234,8 +228,7 @@ RSpec.describe IsoDoc do
|
|
234
228
|
</div>
|
235
229
|
<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>
|
236
230
|
<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>
|
237
|
-
<p class="Source">[
|
238
|
-
[/TERMREF]</p>
|
231
|
+
<p class="Source">[SOURCE: <a href="#ISO7301">ISO 7301:2011, 3.1</a>]</p>
|
239
232
|
<p class='TermNum' id='A'>1.3</p>
|
240
233
|
<p class='Terms' style='text-align:left;'><b>term1</b></p>
|
241
234
|
term1 definition
|