metanorma-iec 2.1.5 → 2.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -225,9 +225,9 @@
225
225
  <zeroOrMore>
226
226
  <ref name="forename"/>
227
227
  </zeroOrMore>
228
- <zeroOrMore>
229
- <ref name="initial"/>
230
- </zeroOrMore>
228
+ <optional>
229
+ <ref name="formatted-initials"/>
230
+ </optional>
231
231
  <ref name="surname"/>
232
232
  <zeroOrMore>
233
233
  <ref name="addition"/>
@@ -247,8 +247,8 @@
247
247
  <ref name="LocalizedString"/>
248
248
  </element>
249
249
  </define>
250
- <define name="initial">
251
- <element name="initial">
250
+ <define name="formatted-initials">
251
+ <element name="formatted-initials">
252
252
  <ref name="LocalizedString"/>
253
253
  </element>
254
254
  </define>
@@ -264,6 +264,9 @@
264
264
  </define>
265
265
  <define name="forename">
266
266
  <element name="forename">
267
+ <optional>
268
+ <attribute name="initial"/>
269
+ </optional>
267
270
  <ref name="LocalizedString"/>
268
271
  </element>
269
272
  </define>
@@ -1285,7 +1285,12 @@
1285
1285
  </define>
1286
1286
  <define name="span">
1287
1287
  <element name="span">
1288
- <attribute name="class"/>
1288
+ <optional>
1289
+ <attribute name="class"/>
1290
+ </optional>
1291
+ <optional>
1292
+ <attribute name="style"/>
1293
+ </optional>
1289
1294
  <oneOrMore>
1290
1295
  <ref name="TextElement"/>
1291
1296
  </oneOrMore>
@@ -108,7 +108,7 @@
108
108
  </element>
109
109
  </define>
110
110
  <define name="label">
111
- <element name="label">
111
+ <element name="identifier">
112
112
  <oneOrMore>
113
113
  <ref name="TextElement"/>
114
114
  </oneOrMore>
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "2.1.5".freeze
3
+ VERSION = "2.1.8".freeze
4
4
  end
5
5
  end
6
6
 
data/lib/metanorma-iec.rb CHANGED
@@ -7,8 +7,9 @@ require "isodoc/iec/pdf_convert"
7
7
  require "isodoc/iec/presentation_xml_convert"
8
8
  require "isodoc/iec/metadata"
9
9
  require "isodoc/iec/xref"
10
+ require "metanorma"
10
11
 
11
- if defined? Metanorma
12
+ if defined? Metanorma::Registry
12
13
  require_relative "metanorma/iec"
13
14
  Metanorma::Registry.instance.register(Metanorma::Iec::Processor)
14
15
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.test_files = `git ls-files -- {spec}/*`.split("\n")
28
28
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
29
29
 
30
- spec.add_dependency "metanorma-iso", "~> 2.1.1"
30
+ spec.add_dependency "metanorma-iso", "~> 2.1.8"
31
31
  spec.add_dependency "ruby-jing"
32
32
 
33
33
  spec.add_development_dependency "debug"
@@ -203,7 +203,7 @@ RSpec.describe IsoDoc do
203
203
  <p id='_'>There are no normative references in this document.</p>
204
204
  <bibitem id='A'>
205
205
  <formattedref format='application/x-isodoc+xml'>
206
- <em>TITLE</em>
206
+ <em>TITLE</em> [B]
207
207
  </formattedref>
208
208
  <docidentifier>B</docidentifier>
209
209
  </bibitem>
@@ -213,7 +213,7 @@ RSpec.describe IsoDoc do
213
213
  <p id='_'>There are no normative references in this document.</p>
214
214
  <bibitem id='A'>
215
215
  <formattedref format='application/x-isodoc+xml'>
216
- <em>TITLE</em>
216
+ <em>TITLE</em> [B]
217
217
  </formattedref>
218
218
  <docidentifier type='metanorma-ordinal'>[1]</docidentifier>
219
219
  <docidentifier>B</docidentifier>
@@ -113,7 +113,7 @@ RSpec.describe IsoDoc::Iec do
113
113
  <title>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</title>
114
114
  <docidentifier type="IETF">RFC 10</docidentifier>
115
115
  </bibitem>
116
- <bibitem id="ref12">
116
+ <bibitem id="ref12" type="standard">
117
117
  <formattedref format="application/x-isodoc+xml">CitationWorks. 2019. <em>How to cite a reference</em>.</formattedref>
118
118
  <docidentifier type="metanorma">[Citn]</docidentifier>
