metanorma-iec 1.4.3 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +4 -32
  3. data/.gitignore +14 -0
  4. data/Gemfile +6 -0
  5. data/lib/isodoc/iec/base_convert.rb +25 -26
  6. data/lib/isodoc/iec/html/htmlstyle.css +56 -21
  7. data/lib/isodoc/iec/html/htmlstyle.scss +38 -7
  8. data/lib/isodoc/iec/html/scripts.html +0 -1
  9. data/lib/isodoc/iec/html/wordstyle.css +13 -11
  10. data/lib/isodoc/iec/html/wordstyle.scss +13 -11
  11. data/lib/isodoc/iec/html_convert.rb +2 -1
  12. data/lib/isodoc/iec/i18n-fr.yaml +1 -1
  13. data/lib/isodoc/iec/iec.international-standard.xsl +1770 -1324
  14. data/lib/isodoc/iec/presentation_xml_convert.rb +162 -1
  15. data/lib/isodoc/iec/word_convert.rb +2 -0
  16. data/lib/isodoc/iec/xref.rb +9 -8
  17. data/lib/{asciidoctor → metanorma}/iec/basicdoc.rng +0 -0
  18. data/lib/{asciidoctor → metanorma}/iec/biblio.rng +0 -0
  19. data/lib/{asciidoctor → metanorma}/iec/converter.rb +23 -2
  20. data/lib/{asciidoctor → metanorma}/iec/front.rb +1 -1
  21. data/lib/{asciidoctor → metanorma}/iec/iec.rng +48 -0
  22. data/lib/{asciidoctor → metanorma}/iec/iec_intro_en.xml +0 -0
  23. data/lib/{asciidoctor → metanorma}/iec/iec_intro_fr.xml +0 -0
  24. data/lib/{asciidoctor → metanorma}/iec/isodoc.rng +49 -2
  25. data/lib/{asciidoctor → metanorma}/iec/isostandard.rng +14 -0
  26. data/lib/{asciidoctor → metanorma}/iec/reqt.rng +0 -0
  27. data/lib/metanorma/iec/version.rb +1 -1
  28. data/lib/metanorma-iec.rb +1 -1
  29. data/metanorma-iec.gemspec +1 -1
  30. data/spec/isodoc/i18n_spec.rb +2 -2
  31. data/spec/isodoc/iev_spec.rb +334 -100
  32. data/spec/isodoc/postproc_spec.rb +2 -5
  33. data/spec/isodoc/ref_spec.rb +359 -353
  34. data/spec/isodoc/terms_spec.rb +14 -21
  35. data/spec/{asciidoctor → metanorma}/base_spec.rb +1 -1
  36. data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
  37. data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
  38. data/spec/{asciidoctor → metanorma}/iev_spec.rb +1 -1
  39. data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
  40. data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
  41. data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
  42. data/spec/{asciidoctor → metanorma}/validate_spec.rb +1 -1
  43. data/spec/spec_helper.rb +2 -2
  44. metadata +23 -23
@@ -211,6 +211,7 @@ RSpec.describe IsoDoc do
211
211
  <formattedref format='application/x-isodoc+xml'>
212
212
  <em>TITLE</em>
213
213
  </formattedref>
214
+ <docidentifier type='metanorma-ordinal'>[1]</docidentifier>
214
215
  <docidentifier>B</docidentifier>
215
216
  </bibitem>
216
217
  </references>
@@ -324,12 +325,10 @@ RSpec.describe IsoDoc do
324
325
  <li>A</li>
325
326
  </ul>
326
327
  </termexample>
327
- <termsource status="modified">
328
- <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>
329
- <modification>
330
- <p id="_e73a417d-ad39-417d-a4c8-20e4e2529489">The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here</p>
331
- </modification>
332
- </termsource></term>
328
+ <termsource status="modified">SOURCE:
329
+ <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>, modified &#x2013;
330
+ The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here</termsource>
331
+ </term>
333
332
  <term id="paddy">
