metanorma-iso 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d36e59d91ee690729ee514a08a08a15a650b6e3c1218cf7c4cdc31b799be4972
4
- data.tar.gz: d978786dec8b8f8d31dde329b859d13b70fcfa7d3d1c10ff88ece85689f34c32
3
+ metadata.gz: 2241f70d9971c46ab77a6eafd9dc9569111b88b2a949961f5a4e8450f93c273a
4
+ data.tar.gz: dcbe613d07eb914598794c66d3291391fc01820c85ee9332d74f20ed892e3ae7
5
5
  SHA512:
6
- metadata.gz: d5b13d09e33a161365fac3d98d996dc2b195520853b5f97f3225804ca392b88c1768dd6d9b7950a19ae16a847a080a73f785eed4e93468a98f947dbf8bdc64e0
7
- data.tar.gz: 60cfad22dc19fcad0c05526322be131cf6c40eaa4b7cd5815e25979145ea568c696eb89d28f634340c4b288063c33780070855ed81bd87134ec2ea9286d529c3
6
+ metadata.gz: ca150d0a8b852937ef4acdd684dd5ea341143d5e2696491324b22f1222b8e51a53e2ff12e4d087e7a2d00aab53b97b2cfd3f49e8e5c028ad5b5fb35ee55f61bf
7
+ data.tar.gz: 02a38f34015a38879c103316bcd28a6742b6eee4560bff7a19bacfbbf556bc4ee615e2a3d45a944c73f646ebefb829885fc24c06d0b67fa80862dd359c5bec9d
@@ -213,7 +213,7 @@ Sampling shall be carried out in accordance with <<ISO24333,clause 5>>
213
213
  == Test methods
214
214
  --
215
215
 
216
- https://asciidoctor.org/docs/user-manual/#section-styles[Section styles] are used to indicate specific types of section: `[bibliography]` for Normative References and Bibliography, `[appendix]` for Annexes, and `[%appendix]` for Appendixes (annexes of annexes). These styles must be provided for the sections to be processed correctly: bibliographic references will not be recognised as such, for example, without the `[bibliography]` style applied:
216
+ https://asciidoctor.org/docs/user-manual/#section-styles[Section styles] are used to indicate specific types of section: `[abstract]` for Abstracts, `[bibliography]` for Normative References and Bibliography, `[appendix]` for Annexes, and `[%appendix]` for Appendixes (annexes of annexes). These styles must be provided for the sections to be processed correctly: bibliographic references will not be recognised as such, for example, without the `[bibliography]` style applied:
217
217
 
218
218
  [source,asciidoctor]
219
219
  --
@@ -223,7 +223,9 @@ https://asciidoctor.org/docs/user-manual/#section-styles[Section styles] are use
223
223
  * [[[ISO3696,ISO 3696]]], _Water for analytical laboratory use -- Specification and test methods_
224
224
  --
225
225
 
226
- Sections whose position is set by the standard (e.g., for ISO, Introduction, Scope, Normative References, Terms and Definitions, Symbols and Abbreviations, Bibliography) need to be titled as such, as first-level headings.
226
+ Sections whose position is set by the standard (e.g., for ISO, Introduction, Scope, Normative References, Terms and Definitions, Symbols and Abbreviations, Bibliography; this also applies to Abstracts) need to be titled as such, as first-level headings.
227
+
228
+ TIP: Abstracts are not rendered in ISO and GB standards, but they are still incorporated into the document metadata (`bibdata`) at the start of the Metanorma XML generated.
227
229
 
228
230
  === Terms and Definitions
229
231
 
@@ -148,7 +148,7 @@ module Asciidoctor
148
148
  def locality_erefs_validate(root)
149
149
  root.xpath("//eref[locality]").each do |t|
150
150
  if /^(ISO|IEC)/.match t["citeas"]
151
- unless /^:[ ]?(\d+{4}|--)$/.match t["citeas"]
151
+ unless /:[ ]?(\d+{4}|--)$/.match t["citeas"]
152
152
  warn "ISO: undated reference #{t['citeas']} should not contain "\
153
153
  "specific elements"
154
154
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "1.0.9".freeze
3
+ VERSION = "1.0.10".freeze
4
4
  end
5
5
  end
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
 
32
32
  spec.add_dependency "asciidoctor", "~> 1.5.7"
33
33
  spec.add_dependency "ruby-jing"
34
- spec.add_dependency "isodoc", "~> 0.9.0"
34
+ spec.add_dependency "isodoc", "~> 0.9.8"
35
35
  spec.add_dependency "iev", "~> 0.2.0"
36
36
  spec.add_dependency "metanorma-standoc", "~> 1.0.0"
37
37
 
@@ -1,7 +1,7 @@
1
1
  MIME-Version: 1.0
2
- Content-Type: multipart/related; boundary="----=_NextPart_70003b7b.22bd.48f2"
2
+ Content-Type: multipart/related; boundary="----=_NextPart_0e69eebe.33ff.4624"
3
3
 
4
- ------=_NextPart_70003b7b.22bd.48f2
4
+ ------=_NextPart_0e69eebe.33ff.4624
5
5
  Content-Location: file:///C:/Doc/iso.htm
6
6
  Content-Type: text/html; charset="utf-8"
7
7
 
@@ -834,11 +834,11 @@ Switzerland<p class="MsoNormal"></p></span></p>
834
834
  <p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes">&#xA0;</span>TOC
835
835
  \o "1-2" \h \z \u <span style="mso-element:field-separator"></span></span>
836
836
  <span class="MsoHyperlink"><span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