119
119
  <docidentifier type="IETF">RFC 20</docidentifier>
@@ -137,7 +137,7 @@ RSpec.describe IsoDoc::Iec do
137
137
  <eref bibitemid="ISSN">[2]</eref>
138
138
  <eref bibitemid="ISO16634">ISO 16634:--</eref>
139
139
  <eref bibitemid="ref1">ICC 167</eref>
140
- <eref bibitemid="ref10">[10]</eref>
140
+ <eref bibitemid="ref10">[4]</eref>
141
141
  <eref bibitemid="ref12">Citn</eref>
142
142
  <eref bibitemid="zip_ffs">[5]</eref>
143
143
  </p>
@@ -159,7 +159,7 @@ RSpec.describe IsoDoc::Iec do
159
159
  <docidentifier type="ISO">ISO 20483:2013-2014</docidentifier>
160
160
  </bibitem>
161
161
  <bibitem id="ref1">
162
- <formattedref format="application/x-isodoc+xml"><smallcap>Standard No I.C.C 167</smallcap>. <em>Determination of the protein content in cereal and cereal products for food and animal feeding stuffs according to the Dumas combustion method</em> (see <link target="http://www.icc.or.at"/>)</formattedref>
162
+ <formattedref format="application/x-isodoc+xml"><smallcap>Standard No I.C.C 167</smallcap>. <em>Determination of the protein content in cereal and cereal products for food and animal feeding stuffs according to the Dumas combustion method</em> (see <link target="http://www.icc.or.at"/>) [ICC 167]</formattedref>
163
163
  <docidentifier type="ICC">ICC 167</docidentifier>
164
164
  </bibitem>
165
165
  <note><name>NOTE</name><p>This is an annotation of ISO 20483:2013-2014</p></note>
@@ -167,14 +167,14 @@ RSpec.describe IsoDoc::Iec do
167
167
  </references><references id="_bibliography" obligation="informative" normative="false" displayorder="3">
168
168
  <title depth="1">Bibliography</title>
169
169
  <bibitem id="ISBN" type="book">
170
- <formattedref><em>Chemicals for analytical laboratory use</em>. ISBN.</formattedref>
170
+ <formattedref><em>Chemicals for analytical laboratory use</em>. n.p.: n.d. ISBN.</formattedref>
171
+ <docidentifier type="metanorma-ordinal">[1]</docidentifier>
171
172
  <docidentifier type="ISBN">ISBN</docidentifier>
172
- <docidentifier type="metanorma">[1]</docidentifier>
173
173
  </bibitem>
174
174
  <bibitem id="ISSN" type="journal">
175
- <formattedref><em>Instruments for analytical laboratory use</em>. ISSN.</formattedref>
175
+ <formattedref><em>Instruments for analytical laboratory use</em>. n.d. ISSN.</formattedref>
176
+ <docidentifier type="metanorma-ordinal">[2]</docidentifier>
176
177
  <docidentifier type="ISSN">ISSN</docidentifier>
177
- <docidentifier type="metanorma">[2]</docidentifier>
178
178
  </bibitem>
179
179
  <note><name>NOTE</name><p>This is an annotation of document ISSN.</p></note>
180
180
  <note><name>NOTE</name><p>This is another annotation of document ISSN.</p></note>
@@ -185,14 +185,14 @@ RSpec.describe IsoDoc::Iec do
185
185
  </bibitem>
186
186
  <bibitem id="ref10">
187
187
  <formattedref format="application/x-isodoc+xml"><smallcap>Standard No I.C.C 167</smallcap>. <em>Determination of the protein content in cereal and cereal products for food and animal feeding stuffs according to the Dumas combustion method</em> (see <link target="http://www.icc.or.at"/>)</formattedref>
188
- <docidentifier type="metanorma">[10]</docidentifier>
188
+ <docidentifier type="metanorma-ordinal">[4]</docidentifier>
189
189
  </bibitem>
190
190
  <bibitem id="ref11">
191
- <formattedref><em>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</em>.</formattedref>
192
- <docidentifier type='metanorma-ordinal'>[4]</docidentifier>
191
+ <formattedref><em><span class='stddocTitle'>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</span></em></formattedref>
192
+ <docidentifier type='metanorma-ordinal'>[5]</docidentifier>
193
193
  <docidentifier type="IETF">IETF RFC 10</docidentifier>
194
194
  </bibitem>
195
- <bibitem id="ref12">
195
+ <bibitem id="ref12" type="standard">
196
196
  <formattedref format="application/x-isodoc+xml">CitationWorks. 2019. <em>How to cite a reference</em>.</formattedref>