334
333
  <name>192-01-02</name>
335
334
  <preferred><strong>paddy</strong></preferred><admitted>paddy rice</admitted>
@@ -351,7 +350,7 @@ RSpec.describe IsoDoc do
351
350
  <ul><li>A</li></ul>
352
351
  <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
353
352
  </termnote>
354
- <termsource status="identical">
353
+ <termsource status="identical">SOURCE:
355
354
  <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>
356
355
  </termsource></term>
357
356
  </terms>
@@ -367,84 +366,87 @@ RSpec.describe IsoDoc do
367
366
  <div class='boilerplate_legal'/>
368
367
  </div>
369
368
  #{IEC_TITLE1}
370
- <div id='_terms_and_definitions'>
371
- <h1>1&#160; Terms and definitions</h1>
372
- <br/>
373
- <div id='_general'>
374
- <p class='zzSTDTitle2'>
375
- <b>192-01 General</b>
376
- </p>
377
- <p class='TermNum' id='paddy1'>192-01-01</p>
378
- <p class='Terms' style='text-align:left;'><b>paddy</b></p>
379
- <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>rice retaining its husk after threshing</p>
380
- <div id='_bd57bbf1-f948-4bae-b0ce-73c00431f892' class='example'>
381
- <p>
382
- <span class='example_label'>EXAMPLE 1</span>
383
- &#160; Foreign seeds, husks, bran, sand, dust.
384
- </p>
385
- <ul>
386
- <li>A</li>
387
- </ul>
388
- </div>
389
- <div id='_bd57bbf1-f948-4bae-b0ce-73c00431f894' class='example'>
390
- <p>
391
- <span class='example_label'>EXAMPLE 2</span>
392
- &#160;
393
- </p>
394
- <ul>
395
- <li>A</li>
396
- </ul>
397
- </div>
398
- <p>
399
- [TERMREF]
400
- <a href='#ISO7301'>ISO 7301:2011, 3.1</a>
401
- [MODIFICATION]The term "cargo rice" is shown as deprecated, and
402
- Note 1 to entry is not included here [/TERMREF]
403
- </p>
404
- <p class='TermNum' id='paddy'>192-01-02</p>
405
- <p class='Terms' style='text-align:left;'><b>paddy</b></p>
406
- <p class='AltTerms' style='text-align:left;'>paddy rice</p>
407
- <p class='AltTerms' style='text-align:left;'>rough rice</p>
408
- <p class='DeprecatedTerms' style='text-align:left;'>DEPRECATED: cargo rice</p>
409
- <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>&lt;rice&gt; rice retaining its husk after threshing</p>
410
- <div id='_bd57bbf1-f948-4bae-b0ce-73c00431f893' class='example'>
411
- <p>
412
- <span class='example_label'>EXAMPLE</span>
413
- &#160;
414
- </p>
415
- <ul>
416
- <li>A</li>
417
- </ul>
418
- </div>
419
- <div class='Note' id='_671a1994-4783-40d0-bc81-987d06ffb74e'>
420
- <p>
421
- Note 1 to entry: The starch of waxy rice consists almost entirely
422
- of amylopectin. The kernels have a tendency to stick together
423
- after cooking.
424
- </p>
425
- </div>
426
- <div class='Note' id='_671a1994-4783-40d0-bc81-987d06ffb74f'>
427
- <p>
428
- Note 2 to entry:
429
- <ul>
430
- <li>A</li>
431
- </ul>
432
- <p id='_19830f33-e46c-42cc-94ca-a5ef101132d5'>
433
- The starch of waxy rice consists almost entirely of amylopectin.
434
- The kernels have a tendency to stick together after cooking.
435
- </p>
436
- </p>
437
- </div>
438
- <p>
439
- [TERMREF]
440
- <a href='#ISO7301'>ISO 7301:2011, 3.1</a>
441
- [/TERMREF]
442
- </p>
443
- </div>
444
- </div>
445
- </div>
446
- </body>
447
- </html>
369
+ <div id='_terms_and_definitions'>
370
+ <h1>1&#160; Terms and definitions</h1>
371
+ <br/>
372
+ <div id='_general'>
373
+ <h2 class='zzSTDTitle2'>
374
+ <b>192-01 General</b>
375
+ </h2>
376
+ <p class='TermNum' id='paddy1'>192-01-01</p>
377
+ <p class='Terms' style='text-align:left;'>
378
+ <b>paddy</b>
379
+ </p>
380
+ <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>rice retaining its husk after threshing</p>
381
+ <div id='_bd57bbf1-f948-4bae-b0ce-73c00431f892' class='example'>
382
+ <p>
383
+ <span class='example_label'>EXAMPLE 1</span>
384
+ &#160; Foreign seeds, husks, bran, sand, dust.
385
+ </p>
386
+ <ul>
387
+ <li>A</li>
388
+ </ul>
389
+ </div>
390
+ <div id='_bd57bbf1-f948-4bae-b0ce-73c00431f894' class='example'>
391
+ <p>
392
+ <span class='example_label'>EXAMPLE 2</span>
393
+ &#160;
394
+ </p>
395
+ <ul>
396
+ <li>A</li>
397
+ </ul>
398
+ </div>
399
+ <p>
400
+ SOURCE:
401
+ <a href='#ISO7301'>ISO 7301:2011, 3.1</a>
402
+ , modified &#8211; The term "cargo rice" is shown as deprecated, and
403
+ Note 1 to entry is not included here
404
+ </p>
405
+ <p class='TermNum' id='paddy'>192-01-02</p>
406
+ <p class='Terms' style='text-align:left;'>
407
+ <b>paddy</b>
408
+ </p>
409
+ <p class='AltTerms' style='text-align:left;'>paddy rice</p>
410
+ <p class='AltTerms' style='text-align:left;'>rough rice</p>
411
+ <p class='DeprecatedTerms' style='text-align:left;'>DEPRECATED: cargo rice</p>
412
+ <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>&lt;rice&gt; rice retaining its husk after threshing</p>
413
+ <div id='_bd57bbf1-f948-4bae-b0ce-73c00431f893' class='example'>
414
+ <p>
415
+ <span class='example_label'>EXAMPLE</span>
416
+ &#160;
417
+ </p>
418
+ <ul>
419
+ <li>A</li>
420
+ </ul>
421
+ </div>
422
+ <div id='_671a1994-4783-40d0-bc81-987d06ffb74e' class='Note'>
423
+ <p>
424
+ Note 1 to entry: The starch of waxy rice consists almost entirely
425
+ of amylopectin. The kernels have a tendency to stick together
426
+ after cooking.
427
+ </p>
428
+ </div>
429
+ <div id='_671a1994-4783-40d0-bc81-987d06ffb74f' class='Note'>
430
+ <p>
431
+ Note 2 to entry:
432
+ <ul>
433
+ <li>A</li>
434
+ </ul>
435
+ <p id='_19830f33-e46c-42cc-94ca-a5ef101132d5'>
436
+ The starch of waxy rice consists almost entirely of amylopectin.
437
+ The kernels have a tendency to stick together after cooking.
438
+ </p>
439
+ </p>
440
+ </div>
441
+ <p>
442
+ SOURCE:
443
+ <a href='#ISO7301'>ISO 7301:2011, 3.1</a>
444
+ </p>
445
+ </div>
446
+ </div>
447
+ </div>
448
+ </body>
449
+ </html>
448
450
  OUTPUT
