metanorma-iec 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/lib/asciidoctor/iec/converter.rb +1 -1
- data/lib/asciidoctor/iec/isodoc.rng +14 -0
- data/lib/asciidoctor/iec/isostandard.rng +14 -0
- data/lib/isodoc/iec/base_convert.rb +0 -12
- data/lib/isodoc/iec/html/htmlstyle.css +21 -0
- data/lib/isodoc/iec/html/htmlstyle.scss +26 -0
- data/lib/isodoc/iec/html/scripts.html +0 -1
- data/lib/isodoc/iec/iec.international-standard.xsl +344 -95
- data/lib/isodoc/iec/presentation_xml_convert.rb +131 -0
- data/lib/metanorma/iec/version.rb +1 -1
- data/spec/isodoc/iev_spec.rb +321 -97
- data/spec/isodoc/postproc_spec.rb +2 -5
- data/spec/isodoc/terms_spec.rb +14 -21
- metadata +3 -3
data/spec/isodoc/terms_spec.rb
CHANGED
@@ -76,11 +76,8 @@ RSpec.describe IsoDoc do
|
|
76
76
|
</ul>
|
77
77
|
</termexample>
|
78
78
|
|
79
|
-
<termsource status="modified">
|
80
|
-
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin
|
81
|
-
<modification>
|
82
|
-
<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>
|
83
|
-
</modification>
|
79
|
+
<termsource status="modified">[SOURCE:
|
80
|
+
<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]
|
84
81
|
</termsource></term>
|
85
82
|
|
86
83
|
<term id="paddy">
|
@@ -104,8 +101,8 @@ RSpec.describe IsoDoc do
|
|
104
101
|
<li>A</li>
|
105
102
|
</ul>
|
106
103
|
</termexample>
|
107
|
-
<termsource status="identical">
|
108
|
-
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>
|
104
|
+
<termsource status="identical">[SOURCE:
|
105
|
+
<origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>]
|
109
106
|
</termsource></term>
|
110
107
|
</terms>
|
111
108
|
</sections>
|
@@ -131,10 +128,9 @@ RSpec.describe IsoDoc do
|
|
131
128
|
</ul>
|
132
129
|
</div>
|
133
130
|
|
134
|
-
<p>[
|
135
|
-
<a href="#ISO7301">ISO 7301:2011, 3.1</a
|
136
|
-
|
137
|
-
[/TERMREF]</p><p class="TermNum" id="paddy">1.2</p><p class="Terms" style="text-align:left;">paddy</p><p class="AltTerms" style="text-align:left;">paddy rice</p>
|
131
|
+
<p>[SOURCE:
|
132
|
+
<a href="#ISO7301">ISO 7301:2011, 3.1</a>, modified – The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]
|
133
|
+
</p><p class="TermNum" id="paddy">1.2</p><p class="Terms" style="text-align:left;">paddy</p><p class="AltTerms" style="text-align:left;">paddy rice</p>
|
138
134
|
<p class="AltTerms" style="text-align:left;">rough rice</p>
|
139
135
|
<p class="DeprecatedTerms" style="text-align:left;">DEPRECATED: cargo rice</p>
|
140
136
|
<p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p>
|
@@ -145,9 +141,8 @@ RSpec.describe IsoDoc do
|
|
145
141
|
</div>
|
146
142
|
<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>
|
147
143
|
<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>
|
148
|
-
<p>[
|
149
|
-
<a href="#ISO7301">ISO 7301:2011, 3.1</a>
|
150
|
-
[/TERMREF]</p></div>
|
144
|
+
<p>[SOURCE:
|
145
|
+
<a href="#ISO7301">ISO 7301:2011, 3.1</a>]</p></div>
|
151
146
|
</div>
|
152
147
|
</body>
|
153
148
|
</html>
|
@@ -167,10 +162,9 @@ RSpec.describe IsoDoc do
|
|
167
162
|
</ul>
|
168
163
|
</div>
|
169
164
|
|
170
|
-
<p>[
|
171
|
-
<a href="#ISO7301">ISO 7301:2011, 3.1</a
|
172
|
-
|
173
|
-
[/TERMREF]</p><p class="TermNum" id="paddy">1.2</p><p class="Terms" style="text-align:left;">paddy</p><p class="AltTerms" style="text-align:left;">paddy rice</p>
|
165
|
+
<p>[SOURCE:
|
166
|
+
<a href="#ISO7301">ISO 7301:2011, 3.1</a>, modified –
|
167
|
+
The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p><p class="TermNum" id="paddy">1.2</p><p class="Terms" style="text-align:left;">paddy</p><p class="AltTerms" style="text-align:left;">paddy rice</p>
|
174
168
|
<p class="AltTerms" style="text-align:left;">rough rice</p>
|
175
169
|
<p class="DeprecatedTerms" style="text-align:left;">DEPRECATED: cargo rice</p>
|
176
170
|
<p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p><div id="_bd57bbf1-f948-4bae-b0ce-73c00431f893" class="example"><p><span class="example_label">EXAMPLE</span><span style="mso-tab-count:1">  </span></p>
|
@@ -182,9 +176,8 @@ RSpec.describe IsoDoc do
|
|
182
176
|
|
183
177
|
|
184
178
|
|
185
|
-
<p>[
|
186
|
-
<a href="#ISO7301">ISO 7301:2011, 3.1</a>
|
187
|
-
[/TERMREF]</p></div>
|
179
|
+
<p>[SOURCE:
|
180
|
+
<a href="#ISO7301">ISO 7301:2011, 3.1</a>]</p></div>
|
188
181
|
OUTPUT
|
189
182
|
expect(xmlpp(IsoDoc::Iec::PresentationXMLConvert.new({})
|
190
183
|
.convert("test", input, true)))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-iso
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
|
-
rubygems_version: 3.2.
|
301
|
+
rubygems_version: 3.2.32
|
302
302
|
signing_key:
|
303
303
|
specification_version: 4
|
304
304
|
summary: metanorma-iec lets you write IEC standards in AsciiDoc.
|