metanorma-iso 2.0.6.1 → 2.0.8.1

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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/asciidoctor/iso/base.rb +0 -1
  3. data/lib/asciidoctor/iso/cleanup.rb +0 -1
  4. data/lib/asciidoctor/iso/converter.rb +0 -1
  5. data/lib/asciidoctor/iso/deprecated.rb +4 -2
  6. data/lib/asciidoctor/iso/front.rb +0 -1
  7. data/lib/asciidoctor/iso/front_id.rb +0 -1
  8. data/lib/asciidoctor/iso/section.rb +0 -1
  9. data/lib/asciidoctor/iso/validate.rb +0 -1
  10. data/lib/asciidoctor/iso/validate_image.rb +0 -1
  11. data/lib/asciidoctor/iso/validate_requirements.rb +0 -1
  12. data/lib/asciidoctor/iso/validate_section.rb +0 -1
  13. data/lib/asciidoctor/iso/validate_style.rb +0 -1
  14. data/lib/asciidoctor/iso/validate_title.rb +0 -1
  15. data/lib/isodoc/iso/base_convert.rb +3 -3
  16. data/lib/isodoc/iso/html/header-dis.html +391 -0
  17. data/lib/isodoc/iso/html/html_iso_titlepage.html +2 -2
  18. data/lib/isodoc/iso/html/isodoc-dis.css +4524 -0
  19. data/lib/isodoc/iso/html/isodoc-dis.scss +4289 -0
  20. data/lib/isodoc/iso/html/word_iso_intro-dis.html +7 -0
  21. data/lib/isodoc/iso/html/word_iso_titlepage-dis.html +50 -0
  22. data/lib/isodoc/iso/html/word_iso_titlepage.html +2 -2
  23. data/lib/isodoc/iso/html/wordstyle-dis.css +2160 -0
  24. data/lib/isodoc/iso/html/wordstyle-dis.scss +2011 -0
  25. data/lib/isodoc/iso/i18n-en.yaml +1 -1
  26. data/lib/isodoc/iso/index.rb +7 -4
  27. data/lib/isodoc/iso/iso.amendment.xsl +310 -130
  28. data/lib/isodoc/iso/iso.international-standard.xsl +310 -130
  29. data/lib/isodoc/iso/metadata.rb +75 -64
  30. data/lib/isodoc/iso/presentation_xml_convert.rb +0 -2
  31. data/lib/isodoc/iso/sts_convert.rb +8 -3
  32. data/lib/isodoc/iso/word_cleanup.rb +2 -2
  33. data/lib/isodoc/iso/word_convert.rb +12 -0
  34. data/lib/isodoc/iso/xref.rb +4 -5
  35. data/lib/metanorma/iso/biblio.rng +25 -2
  36. data/lib/metanorma/iso/cleanup.rb +5 -5
  37. data/lib/metanorma/iso/front_id.rb +28 -11
  38. data/lib/metanorma/iso/version.rb +1 -1
  39. data/spec/isodoc/i18n_spec.rb +111 -114
  40. data/spec/isodoc/iso_spec.rb +42 -26
  41. data/spec/isodoc/ref_spec.rb +11 -7
  42. data/spec/metanorma/amd_spec.rb +45 -23
  43. data/spec/metanorma/base_spec.rb +8 -0
  44. data/spec/metanorma/blocks_spec.rb +4 -4
  45. data/spec/metanorma/cleanup_spec.rb +11 -11
  46. data/spec/metanorma/section_spec.rb +3 -3
  47. data/spec/spec_helper.rb +1 -1
  48. data/spec/vcr_cassettes/docrels.yml +35 -43
  49. data/spec/vcr_cassettes/withdrawn_iso.yml +26 -32
  50. metadata +9 -2