449
451
  expect(xmlpp(IsoDoc::Iec::PresentationXMLConvert.new({})
450
452
  .convert("test", input, true)
@@ -497,19 +499,12 @@ RSpec.describe IsoDoc do
497
499
  <definition>
498
500
  <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>rice retaining its husk after threshing</p>
499
501
  </definition>
500
- <termsource status='modified'>
501
- <origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'>
502
- <locality type='clause'>
502
+ <termsource status='modified'>SOURCE:
503
+ <origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'><locality type='clause'>
503
504
  <referenceFrom>3.1</referenceFrom>
504
- </locality>
505
- ISO 7301:2011, 3.1
506
- </origin>
507
- <modification>
508
- <p id='_e73a417d-ad39-417d-a4c8-20e4e2529489'>
505
+ </locality>ISO 7301:2011, 3.1</origin>, modified &#x2013;
509
506
  The term "cargo rice" is shown as deprecated, and Note 1 to
510
507
  entry is not included here
511
- </p>
512
- </modification>
513
508
  </termsource>
514
509
  </term>
515
510
  </terms>
@@ -543,9 +538,9 @@ RSpec.describe IsoDoc do
543
538
  </p>
544
539
  <div>
545
540
  <a name='_general' id='_general'/>
546
- <p class='zzSTDTitle2'>
541
+ <h2 class='zzSTDTitle2'>
547
542
  <b>192-01 General</b>
548
- </p>
543
+ </h2>
549
544
  <p class='TermNum'>
550
545
  <a name='paddy1' id='paddy1'/>
551
546
  192-01-01
@@ -558,7 +553,7 @@ RSpec.describe IsoDoc do
558
553
  <p class='MsoNormal'>
559
554
  SOURCE:
560
555
  <a href='#ISO7301'>ISO 7301:2011, 3.1</a>
561
- , modified &#x2014; The term "cargo rice" is shown as deprecated, and
556
+ , modified &#x2013; The term "cargo rice" is shown as deprecated, and
562
557
  Note 1 to entry is not included here
563
558
  </p>
564
559
  </div>
@@ -606,7 +601,7 @@ RSpec.describe IsoDoc do
606
601
  <docnumber>60050</docnumber>
607
602
  <ext>
608
603
  <doctype language=''>international-standard</doctype>
609
- <doctype language='fr'>Norme international</doctype>
604
+ <doctype language='fr'>Norme internationale</doctype>
610
605
  <doctype language='en'>International Standard</doctype>
611
606
  <horizontal language=''>false</horizontal>
612
607
  <structuredidentifier>
@@ -622,7 +617,7 @@ RSpec.describe IsoDoc do
622
617
  <title>192-01 General</title>
623
618
  <term id='term-durability'>
624
619
  <name>192-01-01</name>
625
- <preferred><strong>durability, &#x3c;of an item&#x3e;</strong></preferred>
620
+ <preferred><strong>durability</strong>, &#x3c;of an item&#x3e;</preferred>
626
621
  <definition>
627
622
  <verbaldefinition>
628
623
  <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>rice retaining its husk after threshing</p>
@@ -654,4 +649,243 @@ RSpec.describe IsoDoc do
654
649
  .sub(%r{<localized-strings>.*</localized-strings>}m, "")))
