metanorma-jis 0.3.6 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/jis/base_convert.rb +5 -11
- data/lib/isodoc/jis/html_convert.rb +3 -1
- data/lib/isodoc/jis/i18n-ja.yaml +1 -0
- data/lib/isodoc/jis/init.rb +2 -9
- data/lib/isodoc/jis/jis.international-standard.xsl +1439 -209
- data/lib/isodoc/jis/metadata.rb +1 -1
- data/lib/isodoc/jis/presentation_section.rb +2 -2
- data/lib/isodoc/jis/presentation_xml_convert.rb +54 -6
- data/lib/isodoc/jis/table.rb +1 -1
- data/lib/isodoc/jis/xref.rb +54 -16
- data/lib/metanorma/jis/biblio.rng +13 -1
- data/lib/metanorma/jis/isodoc.rng +6 -6
- data/lib/metanorma/jis/processor.rb +8 -0
- data/lib/metanorma/jis/version.rb +1 -1
- data/lib/relaton/render-jis/parse.rb +7 -3
- data/metanorma-jis.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ee0f607f2c8574957f29235f1275f1429da187b745f4ddb33b2ddb56df963df
|
4
|
+
data.tar.gz: 2c701b9b9a847ab56e541bfa89071811524ac8aa8b91e23af6aa52d5221e4988
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f6f2229ed80159a55fac331a60a9562dcd5dc35d64f74f668d65fe4e357717fe19be77d8e206f8c54a5bd4a846dbfb498c48deec06cc8efc2a5aa81855a706d
|
7
|
+
data.tar.gz: 8910abb49ac749e5452324f238b3841213f3f1895faf0301e34e274916f5d483a26a8a5250227f087d346c26465646217816603e765d84d61e46399196345ec6
|
@@ -12,20 +12,13 @@ module IsoDoc
|
|
12
12
|
p.span class: "note_label" do |s|
|
13
13
|
name.children.each { |n| parse(n, s) }
|
14
14
|
end
|
15
|
-
p <<
|
15
|
+
p << " "
|
16
16
|
end
|
17
17
|
para_then_remainder(node.first_element_child, node, p, div)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
def admonition_name_parse(_node, div, name)
|
23
|
-
div.span class: "note_label" do |s|
|
24
|
-
name.children.each { |n| parse(n, s) }
|
25
|
-
s << " — "
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
22
|
def make_tr_attr(cell, row, totalrows, header, bordered)
|
30
23
|
cell["border"] == "0" and bordered = false
|
31
24
|
super
|
@@ -90,9 +83,10 @@ module IsoDoc
|
|
90
83
|
|
91
84
|
def table_name(name, thead, cols)
|
92
85
|
name or return
|
93
|
-
thead.
|
94
|
-
|
95
|
-
"#{name.remove.children.to_xml}</p>"
|
86
|
+
thead.add_first_child full_row(
|
87
|
+
cols, "<p class='TableTitle' style='text-align:center;'> " \
|
88
|
+
"#{name.remove.children.to_xml}</p>"
|
89
|
+
)
|
96
90
|
end
|
97
91
|
|
98
92
|
def table_note_cleanup(docxml)
|
@@ -35,12 +35,14 @@ module IsoDoc
|
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
38
|
+
# TODO to Presentation XML
|
38
39
|
def make_table_footnote_target(out, fnid, fnref)
|
39
40
|
attrs = { id: fnid, class: "TableFootnoteRef" }
|
40
41
|
out.span do |s|
|
42
|
+
# TODO to Presentation XML
|
41
43
|
s << @i18n.table_footnote
|
42
44
|
out.span **attrs do |a|
|
43
|
-
a <<
|
45
|
+
a << fnref
|
44
46
|
end
|
45
47
|
insert_tab(s, 1)
|
46
48
|
end
|
data/lib/isodoc/jis/i18n-ja.yaml
CHANGED
data/lib/isodoc/jis/init.rb
CHANGED
@@ -10,9 +10,8 @@ module IsoDoc
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def xref_init(lang, script, _klass, labels, options)
|
13
|
-
|
14
|
-
|
15
|
-
labels, options)
|
13
|
+
p = HtmlConvert.new(language: lang, script: script)
|
14
|
+
@xrefs = Xref.new(lang, script, p, labels, options)
|
16
15
|
end
|
17
16
|
|
18
17
|
def i18n_init(lang, script, locale, i18nyaml = nil)
|
@@ -25,12 +24,6 @@ module IsoDoc
|
|
25
24
|
i18nhash: @i18n.get))
|
26
25
|
end
|
27
26
|
|
28
|
-
def omit_docid_prefix(prefix)
|
29
|
-
return true if prefix.nil? || prefix.empty?
|
30
|
-
|
31
|
-
super || %w(JIS).include?(prefix)
|
32
|
-
end
|
33
|
-
|
34
27
|
def std_docid_semantic(text)
|
35
28
|
text
|
36
29
|
end
|