metanorma-standoc 1.10.4.1 → 1.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.adoc +19 -23
- data/lib/asciidoctor/standoc/base.rb +11 -13
- data/lib/asciidoctor/standoc/basicdoc.rng +21 -4
- data/lib/asciidoctor/standoc/blocks.rb +27 -22
- data/lib/asciidoctor/standoc/blocks_notes.rb +17 -22
- data/lib/asciidoctor/standoc/cleanup.rb +38 -71
- data/lib/asciidoctor/standoc/cleanup_block.rb +5 -70
- data/lib/asciidoctor/standoc/cleanup_image.rb +6 -7
- data/lib/asciidoctor/standoc/cleanup_inline.rb +27 -98
- data/lib/asciidoctor/standoc/cleanup_maths.rb +113 -21
- data/lib/asciidoctor/standoc/cleanup_ref.rb +5 -0
- data/lib/asciidoctor/standoc/cleanup_reqt.rb +56 -18
- data/lib/asciidoctor/standoc/cleanup_section.rb +1 -0
- data/lib/asciidoctor/standoc/cleanup_section_names.rb +31 -14
- data/lib/asciidoctor/standoc/cleanup_table.rb +68 -0
- data/lib/asciidoctor/standoc/cleanup_terms.rb +1 -1
- data/lib/asciidoctor/standoc/cleanup_text.rb +73 -0
- data/lib/asciidoctor/standoc/cleanup_xref.rb +107 -0
- data/lib/asciidoctor/standoc/converter.rb +13 -0
- data/lib/asciidoctor/standoc/isodoc.rng +241 -61
- data/lib/asciidoctor/standoc/lists.rb +15 -15
- data/lib/asciidoctor/standoc/macros.rb +14 -43
- data/lib/asciidoctor/standoc/macros_note.rb +45 -0
- data/lib/asciidoctor/standoc/macros_terms.rb +33 -15
- data/lib/asciidoctor/standoc/reqt.rb +2 -2
- data/lib/asciidoctor/standoc/reqt.rng +23 -2
- data/lib/asciidoctor/standoc/table.rb +22 -20
- data/lib/asciidoctor/standoc/terms.rb +9 -1
- data/lib/asciidoctor/standoc/validate.rb +23 -14
- data/lib/asciidoctor/standoc/validate_section.rb +5 -2
- data/lib/metanorma/standoc/version.rb +1 -1
- data/metanorma-standoc.gemspec +1 -1
- data/spec/asciidoctor/base_spec.rb +0 -33
- data/spec/asciidoctor/blank_spec.rb +37 -0
- data/spec/asciidoctor/blocks_spec.rb +151 -30
- data/spec/asciidoctor/cleanup_blocks_spec.rb +1018 -0
- data/spec/asciidoctor/cleanup_sections_spec.rb +207 -0
- data/spec/asciidoctor/cleanup_spec.rb +193 -1078
- data/spec/asciidoctor/inline_spec.rb +36 -0
- data/spec/asciidoctor/isobib_cache_spec.rb +8 -8
- data/spec/asciidoctor/lists_spec.rb +6 -6
- data/spec/asciidoctor/macros_plantuml_spec.rb +1 -1
- data/spec/asciidoctor/macros_spec.rb +41 -26
- data/spec/asciidoctor/refs_dl_spec.rb +1 -1
- data/spec/asciidoctor/refs_spec.rb +220 -444
- data/spec/asciidoctor/section_spec.rb +1 -1
- data/spec/asciidoctor/validate_spec.rb +51 -0
- data/spec/assets/xref_error.adoc +1 -0
- data/spec/fixtures/datamodel_description_sections_tree.xml +24 -24
- data/spec/spec_helper.rb +5 -7
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +231 -143
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +152 -0
- data/spec/vcr_cassettes/isobib_get_123.yml +52 -36
- data/spec/vcr_cassettes/isobib_get_123_1.yml +103 -71
- data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +112 -80
- data/spec/vcr_cassettes/isobib_get_123_2001.yml +50 -34
- data/spec/vcr_cassettes/isobib_get_124.yml +51 -35
- data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +16 -16
- data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +70 -46
- metadata +11 -4
@@ -239,222 +239,110 @@ RSpec.describe Asciidoctor::Standoc do
|
|
239
239
|
#{NORM_REF_BOILERPLATE}
|
240
240
|
<bibitem id='iso123' type='standard'>
|
241
241
|
<fetched>#{Date.today}</fetched>
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
</bibitem>
|
347
|
-
<bibitem id='iso124' type='standard'>
|
348
|
-
<fetched>#{Date.today}</fetched>
|
349
|
-
<title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
|
350
|
-
<title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
|
351
|
-
<title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
|
352
|
-
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
353
|
-
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
354
|
-
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
355
|
-
<docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
|
356
|
-
<docidentifier type='metanorma'>[1]</docidentifier>
|
357
|
-
<docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
|
358
|
-
<docnumber>123</docnumber>
|
359
|
-
<date type='published'>
|
360
|
-
<on>2001-05</on>
|
361
|
-
</date>
|
362
|
-
<contributor>
|
363
|
-
<role type='publisher'/>
|
364
|
-
<organization>
|
365
|
-
<name>International Organization for Standardization</name>
|
366
|
-
<abbreviation>ISO</abbreviation>
|
367
|
-
<uri>www.iso.org</uri>
|
368
|
-
</organization>
|
369
|
-
</contributor>
|
370
|
-
<edition>3</edition>
|
371
|
-
<language>en</language>
|
372
|
-
<script>Latn</script>
|
373
|
-
<status>
|
374
|
-
<stage>90</stage>
|
375
|
-
<substage>93</substage>
|
376
|
-
</status>
|
377
|
-
<copyright>
|
378
|
-
<from>2001</from>
|
379
|
-
<owner>
|
380
|
-
<organization>
|
381
|
-
<name>ISO</name>
|
382
|
-
</organization>
|
383
|
-
</owner>
|
384
|
-
</copyright>
|
385
|
-
<relation type='obsoletes'>
|
386
|
-
<bibitem type='standard'>
|
387
|
-
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
388
|
-
</bibitem>
|
389
|
-
</relation>
|
390
|
-
<relation type='instance'>
|
391
|
-
<bibitem type='standard'>
|
392
|
-
<fetched>#{Date.today}</fetched>
|
393
|
-
<title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
|
394
|
-
<title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
|
395
|
-
<title type='main' format='text/plain' language='en' script='Latn'>Rubber latex — Sampling</title>
|
396
|
-
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
397
|
-
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
398
|
-
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
399
|
-
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
400
|
-
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:en</docidentifier>
|
401
|
-
<docnumber>123</docnumber>
|
402
|
-
<date type='published'>
|
403
|
-
<on>2001-05</on>
|
404
|
-
</date>
|
405
|
-
<contributor>
|
406
|
-
<role type='publisher'/>
|
407
|
-
<organization>
|
408
|
-
<name>International Organization for Standardization</name>
|
409
|
-
<abbreviation>ISO</abbreviation>
|
410
|
-
<uri>www.iso.org</uri>
|
411
|
-
</organization>
|
412
|
-
</contributor>
|
413
|
-
<edition>3</edition>
|
414
|
-
<language>en</language>
|
415
|
-
<script>Latn</script>
|
416
|
-
<abstract format='text/plain' language='en' script='Latn'>
|
417
|
-
This International Standard specifies procedures for sampling
|
418
|
-
natural rubber latex concentrate and for sampling syntheticrubber
|
419
|
-
latices and artificial latices. It is also suitable for sampling
|
420
|
-
rubber latex contained in drums, tank cars ortanks. The procedures
|
421
|
-
may also be used for sampling plastics dispersions.
|
422
|
-
</abstract>
|
423
|
-
<status>
|
424
|
-
<stage>90</stage>
|
425
|
-
<substage>93</substage>
|
426
|
-
</status>
|
427
|
-
<copyright>
|
428
|
-
<from>2001</from>
|
429
|
-
<owner>
|
430
|
-
<organization>
|
431
|
-
<name>ISO</name>
|
432
|
-
</organization>
|
433
|
-
</owner>
|
434
|
-
</copyright>
|
435
|
-
<relation type='obsoletes'>
|
436
|
-
<bibitem type='standard'>
|
437
|
-
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
438
|
-
</bibitem>
|
439
|
-
</relation>
|
440
|
-
<place>Geneva</place>
|
441
|
-
</bibitem>
|
442
|
-
</relation>
|
443
|
-
<relation type='instance'>
|
444
|
-
<bibitem type='standard'>
|
445
|
-
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
446
|
-
</bibitem>
|
447
|
-
</relation>
|
448
|
-
<relation type='instance'>
|
449
|
-
<bibitem type='standard'>
|
450
|
-
<formattedref format='text/plain'>ISO 123:1974</formattedref>
|
451
|
-
</bibitem>
|
452
|
-
</relation>
|
453
|
-
<place>Geneva</place>
|
454
|
-
</bibitem>
|
455
|
-
</references>
|
456
|
-
</bibliography>
|
457
|
-
</standard-document>
|
242
|
+
<title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
|
243
|
+
<title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
|
244
|
+
<title type='main' format='text/plain' language='en' script='Latn'>Rubber latex — Sampling</title>
|
245
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
246
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
247
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
248
|
+
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
249
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:en</docidentifier>
|
250
|
+
<docnumber>123</docnumber>
|
251
|
+
<date type='published'>
|
252
|
+
<on>2001-05</on>
|
253
|
+
</date>
|
254
|
+
<contributor>
|
255
|
+
<role type='publisher'/>
|
256
|
+
<organization>
|
257
|
+
<name>International Organization for Standardization</name>
|
258
|
+
<abbreviation>ISO</abbreviation>
|
259
|
+
<uri>www.iso.org</uri>
|
260
|
+
</organization>
|
261
|
+
</contributor>
|
262
|
+
<edition>3</edition>
|
263
|
+
<language>en</language>
|
264
|
+
<script>Latn</script>
|
265
|
+
<abstract format='text/plain' language='en' script='Latn'>
|
266
|
+
This International Standard specifies procedures for sampling natural
|
267
|
+
rubber latex concentrate and for sampling synthetic rubber latices and
|
268
|
+
artificial latices. It is also suitable for sampling rubber latex
|
269
|
+
contained in drums, tank cars or tanks. The procedures may also be
|
270
|
+
used for sampling plastics dispersions.
|
271
|
+
</abstract>
|
272
|
+
<status>
|
273
|
+
<stage>90</stage>
|
274
|
+
<substage>93</substage>
|
275
|
+
</status>
|
276
|
+
<copyright>
|
277
|
+
<from>2001</from>
|
278
|
+
<owner>
|
279
|
+
<organization>
|
280
|
+
<name>ISO</name>
|
281
|
+
</organization>
|
282
|
+
</owner>
|
283
|
+
</copyright>
|
284
|
+
<relation type='obsoletes'>
|
285
|
+
<bibitem type='standard'>
|
286
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
287
|
+
</bibitem>
|
288
|
+
</relation>
|
289
|
+
<place>Geneva</place>
|
290
|
+
</bibitem>
|
291
|
+
<bibitem id='iso124' type='standard'>
|
292
|
+
<fetched>#{Date.today}</fetched>
|
293
|
+
<title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
|
294
|
+
<title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
|
295
|
+
<title type='main' format='text/plain' language='en' script='Latn'>Rubber latex — Sampling</title>
|
296
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
297
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
298
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
299
|
+
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
300
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
301
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:en</docidentifier>
|
302
|
+
<docnumber>123</docnumber>
|
303
|
+
<date type='published'>
|
304
|
+
<on>2001-05</on>
|
305
|
+
</date>
|
306
|
+
<contributor>
|
307
|
+
<role type='publisher'/>
|
308
|
+
<organization>
|
309
|
+
<name>International Organization for Standardization</name>
|
310
|
+
<abbreviation>ISO</abbreviation>
|
311
|
+
<uri>www.iso.org</uri>
|
312
|
+
</organization>
|
313
|
+
</contributor>
|
314
|
+
<edition>3</edition>
|
315
|
+
<language>en</language>
|
316
|
+
<script>Latn</script>
|
317
|
+
<abstract format='text/plain' language='en' script='Latn'>
|
318
|
+
This International Standard specifies procedures for sampling natural
|
319
|
+
rubber latex concentrate and for sampling synthetic rubber latices and
|
320
|
+
artificial latices. It is also suitable for sampling rubber latex
|
321
|
+
contained in drums, tank cars or tanks. The procedures may also be
|
322
|
+
used for sampling plastics dispersions.
|
323
|
+
</abstract>
|
324
|
+
<status>
|
325
|
+
<stage>90</stage>
|
326
|
+
<substage>93</substage>
|
327
|
+
</status>
|
328
|
+
<copyright>
|
329
|
+
<from>2001</from>
|
330
|
+
<owner>
|
331
|
+
<organization>
|
332
|
+
<name>ISO</name>
|
333
|
+
</organization>
|
334
|
+
</owner>
|
335
|
+
</copyright>
|
336
|
+
<relation type='obsoletes'>
|
337
|
+
<bibitem type='standard'>
|
338
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
339
|
+
</bibitem>
|
340
|
+
</relation>
|
341
|
+
<place>Geneva</place>
|
342
|
+
</bibitem>
|
343
|
+
</references>
|
344
|
+
</bibliography>
|
345
|
+
</standard-document>
|
458
346
|
OUTPUT
|
459
347
|
end
|
460
348
|
end
|
@@ -489,231 +377,119 @@ RSpec.describe Asciidoctor::Standoc do
|
|
489
377
|
compris les éventuels amendements).
|
490
378
|
</p>
|
491
379
|
<bibitem id='iso123' type='standard'>
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
606
|
-
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
|
607
|
-
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
608
|
-
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
609
|
-
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
610
|
-
<docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
|
611
|
-
<docidentifier type='metanorma'>[1]</docidentifier>
|
612
|
-
<docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
|
613
|
-
<docnumber>123</docnumber>
|
614
|
-
<date type='published'>
|
615
|
-
<on>2001-05</on>
|
616
|
-
</date>
|
617
|
-
<contributor>
|
618
|
-
<role type='publisher'/>
|
619
|
-
<organization>
|
620
|
-
<name>International Organization for Standardization</name>
|
621
|
-
<abbreviation>ISO</abbreviation>
|
622
|
-
<uri>www.iso.org</uri>
|
623
|
-
</organization>
|
624
|
-
</contributor>
|
625
|
-
<edition>3</edition>
|
626
|
-
<language>en</language>
|
627
|
-
<language>fr</language>
|
628
|
-
<script>Latn</script>
|
629
|
-
<status>
|
630
|
-
<stage>90</stage>
|
631
|
-
<substage>93</substage>
|
632
|
-
</status>
|
633
|
-
<copyright>
|
634
|
-
<from>2001</from>
|
635
|
-
<owner>
|
636
|
-
<organization>
|
637
|
-
<name>ISO</name>
|
638
|
-
</organization>
|
639
|
-
</owner>
|
640
|
-
</copyright>
|
641
|
-
<relation type='obsoletes'>
|
642
|
-
<bibitem type='standard'>
|
643
|
-
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
644
|
-
</bibitem>
|
645
|
-
</relation>
|
646
|
-
<relation type='instance'>
|
647
|
-
<bibitem type='standard'>
|
648
|
-
<fetched>#{Date.today}</fetched>
|
649
|
-
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
|
650
|
-
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
651
|
-
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
|
652
|
-
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
653
|
-
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
654
|
-
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
655
|
-
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
656
|
-
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:fr</docidentifier>
|
657
|
-
<docnumber>123</docnumber>
|
658
|
-
<date type='published'>
|
659
|
-
<on>2001-05</on>
|
660
|
-
</date>
|
661
|
-
<contributor>
|
662
|
-
<role type='publisher'/>
|
663
|
-
<organization>
|
664
|
-
<name>International Organization for Standardization</name>
|
665
|
-
<abbreviation>ISO</abbreviation>
|
666
|
-
<uri>www.iso.org</uri>
|
667
|
-
</organization>
|
668
|
-
</contributor>
|
669
|
-
<edition>3</edition>
|
670
|
-
<language>en</language>
|
671
|
-
<language>fr</language>
|
672
|
-
<script>Latn</script>
|
673
|
-
<abstract format='text/plain' language='fr' script='Latn'>
|
674
|
-
La présente Norme internationale spécifie des méthodes
|
675
|
-
d’échantillonnage pour des concentrés de latex de
|
676
|
-
caoutchoucnaturel et pour échantillonner des latex de caoutchouc
|
677
|
-
synthétique et des latex artificiels. Elle s’applique égalementà
|
678
|
-
l’échantillonnage de latex de caoutchouc contenus dans des fûts,
|
679
|
-
citernes routières ou de stockage. Lemode opératoire peut aussi
|
680
|
-
être utilisé pour l’échantillonnage de dispersions de plastiques.
|
681
|
-
</abstract>
|
682
|
-
<status>
|
683
|
-
<stage>90</stage>
|
684
|
-
<substage>93</substage>
|
685
|
-
</status>
|
686
|
-
<copyright>
|
687
|
-
<from>2001</from>
|
688
|
-
<owner>
|
689
|
-
<organization>
|
690
|
-
<name>ISO</name>
|
691
|
-
</organization>
|
692
|
-
</owner>
|
693
|
-
</copyright>
|
694
|
-
<relation type='obsoletes'>
|
695
|
-
<bibitem type='standard'>
|
696
|
-
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
697
|
-
</bibitem>
|
698
|
-
</relation>
|
699
|
-
<place>Geneva</place>
|
700
|
-
</bibitem>
|
701
|
-
</relation>
|
702
|
-
<relation type='instance'>
|
703
|
-
<bibitem type='standard'>
|
704
|
-
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
705
|
-
</bibitem>
|
706
|
-
</relation>
|
707
|
-
<relation type='instance'>
|
708
|
-
<bibitem type='standard'>
|
709
|
-
<formattedref format='text/plain'>ISO 123:1974</formattedref>
|
710
|
-
</bibitem>
|
711
|
-
</relation>
|
712
|
-
<place>Geneva</place>
|
713
|
-
</bibitem>
|
714
|
-
</references>
|
715
|
-
</bibliography>
|
716
|
-
</standard-document>
|
380
|
+
<fetched>#{Date.today}</fetched>
|
381
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
|
382
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
383
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
|
384
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
385
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
386
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
387
|
+
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
388
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:fr</docidentifier>
|
389
|
+
<docnumber>123</docnumber>
|
390
|
+
<date type='published'>
|
391
|
+
<on>2001-05</on>
|
392
|
+
</date>
|
393
|
+
<contributor>
|
394
|
+
<role type='publisher'/>
|
395
|
+
<organization>
|
396
|
+
<name>International Organization for Standardization</name>
|
397
|
+
<abbreviation>ISO</abbreviation>
|
398
|
+
<uri>www.iso.org</uri>
|
399
|
+
</organization>
|
400
|
+
</contributor>
|
401
|
+
<edition>3</edition>
|
402
|
+
<language>en</language>
|
403
|
+
<language>fr</language>
|
404
|
+
<script>Latn</script>
|
405
|
+
<abstract format='text/plain' language='fr' script='Latn'>
|
406
|
+
La présente Norme internationale spécifie des méthodes
|
407
|
+
d’échantillonnage pour des concentrés de latex de
|
408
|
+
caoutchouc naturel et pour échantillonner des latex de caoutchouc
|
409
|
+
synthétique et des latex artificiels. Elle s’applique
|
410
|
+
également à l’échantillonnage de latex de
|
411
|
+
caoutchouc contenus dans des fûts, citernes routières ou de
|
412
|
+
stockage. Le mode opératoire peut aussi être utilisé
|
413
|
+
pour l’échantillonnage de dispersions de plastiques.
|
414
|
+
</abstract>
|
415
|
+
<status>
|
416
|
+
<stage>90</stage>
|
417
|
+
<substage>93</substage>
|
418
|
+
</status>
|
419
|
+
<copyright>
|
420
|
+
<from>2001</from>
|
421
|
+
<owner>
|
422
|
+
<organization>
|
423
|
+
<name>ISO</name>
|
424
|
+
</organization>
|
425
|
+
</owner>
|
426
|
+
</copyright>
|
427
|
+
<relation type='obsoletes'>
|
428
|
+
<bibitem type='standard'>
|
429
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
430
|
+
</bibitem>
|
431
|
+
</relation>
|
432
|
+
<place>Geneva</place>
|
433
|
+
</bibitem>
|
434
|
+
<bibitem id='iso124' type='standard'>
|
435
|
+
<fetched>#{Date.today}</fetched>
|
436
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
|
437
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
438
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
|
439
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
440
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
441
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
442
|
+
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
443
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
444
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:fr</docidentifier>
|
445
|
+
<docnumber>123</docnumber>
|
446
|
+
<date type='published'>
|
447
|
+
<on>2001-05</on>
|
448
|
+
</date>
|
449
|
+
<contributor>
|
450
|
+
<role type='publisher'/>
|
451
|
+
<organization>
|
452
|
+
<name>International Organization for Standardization</name>
|
453
|
+
<abbreviation>ISO</abbreviation>
|
454
|
+
<uri>www.iso.org</uri>
|
455
|
+
</organization>
|
456
|
+
</contributor>
|
457
|
+
<edition>3</edition>
|
458
|
+
<language>en</language>
|
459
|
+
<language>fr</language>
|
460
|
+
<script>Latn</script>
|
461
|
+
<abstract format='text/plain' language='fr' script='Latn'>
|
462
|
+
La présente Norme internationale spécifie des méthodes
|
463
|
+
d’échantillonnage pour des concentrés de latex de
|
464
|
+
caoutchouc naturel et pour échantillonner des latex de caoutchouc
|
465
|
+
synthétique et des latex artificiels. Elle s’applique
|
466
|
+
également à l’échantillonnage de latex de
|
467
|
+
caoutchouc contenus dans des fûts, citernes routières ou de
|
468
|
+
stockage. Le mode opératoire peut aussi être utilisé
|
469
|
+
pour l’échantillonnage de dispersions de plastiques.
|
470
|
+
</abstract>
|
471
|
+
<status>
|
472
|
+
<stage>90</stage>
|
473
|
+
<substage>93</substage>
|
474
|
+
</status>
|
475
|
+
<copyright>
|
476
|
+
<from>2001</from>
|
477
|
+
<owner>
|
478
|
+
<organization>
|
479
|
+
<name>ISO</name>
|
480
|
+
</organization>
|
481
|
+
</owner>
|
482
|
+
</copyright>
|
483
|
+
<relation type='obsoletes'>
|
484
|
+
<bibitem type='standard'>
|
485
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
486
|
+
</bibitem>
|
487
|
+
</relation>
|
488
|
+
<place>Geneva</place>
|
489
|
+
</bibitem>
|
490
|
+
</references>
|
491
|
+
</bibliography>
|
492
|
+
</standard-document>
|
717
493
|
OUTPUT
|
718
494
|
end
|
719
495
|
end
|
@@ -975,7 +751,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
975
751
|
end
|
976
752
|
|
977
753
|
it "declines to fetch individual references" do
|
978
|
-
VCR.use_cassette "
|
754
|
+
VCR.use_cassette "dated_iso_ref_joint_iso_iec1" do
|
979
755
|
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
980
756
|
#{ISOBIB_BLANK_HDR}
|
981
757
|
[bibliography]
|
@@ -1908,7 +1684,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
1908
1684
|
def mock_isobib_get_123_no_docid(n)
|
1909
1685
|
expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, { lang: "en", title: "<em>Standard</em>", usrlbl: nil }) do
|
1910
1686
|
RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
|
1911
|
-
<bibitem type=\"standard\" id=\"ISO123\">\n <uri type=\"src\">https://www.iso.org/standard/23281.html</uri>\n <uri type=\"obp\">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>\n <uri type=\"rss\">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>\n <date type=\"published\">\n <on>2001</on>\n </date>\n <contributor>\n <role type=\"publisher\"/>\n <organization>\n <name>International Organization for Standardization</name>\n <abbreviation>ISO</abbreviation>\n <uri>www.iso.org</uri>\n </organization>\n </contributor>\n <edition>3</edition>\n <language>en</language>\n <language>fr</language>\n <script>Latn</script>\n <status><stage>Published</stage></status>\n <copyright>\n <from>2001</from>\n <owner>\n <organization>\n <name>ISO</name>\n <abbreviation></abbreviation>\n </organization>\n </owner>\n </copyright>\n <relation type=\"obsoletes\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:1985</formattedref>\n </bibitem>\n </relation>\n <relation type=\"updates\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:2001</formattedref>\n </bibitem>\n </relation>\n
|
1687
|
+
<bibitem type=\"standard\" id=\"ISO123\">\n <uri type=\"src\">https://www.iso.org/standard/23281.html</uri>\n <uri type=\"obp\">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>\n <uri type=\"rss\">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>\n <date type=\"published\">\n <on>2001</on>\n </date>\n <contributor>\n <role type=\"publisher\"/>\n <organization>\n <name>International Organization for Standardization</name>\n <abbreviation>ISO</abbreviation>\n <uri>www.iso.org</uri>\n </organization>\n </contributor>\n <edition>3</edition>\n <language>en</language>\n <language>fr</language>\n <script>Latn</script>\n <status><stage>Published</stage></status>\n <copyright>\n <from>2001</from>\n <owner>\n <organization>\n <name>ISO</name>\n <abbreviation></abbreviation>\n </organization>\n </owner>\n </copyright>\n <relation type=\"obsoletes\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:1985</formattedref>\n </bibitem>\n </relation>\n <relation type=\"updates\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:2001</formattedref>\n </bibitem>\n </relation>\n<ext></fred></ext></bibitem>
|
1912
1688
|
OUTPUT
|
1913
1689
|
end.exactly(n).times
|
1914
1690
|
end
|
@@ -1916,7 +1692,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
1916
1692
|
def mock_isobib_get_123_no_docid_lbl(n)
|
1917
1693
|
expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, { lang: "en", title: "<em>Standard</em>", usrlbl: "(1)" }) do
|
1918
1694
|
RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
|
1919
|
-
<bibitem type=\"standard\" id=\"ISO123\">\n <uri type=\"src\">https://www.iso.org/standard/23281.html</uri>\n <uri type=\"obp\">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>\n <uri type=\"rss\">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>\n <date type=\"published\">\n <on>2001</on>\n </date>\n <contributor>\n <role type=\"publisher\"/>\n <organization>\n <name>International Organization for Standardization</name>\n <abbreviation>ISO</abbreviation>\n <uri>www.iso.org</uri>\n </organization>\n </contributor>\n <edition>3</edition>\n <language>en</language>\n <language>fr</language>\n <script>Latn</script>\n <status><stage>Published</stage></status>\n <copyright>\n <from>2001</from>\n <owner>\n <organization>\n <name>ISO</name>\n <abbreviation></abbreviation>\n </organization>\n </owner>\n </copyright>\n <relation type=\"obsoletes\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:1985</formattedref>\n </bibitem>\n </relation>\n <relation type=\"updates\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:2001</formattedref>\n </bibitem>\n </relation>\n
|
1695
|
+
<bibitem type=\"standard\" id=\"ISO123\">\n <uri type=\"src\">https://www.iso.org/standard/23281.html</uri>\n <uri type=\"obp\">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>\n <uri type=\"rss\">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>\n <date type=\"published\">\n <on>2001</on>\n </date>\n <contributor>\n <role type=\"publisher\"/>\n <organization>\n <name>International Organization for Standardization</name>\n <abbreviation>ISO</abbreviation>\n <uri>www.iso.org</uri>\n </organization>\n </contributor>\n <edition>3</edition>\n <language>en</language>\n <language>fr</language>\n <script>Latn</script>\n <status><stage>Published</stage></status>\n <copyright>\n <from>2001</from>\n <owner>\n <organization>\n <name>ISO</name>\n <abbreviation></abbreviation>\n </organization>\n </owner>\n </copyright>\n <relation type=\"obsoletes\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:1985</formattedref>\n </bibitem>\n </relation>\n <relation type=\"updates\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:2001</formattedref>\n </bibitem>\n </relation>\n<ext></fred></ext></bibitem>
|
1920
1696
|
OUTPUT
|
1921
1697
|
end.exactly(n).times
|
1922
1698
|
end
|