655
650
  .to be_equivalent_to xmlpp(presxml)
656
651
  end
652
+
653
+ it "processes multilingual IEV terms" do
654
+ input = <<~INPUT
655
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
656
+ <bibdata type='standard'>
657
+ <docidentifier type='ISO'>IEC 60050-192 ED 1</docidentifier>
658
+ <docnumber>60050</docnumber>
659
+ </bibdata>
660
+ <sections>
661
+ <clause id="_terms_and_definitions" obligation="normative"><title>Terms and definitions</title>
662
+ <terms id="_general" obligation="normative"><title>General</title>
663
+ <term id="item" language="en" tag="item">
664
+ <preferred><expression language="en"><name>system</name></expression><field-of-application>in dependability</field-of-application></preferred>
665
+ <preferred><expression language="de"><name>Betrachtungseinheit</name<grammar><gender>feminine</gender></grammar></expression></preferred>
666
+ <preferred><expression language="ja"><name>アイテム</name></expression></preferred>
667
+ <preferred><expression language="de"><name>Einheit</name><grammar><gender>feminine</gender></grammar></expression></preferred>
668
+ <preferred><expression language="zh"><name>&#20135;&#21697;</name></expression><field-of-application>在可靠性方面</field-of-application></preferred>
669
+ <preferred><expression language="ar"><name>نظام،</name></expression><field-of-application>في الاعتمادیة</field-of-application></preferred>
670
+ <admitted><expression><name>paddy rice</name></expression></admitted>
671
+ <admitted><expression><name>rough rice</name></expression></admitted>
672
+ <deprecates><expression><name>cargo rice</name></expression></deprecates>
673
+ <related type='contrast'><preferred><expression><name>Fifth Designation</name></expression></preferred><xref target="paddy1"/></related>
674
+ <definition><verbal-definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">set of interrelated items that collectively fulfil a requirement</p></verbal-definition></definition>
675
+ <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74e">
676
+ <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">A system is considered to have a defined real or abstract boundary.</p>
677
+ </termnote>
678
+ <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74d">
679
+ <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">External resources (from outside the system boundary) may be required for the system to operate.</p>
680
+ </termnote>
681
+ <termexample id="_671a1994-4783-40d0-bc81-987d06ffb740">
682
+ <p id="_19830f33-e46c-42cc-94ca-a5ef101132d0">External resources (from outside the system boundary) may be required for the system to operate.</p>
683
+ </termexample>
684
+ <termsource status="modified">
685
+ <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>
686
+ <modification>modified by extension to suit the dependability context</modification>
687
+ </termsource></term>
688
+ <term id="item-fr" language="fr" tag="item">
689
+ <preferred><expression language="fr"><name>entité</name<grammar><gender>masculine</gender></grammar></expression>
690
+ <field-of-application>en sûreté de fonctionnement</field-of-application>
691
+ </preferred>
692
+ <related type='contrast'><preferred><expression><name>Designation cinquième</name></expression></preferred><xref target="paddy1"/></related>
693
+ <related type='see'><preferred><expression><name>Designation sixième</name></expression></preferred><xref target="paddy1"/></related>
694
+ <definition><verbal-definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747d">ensemble d’entités reliées entre elles qui satisfont collectivement à une exigence</p></verbal-definition></definition>
695
+ <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74c">
696
+ <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">Un système est considéré comme ayant une frontière définie, réelle ou abstraite.</p>
697
+ </termnote>
698
+ <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74b">
699
+ <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">Des ressources externes (provenant d’au-delà de la frontière) peuvent être nécessaires au fonctionnement du système.</p>
700
+ </termnote>
701
+ <termexample id="_671a1994-4783-40d0-bc81-987d06ffb741">
702
+ <p id="_19830f33-e46c-42cc-94ca-a5ef101132d1">External resources (from outside the system boundary) may be required for the system to operate.</p>
703
+ </termexample>
704
+ <termsource status="modified">
705
+ <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>
706
+ <modification>modifié pour adapter au contexte de la sûreté de fonctionnement</modification>
707
+ </termsource></term>
708
+ <term id="paddy1"><preferred><expression><name>paddy</name></expression></preferred>
709
+ <definition><verbal-definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747d">rice retaining its husk after threshing</p></verbal-definition></definition>
710
+ </term>
711
+ </terms>
712
+ </clause>
713
+ </sections>
714
+ </iso-standard>
715
+ INPUT
716
+
717
+ presxml = <<~PRESXML
718
+ <iso-standard xmlns='http://riboseinc.com/isoxml' type='presentation'>
719
+ <bibdata type='standard'>
720
+ <docidentifier type='ISO'>IEC 60050-192 ED 1</docidentifier>
721
+ <docnumber>60050</docnumber>
722
+ </bibdata>
723
+ <sections>
724
+ <clause id='_terms_and_definitions' obligation='normative' displayorder='1'>
725
+ <title depth='1'>
726
+ 1
727
+ <tab/>
728
+ Terms and definitions
729
+ </title>
730
+ <terms id='_general' obligation='normative'>
731
+ <title>192-01 General</title>
732
+ <term id='item' language='en,fr'>
733
+ <name>192-01-01</name>
734
+ <preferred>
735
+ <strong>system</strong>
736
+ , &#x3c;in dependability&#x3e;
737
+ </preferred>
738
+ <admitted>paddy rice</admitted>
739
+ <admitted>rough rice</admitted>
740
+ <deprecates>cargo rice</deprecates>
741
+ <definition>
742
+ <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>set of interrelated items that collectively fulfil a requirement</p>
743
+ </definition>
744
+ <p>
745
+ CONTRAST:
746
+ <strong>Fifth Designation</strong>
747
+ (
748
+ <xref target='paddy1'>192-01-02</xref>
749
+ )
750
+ </p>
751
+ <termexample id='_671a1994-4783-40d0-bc81-987d06ffb740'>
752
+ <name>EXAMPLE</name>
753
+ <p id='_19830f33-e46c-42cc-94ca-a5ef101132d0'>
754
+ External resources (from outside the system boundary) may be
755
+ required for the system to operate.
756
+ </p>
757
+ </termexample>
758
+ <termnote id='_671a1994-4783-40d0-bc81-987d06ffb74e'>
759
+ <name>Note 1 to entry</name>
760
+ <p id='_19830f33-e46c-42cc-94ca-a5ef101132d5'>A system is considered to have a defined real or abstract boundary.</p>
761
+ </termnote>
762
+ <termnote id='_671a1994-4783-40d0-bc81-987d06ffb74d'>
763
+ <name>Note 2 to entry</name>
764
+ <p id='_19830f33-e46c-42cc-94ca-a5ef101132d5'>
765
+ External resources (from outside the system boundary) may be
766
+ required for the system to operate.
767
+ </p>
768
+ </termnote>
769
+ <termsource status='modified'>
770
+ SOURCE:
771
+ <origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'>
772
+ <locality type='clause'>
773
+ <referenceFrom>3.1</referenceFrom>
774
+ </locality>
775
+ ISO 7301:2011, 3.1
776
+ </origin>
777
+ , modified &#x2013; modified by extension to suit the dependability
778
+ context
779
+ </termsource>
780
+ <preferred>
781
+ <strong>entit&#xE9;</strong>
782
+ , &#x3c;en s&#xFB;ret&#xE9; de fonctionnement&#x3e;, m
783
+ </preferred>
784
+ <definition>
785
+ <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747d'>
786
+ ensemble d&#x2019;entit&#xE9;s reli&#xE9;es entre elles qui
787
+ satisfont collectivement &#xE0; une exigence
788
+ </p>
789
+ </definition>
790
+ <p>
791
+ CONTRASTEZ:
792
+ <strong>Designation cinqui&#xE8;me</strong>
793
+ (
794
+ <xref target='paddy1'>192-01-02</xref>
795
+ )
796
+ </p>
797
+ <p>
798
+ VOIR:
799
+ <strong>Designation sixi&#xE8;me</strong>
800
+ (
801
+ <xref target='paddy1'>192-01-02</xref>
802
+ )
803
+ </p>
804
+ <termexample id='_671a1994-4783-40d0-bc81-987d06ffb741'>
805
+ <name>EXEMPLE</name>
806
+ <p id='_19830f33-e46c-42cc-94ca-a5ef101132d1'>
807
+ External resources (from outside the system boundary) may be
808
+ required for the system to operate.
809
+ </p>
810
+ </termexample>
811
+ <termnote id='_671a1994-4783-40d0-bc81-987d06ffb74c'>
812
+ <name>Note 1 &#xE0; l&#x2019;article</name>
813
+ <p id='_19830f33-e46c-42cc-94ca-a5ef101132d5'>
814
+ Un syst&#xE8;me est consid&#xE9;r&#xE9; comme ayant une
815
+ fronti&#xE8;re d&#xE9;finie, r&#xE9;elle ou abstraite.
816
+ </p>
817
+ </termnote>
818
+ <termnote id='_671a1994-4783-40d0-bc81-987d06ffb74b'>
819
+ <name>Note 2 &#xE0; l&#x2019;article</name>
820
+ <p id='_19830f33-e46c-42cc-94ca-a5ef101132d5'>
821
+ Des ressources externes (provenant d&#x2019;au-del&#xE0; de la
822
+ fronti&#xE8;re) peuvent &#xEA;tre n&#xE9;cessaires au
823
+ fonctionnement du syst&#xE8;me.
824
+ </p>
825
+ </termnote>
826
+ <termsource status='modified'>
827
+ SOURCE:
828
+ <origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'>
829
+ <locality type='clause'>
830
+ <referenceFrom>3.1</referenceFrom>
831
+ </locality>
832
+ ISO 7301:2011, 3.1
833
+ </origin>
834
+ , modifi&#xE9; &#x2013; modifi&#xE9; pour adapter au contexte de la
835
+ s&#xFB;ret&#xE9; de fonctionnement
836
+ </termsource>
837
+ <dl type='other-lang'>
838
+ <dt>ar</dt>
839
+ <dd language='ar' script='Arab'>
840
+ <preferred>
841
+ <strong>&#x61C;&#x646;&#x638;&#x627;&#x645;&#x60C;&#x61C;</strong>
842
+ &#x61C;, &#x3c;&#x641;&#x64A;
843
+ &#x627;&#x644;&#x627;&#x639;&#x62A;&#x645;&#x627;&#x62F;&#x6CC;&#x629;&#x3e;&#x61C;
844
+ </preferred>
845
+ </dd>
846
+ <dt>de</dt>
847
+ <dd language='de' script='Latn'>
848
+ <preferred>
849
+ <strong>Betrachtungseinheit</strong>
850
+ , f
851
+ </preferred>
852
+ <preferred>
853
+ <strong>Einheit</strong>
854
+ , f
855
+ </preferred>
856
+ </dd>
857
+ <dt>ja</dt>
858
+ <dd language='ja' script='Jpan'>
859
+ <preferred>
860
+ <strong>&#x30A2;&#x30A4;&#x30C6;&#x30E0;</strong>
861
+ </preferred>
862
+ </dd>
863
+ <dt>zh</dt>
864
+ <dd language='zh' script='Hans'>
865
+ <preferred>
866
+ <strong>&#x4EA7;&#x54C1;</strong>
867
+ &#x3001;&#x3c;&#x5728;&#x53EF;&#x9760;&#x6027;&#x65B9;&#x9762;&#x3e;
868
+ </preferred>
869
+ </dd>
870
+ </dl>
871
+ </term>
872
+ <term id='paddy1'>
873
+ <name>192-01-02</name>
874
+ <preferred>
875
+ <strong>paddy</strong>
876
+ </preferred>
877
+ <definition>
878
+ <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747d'>rice retaining its husk after threshing</p>
879
+ </definition>
880
+ </term>
881
+ </terms>
882
+ </clause>
883
+ </sections>
884
+ </iso-standard>
885
+ PRESXML
886
+ expect(xmlpp(IsoDoc::Iec::PresentationXMLConvert.new({})
887
+ .convert("test", input, true)
888
+ .sub(%r{<localized-strings>.*</localized-strings>}m, "")))
889
+ .to be_equivalent_to xmlpp(presxml)
890
+ end
657
891
  end
@@ -127,11 +127,8 @@ RSpec.describe IsoDoc do
127
127
  <name>1.1</name>
128
128
  <preferred>paddy</preferred>
129
129
  <definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></definition>
130
- <termsource status="modified">
131
- <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>
132
- <modification>
133
- <p id="_e73a417d-ad39-417d-a4c8-20e4e2529489">The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here</p>
134
- </modification>
130
+ <termsource status="modified">[SOURCE:
131
+ <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>, modified &#x2014; The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]
135
132
  </termsource></term>
136
133
  </terms>
137
134
  </sections>