@@ -0,0 +1,7 @@
1
+ {% if doctype == "Amendment" or doctype == "Technical Corrigendum" %}
2
+ {% else %}
3
+
4
+ <p class="zzContents" style='margin-top:0cm'><span lang="EN-GB">{{ labels["table_of_contents"] }}</span></p>
5
+
6
+ WORDTOC
7
+ {% endif %}
@@ -0,0 +1,50 @@
1
+ {% if tc_docnumber.size > 0 %}
2
+ {% for num in tc_docnumber %}
3
+ <p class="zzCover"><span lang="EN-GB">Reference number of working document: {{agency}}/{{tc}} {{ num }}</span><span lang="EN-GB"><o:p></o:p></span></p>
4
+ {% endfor %}
5
+ {% endif %}
6
+
7
+ {% if revdate %}
8
+ <p class="MsoNormal" align="right" style='text-align:right'><span lang="EN-GB">Date: <span style='mso-no-proof:yes'>{{ revdate }}</span></span></p>
9
+ {% endif %}
10
+
11
+ <p class="zzCover"><span lang="EN-GB">Reference number of project: {{ docnumber_undated }} {{ draftinfo }}</span></p>
12
+
13
+ <p class="zzCover"><span lang="EN-GB">Committee identification: {{agency}}/{{ editorialgroup | join: "/" }}</span></p>
14
+
15
+ {% if doctitleamdlabel %}
16
+ <p class="zzCover"><b>{{ doctitleamdlabel }}</b></p>
17
+ {% endif %}
18
+
19
+ {% if doctitlecorrlabel %}
20
+ <p class="zzCover"><b>{{ doctitlecorrlabel }}</b></p>
21
+ {% endif %}
22
+
23
+ {% if secretariat %}
24
+ <p class="zzCover"><span lang="EN-GB">Secretariat: <span>{{ secretariat }}</span></span></p>
25
+ {% endif %}
26
+
27
+ <p class="zzCover">
28
+ <span lang="EN-GB">{{ doctitleintro }}{% if doctitleintro and doctitlemain %} &mdash; {% endif %}{{ doctitlemain }}{% if doctitlemain and doctitlepart %} &mdash; {% endif %}{% if doctitlepart %}{% if doctitlepartlabel %}{{ doctitlepartlabel }}: {% endif %}{{ doctitlepart }}</span>{% endif %}
29
+ </p>
30
+ {% if doctitleamdlabel %}
31
+ <p class="zzCover">{{ doctitleamdlabel }}{% if doctitleamd %}: {{ doctitleamd }}{% endif %}</p>
32
+ {% endif %}
33
+ {% if doctitlecorrlabel %}
34
+ <p class="zzCover">{{ doctitlecorrlabel }}</p>
35
+ {% endif %}
36
+
37
+ <p class="zzCover">{{ docsubtitleintro }}{% if docsubtitleintro and docsubtitlemain %} &mdash; {% endif %}{{ docsubtitlemain }}{% if docsubtitlemain and docsubtitlepart %} &mdash; {% endif %}{% if docsubtitlepart %}{% if docsubtitlepartlabel %}{{ docsubtitlepartlabel }}: {% endif %}{{ docsubtitlepart }}{% endif %}
38
+ </p>
39
+ {% if docsubtitleamdlabel %}
40
+ <p class="zzCover">{{ docsubtitleamdlabel }}{% if docsubtitleamd %}: {{ docsubtitleamd }}{% endif %}</p>
41
+ {% endif %}
42
+ {% if docsubtitlecorrlabel %}
43
+ <p class="zzCover">{{ docsubtitlecorrlabel }}</p>
44
+ {% endif %}
45
+
46
+ </div>
47
+
48
+ <!--</div>-->
49
+
50
+
@@ -6,12 +6,12 @@ style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:14.0pt'>
6
6
  {% endfor %}
7
7
  {% else %}
8
8
  <p class="MsoNormal" align="right" style='text-align:right'><b style='mso-bidi-font-weight:
9
- normal'><span lang="EN-GB" style='font-size:14.0pt;mso-no-proof:yes'>{{ docnumber_lang }} {{ draftinfo }}</span></b><b
9
+ normal'><span lang="EN-GB" style='font-size:14.0pt;mso-no-proof:yes'>{{ docnumber_undated }} {{ draftinfo }}</span></b><b
10
10
  style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:14.0pt'><o:p></o:p></span></b></p>
11
11
  {% endif %}
12
12
 
13
13
  {% if tc_docnumber.size > 0 %}
14
- <p class="MsoNormal" align="right" style='text-align:right'><span lang="EN-GB" style='mso-no-proof:yes'>{{ docnumber_lang }} {{ draftinfo }}</span></p>
14
+ <p class="MsoNormal" align="right" style='text-align:right'><span lang="EN-GB" style='mso-no-proof:yes'>{{ docnumber_undated }} {{ draftinfo }}</span></p>
15
15
  {% endif %}
16
16
 
17
17
  {% if doctitleamdlabel %}