197
197
  <docidentifier type="metanorma">[Citn]</docidentifier>
198
198
  <docidentifier type="IETF">IETF RFC 20</docidentifier>
@@ -203,7 +203,7 @@ RSpec.describe IsoDoc::Iec do
203
203
  OUTPUT
204
204
 
205
205
  html = <<~OUTPUT
206
- #{HTML_HDR}
206
+ #{HTML_HDR}
207
207
  <div>
208
208
  <h1 class='ForewordTitle'>FOREWORD</h1>
209
209
  <div class='boilerplate_legal'/>
@@ -213,115 +213,116 @@ RSpec.describe IsoDoc::Iec do
213
213
  <a href='#ISSN'>[2]</a>
214
214
  <a href='#ISO16634'>ISO 16634:--</a>
215
215
  <a href='#ref1'>ICC 167</a>
216
- <a href='#ref10'>[10]</a>
216
+ <a href='#ref10'>[4]</a>
217
217
  <a href='#ref12'>Citn</a>
218
218
  <a href='#zip_ffs'>[5]</a>
219
219
  </p>
220
220
  </div>
221
221
  #{IEC_TITLE1}
222
- <div>
223
- <h1>1&#160; Normative References</h1>
224
- <p>
225
- The following documents are referred to in the text in such a way that
226
- some or all of their content constitutes requirements of this
227
- document. For dated references, only the edition cited applies. For
228
- undated references, the latest edition of the referenced document
229
- (including any amendments) applies.
230
- </p>
231
- <p id='ISO712' class='NormRef'>
232
- [110], ISO 712,
233
- <i>Cereals and cereal products</i>
234
- </p>
235
- <p id='ISO16634' class='NormRef'>
236
- ISO 16634:-- (all parts)
237
- <a class='FootnoteRef' href='#fn:1'>
238
- <sup>1</sup>
239
- </a>
240
- ,
241
- <i>Cereals, pulses, milled cereal products, oilseeds and animal feeding stuffs</i>
242
- </p>
243
- <p id='ISO20483' class='NormRef'>
244
- ISO 20483:2013-2014,
245
- <i>Cereals and pulses</i>
246
- </p>
247
- <p id='ref1' class='NormRef'>
248
- ICC 167,
249
- <span style='font-variant:small-caps;'>Standard No I.C.C 167</span>
250
- .
251
- <i>
252
- Determination of the protein content in cereal and cereal products
253
- for food and animal feeding stuffs according to the Dumas combustion
254
- method
255
- </i>
256
- (see
257
- <a href='http://www.icc.or.at'>http://www.icc.or.at</a>
258
- )
259
- </p>
260
- <div class='Note'>
261
- <p>
262
- <span class='note_label'>NOTE</span>
263
- &#160; This is an annotation of ISO 20483:2013-2014
264
- </p>
265
- </div>
266
- <p id='zip_ffs' class='NormRef'>[5] Title 5</p>
267
- </div>
268
- <br/>
269
- <div>
270
- <h1 class='Section3'>Bibliography</h1>
271
- <p id='ISBN' class='Biblio'>
272
- [1]&#160;
273
- <i>Chemicals for analytical laboratory use</i>. ISBN.
274
- </p>
275
- <p id='ISSN' class='Biblio'>
276
- [2]&#160;
277
- <i>Instruments for analytical laboratory use</i>. ISSN.
278
- </p>
279
- <div class='Note'>
280
- <p>
281
- <span class='note_label'>NOTE</span>
282
- &#160; This is an annotation of document ISSN.
283
- </p>
284
- </div>
285
- <div class='Note'>
286
- <p>
287
- <span class='note_label'>NOTE</span>
288
- &#160; This is another annotation of document ISSN.
289
- </p>
290
- </div>
291
- <p id='ISO3696' class='Biblio'>
292
- [3]&#160; ISO 3696,
293
- <i>Water for analytical laboratory use</i>
294
- </p>
295
- <p id='ref10' class='Biblio'>
296
- [10]&#160;
297
- <span style='font-variant:small-caps;'>Standard No I.C.C 167</span>
298
- .
299
- <i>
300
- Determination of the protein content in cereal and cereal products
301
- for food and animal feeding stuffs according to the Dumas combustion
302
- method
303
- </i>
304
- (see
305
- <a href='http://www.icc.or.at'>http://www.icc.or.at</a>
306
- )
307
- </p>
308
- <p id='ref11' class='Biblio'>
309
- [4]&#160; IETF RFC 10,
310
- <i>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</i>.
311
- </p>
312
- <p id='ref12' class='Biblio'>
313
- Citn&#160; IETF RFC 20, CitationWorks. 2019.
314
- <i>How to cite a reference</i>
315
- .
316
- </p>
317
- </div>
318
- <aside id='fn:1' class='footnote'>
319
- <p>Under preparation. (Stage at the time of publication ISO/DIS 16634)</p>
320
- </aside>
321
- </div>
322
- </body>
323
- </html>
324
-
222
+ <div>
223
+ <h1>1&#xa0; Normative References</h1>
224
+ <p>
225
+ The following documents are referred to in the text in such a way that
226
+ some or all of their content constitutes requirements of this
227
+ document. For dated references, only the edition cited applies. For
228
+ undated references, the latest edition of the referenced document
229
+ (including any amendments) applies.
230
+ </p>
231
+ <p id='ISO712' class='NormRef'>
232
+ [110], ISO 712,
233
+ <i>Cereals and cereal products</i>
234
+ </p>
235
+ <p id='ISO16634' class='NormRef'>
236
+ ISO 16634:-- (all parts)
237
+ <a class='FootnoteRef' href='#fn:1'>
238
+ <sup>1</sup>
239
+ </a>
240
+ ,
241
+ <i>Cereals, pulses, milled cereal products, oilseeds and animal feeding stuffs</i>
242
+ </p>
243
+ <p id='ISO20483' class='NormRef'>
244
+ ISO 20483:2013-2014,
245
+ <i>Cereals and pulses</i>
246
+ </p>
247
+ <p id='ref1' class='NormRef'>
248
+ ICC 167,
249
+ <span style='font-variant:small-caps;'>Standard No I.C.C 167</span>
250
+ .
251
+ <i>
252
+ Determination of the protein content in cereal and cereal products
253
+ for food and animal feeding stuffs according to the Dumas combustion
254
+ method
255
+ </i>
256
+ (see
257
+ <a href='http://www.icc.or.at'>http://www.icc.or.at</a>
258
+ ) [ICC 167]
259
+ </p>
260
+ <div class='Note'>
261
+ <p>
262
+ <span class='note_label'>NOTE</span>
263
+ &#xa0; This is an annotation of ISO 20483:2013-2014
264
+ </p>
265
+ </div>
266
+ <p id='zip_ffs' class='NormRef'>[5] Title 5</p>
267
+ </div>
268
+ <br/>
269
+ <div>
270
+ <h1 class='Section3'>Bibliography</h1>
271
+ <p id='ISBN' class='Biblio'>
272
+ [1]&#xa0;
273
+ <i>Chemicals for analytical laboratory use</i>
274
+ . n.p.: n.d. ISBN.
275
+ </p>
276
+ <p id='ISSN' class='Biblio'>
277
+ [2]&#xa0;
278
+ <i>Instruments for analytical laboratory use</i>
279
+ . n.d. ISSN.
280
+ </p>
281
+ <div class='Note'>
282
+ <p>
283
+ <span class='note_label'>NOTE</span>
284
+ &#xa0; This is an annotation of document ISSN.
285
+ </p>
286
+ </div>
287
+ <div class='Note'>
288
+ <p>
289
+ <span class='note_label'>NOTE</span>
290
+ &#xa0; This is another annotation of document ISSN.
291
+ </p>
292
+ </div>
293
+ <p id='ISO3696' class='Biblio'>
294
+ [3]&#xa0; ISO 3696,
295
+ <i>Water for analytical laboratory use</i>
296
+ </p>
297
+ <p id='ref10' class='Biblio'>
298
+ [4]&#xa0;
299
+ <span style='font-variant:small-caps;'>Standard No I.C.C 167</span>
300
+ .
301
+ <i>
302
+ Determination of the protein content in cereal and cereal products
303
+ for food and animal feeding stuffs according to the Dumas combustion
304
+ method
305
+ </i>
306
+ (see
307
+ <a href='http://www.icc.or.at'>http://www.icc.or.at</a>
308
+ )
309
+ </p>
310
+ <p id='ref11' class='Biblio'>
311
+ [5]&#xa0; IETF RFC 10,
312
+ <i>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</i>
313
+ </p>
314
+ <p id='ref12' class='Biblio'>
315
+ Citn&#xa0; IETF RFC 20, CitationWorks. 2019.
316
+ <i>How to cite a reference</i>
317
+ .
318
+ </p>
319
+ </div>
320
+ <aside id='fn:1' class='footnote'>
321
+ <p>Under preparation. (Stage at the time of publication ISO/DIS 16634)</p>
322
+ </aside>
323
+ </div>
324
+ </body>
325
+ </html>
325
326
  OUTPUT
