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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 933e6aa82c5ca8cef1a5ead9829cb1b754fd96a4ca96e9949bd3159bb314ae63
4
- data.tar.gz: f39b54e13cbcd0f15c31808a8d3a94bafbb6d9834e0e6bd7cb73851643b590e7
3
+ metadata.gz: d8bfb0d40024d23c0e4bcf6f7e5d7a9b59066f3ac7288d16f232203a39a00b6c
4
+ data.tar.gz: 13262faed4ac013f95881bc6cdac14f702f61b44d62275c88d5e1bcf1de13397
5
5
  SHA512:
6
- metadata.gz: 8f46dc0381b71de56114fa2749729ee78a9a7c3f02d5a11d9c8ac97cead706d7e96a4ebeda77fc4f05843c44585f9c014447c954e519b34ba4337cf00c6af2f3
7
- data.tar.gz: 4564b27b84fe80c5e15c817f3bb8d33daffb0e0fb0fa590983da1abf11c5fc8e97eff593a3ab3191c589c28f1c34fd5cd26818070d202dfc2f4f1ab96ad14ff8
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
- (dl = node.at(ns("./dl"))) && parse(dl, out)
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
+
@@ -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")