metanorma-iso 2.0.6 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/iso/base.rb +0 -1
- data/lib/asciidoctor/iso/cleanup.rb +0 -1
- data/lib/asciidoctor/iso/converter.rb +0 -1
- data/lib/asciidoctor/iso/deprecated.rb +4 -2
- data/lib/asciidoctor/iso/front.rb +0 -1
- data/lib/asciidoctor/iso/front_id.rb +0 -1
- data/lib/asciidoctor/iso/section.rb +0 -1
- data/lib/asciidoctor/iso/validate.rb +0 -1
- data/lib/asciidoctor/iso/validate_image.rb +0 -1
- data/lib/asciidoctor/iso/validate_requirements.rb +0 -1
- data/lib/asciidoctor/iso/validate_section.rb +0 -1
- data/lib/asciidoctor/iso/validate_style.rb +0 -1
- data/lib/asciidoctor/iso/validate_title.rb +0 -1
- data/lib/isodoc/iso/base_convert.rb +3 -3
- data/lib/isodoc/iso/html/header-dis.html +391 -0
- data/lib/isodoc/iso/html/html_iso_titlepage.html +2 -2
- data/lib/isodoc/iso/html/isodoc-dis.css +4524 -0
- data/lib/isodoc/iso/html/isodoc-dis.scss +4289 -0
- data/lib/isodoc/iso/html/word_iso_intro-dis.html +7 -0
- data/lib/isodoc/iso/html/word_iso_titlepage-dis.html +51 -0
- data/lib/isodoc/iso/html/word_iso_titlepage.html +2 -2
- data/lib/isodoc/iso/html/wordstyle-dis.css +2160 -0
- data/lib/isodoc/iso/html/wordstyle-dis.scss +2011 -0
- data/lib/isodoc/iso/i18n-en.yaml +1 -1
- data/lib/isodoc/iso/index.rb +7 -4
- data/lib/isodoc/iso/iso.amendment.xsl +159 -51
- data/lib/isodoc/iso/iso.international-standard.xsl +159 -51
- data/lib/isodoc/iso/metadata.rb +75 -64
- data/lib/isodoc/iso/presentation_xml_convert.rb +0 -2
- data/lib/isodoc/iso/sts_convert.rb +8 -3
- data/lib/isodoc/iso/word_convert.rb +12 -0
- data/lib/isodoc/iso/xref.rb +4 -5
- data/lib/metanorma/iso/biblio.rng +25 -2
- data/lib/metanorma/iso/cleanup.rb +5 -5
- data/lib/metanorma/iso/front_id.rb +28 -11
- data/lib/metanorma/iso/version.rb +1 -1
- data/spec/isodoc/i18n_spec.rb +111 -114
- data/spec/isodoc/iso_spec.rb +42 -26
- data/spec/isodoc/ref_spec.rb +11 -7
- data/spec/metanorma/amd_spec.rb +45 -23
- data/spec/metanorma/base_spec.rb +8 -0
- data/spec/metanorma/blocks_spec.rb +4 -4
- data/spec/metanorma/cleanup_spec.rb +11 -11
- data/spec/metanorma/section_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- data/spec/vcr_cassettes/docrels.yml +35 -43
- data/spec/vcr_cassettes/withdrawn_iso.yml +26 -32
- metadata +9 -2
data/lib/isodoc/iso/i18n-en.yaml
CHANGED
@@ -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
|
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.
|
data/lib/isodoc/iso/index.rb
CHANGED
@@ -94,12 +94,15 @@ module IsoDoc
|
|
94
94
|
end
|
95
95
|
|
96
96
|
def index_entries_see(entries, label)
|
97
|
-
see_sort = entries&.dig(label)
|
97
|
+
see_sort = entries&.dig(label) or return nil
|
98
|
+
|
99
|
+
x = see_sort.each_with_object({}) do |w, v|
|
98
100
|
v[sortable(w).downcase] = w
|
99
101
|
end
|
100
|
-
|
101
|
-
see_sort[k]
|
102
|
-
|
102
|
+
x.keys.localize(@lang.to_sym).sort.to_a.map do |k|
|
103
|
+
# see_sort[k]
|
104
|
+
x[k]
|
105
|
+
end.join(", ")
|
103
106
|
end
|
104
107
|
|
105
108
|
def see_lbl
|