metanorma-iso 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isodoc/iso/html/header-dis.html +111 -29
  3. data/lib/isodoc/iso/html/isodoc-dis.css +65 -64
  4. data/lib/isodoc/iso/html/isodoc-dis.scss +65 -64
  5. data/lib/isodoc/iso/html/style-human.css +1 -2
  6. data/lib/isodoc/iso/html/style-human.scss +0 -1
  7. data/lib/isodoc/iso/html/style-iso.css +1 -2
  8. data/lib/isodoc/iso/html/style-iso.scss +0 -1
  9. data/lib/isodoc/iso/html/wordstyle-dis.css +10 -4
  10. data/lib/isodoc/iso/html/wordstyle-dis.scss +10 -4
  11. data/lib/isodoc/iso/i18n-en.yaml +4 -4
  12. data/lib/isodoc/iso/iso.amendment.xsl +205 -37
  13. data/lib/isodoc/iso/iso.international-standard.xsl +205 -37
  14. data/lib/isodoc/iso/presentation_bibdata.rb +13 -9
  15. data/lib/isodoc/iso/presentation_xml_convert.rb +5 -3
  16. data/lib/isodoc/iso/word_convert.rb +6 -4
  17. data/lib/isodoc/iso/word_dis_cleanup.rb +24 -3
  18. data/lib/isodoc/iso/word_dis_convert.rb +4 -1
  19. data/lib/metanorma/iso/base.rb +2 -1
  20. data/lib/metanorma/iso/biblio.rng +5 -0
  21. data/lib/metanorma/iso/isodoc.rng +46 -12
  22. data/lib/metanorma/iso/version.rb +1 -1
  23. data/metanorma-iso.gemspec +5 -2
  24. metadata +4 -87
  25. data/.github/workflows/automerge.yml +0 -31
  26. data/.github/workflows/rake.yml +0 -15
  27. data/.github/workflows/release.yml +0 -24
  28. data/.github/workflows/ubuntu.yml +0 -41
  29. data/Rakefile +0 -8
  30. data/bin/rspec +0 -17
  31. data/spec/assets/header.html +0 -7
  32. data/spec/assets/html.css +0 -2
  33. data/spec/assets/htmlcover.html +0 -4
  34. data/spec/assets/htmlintro.html +0 -5
  35. data/spec/assets/i18n.yaml +0 -2
  36. data/spec/assets/iso.adoc +0 -10
  37. data/spec/assets/iso.headless.html +0 -33
  38. data/spec/assets/iso.xml +0 -71
  39. data/spec/assets/rice_image1.png +0 -0
  40. data/spec/assets/scripts.html +0 -3
  41. data/spec/assets/std.css +0 -2
  42. data/spec/assets/word.css +0 -2
  43. data/spec/assets/wordcover.html +0 -3
  44. data/spec/assets/wordintro.html +0 -4
  45. data/spec/examples/103_01_02.html +0 -247
  46. data/spec/examples/english.yaml +0 -69
  47. data/spec/examples/iso_123_.xml +0 -45
  48. data/spec/examples/iso_123_all_parts.xml +0 -45
  49. data/spec/examples/iso_123_no_year_note.xml +0 -46
  50. data/spec/examples/iso_124_.xml +0 -41
  51. data/spec/examples/iso_216_.xml +0 -47
  52. data/spec/examples/iso_iec_12382_.xml +0 -48
  53. data/spec/examples/rice.adoc +0 -714
  54. data/spec/examples/rice.preview.html +0 -1870
  55. data/spec/examples/rice.sh +0 -4
  56. data/spec/examples/rice_img/1000-1_ed2amd3fig1a.png +0 -0
  57. data/spec/examples/rice_img/1000-1_ed2amd3fig1b.png +0 -0
  58. data/spec/examples/rice_img/1000-1_ed2amd3fig2.png +0 -0
  59. data/spec/examples/rice_img/1000-1_ed2amd3fig3.png +0 -0
  60. data/spec/examples/rice_img/1000-1_ed2amd3fig4.png +0 -0
  61. data/spec/examples/rice_img/1000-1_ed2amd3fig5_f.png +0 -0
  62. data/spec/examples/rice_img/1000-1_ed2amd3figA.png +0 -0
  63. data/spec/examples/rice_img/1000-1_ed2amd3figA1.png +0 -0
  64. data/spec/examples/rice_img/1000-1_ed2amd3figA2.png +0 -0
  65. data/spec/examples/rice_img/1000-1_ed2amd3figTab1.png +0 -0
  66. data/spec/examples/rice_img/1000-1_ed2amd3figTab2.png +0 -0
  67. data/spec/examples/rice_img/1001_ed2amd3fig1.png +0 -0
  68. data/spec/examples/rice_img/ISO_1213_1.png +0 -0
  69. data/spec/examples/rice_img/SL1000-1_ed2amd3fig1.png +0 -0
  70. data/spec/examples/rice_img/rice_image1.png +0 -0
  71. data/spec/examples/rice_img/rice_image2.png +0 -0
  72. data/spec/examples/rice_img/rice_image3_1.png +0 -0
  73. data/spec/examples/rice_img/rice_image3_2.png +0 -0
  74. data/spec/examples/rice_img/rice_image3_3.png +0 -0
  75. data/spec/isodoc/amd_spec.rb +0 -986
  76. data/spec/isodoc/blocks_spec.rb +0 -1174
  77. data/spec/isodoc/i18n_spec.rb +0 -1579
  78. data/spec/isodoc/inline_spec.rb +0 -1060
  79. data/spec/isodoc/iso_spec.rb +0 -255
  80. data/spec/isodoc/metadata_spec.rb +0 -701
  81. data/spec/isodoc/postproc_spec.rb +0 -1089
  82. data/spec/isodoc/ref_spec.rb +0 -439
  83. data/spec/isodoc/section_spec.rb +0 -998
  84. data/spec/isodoc/table_spec.rb +0 -420
  85. data/spec/isodoc/terms_spec.rb +0 -314
  86. data/spec/isodoc/word_dis_spec.rb +0 -2064
  87. data/spec/isodoc/xref_spec.rb +0 -1747
  88. data/spec/metanorma/amd_spec.rb +0 -724
  89. data/spec/metanorma/base_spec.rb +0 -1384
  90. data/spec/metanorma/blank_spec.rb +0 -38
  91. data/spec/metanorma/blocks_spec.rb +0 -624
  92. data/spec/metanorma/cleanup_spec.rb +0 -1645
  93. data/spec/metanorma/inline_spec.rb +0 -203
  94. data/spec/metanorma/lists_spec.rb +0 -197
  95. data/spec/metanorma/macros_spec.rb +0 -99
  96. data/spec/metanorma/processor_spec.rb +0 -161
  97. data/spec/metanorma/refs_spec.rb +0 -672
  98. data/spec/metanorma/section_spec.rb +0 -492
  99. data/spec/metanorma/table_spec.rb +0 -329
  100. data/spec/metanorma/validate_spec.rb +0 -2153
  101. data/spec/relaton/render_spec.rb +0 -568
  102. data/spec/requirements/requirement_components_spec.rb +0 -610
  103. data/spec/requirements/requirements_spec.rb +0 -1596
  104. data/spec/requirements/xref_spec.rb +0 -1211
  105. data/spec/spec_helper.rb +0 -313
  106. data/spec/vcr_cassettes/docrels.yml +0 -385
  107. data/spec/vcr_cassettes/withdrawn_iso.yml +0 -295
