metanorma-iso 2.4.0 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iso/base_convert.rb +9 -3
- data/lib/isodoc/iso/i18n-ja.yaml +39 -0
- data/lib/isodoc/iso/i18n.rb +6 -1
- data/lib/isodoc/iso/iso.amendment.xsl +356 -17
- data/lib/isodoc/iso/iso.international-standard.xsl +356 -17
- data/lib/isodoc/iso/metadata.rb +3 -3
- data/lib/isodoc/iso/presentation_xml_convert.rb +1 -0
- data/lib/isodoc/iso/word_cleanup.rb +1 -1
- data/lib/isodoc/iso/word_convert.rb +8 -3
- data/lib/metanorma/iso/isodoc.rng +29 -7
- data/lib/metanorma/iso/validate.rb +5 -4
- data/lib/metanorma/iso/validate_list.rb +3 -1
- data/lib/metanorma/iso/validate_requirements.rb +1 -0
- data/lib/metanorma/iso/validate_section.rb +12 -12
- data/lib/metanorma/iso/validate_style.rb +8 -8
- data/lib/metanorma/iso/validate_title.rb +5 -4
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +2 -2
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8bfb0d40024d23c0e4bcf6f7e5d7a9b59066f3ac7288d16f232203a39a00b6c
|
4
|
+
data.tar.gz: 13262faed4ac013f95881bc6cdac14f702f61b44d62275c88d5e1bcf1de13397
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaa40bf853a800144371bb0419a818ef26806308622fba26f79169c533fcc24e29206c20b11538e71d903c3d05a0d873b75e6ad348bf7c72bd2944bed37f55e9
|
7
|
+
data.tar.gz: 5bc24e5f4fa220d136f3d71be7096e0660b1c37bcdde1a104fc3c3f9ba91c308f5921d8fa7e2a6971659800e219bb511aeea9f5ca6f0aa7464943da0d24cf8a3
|
@@ -183,13 +183,19 @@ module IsoDoc
|
|
183
183
|
measurement_units(node, out)
|
184
184
|
out.table **table_attrs(node) do |t|
|
185
185
|
table_parse_core(node, t)
|
186
|
-
(
|
187
|
-
node.xpath(ns("./note[not(@type = 'units')]"))
|
188
|
-
.each { |n| parse(n, out) }
|
186
|
+
table_parse_tail(node, t)
|
189
187
|
end
|
190
188
|
@in_table = false
|
191
189
|
end
|
192
190
|
|
191
|
+
def table_parse_tail(node, out)
|
192
|
+
(dl = node.at(ns("./dl"))) && parse(dl, out)
|
193
|
+
node.xpath(ns("./source")).each { |n| parse(n, out) }
|
194
|
+
node.xpath(ns("./note[not(@type = 'units')]")).each do |n|
|
195
|
+
parse(n, out)
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
193
199
|
def figure_parse1(node, out)
|
194
200
|
measurement_units(node, out)
|
195
201
|
out.div **figure_attrs(node) do |div|
|
@@ -0,0 +1,39 @@
|
|
1
|
+
stage_dict:
|
2
|
+
"00": Preliminary work item
|
3
|
+
"10": New work item proposal
|
4
|
+
"20": Working draft
|
5
|
+
"30": Committee draft
|
6
|
+
"40":
|
7
|
+
international-standard: Draft International Standard
|
8
|
+
technical-specification: Draft Technical Specification
|
9
|
+
technical-report: Draft Technical Report
|
10
|
+
publicly-available-specification: Draft Publicly Available Specification
|
11
|
+
international-workshop-agreement: Draft International Workshop Agreement
|
12
|
+
guide: Draft Guide
|
13
|
+
amendment: Draft Amendment
|
14
|
+
technical-corrigendum: Draft Technical Corrigendum
|
15
|
+
directive: Draft Directive
|
16
|
+
"50":
|
17
|
+
international-standard: Final Draft International Standard
|
18
|
+
technical-specification: Final Draft Technical Specification
|
19
|
+
technical-report: Final Draft Technical Report
|
20
|
+
publicly-available-specification: Final Draft Publicly Available Specification
|
21
|
+
international-workshop-agreement: Final Draft International Workshop Agreement
|
22
|
+
guide: Final Draft Guide
|
23
|
+
amendment: Final Draft Amendment
|
24
|
+
technical-corrigendum: Final Draft Technical Corrigendum
|
25
|
+
directive: Final Draft Directive
|
26
|
+
"60":
|
27
|
+
international-standard: International Standard
|
28
|
+
technical-specification: Technical Specification
|
29
|
+
technical-report: Technical Report
|
30
|
+
publicly-available-specification: Publicly Available Specification
|
31
|
+
international-workshop-agreement: International Workshop Agreement
|
32
|
+
guide: Guide
|
33
|
+
amendment: Amendment
|
34
|
+
technical-corrigendum: Technical Corrigendum
|
35
|
+
directive: Directive
|
36
|
+
"90": Review
|
37
|
+
"95": Withdrawal
|
38
|
+
|
39
|
+
|
data/lib/isodoc/iso/i18n.rb
CHANGED
@@ -2,13 +2,18 @@ module IsoDoc
|
|
2
2
|
module Iso
|
3
3
|
class I18n < IsoDoc::I18n
|
4
4
|
def load_file(fname)
|
5
|
-
YAML.load_file(File.join(File.dirname(__FILE__), fname))
|
5
|
+
YAML.load_file(File.join(File.dirname(__FILE__), fname)) ||
|
6
|
+
{}
|
6
7
|
end
|
7
8
|
|
9
|
+
# all gems inheriting from ISO need to be represented here,
|
10
|
+
# even if the file is empty
|
11
|
+
# e.g. JA for metanorma-jis
|
8
12
|
def load_yaml1(lang, script)
|
9
13
|
y = if lang == "en" then load_file("i18n-en.yaml")
|
10
14
|
elsif lang == "fr" then load_file("i18n-fr.yaml")
|
11
15
|
elsif lang == "ru" then load_file("i18n-ru.yaml")
|
16
|
+
elsif lang == "ja" then load_file("i18n-ja.yaml")
|
12
17
|
elsif lang == "zh" && script == "Hans"
|
13
18
|
load_file("i18n-zh-Hans.yaml")
|
14
19
|
else load_file("i18n-en.yaml")
|