837
- <a href="#_Toc766267354">Foreword<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
837
+ <a href="#_Toc365979697">Foreword<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
838
838
  <span style="mso-tab-count:1 dotted">. </span>
839
839
  </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
840
840
  <span style="mso-element:field-begin"></span></span>
841
- <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc766267354 \h </span>
841
+ <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc365979697 \h </span>
842
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>
843
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>
844
844
 
@@ -871,7 +871,7 @@ Switzerland<p class="MsoNormal"></p></span></p>
871
871
  </html>
872
872
 
873
873
 
874
- ------=_NextPart_70003b7b.22bd.48f2
874
+ ------=_NextPart_0e69eebe.33ff.4624
875
875
  Content-Location: file:///C:/Doc/iso_files/filelist.xml
876
876
  Content-Transfer-Encoding: base64
877
877
  Content-Type: application/xml
@@ -881,7 +881,7 @@ ICAgICAgIDxvOk1haW5GaWxlIEhSZWY9Ii4uL3NwZWMvYXNzZXRzL2lzby5odG0iLz4gIDxvOkZp
881
881
  bGUgSFJlZj0iZmlsZWxpc3QueG1sIi8+CiAgPG86RmlsZSBIUmVmPSJoZWFkZXIuaHRtbCIvPgo8
882
882
  L3htbD4K
883
883
 
884
- ------=_NextPart_70003b7b.22bd.48f2
884
+ ------=_NextPart_0e69eebe.33ff.4624
885
885
  Content-Location: file:///C:/Doc/iso_files/header.html
886
886
  Content-Transfer-Encoding: base64
887
887
  Content-Type: text/html charset="utf-8"
@@ -1074,4 +1074,4 @@ cD4NCg0KPHAgY2xhc3M9TXNvRm9vdGVyPjxzcGFuIGxhbmc9RU4tQVUgc3R5bGU9J2ZvbnQtc2l6
1074
1074
  ZToxMC4wcHQ7Jz7CqQ0KJm5ic3A7Jm5ic3A74oCTIEFsbCByaWdodHMgcmVzZXJ2ZWQ8bzpwPjwv
1075
1075
  bzpwPjwvc3Bhbj48L3A+DQoNCjwvZGl2Pg0KDQoNCg0KPC9ib2R5Pg0KDQo8L2h0bWw+DQo=
1076
1076
 
1077
- ------=_NextPart_70003b7b.22bd.48f2--
1077
+ ------=_NextPart_0e69eebe.33ff.4624--
@@ -391,7 +391,7 @@ OUTPUT
391
391
  <p id="ISO712" class="NormRef">ISO 712, <i> Cereals and cereal products?~@~I?~@~T?~@~IDetermination of moisture content?~@~I?~@~T?~@~IReference method</i></p>
392
392
  </div>
393
393
  <div id="H"><h1>2.&#160; Terms and definitions</h1><p>For the purposes of this document, the terms and definitions
394
- given in ISO 712 and the following apply.</p>
394
+ given in <a href="#ISO712">ISO 712</a> and the following apply.</p>
395
395
  <p>ISO and IEC maintain terminological databases for use in
396
396
  standardization at the following addresses:</p>
397
397
 
@@ -443,7 +443,7 @@ OUTPUT
443
443
  <p id="ISO712" class="NormRef">ISO 712, <i> Cereals and cereal products?~@~I?~@~T?~@~IDetermination of moisture content?~@~I?~@~T?~@~IReference method</i></p>
444
444
  </div>
445
445
  <div id="H"><h1>2.&#160; Terms and definitions</h1><p>For the purposes of this document,
446
- the terms and definitions given in ISO 712, ISO 712 and ISO 712 apply.</p>
446
+ the terms and definitions given in <a href="#ISO712">ISO 712</a>, <a href="#ISO712">ISO 712</a> and <a href="#ISO712">ISO 712</a> apply.</p>
447
447
  <p>ISO and IEC maintain terminological databases for use in
448
448
  standardization at the following addresses:</p>
449
449
 
@@ -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">&lt;rice&gt; rice retaining its husk after threshing</p>
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">
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:0 0 0 1em;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" 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">
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:0 0 0 1em;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" 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">
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:0 0 0 1em;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">&lt;rice&gt; rice retaining its husk after threshing</p>
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">
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:0 0 0 1em;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" 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">
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:0 0 0 1em;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" 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">
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:0 0 0 1em;margin-left:0pt">EXAMPLE</td><td valign="top" class="example">
192
192
  <ul>
193
193
  <li>A</li>
194
194
  </ul>
@@ -436,7 +436,7 @@ RSpec.describe IsoDoc do
436
436
  <h1>1.&#160; Scope</h1>
437
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;padding:0pt;margin-left:0pt">EXAMPLE</td>
439
+ <td valign="top" class="example_label" style="width:82.8pt;padding:0 0 0 1em;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.&#160; Widgets</h1>
462
462
  <div id="widgets1"><h2>3.1. </h2>
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">
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:0 0 0 1em;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" 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">
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:0 0 0 1em;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" 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">
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:0 0 0 1em;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" 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">
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:0 0 0 1em;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" 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">
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:0 0 0 1em;margin-left:0pt">EXAMPLE 2</td><td valign="top" class="example">
484
484
  <p>Hello</p>
485
485
  </td></tr></table>
486
486
  </div>
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.9
4
+ version: 1.0.10
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-11-12 00:00:00.000000000 Z
11
+ date: 2018-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.9.0
47
+ version: 0.9.8
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.9.0
54
+ version: 0.9.8
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: iev
57
57
  requirement: !ruby/object:Gem::Requirement