326
327
  expect(xmlpp(IsoDoc::Iec::PresentationXMLConvert.new({})
327
328
  .convert("test", input, true).sub(
@@ -89,7 +89,6 @@ RSpec.describe Metanorma::Iec do
89
89
  :title-intro-fr: Introduction Française
90
90
  :title-main-fr: Titre Principal
91
91
  :title-part-fr: Part du Titre
92
- :library-ics: 1,2,3
93
92
  :accessibility-color-inside: true
94
93
  :price-code: XC
95
94
  :cen-processing: true
@@ -176,15 +175,6 @@ RSpec.describe Metanorma::Iec do
176
175
  <workgroup number='31' type='C1'>WG1</workgroup>
177
176
  <secretariat>SECRETARIAT</secretariat>
178
177
  </editorialgroup>
179
- <ics>
180
- <code>1</code>
181
- </ics>
182
- <ics>
183
- <code>2</code>
184
- </ics>
185
- <ics>
186
- <code>3</code>
187
- </ics>
188
178
  <structuredidentifier>
189
179
  <project-number part='1'>IEC 1000</project-number>
190
180
  </structuredidentifier>
@@ -156,15 +156,19 @@ RSpec.describe Metanorma::Iec do
156
156
  </bibdata>
157
157
  #{@boilerplate}
158
158
  <sections>
159
- <clause id='_' obligation='normative'>
159
+ <terms id='_' obligation='normative'>
160
160
  <title>Terms and definitions</title>
161
- <terms id='_' obligation='normative'>
162
- <title>General</title>
161
+ <term id='term-General'>
162
+ <preferred>
163
+ <expression>
164
+ <name>General</name>
165
+ </expression>
166
+ </preferred>
163
167
  <term id='term-Term-1'>
164
168
  <preferred><expression><name>Term 1</name></expression></preferred>
165
169
  </term>
166
- </terms>
167
- </clause>
170
+ </term>
171
+ </terms>
168
172
  </sections>
169
173
  </iec-standard>
170
174
 
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: 2.1.5
4
+ version: 2.1.8
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: 2022-07-18 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.1
19
+ version: 2.1.8
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.1
26
+ version: 2.1.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby-jing
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -203,6 +203,7 @@ extensions: []
203
203
  extra_rdoc_files: []
204
204
  files:
205
205
  - ".github/workflows/rake.yml"
206
+ - ".github/workflows/release.yml"
206
207
  - ".gitignore"
207
208
  - ".hound.yml"
208
209
  - ".rubocop.yml"
@@ -216,14 +217,11 @@ files:
216
217
  - lib/isodoc/iec/html/header.html
217
218
  - lib/isodoc/iec/html/html_iec_intro.html
218
219
  - lib/isodoc/iec/html/html_iec_titlepage.html
219
- - lib/isodoc/iec/html/htmlstyle.css
220
220
  - lib/isodoc/iec/html/htmlstyle.scss
221
- - lib/isodoc/iec/html/isodoc.css
222
221
  - lib/isodoc/iec/html/isodoc.scss
223
222
  - lib/isodoc/iec/html/scripts.html
224
223
  - lib/isodoc/iec/html/word_iec_intro.html
225
224
  - lib/isodoc/iec/html/word_iec_titlepage.html
226
- - lib/isodoc/iec/html/wordstyle.css
227
225
  - lib/isodoc/iec/html/wordstyle.scss
228
226
  - lib/isodoc/iec/html_convert.rb
229
227
  - lib/isodoc/iec/i18n-en.yaml
@@ -283,7 +281,7 @@ homepage: https://github.com/metanorma/metanorma-iec
283
281
  licenses:
284
282
  - BSD-2-Clause
285
283
  metadata: {}
286
- post_install_message:
284
+ post_install_message:
287
285
  rdoc_options: []
288
286
  require_paths:
289
287
  - lib
@@ -298,8 +296,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
296
  - !ruby/object:Gem::Version
299
297
  version: '0'
300
298
  requirements: []
301
- rubygems_version: 3.3.16
302
- signing_key:
299
+ rubygems_version: 3.1.6
300
+ signing_key:
303
301
  specification_version: 4
304
302
  summary: metanorma-iec lets you write IEC standards in AsciiDoc.
305
303
  test_files: []