metanorma-iso 2.1.0 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/html2doc/lists.rb +145 -10
- data/lib/isodoc/iso/base_convert.rb +11 -1
- data/lib/isodoc/iso/html/html_iso_titlepage.html +2 -0
- data/lib/isodoc/iso/html/isodoc-dis.css +216 -278
- data/lib/isodoc/iso/html/isodoc-dis.scss +294 -288
- data/lib/isodoc/iso/html/isodoc.css +38 -13
- data/lib/isodoc/iso/html/isodoc.scss +38 -12
- data/lib/isodoc/iso/html/style-human.css +14 -1
- data/lib/isodoc/iso/html/style-human.scss +10 -1
- data/lib/isodoc/iso/html/style-iso.css +35 -23
- data/lib/isodoc/iso/html/style-iso.scss +31 -23
- data/lib/isodoc/iso/html/word_iso_intro-dis.html +1 -6
- data/lib/isodoc/iso/html/word_iso_titlepage-dis.html +24 -13
- data/lib/isodoc/iso/html/word_iso_titlepage-prf.html +58 -0
- data/lib/isodoc/iso/html/word_iso_titlepage.html +10 -6
- data/lib/isodoc/iso/html/wordstyle-dis.css +12 -62
- data/lib/isodoc/iso/html/wordstyle-dis.scss +7 -56
- data/lib/isodoc/iso/html_convert.rb +7 -2
- data/lib/isodoc/iso/i18n-en.yaml +32 -4
- data/lib/isodoc/iso/i18n-fr.yaml +29 -3
- data/lib/isodoc/iso/i18n-ru.yaml +32 -4
- data/lib/isodoc/iso/i18n-zh-Hans.yaml +32 -3
- data/lib/isodoc/iso/i18n.rb +1 -1
- data/lib/isodoc/iso/iso.amendment.xsl +1570 -246
- data/lib/isodoc/iso/iso.international-standard.xsl +1570 -246
- data/lib/isodoc/iso/metadata.rb +67 -67
- data/lib/isodoc/iso/presentation_bibdata.rb +74 -0
- data/lib/isodoc/iso/presentation_xml_convert.rb +16 -5
- data/lib/isodoc/iso/presentation_xref.rb +10 -4
- data/lib/isodoc/iso/sections.rb +3 -3
- data/lib/isodoc/iso/word_cleanup.rb +3 -0
- data/lib/isodoc/iso/word_convert.rb +8 -5
- data/lib/isodoc/iso/word_dis_cleanup.rb +235 -0
- data/lib/isodoc/iso/word_dis_convert.rb +48 -100
- data/lib/isodoc/iso/xref.rb +34 -6
- data/lib/metanorma/iso/base.rb +20 -1
- data/lib/metanorma/iso/biblio.rng +134 -39
- data/lib/metanorma/iso/boilerplate-fr.xml +3 -0
- data/lib/metanorma/iso/boilerplate-ru.xml +3 -0
- data/lib/metanorma/iso/boilerplate.xml +3 -0
- data/lib/metanorma/iso/cleanup.rb +49 -11
- data/lib/metanorma/iso/front.rb +38 -6
- data/lib/metanorma/iso/front_id.rb +2 -0
- data/lib/metanorma/iso/isodoc.rng +16 -0
- data/lib/metanorma/iso/isostandard.rng +30 -12
- data/lib/metanorma/iso/macros.rb +29 -0
- data/lib/metanorma/iso/validate_section.rb +0 -12
- data/lib/metanorma/iso/version.rb +1 -1
- data/spec/isodoc/amd_spec.rb +20 -46
- data/spec/isodoc/blocks_spec.rb +499 -2
- data/spec/isodoc/i18n_spec.rb +145 -80
- data/spec/isodoc/iso_spec.rb +50 -169
- data/spec/isodoc/metadata_spec.rb +240 -99
- data/spec/isodoc/postproc_spec.rb +43 -7
- data/spec/isodoc/section_spec.rb +9 -9
- data/spec/isodoc/word_dis_spec.rb +1332 -146
- data/spec/isodoc/xref_spec.rb +87 -13
- data/spec/metanorma/amd_spec.rb +39 -23
- data/spec/metanorma/base_spec.rb +174 -44
- data/spec/metanorma/blocks_spec.rb +54 -0
- data/spec/metanorma/lists_spec.rb +2 -2
- data/spec/metanorma/section_spec.rb +2 -2
- data/spec/metanorma/validate_spec.rb +8 -19
- data/spec/spec_helper.rb +17 -7
- data/spec/vcr_cassettes/withdrawn_iso.yml +30 -30
- metadata +7 -8
- data/docs/asciiiso-syntax.adoc +0 -307
- data/docs/guidance.adoc +0 -487
- data/docs/navigation.adoc +0 -23
- data/docs/quickstart.adoc +0 -179
- data/lib/isodoc/iso/presentation_inline.rb +0 -90
data/spec/isodoc/section_spec.rb
CHANGED
@@ -526,7 +526,7 @@ RSpec.describe IsoDoc do
|
|
526
526
|
|
527
527
|
it "processes multiple terms & definitions sections" do
|
528
528
|
input = <<~INPUT
|
529
|
-
#{BLANK_HDR.sub(%r{<doctype>
|
529
|
+
#{BLANK_HDR.sub(%r{<doctype>standard</doctype>}, '<doctype>standard</doctype><subdoctype>vocabulary</subdoctype>')}
|
530
530
|
<sections>
|
531
531
|
<terms id='A' obligation='normative'>
|
532
532
|
<title>Terms and definitions</title>
|
@@ -561,8 +561,7 @@ RSpec.describe IsoDoc do
|
|
561
561
|
<language current='true'>en</language>
|
562
562
|
<script current='true'>Latn</script>
|
563
563
|
<status>
|
564
|
-
<stage abbreviation='IS'
|
565
|
-
<stage abbreviation='IS' language='en'>International standard</stage>
|
564
|
+
<stage abbreviation='IS'>60</stage>
|
566
565
|
<substage>60</substage>
|
567
566
|
</status>
|
568
567
|
<copyright>
|
@@ -575,13 +574,14 @@ RSpec.describe IsoDoc do
|
|
575
574
|
</owner>
|
576
575
|
</copyright>
|
577
576
|
<ext>
|
578
|
-
<doctype>
|
577
|
+
<doctype>standard</doctype>
|
579
578
|
<subdoctype>vocabulary</subdoctype>
|
580
|
-
<editorialgroup>
|
581
|
-
|
582
|
-
<subcommittee/>
|
583
|
-
<workgroup/>
|
579
|
+
<editorialgroup identifier='ISO'>
|
580
|
+
<agency>ISO</agency>
|
584
581
|
</editorialgroup>
|
582
|
+
<approvalgroup identifier='ISO'>
|
583
|
+
<agency>ISO</agency>
|
584
|
+
</approvalgroup>
|
585
585
|
<stagename>International standard</stagename>
|
586
586
|
</ext>
|
587
587
|
</bibdata>
|
@@ -708,7 +708,7 @@ RSpec.describe IsoDoc do
|
|
708
708
|
</div>
|
709
709
|
<p><br clear="all" class="section"/></p>
|
710
710
|
<div class="WordSection3">
|
711
|
-
<p class="
|
711
|
+
<p class="zzSTDTitle"/>
|
712
712
|
</div>
|
713
713
|
<br clear="all" style="page-break-before:left;mso-break-type:section-break"/>
|
714
714
|
<div class="colophon"/>
|