metanorma-iso 2.0.7 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) 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/html/html_iso_titlepage.html +2 -2
  16. data/lib/isodoc/iso/html/word_iso_titlepage-dis.html +1 -1
  17. data/lib/isodoc/iso/html/word_iso_titlepage.html +2 -2
  18. data/lib/isodoc/iso/i18n-en.yaml +1 -1
  19. data/lib/isodoc/iso/index.rb +1 -1
  20. data/lib/isodoc/iso/iso.amendment.xsl +132 -46
  21. data/lib/isodoc/iso/iso.international-standard.xsl +132 -46
  22. data/lib/isodoc/iso/metadata.rb +74 -56
  23. data/lib/isodoc/iso/presentation_xml_convert.rb +0 -2
  24. data/lib/isodoc/iso/xref.rb +4 -5
  25. data/lib/metanorma/iso/biblio.rng +25 -2
  26. data/lib/metanorma/iso/cleanup.rb +5 -5
  27. data/lib/metanorma/iso/front_id.rb +28 -11
  28. data/lib/metanorma/iso/version.rb +1 -1
  29. data/spec/isodoc/i18n_spec.rb +111 -114
  30. data/spec/isodoc/iso_spec.rb +42 -26
  31. data/spec/metanorma/amd_spec.rb +39 -16
  32. data/spec/metanorma/base_spec.rb +8 -0
  33. data/spec/metanorma/blocks_spec.rb +4 -4
  34. data/spec/metanorma/cleanup_spec.rb +11 -11
  35. data/spec/metanorma/section_spec.rb +3 -3
  36. data/spec/spec_helper.rb +1 -1
  37. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0ab6798337782ba38553fa7a2bff698116c2ab6a2a3f86ff1c527de2603e4c6
4
- data.tar.gz: 5fb2bd8e338ad4d7277cd6a5459ba41ad93d9dcabe88816304f437b7ba7f7704
3
+ metadata.gz: 270772cf99831fb493ca68a370d9954b842096aeed522b7e4657aef7743a3557
4
+ data.tar.gz: 0fb34c7f8786206cbfff5e12714f89f8bf38cc51abbd108a9410d40d3bb5f2f4
5
5
  SHA512:
6
- metadata.gz: 332c563391b705ca5c237770e39a48ec8b3c6a05fa97114544ce6a0d3f26662520953afb111c4205a6b5b78fb2e449c801a7e72c684bf738fe0264fd8ad90b75
7
- data.tar.gz: 219553636a274835f7e1f44ae0818ac568947014a89958b540bae0057912f3efa686cce6c9230158090c75593807df5a47152bd69dcd056f002ff3925f402d34
6
+ metadata.gz: 68afd7bbc05425d59bcef20308269243ebaad1e711b6bf7a2db76cd17a2b685d74773a0b36994187d7261bb02f7c29780f1776471f815148266d69ff0389e5b8
7
+ data.tar.gz: 6881356aa0f6743f86aab7557993b7b3316b3320d48d379458aef11c9f327a7f00cb4048ff8902ef1d180e2a45ee2dadb49c12d5c9e04c043d367febd012e6a2
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/base"
3
-
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/cleanup"
3
-
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/converter"
3
-
@@ -1,5 +1,7 @@
1
- warn "Please replace your references to Asciidoctor::ISO with Metanorma::ISO and your instances of require 'asciidoctor/iso' with require 'metanorma/iso'"
1
+ warn "Please replace your references to Asciidoctor::ISO with Metanorma::ISO "\
2
+ "and your instances of require 'asciidoctor/iso' with "\
3
+ "require 'metanorma/iso'"
2
4
 
3
- exit 127 if ENV['METANORMA_DEPRECATION_FAIL']
5
+ exit 127 if ENV["METANORMA_DEPRECATION_FAIL"]
4
6
 
5
7
  Asciidoctor::ISO = Metanorma::ISO unless defined? Asciidoctor::ISO
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/front"
3
-
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/front_id"
3
-
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/section"
3
-
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/validate"
3
-
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/validate_image"
3
-
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/validate_requirements"
3
-
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/validate_section"
3
-
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/validate_style"
3
-
@@ -1,3 +1,2 @@
1
1
  require "asciidoctor/iso/deprecated"
2
2
  require "metanorma/iso/validate_title"
3
-
@@ -4,7 +4,7 @@
4
4
  <p class="coverpage_docnumber">{{ num }}</p>
5
5
  {% endfor %}
6
6
  {% else %}
7
- <p class="coverpage_docnumber">{{ docnumber_lang }} {{ draftinfo }}</p>
7
+ <p class="coverpage_docnumber">{{ docnumber_undated }} {{ draftinfo }}</p>
8
8
  {% endif %}
9
9
 
10
10
  {% if revdate %}
@@ -12,7 +12,7 @@
12
12
  {% endif %}
13
13
 
14
14
  {% if tc_docnumber.size > 0 %}
15
- <p class="coverpage_docnumber">{{ docnumber_lang }} {{ draftinfo }}</p>
15
+ <p class="coverpage_docnumber">{{ docnumber_undated }} {{ draftinfo }}</p>
16
16
  {% endif %}
17
17
 
18
18
  <p class="coverpage_techcommittee">{{ agency }}/{{ editorialgroup | join: "/" }}</p>
@@ -8,7 +8,7 @@
8
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
9
  {% endif %}
10
10
 
11
- <p class="zzCover"><span lang="EN-GB">Reference number of project: {{ docnumber_lang }} {{ draftinfo }}</span></p>
11
+ <p class="zzCover"><span lang="EN-GB">Reference number of project: {{ docnumber_undated }} {{ draftinfo }}</span></p>
12
12
 
13
13
  <p class="zzCover"><span lang="EN-GB">Committee identification: {{agency}}/{{ editorialgroup | join: "/" }}</span></p>
14
14
 
@@ -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 %}
@@ -9,7 +9,7 @@ term_def_boilerplate: |
9
9
  <link target="https://www.electropedia.org"/>
10
10
  </p> </li> </ul>
11
11
  all_rights_reserved: All rights reserved
12
- reference_number: Reference Number
12
+ reference_number: Reference number
13
13
  price_based_on: Price based on % pages
14
14
  under_preparation: Under preparation. (Stage at the time of publication %).
15
15
  withdrawn: Withdrawn.
@@ -100,7 +100,7 @@ module IsoDoc
100
100
  v[sortable(w).downcase] = w
101
101
  end
102
102
  x.keys.localize(@lang.to_sym).sort.to_a.map do |k|
103
- #see_sort[k]
103
+ # see_sort[k]
104
104
  x[k]
105
105
  end.join(", ")
106
106
  end