@@ -1,1384 +0,0 @@
1
- require "spec_helper"
2
-
3
- RSpec.describe Metanorma::ISO do
4
- it "has a version number" do
5
- expect(Metanorma::ISO::VERSION).not_to be nil
6
- end
7
-
8
- it "processes default metadata" do
9
- output = Asciidoctor.convert(<<~"INPUT", *OPTIONS)
10
- = Document title
11
- Author
12
- :docfile: test.adoc
13
- :nodoc:
14
- :novalid:
15
- :no-isobib:
16
- :docnumber: 1000
17
- :partnumber: 1
18
- :edition: 2
19
- :revdate: 2000-01-01
20
- :draft: 0.3.4
21
- :technical-committee: TC
22
- :technical-committee-number: 1
23
- :technical-committee-type: A
24
- :subcommittee: SC
25
- :subcommittee-number: 2
26
- :subcommittee-type: B
27
- :workgroup: WG
28
- :workgroup-number: 3
29
- :workgroup-type: C
30
- :technical-committee_2: TC1
31
- :technical-committee-number_2: 11
32
- :technical-committee-type_2: A1
33
- :subcommittee_2: SC1
34
- :subcommittee-number_2: 21
35
- :subcommittee-type_2: B1
36
- :workgroup_2: WG1
37
- :workgroup-number_2: 31
38
- :workgroup-type_2: C1
39
- :secretariat: SECRETARIAT
40
- :approval-technical-committee: TCa
41
- :approval-technical-committee-number: 1a
42
- :approval-technical-committee-type: Aa
43
- :approval-subcommittee: SCa
44
- :approval-subcommittee-number: 2a
45
- :approval-subcommittee-type: Ba
46
- :approval-workgroup: WGa
47
- :approval-workgroup-number: 3a
48
- :approval-workgroup-type: Ca
49
- :approval-technical-committee_2: TC1a
50
- :approval-technical-committee-number_2: 11a
51
- :approval-technical-committee-type_2: A1a
52
- :approval-subcommittee_2: SC1a
53
- :approval-subcommittee-number_2: 21a
54
- :approval-subcommittee-type_2: B1a
55
- :approval-workgroup_2: WG1a
56
- :approval-workgroup-number_2: 31a
57
- :approval-workgroup-type_2: C1a
58
- :approval-agency: ISO/IEC
59
- :docstage: 20
60
- :docsubstage: 20
61
- :iteration: 3
62
- :language: en
63
- :title-intro-en: Introduction
64
- :title-main-en: Main Title -- Title
65
- :title-part-en: Title Part
66
- :title-intro-fr: Introduction Française
67
- :title-main-fr: Titre Principal
68
- :title-part-fr: Part du Titre
69
- :copyright-year: 2000
70
- :horizontal: true
71
- INPUT
72
- expect(xmlpp(output.sub(%r{<boilerplate>.*</boilerplate>}m, "")))
73
- .to be_equivalent_to xmlpp(<<~"OUTPUT")
74
- <?xml version="1.0" encoding="UTF-8"?>
75
- <iso-standard type="semantic" version="#{Metanorma::ISO::VERSION}" xmlns="https://www.metanorma.org/ns/iso">
76
- <bibdata type="standard">
77
- <title format="text/plain" language="en" type="main">Introduction — Main Title — Title — Title Part</title>
78
- <title format="text/plain" language="en" type="title-intro">Introduction</title>
79
- <title format="text/plain" language="en" type="title-main">Main Title — Title</title>
80
- <title format="text/plain" language="en" type="title-part">Title Part</title>
81
- <title format="text/plain" language="fr" type="main">Introduction Française — Titre Principal — Part du Titre</title>
82
- <title format="text/plain" language="fr" type="title-intro">Introduction Française</title>
83
- <title format="text/plain" language="fr" type="title-main">Titre Principal</title>
84
- <title format="text/plain" language="fr" type="title-part">Part du Titre</title>
85
- <docidentifier type="ISO">ISO/PreWD3 1000-1</docidentifier>
86
- <docidentifier type='iso-undated'>ISO/PreWD3 1000-1</docidentifier>
87
- <docidentifier type="iso-with-lang">ISO/PreWD3 1000-1(E)</docidentifier>
88
- <docidentifier type="iso-reference">ISO/PreWD3 1000-1:2000(E)</docidentifier>
89
- <docnumber>1000</docnumber>
90
- <contributor>
91
- <role type="author"/>
92
- <organization>
93
- <name>International Organization for Standardization</name>
94
- <abbreviation>ISO</abbreviation>
95
- </organization>
96
- </contributor>
97
- <contributor>
98
- <role type="publisher"/>
99
- <organization>
100
- <name>International Organization for Standardization</name>
101
- <abbreviation>ISO</abbreviation>
102
- </organization>
103
- </contributor>
104
- <edition>2</edition>
105
- <version>
106
- <revision-date>2000-01-01</revision-date>
107
- <draft>0.3.4</draft>
108
- </version>
109
- <language>en</language>
110
- <script>Latn</script>
111
- <status>
112
- <stage abbreviation="WD">20</stage>
113
- <substage>20</substage>
114
- <iteration>3</iteration>
115
- </status>
116
- <copyright>
117
- <from>2000</from>
118
- <owner>
119
- <organization>
120
- <name>International Organization for Standardization</name>
121
- <abbreviation>ISO</abbreviation>
122
- </organization>
123
- </owner>
124
- </copyright>
125
- <ext>
126
- <doctype>standard</doctype>
127
- <horizontal>true</horizontal>
128
- <editorialgroup>
129
- <agency>ISO</agency>
130
- <technical-committee number="1" type="A">TC</technical-committee>
131
- <technical-committee number="11" type="A1">TC1</technical-committee>
132
- <subcommittee number="2" type="B">SC</subcommittee>
133
- <subcommittee number="21" type="B1">SC1</subcommittee>
134
- <workgroup number="3" type="C">WG</workgroup>
135
- <workgroup number="31" type="C1">WG1</workgroup>
136
- <secretariat>SECRETARIAT</secretariat>
137
- </editorialgroup>
138
- <approvalgroup>
139
- <agency>ISO</agency>
140
- <agency>IEC</agency>
141
- <technical-committee number="1a" type="Aa">TCa</technical-committee>
142
- <technical-committee number="11a" type="A1a">TC1a</technical-committee>
143
- <subcommittee number="2a" type="Ba">SCa</subcommittee>
144
- <subcommittee number="21a" type="B1a">SC1a</subcommittee>
145
- <workgroup number="3a" type="Ca">WGa</workgroup>
146
- <workgroup number="31a" type="C1a">WG1a</workgroup>
147
- </approvalgroup>
148
- <structuredidentifier>
149
- <project-number part="1">ISO 1000</project-number>
150
- </structuredidentifier>
151
- <stagename>Third working draft</stagename>
152
- </ext>
153
- </bibdata>
154
- <sections/>
155
- </iso-standard>
156
- OUTPUT
157
- end
158
-
159
- it "processes complex metadata" do
160
- output = Asciidoctor.convert(<<~"INPUT", *OPTIONS)
161
- = Document title
162
- Author
163
- :docfile: test.adoc
164
- :nodoc:
165
- :novalid:
166
- :no-isobib:
167
- :docnumber: 1000
168
- :partnumber: 1-1
169
- :tc-docnumber: 2000, 2003
170
- :language: el
171
- :script: Grek
172
- :publisher: IEC;IETF;ISO
173
- :copyright-holder: IETF;ISO
174
- :copyright-year: 2001
175
- :doctype: technical-report
176
- :pub-address: 1 Infinity Loop + \
177
- California
178
- :pub-phone: 3333333
179
- :pub-fax: 4444444
180
- :pub-email: x@example.com
181
- :pub-uri: http://www.example.com
182
- :docstage:
183
- :docsubstage:
184
- :technical-committee: TC
185
- :technical-committee-number: 1
186
- :subcommittee: SC
187
- :subcommittee-number: 2
188
- :workgroup: WG
189
- :workgroup-number: 3
190
- :approval-technical-committee: TC
191
- :approval-technical-committee-number: 1
192
- :approval-subcommittee: SC
193
- :approval-subcommittee-number: 2
194
- :approval-workgroup: WG
195
- :approval-workgroup-number: 3
196
- INPUT
197
- expect(xmlpp(output.sub(%r{<boilerplate>.*</boilerplate>}m, "")))
198
- .to be_equivalent_to xmlpp(<<~"OUTPUT")
199
- <?xml version="1.0" encoding="UTF-8"?>
200
- <iso-standard type="semantic" version="#{Metanorma::ISO::VERSION}" xmlns="https://www.metanorma.org/ns/iso">
201
- <bibdata type="standard">
202
- <docidentifier type='ISO'>IEC/IETF/ISO/TR 1000-1-1:2001</docidentifier>
203
- <docidentifier type='iso-undated'>IEC/IETF/ISO/TR 1000-1-1</docidentifier>
204
- <docidentifier type='iso-with-lang'>IEC/IETF/ISO/TR 1000-1-1:2001(X)</docidentifier>
205
- <docidentifier type='iso-reference'>IEC/IETF/ISO/TR 1000-1-1:2001(X)</docidentifier>
206
- <docidentifier type="iso-tc">2000</docidentifier>
207
- <docidentifier type="iso-tc">2003</docidentifier>
208
- <docnumber>1000</docnumber>
209
- <contributor>
210
- <role type="author"/>
211
- <organization>
212
- <name>International Electrotechnical Commission</name>
213
- <abbreviation>IEC</abbreviation>
214
- </organization>
215
- </contributor>
216
- <contributor>
217
- <role type="author"/>
218
- <organization>
219
- <name>IETF</name>
220
- </organization>
221
- </contributor>
222
- <contributor>
223
- <role type="author"/>
224
- <organization>
225
- <name>International Organization for Standardization</name>
226
- <abbreviation>ISO</abbreviation>
227
- </organization>
228
- </contributor>
229
- <contributor>
230
- <role type="publisher"/>
231
- <organization>
232
- <name>International Electrotechnical Commission</name>
233
- <abbreviation>IEC</abbreviation>
234
- <address>
235
- <formattedAddress>1 Infinity Loop + California</formattedAddress>
236
- </address>
237
- <phone>3333333</phone>
238
- <phone type='fax'>4444444</phone>
239
- <email>x@example.com</email>
240
- <uri>http://www.example.com</uri>
241
- </organization>
242
- </contributor>
243
- <contributor>
244
- <role type="publisher"/>
245
- <organization>
246
- <name>IETF</name>
247
- <address>
248
- <formattedAddress>1 Infinity Loop + California</formattedAddress>
249
- </address>
250
- <phone>3333333</phone>
251
- <phone type='fax'>4444444</phone>
252
- <email>x@example.com</email>
253
- <uri>http://www.example.com</uri>
254
- </organization>
255
- </contributor>
256
- <contributor>
257
- <role type="publisher"/>
258
- <organization>
259
- <name>International Organization for Standardization</name>
260
- <abbreviation>ISO</abbreviation>
261
- <address>
262
- <formattedAddress>1 Infinity Loop + California</formattedAddress>
263
- </address>
264
- <phone>3333333</phone>
265
- <phone type='fax'>4444444</phone>
266
- <email>x@example.com</email>
267
- <uri>http://www.example.com</uri>
268
- </organization>
269
- </contributor>
270
- <language>el</language>
271
- <script>Grek</script>
272
- <status>
273
- <stage abbreviation="IS">60</stage>
274
- <substage>60</substage>
275
- </status>
276
- <copyright>
277
- <from>2001</from>
278
- <owner>
279
- <organization>
280
- <name>IETF</name>
281
- <address>
282
- <formattedAddress>1 Infinity Loop + California</formattedAddress>
283
- </address>
284
- <phone>3333333</phone>
285
- <phone type='fax'>4444444</phone>
286
- <email>x@example.com</email>
287
- <uri>http://www.example.com</uri>
288
- </organization>
289
- </owner>
290
- </copyright>
291
- <copyright>
292
- <from>2001</from>
293
- <owner>
294
- <organization>
295
- <name>International Organization for Standardization</name>
296
- <abbreviation>ISO</abbreviation>
297
- <address>
298
- <formattedAddress>1 Infinity Loop + California</formattedAddress>
299
- </address>
300
- <phone>3333333</phone>
301
- <phone type='fax'>4444444</phone>
302
- <email>x@example.com</email>
303
- <uri>http://www.example.com</uri>
304
- </organization>
305
- </owner>
306
- </copyright>
307
- <ext>
308
- <doctype>technical-report</doctype>
309
- <editorialgroup>
310
- <agency>IEC</agency>
311
- <agency>IETF</agency>
312
- <agency>ISO</agency>
313
- <technical-committee number='1' type='TC'>TC</technical-committee>
314
- <subcommittee number='2' type='SC'>SC</subcommittee>
315
- <workgroup number='3' type='WG'>WG</workgroup>
316
- </editorialgroup>
317
- <approvalgroup>
318
- <agency>ISO</agency>
319
- <technical-committee number='1' type='TC'>TC</technical-committee>
320
- <subcommittee number='2' type='SC'>SC</subcommittee>
321
- <workgroup number='3' type='WG'>WG</workgroup>
322
- </approvalgroup>
323
- <structuredidentifier>
324
- <project-number part="1" subpart="1">IEC/IETF/ISO 1000</project-number>
325
- </structuredidentifier>
326
- <stagename>International standard</stagename>
327
- </ext>
328
- </bibdata>
329
- <sections/>
330
- </iso-standard>
331
- OUTPUT
332
- end
333
-
334
- it "processes tech specification identifier" do
335
- output = Asciidoctor.convert(<<~"INPUT", *OPTIONS)
336
- = Document title
337
- Author
338
- :docfile: test.adoc
339
- :nodoc:
340
- :novalid:
341
- :no-isobib:
342
- :docnumber: 1000
343
- :partnumber: 1-1
344
- :copyright-year: 2001
345
- :doctype: technical-specification
346
- :docstage: 50
347
- :docsubstage:
348
- INPUT
349
- expect(xmlpp(output.sub(%r{<boilerplate>.*</boilerplate>}m, "")))
350
- .to be_equivalent_to xmlpp(<<~"OUTPUT")
351
- <iso-standard xmlns='https://www.metanorma.org/ns/iso' type='semantic' version="#{Metanorma::ISO::VERSION}">
352
- <bibdata type='standard'>
353
- <docidentifier type='ISO'>ISO/FDTS 1000-1-1</docidentifier>
354
- <docidentifier type='iso-undated'>ISO/FDTS 1000-1-1</docidentifier>
355
- <docidentifier type='iso-with-lang'>ISO/FDTS 1000-1-1(E)</docidentifier>
356
- <docidentifier type='iso-reference'>ISO/FDTS 1000-1-1:2001(E)</docidentifier>
357
- <docnumber>1000</docnumber>
358
- <contributor>
359
- <role type='author'/>
360
- <organization>
361
- <name>International Organization for Standardization</name>
362
- <abbreviation>ISO</abbreviation>
363
- </organization>
364
- </contributor>
365
- <contributor>
366
- <role type='publisher'/>
367
- <organization>
368
- <name>International Organization for Standardization</name>
369
- <abbreviation>ISO</abbreviation>
370
- </organization>
371
- </contributor>
372
- <language>en</language>
373
- <script>Latn</script>
374
- <status>
375
- <stage abbreviation='FDTS TS'>50</stage>
376
- <substage>00</substage>
377
- </status>
378
- <copyright>
379
- <from>2001</from>
380
- <owner>
381
- <organization>
382
- <name>International Organization for Standardization</name>
383
- <abbreviation>ISO</abbreviation>
384
- </organization>
385
- </owner>
386
- </copyright>
387
- <ext>
388
- <doctype>technical-specification</doctype>
389
- <editorialgroup>
390
- <agency>ISO</agency>
391
- </editorialgroup>
392
- <approvalgroup>
393
- <agency>ISO</agency>
394
- </approvalgroup>
395
- <structuredidentifier>
396
- <project-number part='1' subpart='1'>ISO 1000</project-number>
397
- </structuredidentifier>
398
- <stagename>Final draft</stagename>
399
- </ext>
400
- </bibdata>
401
- <sections> </sections>
402
- </iso-standard>
403
- OUTPUT
404
- end
405
-
406
- it "processes Russian titles" do
407
- output = Asciidoctor.convert(<<~"INPUT", *OPTIONS)
408
- = Document title
409
- Author
410
- :docfile: test.adoc
411
- :nodoc:
412
- :novalid:
413
- :no-isobib:
414
- :docnumber: 1000
415
- :partnumber: 1
416
- :edition: 2
417
- :revdate: 2000-01-01
418
- :draft: 0.3.4
419
- :language: ru
420
- :title-intro-en: Introduction
421
- :title-main-en: Main Title -- Title
422
- :title-part-en: Title Part
423
- :title-intro-fr: Introduction Française
424
- :title-main-fr: Titre Principal
425
- :title-part-fr: Part du Titre
426
- :title-intro-ru: Introdukcija Russkaja
427
- :title-main-ru: Titel Principalnyj
428
- :title-part-ru: Partija Titel
429
- :copyright-year: 2000
430
- :horizontal: true
431
- INPUT
432
- expect(xmlpp(output.sub(%r{<boilerplate>.*</boilerplate>}m, "")))
433
- .to be_equivalent_to xmlpp(<<~"OUTPUT")
434
- <iso-standard xmlns='https://www.metanorma.org/ns/iso' type='semantic' version='#{Metanorma::ISO::VERSION}'>
435
- <bibdata type='standard'>
436
- <title language='en' format='text/plain' type='main'>
437
- Introduction&#8201;&#8212;&#8201;Main
438
- Title&#8201;&#8212;&#8201;Title&#8201;&#8212;&#8201;Title Part
439
- </title>
440
- <title language='en' format='text/plain' type='title-intro'>Introduction</title>
441
- <title language='en' format='text/plain' type='title-main'>Main Title&#8201;&#8212;&#8201;Title</title>
442
- <title language='en' format='text/plain' type='title-part'>Title Part</title>
443
- <title language='ru' format='text/plain' type='main'>
444
- Introdukcija Russkaja&#8201;&#8212;&#8201;Titel
445
- Principalnyj&#8201;&#8212;&#8201;Partija Titel
446
- </title>
447
- <title language='ru' format='text/plain' type='title-intro'>Introdukcija Russkaja</title>
448
- <title language='ru' format='text/plain' type='title-main'>Titel Principalnyj</title>
449
- <title language='ru' format='text/plain' type='title-part'>Partija Titel</title>
450
- <title language='fr' format='text/plain' type='main'>
451
- Introduction Fran&#231;aise&#8201;&#8212;&#8201;Titre
452
- Principal&#8201;&#8212;&#8201;Part du Titre
453
- </title>
454
- <title language='fr' format='text/plain' type='title-intro'>Introduction Fran&#231;aise</title>
455
- <title language='fr' format='text/plain' type='title-main'>Titre Principal</title>
456
- <title language='fr' format='text/plain' type='title-part'>Part du Titre</title>
457
- <docidentifier type='ISO'>ISO 1000-1:2000</docidentifier>
458
- <docidentifier type='iso-undated'>ISO 1000-1</docidentifier>
459
- <docidentifier type='iso-with-lang'>ISO 1000-1:2000(R)</docidentifier>
460
- <docidentifier type='iso-reference'>ISO 1000-1:2000(R)</docidentifier>
461
- <docnumber>1000</docnumber>
462
- <contributor>
463
- <role type='author'/>
464
- <organization>
465
- <name>International Organization for Standardization</name>
466
- <abbreviation>ISO</abbreviation>
467
- </organization>
468
- </contributor>
469
- <contributor>
470
- <role type='publisher'/>
471
- <organization>
472
- <name>International Organization for Standardization</name>
473
- <abbreviation>ISO</abbreviation>
474
- </organization>
475
- </contributor>
476
- <edition>2</edition>
477
- <version>
478
- <revision-date>2000-01-01</revision-date>
479
- <draft>0.3.4</draft>
480
- </version>
481
- <language>ru</language>
482
- <script>Cyrl</script>
483
- <status>
484
- <stage abbreviation='IS'>60</stage>
485
- <substage>60</substage>
486
- </status>
487
- <copyright>
488
- <from>2000</from>
489
- <owner>
490
- <organization>
491
- <name>International Organization for Standardization</name>
492
- <abbreviation>ISO</abbreviation>
493
- </organization>
494
- </owner>
495
- </copyright>
496
- <ext>
497
- <doctype>standard</doctype>
498
- <horizontal>true</horizontal>
499
- <editorialgroup>
500
- <agency>ISO</agency>
501
- </editorialgroup>
502
- <approvalgroup>
503
- <agency>ISO</agency>
504
- </approvalgroup>
505
- <structuredidentifier>
506
- <project-number part='1'>ISO 1000</project-number>
507
- </structuredidentifier>
508
- <stagename>International standard</stagename>
509
- </ext>
510
- </bibdata>
511
- <sections> </sections>
512
- </iso-standard>
513
- OUTPUT
514
- end
515
-
516
- it "processes subdivisions" do
517
- output = Asciidoctor.convert(<<~"INPUT", *OPTIONS)
518
- = Document title
519
- Author
520
- :docfile: test.adoc
521
- :nodoc:
522
- :novalid:
523
- :revdate: 2000-01
524
- :published-date: 1000-01
525
- :docnumber: 1000
526
- :partnumber: 1-1
527
- :tc-docnumber: 2000
528
- :language: el
529
- :script: Grek
530
- :subdivision: Subdivision
531
- :subdivision-abbr: SD
532
- :doctype: This is a DocType
533
- :pub-address: 1 Infinity Loop + \\
534
- California
535
- :pub-phone: 3333333
536
- :pub-fax: 4444444
537
- :pub-email: x@example.com
538
- :pub-uri: http://www.example.com
539
- INPUT
540
- expect(xmlpp(strip_guid(output
541
- .sub(%r{<boilerplate>.*</boilerplate>}m, ""))))
542
- .to be_equivalent_to xmlpp(<<~"OUTPUT")
543
- <iso-standard xmlns="https://www.metanorma.org/ns/iso" type="semantic" version="#{Metanorma::ISO::VERSION}">
544
- <bibdata type='standard'>
545
- <docidentifier type='ISO'>SD 1000-1-1</docidentifier>
546
- <docidentifier type='iso-undated'>SD 1000-1-1</docidentifier>
547
- <docidentifier type='iso-with-lang'>SD 1000-1-1(X)</docidentifier>
548
- <docidentifier type='iso-reference'>SD 1000-1-1(X)</docidentifier>
549
- <docidentifier type='iso-tc'>2000</docidentifier>
550
- <docnumber>1000</docnumber>
551
- <date type='published'>
552
- <on>1000-01</on>
553
- </date>
554
- <contributor>
555
- <role type='author'/>
556
- <organization>
557
- <name>International Organization for Standardization</name>
558
- <subdivision>Subdivision</subdivision>
559
- <abbreviation>SD</abbreviation>
560
- </organization>
561
- </contributor>
562
- <contributor>
563
- <role type='publisher'/>
564
- <organization>
565
- <name>International Organization for Standardization</name>
566
- <subdivision>Subdivision</subdivision>
567
- <abbreviation>SD</abbreviation>
568
- <address>
569
- <formattedAddress>1 Infinity Loop <br/>California</formattedAddress>
570
- </address>
571
- <phone>3333333</phone>
572
- <phone type='fax'>4444444</phone>
573
- <email>x@example.com</email>
574
- <uri>http://www.example.com</uri>
575
- </organization>
576
- </contributor>
577
- <version>
578
- <revision-date>2000-01</revision-date>
579
- </version>
580
- <language>el</language>
581
- <script>Grek</script>
582
- <status>
583
- <stage abbreviation='IS'>60</stage>
584
- <substage>60</substage>
585
- </status>
586
- <copyright>
587
- <from>#{Time.now.year}</from>
588
- <owner>
589
- <organization>
590
- <name>International Organization for Standardization</name>
591
- <subdivision>Subdivision</subdivision>
592
- <abbreviation>SD</abbreviation>
593
- <address>
594
- <formattedAddress>1 Infinity Loop
595
- <br/>
596
- California</formattedAddress>
597
- </address>
598
- <phone>3333333</phone>
599
- <phone type="fax">4444444</phone>
600
- <email>x@example.com</email>
601
- <uri>http://www.example.com</uri>
602
- </organization>
603
- </owner>
604
- </copyright>
605
- <ext>
606
- <doctype>this-is-a-doctype</doctype>
607
- <editorialgroup>
608
- <agency>SD</agency>
609
- </editorialgroup>
610
- <approvalgroup>
611
- <agency>ISO</agency>
612
- </approvalgroup>
613
- <structuredidentifier>
614
- <project-number part="1" subpart="1">SD 1000</project-number>
615
- </structuredidentifier>
616
- <stagename>International standard</stagename>
617
- </ext>
618
- </bibdata>
619
- <sections> </sections>
620
- </iso-standard>
621
- OUTPUT
622
- end
623
-
624
- it "defaults substage, defines iteration on stage 50" do
625
- output = Asciidoctor.convert(<<~"INPUT", *OPTIONS)
626
- = Document title
627
- Author
628
- :docfile: test.adoc
629
- :nodoc:
630
- :novalid:
631
- :no-isobib:
632
- :docnumber: 1000
633
- :docstage: 50
634
- :language: fr
635
- :doctype: international-standard
636
- :iteration: 2
637
- INPUT
638
- expect(xmlpp(output.sub(%r{<boilerplate>.*</boilerplate>}m, "")))
639
- .to be_equivalent_to xmlpp(<<~"OUTPUT")
640
- <iso-standard type="semantic" version="#{Metanorma::ISO::VERSION}" xmlns="https://www.metanorma.org/ns/iso">
641
- <bibdata type="standard">
642
- <docidentifier type='ISO'>ISO/FDIS 1000.2</docidentifier>
643
- <docidentifier type='iso-undated'>ISO/FDIS 1000.2</docidentifier>
644
- <docidentifier type='iso-with-lang'>ISO/FDIS 1000.2(F)</docidentifier>
645
- <docidentifier type='iso-reference'>ISO/FDIS 1000.2(F)</docidentifier>
646
- <docnumber>1000</docnumber>
647
- <contributor>
648
- <role type="author"/>
649
- <organization>
650
- <name>International Organization for Standardization</name>
651
- <abbreviation>ISO</abbreviation>
652
- </organization>
653
- </contributor>
654
- <contributor>
655
- <role type="publisher"/>
656
- <organization>
657
- <name>International Organization for Standardization</name>
658
- <abbreviation>ISO</abbreviation>
659
- </organization>
660
- </contributor>
661
- <language>fr</language>
662
- <script>Latn</script>
663
- <status>
664
- <stage abbreviation="FDIS">50</stage>
665
- <substage>00</substage>
666
- <iteration>2</iteration>
667
- </status>
668
- <copyright>
669
- <from>#{Date.today.year}</from>
670
- <owner>
671
- <organization>
672
- <name>International Organization for Standardization</name>
673
- <abbreviation>ISO</abbreviation>
674
- </organization>
675
- </owner>
676
- </copyright>
677
- <ext>
678
- <doctype>international-standard</doctype>
679
- <editorialgroup>
680
- <agency>ISO</agency>
681
- </editorialgroup>
682
- <approvalgroup>
683
- <agency>ISO</agency>
684
- </approvalgroup>
685
- <structuredidentifier>
686
- <project-number>ISO 1000</project-number>
687
- </structuredidentifier>
688
- <stagename>Final draft</stagename>
689
- </ext>
690
- </bibdata>
691
- <sections/>
692
- </iso-standard>
693
- OUTPUT
694
- end
695
-
696
- it "defaults substage for stage 60" do
697
- output = Asciidoctor.convert(<<~"INPUT", *OPTIONS)
698
- = Document title
699
- Author
700
- :docfile: test.adoc
701
- :nodoc:
702
- :novalid:
703
- :no-isobib:
704
- :docnumber: 1000
705
- :docstage: 60
706
- INPUT
707
-
708
- expect(xmlpp(output.sub(%r{<boilerplate>.*</boilerplate>}m, "")))
709
- .to be_equivalent_to xmlpp(<<~"OUTPUT")
710
- <iso-standard xmlns="https://www.metanorma.org/ns/iso" type="semantic" version="#{Metanorma::ISO::VERSION}">
711
- <bibdata type="standard">
712
- <docidentifier type="ISO">ISO 1000</docidentifier>
713
- <docidentifier type='iso-undated'>ISO 1000</docidentifier>
714
- <docidentifier type='iso-with-lang'>ISO 1000(E)</docidentifier>
715
- <docidentifier type='iso-reference'>ISO 1000(E)</docidentifier>
716
- <docnumber>1000</docnumber>
717
- <contributor>
718
- <role type="author"/>
719
- <organization>
720
- <name>International Organization for Standardization</name>
721
- <abbreviation>ISO</abbreviation>
722
- </organization>
723
- </contributor>
724
- <contributor>
725
- <role type="publisher"/>
726
- <organization>
727
- <name>International Organization for Standardization</name>
728
- <abbreviation>ISO</abbreviation>
729
- </organization>
730
- </contributor>
731
-
732
- <language>en</language>
733
- <script>Latn</script>
734
- <status>
735
- <stage abbreviation="IS">60</stage>
736
- <substage>60</substage>
737
- </status>
738
- <copyright>
739
- <from>#{Date.today.year}</from>
740
- <owner>
741
- <organization>
742
- <name>International Organization for Standardization</name>
743
- <abbreviation>ISO</abbreviation>
744
- </organization>
745
- </owner>
746
- </copyright>
747
- <ext>
748
- <doctype>standard</doctype>
749
- <editorialgroup>
750
- <agency>ISO</agency>
751
- </editorialgroup>
752
- <approvalgroup>
753
- <agency>ISO</agency>
754
- </approvalgroup>
755
- <structuredidentifier>
756
- <project-number>ISO 1000</project-number>
757
- </structuredidentifier>
758
- <stagename>International standard</stagename>
759
- </ext>
760
- </bibdata>
761
- <sections/>
762
- </iso-standard>
763
- OUTPUT
764
- end
765
-
766
- it "populates metadata for PRF" do
767
- output = Asciidoctor.convert(<<~"INPUT", *OPTIONS)
768
- = Document title
769
- Author
770
- :docfile: test.adoc
771
- :nodoc:
772
- :novalid:
773
- :no-isobib:
774
- :docnumber: 1000
775
- :docstage: 60
776
- :docsubstage: 00
777
- INPUT
778
- expect(xmlpp(output.sub(%r{<boilerplate>.*</boilerplate>}m, "")))
779
- .to be_equivalent_to xmlpp(<<~"OUTPUT")
780
- <iso-standard xmlns="https://www.metanorma.org/ns/iso" type="semantic" version="#{Metanorma::ISO::VERSION}">
781
- <bibdata type="standard">
782
- <docidentifier type="ISO">ISO 1000</docidentifier>
783
- <docidentifier type='iso-undated'>ISO 1000</docidentifier>
784
- <docidentifier type='iso-with-lang'>ISO 1000(E)</docidentifier>
785
- <docidentifier type='iso-reference'>ISO 1000(E)</docidentifier>
786
- <docnumber>1000</docnumber>
787
- <contributor>
788
- <role type="author"/>
789
- <organization>
790
- <name>International Organization for Standardization</name>
791
- <abbreviation>ISO</abbreviation>
792
- </organization>
793
- </contributor>
794
- <contributor>
795
- <role type="publisher"/>
796
- <organization>
797
- <name>International Organization for Standardization</name>
798
- <abbreviation>ISO</abbreviation>
799
- </organization>
800
- </contributor>
801
-
802
- <language>en</language>
803
- <script>Latn</script>
804
- <status>
805
- <stage abbreviation="PRF">60</stage>
806
- <substage>00</substage>
807
- </status>
808
- <copyright>
809
- <from>#{Date.today.year}</from>
810
- <owner>
811
- <organization>
812
- <name>International Organization for Standardization</name>
813
- <abbreviation>ISO</abbreviation>
814
- </organization>
815
- </owner>
816
- </copyright>
817
- <ext>
818
- <doctype>standard</doctype>
819
- <editorialgroup>
820
- <agency>ISO</agency>
821
- </editorialgroup>
822
- <approvalgroup>
823
- <agency>ISO</agency>
824
- </approvalgroup>
825
- <structuredidentifier>
826
- <project-number>ISO 1000</project-number>
827
- </structuredidentifier>
828
- <stagename>Proof</stagename>
829
- </ext>
830
- </bibdata>
831
- <sections/>
832
- </iso-standard>
833
- OUTPUT
834
- end
835
-
836
- it "defaults metadata for DIR" do
837
- output = Asciidoctor.convert(<<~"INPUT", *OPTIONS)
838
- = Document title
839
- Author
840
- :docfile: test.adoc
841
- :nodoc:
842
- :novalid:
843
- :no-isobib:
844
- :docnumber: 1000
845
- :doctype: directive
846
- INPUT
847
-
848
- expect(xmlpp(output.sub(%r{<boilerplate>.*</boilerplate>}m, "")))
849
- .to be_equivalent_to xmlpp(<<~"OUTPUT")
850
- <iso-standard xmlns="https://www.metanorma.org/ns/iso" type="semantic" version="#{Metanorma::ISO::VERSION}">
851
- <bibdata type='standard'>
852
- <docidentifier type='ISO'>ISO DIR 1000</docidentifier>
853
- <docidentifier type='iso-undated'>ISO DIR 1000</docidentifier>
854
- <docidentifier type='iso-with-lang'>ISO DIR 1000(E)</docidentifier>
855
- <docidentifier type='iso-reference'>ISO DIR 1000(E)</docidentifier>
856
- <docnumber>1000</docnumber>
857
- <contributor>
858
- <role type='author'/>
859
- <organization>
860
- <name>International Organization for Standardization</name>
861
- <abbreviation>ISO</abbreviation>
862
- </organization>
863
- </contributor>
864
- <contributor>
865
- <role type='publisher'/>
866
- <organization>
867
- <name>International Organization for Standardization</name>
868
- <abbreviation>ISO</abbreviation>
869
- </organization>
870
- </contributor>
871
- <language>en</language>
872
- <script>Latn</script>
873
- <status>
874
- <stage abbreviation='IS'>60</stage>
875
- <substage>60</substage>
876
- </status>
877
- <copyright>
878
- <from>#{Time.new.year}</from>
879
- <owner>
880
- <organization>
881
- <name>International Organization for Standardization</name>
882
- <abbreviation>ISO</abbreviation>
883
- </organization>
884
- </owner>
885
- </copyright>
886
- <ext>
887
- <doctype>directive</doctype>
888
- <editorialgroup>
889
- <agency>ISO</agency>
890
- </editorialgroup>
891
- <approvalgroup>
892
- <agency>ISO</agency>
893
- </approvalgroup>
894
- <structuredidentifier>
895
- <project-number>ISO 1000</project-number>
896
- </structuredidentifier>
897
- <stagename>International standard</stagename>
898
- </ext>
899
- </bibdata>
900
- <sections> </sections>
901
- </iso-standard>
902
- OUTPUT
903
- end
904
-
905
- it "processes document relations" do
906
- VCR.use_cassette "docrels" do
907
- output = Asciidoctor.convert(<<~"INPUT", *OPTIONS)
908
- = Document title
909
- Author
910
- :docfile: test.adoc
911
- :nodoc:
912
- :novalid:
913
- :amends: ISO 123:2001;ISO 125
914
- :obsoletes: ABC 1
915
- :successor-of: ABC 2
916
- :manifestation-of: ABC 3
917
- :annotation-of: ABC 3a
918
- :related: ABC 4
919
- :replaces: ABC 5
920
- :supersedes: ABC 6
921
- :corrects: ABC 7
922
- :informatively-cited-in: ABC 8
923
- :informatively-cites: ABC 9
924
- :normatively-cited-in: ABC 10
925
- :normatively-cites: ABC 11
926
- :identical-adopted-from: ABC 12
927
- :modified-adopted-from: ABC 13
928
- :related-directive: ABC 14
929
- :related-mandate: ABC 15
930
- INPUT
931
- expect(xmlpp(output.sub(%r{<boilerplate>.*</boilerplate>}m, "")))
932
- .to be_equivalent_to xmlpp(<<~"OUTPUT")
933
- <iso-standard xmlns="https://www.metanorma.org/ns/iso" type="semantic" version="#{Metanorma::ISO::VERSION}">
934
- <bibdata type='standard'>
935
- <contributor>
936
- <role type='author'/>
937
- <organization>
938
- <name>International Organization for Standardization</name>
939
- <abbreviation>ISO</abbreviation>
940
- </organization>
941
- </contributor>
942
- <contributor>
943
- <role type='publisher'/>
944
- <organization>
945
- <name>International Organization for Standardization</name>
946
- <abbreviation>ISO</abbreviation>
947
- </organization>
948
- </contributor>
949
- <language>en</language>
950
- <script>Latn</script>
951
- <status>
952
- <stage abbreviation='IS'>60</stage>
953
- <substage>60</substage>
954
- </status>
955
- <copyright>
956
- <from>#{Time.new.year}</from>
957
- <owner>
958
- <organization>
959
- <name>International Organization for Standardization</name>
960
- <abbreviation>ISO</abbreviation>
961
- </organization>
962
- </owner>
963
- </copyright>
964
- <relation type='obsoletes'>
965
- <bibitem>
966
- <title>--</title>
967
- <docidentifier>ABC 1</docidentifier>
968
- </bibitem>
969
- </relation>
970
- <relation type='successorOf'>
971
- <bibitem>
972
- <title>--</title>
973
- <docidentifier>ABC 2</docidentifier>
974
- </bibitem>
975
- </relation>
976
- <relation type='manifestationOf'>
977
- <bibitem>
978
- <title>--</title>
979
- <docidentifier>ABC 3</docidentifier>
980
- </bibitem>
981
- </relation>
982
- <relation type='related'>
983
- <bibitem>
984
- <title>--</title>
985
- <docidentifier>ABC 4</docidentifier>
986
- </bibitem>
987
- </relation>
988
- <relation type='annotationOf'>
989
- <bibitem>
990
- <title>--</title>
991
- <docidentifier>ABC 3a</docidentifier>
992
- </bibitem>
993
- </relation>
994
- <relation type='updates'>
995
- <description>amends</description>
996
- <bibitem type='standard'>
997
- <fetched/>
998
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
999
- <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
1000
- <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex&#8201;&#8212;&#8201;Sampling</title>
1001
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
1002
- <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
1003
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
1004
- <uri type='src'>https://www.iso.org/standard/23281.html</uri>
1005
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
1006
- <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
1007
- <docidentifier type='ISO' primary="true">ISO 123:2001</docidentifier>
1008
- <docidentifier type='URN'>urn:iso:std:iso:123:ed-3</docidentifier>
1009
- <docnumber>123</docnumber>
1010
- <date type='published'><on>2001-05</on></date>
1011
- <contributor>
1012
- <role type='publisher'/>
1013
- <organization>
1014
- <name>International Organization for Standardization</name>
1015
- <abbreviation>ISO</abbreviation>
1016
- <uri>www.iso.org</uri>
1017
- </organization>
1018
- </contributor>
1019
- <edition>3</edition>
1020
- <language>en</language>
1021
- <language>fr</language>
1022
- <script>Latn</script>
1023
- <abstract format='text/plain' language='en' script='Latn'>
1024
- This International Standard specifies procedures for sampling natural
1025
- rubber latex concentrate and for sampling synthetic rubber latices and
1026
- artificial latices. It is also suitable for sampling rubber latex
1027
- contained in drums, tank cars or tanks. The procedures may also be
1028
- used for sampling plastics dispersions.
1029
- </abstract>
1030
- <abstract format='text/plain' language='fr' script='Latn'>
1031
- La présente Norme internationale spécifie des méthodes
1032
- d’échantillonnage pour des concentrés de latex de caoutchouc naturel
1033
- et pour échantillonner des latex de caoutchouc synthétique et des
1034
- latex artificiels. Elle s’applique également à l’échantillonnage de
1035
- latex de caoutchouc contenus dans des fûts, citernes routières ou de
1036
- stockage. Le mode opératoire peut aussi être utilisé pour
1037
- l’échantillonnage de dispersions de plastiques.
1038
- </abstract>
1039
- <status>
1040
- <stage>90</stage>
1041
- <substage>93</substage>
1042
- </status>
1043
- <copyright>
1044
- <from>2001</from>
1045
- <owner>
1046
- <organization>
1047
- <name>ISO</name>
1048
- </organization>
1049
- </owner>
1050
- </copyright>
1051
- <relation type='obsoletes'>
1052
- <bibitem type='standard'>
1053
- <formattedref format='text/plain'>ISO 123:1985</formattedref>
1054
- <docidentifier type='ISO' primary='true'>ISO 123:1985</docidentifier>
1055
- </bibitem>
1056
- </relation>
1057
- <place>Geneva</place>
1058
- </bibitem>
1059
- </relation>
1060
- <relation type='updates'>
1061
- <description>amends</description>
1062
- <bibitem type='standard'>
1063
- <fetched/>
1064
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Natural rubber latex concentrate</title>
1065
- <title type='title-main' format='text/plain' language='en' script='Latn'>Determination of alkalinity</title>
1066
- <title type='main' format='text/plain' language='en' script='Latn'>
1067
- Natural rubber latex concentrate&#8201;&#8212;&#8201;Determination of
1068
- alkalinity
1069
- </title>
1070
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex concentr&#233; de caoutchouc naturel</title>
1071
- <title type='title-main' format='text/plain' language='fr' script='Latn'>D&#233;termination de l&#8217;alcalinit&#233;</title>
1072
- <title type='main' format='text/plain' language='fr' script='Latn'>
1073
- Latex concentr&#233; de caoutchouc
1074
- naturel&#8201;&#8212;&#8201;D&#233;termination de
1075
- l&#8217;alcalinit&#233;
1076
- </title>
1077
- <uri type='src'>https://www.iso.org/standard/72849.html</uri>
1078
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:72849:en</uri>
1079
- <uri type='rss'>https://www.iso.org/contents/data/standard/07/28/72849.detail.rss</uri>
1080
- <docidentifier type='ISO' primary="true">ISO 125</docidentifier>
1081
- <docidentifier type='URN'>urn:iso:std:iso:125:ed-7</docidentifier>
1082
- <docnumber>125</docnumber>
1083
- <contributor>
1084
- <role type='publisher'/>
1085
- <organization>
1086
- <name>International Organization for Standardization</name>
1087
- <abbreviation>ISO</abbreviation>
1088
- <uri>www.iso.org</uri>
1089
- </organization>
1090
- </contributor>
1091
- <edition>7</edition>
1092
- <language>en</language>
1093
- <language>fr</language>
1094
- <script>Latn</script>
1095
- <status>
1096
- <stage>60</stage>
1097
- <substage>60</substage>
1098
- </status>
1099
- <copyright>
1100
- <from>2020</from>
1101
- <owner>
1102
- <organization>
1103
- <name>ISO</name>
1104
- </organization>
1105
- </owner>
1106
- </copyright>
1107
- <relation type='obsoletes'>
1108
- <bibitem type='standard'>
1109
- <formattedref format='text/plain'>ISO 125:2011</formattedref>
1110
- <docidentifier type='ISO' primary='true'>ISO 125:2011</docidentifier>
1111
- </bibitem>
1112
- </relation>
1113
- <relation type='instance'>
1114
- <bibitem type='standard'>
1115
- <fetched/>
1116
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Natural rubber latex concentrate</title>
1117
- <title type='title-main' format='text/plain' language='en' script='Latn'>Determination of alkalinity</title>
1118
- <title type='main' format='text/plain' language='en' script='Latn'>
1119
- Natural rubber latex concentrate&#8201;&#8212;&#8201;Determination
1120
- of alkalinity
1121
- </title>
1122
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex concentr&#233; de caoutchouc naturel</title>
1123
- <title type='title-main' format='text/plain' language='fr' script='Latn'>D&#233;termination de l&#8217;alcalinit&#233;</title>
1124
- <title type='main' format='text/plain' language='fr' script='Latn'>
1125
- Latex concentr&#233; de caoutchouc
1126
- naturel&#8201;&#8212;&#8201;D&#233;termination de
1127
- l&#8217;alcalinit&#233;
1128
- </title>
1129
- <uri type='src'>https://www.iso.org/standard/72849.html</uri>
1130
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:72849:en</uri>
1131
- <uri type='rss'>https://www.iso.org/contents/data/standard/07/28/72849.detail.rss</uri>
1132
- <docidentifier type='ISO' primary="true">ISO 125:2020</docidentifier>
1133
- <docidentifier type='URN'>urn:iso:std:iso:125:ed-7</docidentifier>
1134
- <docnumber>125</docnumber>
1135
- <date type='published'>
1136
- <on>2020-02</on>
1137
- </date>
1138
- <contributor>
1139
- <role type='publisher'/>
1140
- <organization>
1141
- <name>International Organization for Standardization</name>
1142
- <abbreviation>ISO</abbreviation>
1143
- <uri>www.iso.org</uri>
1144
- </organization>
1145
- </contributor>
1146
- <edition>7</edition>
1147
- <language>en</language>
1148
- <language>fr</language>
1149
- <script>Latn</script>
1150
- <abstract format='text/plain' language='en' script='Latn'>
1151
- This document specifies a method for the determination of the
1152
- alkalinity of natural rubber latex concentrate. The method is not
1153
- necessarily suitable for latices from natural sources other than
1154
- Hevea brasiliensis or for synthetic rubber latices, compounded
1155
- latex, vulcanized latex or artificial dispersions of rubber. NOTE
1156
- A method for the determination of the alkalinity of
1157
- polychloroprene latex is specified in ISO 13773.
1158
- </abstract>
1159
- <abstract format='text/plain' language='fr' script='Latn'>
1160
- Le pr&#233;sent document sp&#233;cifie une m&#233;thode de
1161
- d&#233;termination de l&#8217;alcalinit&#233; du latex
1162
- concentr&#233; de caoutchouc naturel. La m&#233;thode ne convient
1163
- pas n&#233;cessairement aux latex d&#8217;origine naturelle autres
1164
- que l&#8217;Hevea brasiliensis ou aux latex de caoutchouc de
1165
- synth&#232;se, aux latex formul&#233;s, aux latex vulcanis&#233;s
1166
- ou aux dispersions artificielles de caoutchouc. NOTE Une
1167
- m&#233;thode de d&#233;termination de l&#8217;alcalinit&#233; du
1168
- latex de polychloropr&#232;ne est sp&#233;cifi&#233;e dans
1169
- l&#8217;ISO 13773.
1170
- </abstract>
1171
- <status>
1172
- <stage>60</stage>
1173
- <substage>60</substage>
1174
- </status>
1175
- <copyright>
1176
- <from>2020</from>
1177
- <owner>
1178
- <organization>
1179
- <name>ISO</name>
1180
- </organization>
1181
- </owner>
1182
- </copyright>
1183
- <relation type='obsoletes'>
1184
- <bibitem type='standard'>
1185
- <formattedref format='text/plain'>ISO 125:2011</formattedref>
1186
- <docidentifier type='ISO' primary='true'>ISO 125:2011</docidentifier>
1187
- </bibitem>
1188
- </relation>
1189
- <place>Geneva</place>
1190
- </bibitem>
1191
- </relation>
1192
- <place>Geneva</place>
1193
- </bibitem>
1194
- </relation>
1195
- <relation type='obsoletes'>
1196
- <description>replaces</description>
1197
- <bibitem>
1198
- <title>--</title>
1199
- <docidentifier>ABC 5</docidentifier>
1200
- </bibitem>
1201
- </relation>
1202
- <relation type='obsoletes'>
1203
- <description>supersedes</description>
1204
- <bibitem>
1205
- <title>--</title>
1206
- <docidentifier>ABC 6</docidentifier>
1207
- </bibitem>
1208
- </relation>
1209
- <relation type='updates'>
1210
- <description>corrects</description>
1211
- <bibitem>
1212
- <title>--</title>
1213
- <docidentifier>ABC 7</docidentifier>
1214
- </bibitem>
1215
- </relation>
1216
- <relation type='isCitedIn'>
1217
- <description>informatively cited in</description>
1218
- <bibitem>
1219
- <title>--</title>
1220
- <docidentifier>ABC 8</docidentifier>
1221
- </bibitem>
1222
- </relation>
1223
- <relation type='cites'>
1224
- <description>informatively cites</description>
1225
- <bibitem>
1226
- <title>--</title>
1227
- <docidentifier>ABC 9</docidentifier>
1228
- </bibitem>
1229
- </relation>
1230
- <relation type='cites'>
1231
- <description>normatively cites</description>
1232
- <bibitem>
1233
- <title>--</title>
1234
- <docidentifier>ABC 11</docidentifier>
1235
- </bibitem>
1236
- </relation>
1237
- <relation type='adoptedFrom'>
1238
- <description>identical adopted from</description>
1239
- <bibitem>
1240
- <title>--</title>
1241
- <docidentifier>ABC 12</docidentifier>
1242
- </bibitem>
1243
- </relation>
1244
- <relation type='adoptedFrom'>
1245
- <description>modified adopted from</description>
1246
- <bibitem>
1247
- <title>--</title>
1248
- <docidentifier>ABC 13</docidentifier>
1249
- </bibitem>
1250
- </relation>
1251
- <relation type='related'>
1252
- <description>related directive</description>
1253
- <bibitem>
1254
- <title>--</title>
1255
- <docidentifier>ABC 14</docidentifier>
1256
- </bibitem>
1257
- </relation>
1258
- <relation type='related'>
1259
- <description>related mandate</description>
1260
- <bibitem>
1261
- <title>--</title>
1262
- <docidentifier>ABC 15</docidentifier>
1263
- </bibitem>
1264
- </relation>
1265
- <ext>
1266
- <doctype>standard</doctype>
1267
- <editorialgroup>
1268
- <agency>ISO</agency>
1269
- </editorialgroup>
1270
- <approvalgroup>
1271
- <agency>ISO</agency>
1272
- </approvalgroup>
1273
- <stagename>International standard</stagename>
1274
- </ext>
1275
- </bibdata>
1276
- <sections> </sections>
1277
- </iso-standard>
1278
- OUTPUT
1279
- end
1280
- end
1281
-
1282
- it "reads scripts into blank HTML document" do
1283
- Asciidoctor.convert(<<~"INPUT", *OPTIONS)
1284
- = Document title
1285
- Author
1286
- :docfile: test.adoc
1287
- :novalid:
1288
- :no-isobib:
1289
- :no-pdf:
1290
- INPUT
1291
- html = File.read("test.html", encoding: "utf-8")
1292
- expect(html).to match(%r{<script>})
1293
- end
1294
-
1295
- it "uses default fonts" do
1296
- Asciidoctor.convert(<<~"INPUT", *OPTIONS)
1297
- = Document title
1298
- Author
1299
- :docfile: test.adoc
1300
- :novalid:
1301
- :no-isobib:
1302
- :no-pdf:
1303
- INPUT
1304
- html = File.read("test.html", encoding: "utf-8")
1305
- expect(html)
1306
- .to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
1307
- expect(html)
1308
- .to match(%r[blockquote[^{]+\{[^{]+font-family: "Cambria", serif;]m)
1309
- expect(html)
1310
- .to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Cambria", serif;]m)
1311
- end
1312
-
1313
- it "uses default fonts for alt doc" do
1314
- Asciidoctor.convert(<<~"INPUT", *OPTIONS)
1315
- = Document title
1316
- Author
1317
- :docfile: test.adoc
1318
- :novalid:
1319
- :no-isobib:
1320
- :no-pdf:
1321
- INPUT
1322
- html = File.read("test_alt.html", encoding: "utf-8")
1323
- expect(html)
1324
- .to match(%r[\bpre[^{]+\{[^{]+font-family: "Space Mono", monospace;]m)
1325
- expect(html)
1326
- .to match(%r[blockquote[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
1327
- expect(html)
1328
- .to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
1329
- end
1330
-
1331
- it "uses Chinese fonts" do
1332
- Asciidoctor.convert(<<~"INPUT", *OPTIONS)
1333
- = Document title
1334
- Author
1335
- :docfile: test.adoc
1336
- :novalid:
1337
- :no-isobib:
1338
- :script: Hans
1339
- :no-pdf:
1340
- INPUT
1341
- html = File.read("test.html", encoding: "utf-8")
1342
- expect(html)
1343
- .to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
1344
- expect(html)
1345
- .to match(%r[blockquote[^{]+\{[^{]+font-family: "Source Han Sans", serif;]m)
1346
- expect(html)
1347
- .to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Source Han Sans", sans-serif;]m)
1348
- end
1349
-
1350
- it "uses specified fonts" do
1351
- Asciidoctor.convert(<<~"INPUT", *OPTIONS)
1352
- = Document title
1353
- Author
1354
- :docfile: test.adoc
1355
- :novalid:
1356
- :no-isobib:
1357
- :script: Hans
1358
- :body-font: Zapf Chancery
1359
- :header-font: Comic Sans
1360
- :monospace-font: Andale Mono
1361
- :no-pdf:
1362
- INPUT
1363
- html = File.read("test.html", encoding: "utf-8")
1364
- expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: Andale Mono;]m)
1365
- expect(html)
1366
- .to match(%r[blockquote[^{]+\{[^{]+font-family: Zapf Chancery;]m)
1367
- expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: Comic Sans;]m)
1368
- end
1369
-
1370
- it "strips MS-specific CSS" do
1371
- Asciidoctor.convert(<<~"INPUT", *OPTIONS)
1372
- = Document title
1373
- Author
1374
- :docfile: test.adoc
1375
- :novalid:
1376
- :no-isobib:
1377
- :no-pdf:
1378
- INPUT
1379
- word = File.read("test.doc", encoding: "utf-8")
1380
- html = File.read("test.html", encoding: "utf-8")
1381
- expect(word).to match(%r[mso-style-name: "Intro Title";]m)
1382
- expect(html).not_to match(%r[mso-style-name: "Intro Title";]m)
1383
- end
1384
- end