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.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +4 -32
- data/.gitignore +14 -0
- data/Gemfile +6 -0
- data/lib/isodoc/iec/base_convert.rb +25 -26
- data/lib/isodoc/iec/html/htmlstyle.css +56 -21
- data/lib/isodoc/iec/html/htmlstyle.scss +38 -7
- data/lib/isodoc/iec/html/scripts.html +0 -1
- data/lib/isodoc/iec/html/wordstyle.css +13 -11
- data/lib/isodoc/iec/html/wordstyle.scss +13 -11
- data/lib/isodoc/iec/html_convert.rb +2 -1
- data/lib/isodoc/iec/i18n-fr.yaml +1 -1
- data/lib/isodoc/iec/iec.international-standard.xsl +1770 -1324
- data/lib/isodoc/iec/presentation_xml_convert.rb +162 -1
- data/lib/isodoc/iec/word_convert.rb +2 -0
- data/lib/isodoc/iec/xref.rb +9 -8
- data/lib/{asciidoctor → metanorma}/iec/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iec/biblio.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iec/converter.rb +23 -2
- data/lib/{asciidoctor → metanorma}/iec/front.rb +1 -1
- data/lib/{asciidoctor → metanorma}/iec/iec.rng +48 -0
- data/lib/{asciidoctor → metanorma}/iec/iec_intro_en.xml +0 -0
- data/lib/{asciidoctor → metanorma}/iec/iec_intro_fr.xml +0 -0
- data/lib/{asciidoctor → metanorma}/iec/isodoc.rng +49 -2
- data/lib/{asciidoctor → metanorma}/iec/isostandard.rng +14 -0
- data/lib/{asciidoctor → metanorma}/iec/reqt.rng +0 -0
- data/lib/metanorma/iec/version.rb +1 -1
- data/lib/metanorma-iec.rb +1 -1
- data/metanorma-iec.gemspec +1 -1
- data/spec/isodoc/i18n_spec.rb +2 -2
- data/spec/isodoc/iev_spec.rb +334 -100
- data/spec/isodoc/postproc_spec.rb +2 -5
- data/spec/isodoc/ref_spec.rb +359 -353
- data/spec/isodoc/terms_spec.rb +14 -21
- data/spec/{asciidoctor → metanorma}/base_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/iev_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/validate_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +23 -23
data/spec/isodoc/iev_spec.rb
CHANGED
@@ -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
|
-
|
330
|
-
|
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 –
|
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
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
369
|
+
<div id='_terms_and_definitions'>
|
370
|
+
<h1>1  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
|
+
  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
|
+
 
|
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 – 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'><rice> 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
|
+
 
|
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 –
|
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
|
-
<
|
541
|
+
<h2 class='zzSTDTitle2'>
|
547
542
|
<b>192-01 General</b>
|
548
|
-
</
|
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 &#
|
556
|
+
, modified – 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
|
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
|
620
|
+
<preferred><strong>durability</strong>, <of an item></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>产品</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
|
+
, <in dependability>
|
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 – modified by extension to suit the dependability
|
778
|
+
context
|
779
|
+
</termsource>
|
780
|
+
<preferred>
|
781
|
+
<strong>entité</strong>
|
782
|
+
, <en sûreté de fonctionnement>, m
|
783
|
+
</preferred>
|
784
|
+
<definition>
|
785
|
+
<p id='_eb29b35e-123e-4d1c-b50b-2714d41e747d'>
|
786
|
+
ensemble d’entités reliées entre elles qui
|
787
|
+
satisfont collectivement à une exigence
|
788
|
+
</p>
|
789
|
+
</definition>
|
790
|
+
<p>
|
791
|
+
CONTRASTEZ:
|
792
|
+
<strong>Designation cinquième</strong>
|
793
|
+
(
|
794
|
+
<xref target='paddy1'>192-01-02</xref>
|
795
|
+
)
|
796
|
+
</p>
|
797
|
+
<p>
|
798
|
+
VOIR:
|
799
|
+
<strong>Designation sixiè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 à l’article</name>
|
813
|
+
<p id='_19830f33-e46c-42cc-94ca-a5ef101132d5'>
|
814
|
+
Un système est considéré comme ayant une
|
815
|
+
frontière définie, réelle ou abstraite.
|
816
|
+
</p>
|
817
|
+
</termnote>
|
818
|
+
<termnote id='_671a1994-4783-40d0-bc81-987d06ffb74b'>
|
819
|
+
<name>Note 2 à l’article</name>
|
820
|
+
<p id='_19830f33-e46c-42cc-94ca-a5ef101132d5'>
|
821
|
+
Des ressources externes (provenant d’au-delà de la
|
822
|
+
frontière) peuvent être nécessaires au
|
823
|
+
fonctionnement du systè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é – modifié pour adapter au contexte de la
|
835
|
+
sûreté de fonctionnement
|
836
|
+
</termsource>
|
837
|
+
<dl type='other-lang'>
|
838
|
+
<dt>ar</dt>
|
839
|
+
<dd language='ar' script='Arab'>
|
840
|
+
<preferred>
|
841
|
+
<strong>؜نظام،؜</strong>
|
842
|
+
؜, <في
|
843
|
+
الاعتمادیة>؜
|
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>アイテム</strong>
|
861
|
+
</preferred>
|
862
|
+
</dd>
|
863
|
+
<dt>zh</dt>
|
864
|
+
<dd language='zh' script='Hans'>
|
865
|
+
<preferred>
|
866
|
+
<strong>产品</strong>
|
867
|
+
、<在可靠性方面>
|
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 — 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>
|