metanorma-jis 0.4.0 → 0.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/jis/base_convert.rb +5 -4
- data/lib/isodoc/jis/figure.rb +1 -1
- data/lib/isodoc/jis/html/isodoc.css +1 -1
- data/lib/isodoc/jis/html/isodoc.scss +1 -1
- data/lib/isodoc/jis/init.rb +10 -2
- data/lib/isodoc/jis/jis.international-standard.xsl +1069 -322
- data/lib/isodoc/jis/presentation_section.rb +2 -1
- data/lib/isodoc/jis/presentation_xml_convert.rb +6 -4
- data/lib/isodoc/jis/table.rb +1 -1
- data/lib/isodoc/jis/word_convert.rb +6 -6
- data/lib/isodoc/jis/xref.rb +72 -34
- data/lib/metanorma/jis/isodoc.rng +1 -1
- data/lib/metanorma/jis/version.rb +1 -1
- data/lib/relaton/render-jis/general.rb +1 -1
- 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: f21fcdba6f16198f38320fec6aece2b5b539de99531d8200b4190708e5095c92
|
4
|
+
data.tar.gz: 1aa41ae9db2674fc737efa483abc18a0b404534f58a1f8dd167afda4e0b84d0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49c346a1f9f3c65e312b03109cf5e1804fb7d278078609421690b96053ee2cdcea9dfd80cf6b9096c016fa2c00eb062c03f004441eeaa4ead2c457b8351f7a3b
|
7
|
+
data.tar.gz: 34383527ff2866fe050d7c817c194ecda5526b5adeef6ea8c0ddcbeeff70ecd16243fd3fadc35f24e66fd3f4d09348b11c71fc487964c0ea9b77c73ca4a4a9d5
|
@@ -4,7 +4,8 @@ require "metanorma-iso"
|
|
4
4
|
module IsoDoc
|
5
5
|
module Jis
|
6
6
|
module BaseConvert
|
7
|
-
|
7
|
+
# KILL
|
8
|
+
def termnote_parsex(node, out)
|
8
9
|
name = node.at(ns("./name"))&.remove
|
9
10
|
out.div **note_attrs(node) do |div|
|
10
11
|
div.p do |p|
|
@@ -30,7 +31,7 @@ module IsoDoc
|
|
30
31
|
page_break(out)
|
31
32
|
out.div **attr_code(annex_attrs(node)) do |s|
|
32
33
|
node.elements.each do |c1|
|
33
|
-
if c1.name == "title" then annex_name(node, c1, s)
|
34
|
+
if c1.name == "fmt-title" then annex_name(node, c1, s)
|
34
35
|
else parse(c1, s) end
|
35
36
|
end
|
36
37
|
end
|
@@ -41,7 +42,7 @@ module IsoDoc
|
|
41
42
|
page_break(out)
|
42
43
|
out.div **attr_code(annex_attrs(node)) do |s|
|
43
44
|
node.elements.each do |c1|
|
44
|
-
if c1.name == "title" then annex_name(node, c1, s)
|
45
|
+
if c1.name == "fmt-title" then annex_name(node, c1, s)
|
45
46
|
else parse(c1, s)
|
46
47
|
end
|
47
48
|
end
|
@@ -50,7 +51,7 @@ module IsoDoc
|
|
50
51
|
|
51
52
|
def table_parse(node, out)
|
52
53
|
cols = table_cols_count(node)
|
53
|
-
name = node.at(ns("./name"))
|
54
|
+
name = node.at(ns("./fmt-name"))
|
54
55
|
thead = table_thead_pt(node, name)
|
55
56
|
table_name(name, thead, cols)
|
56
57
|
super
|
data/lib/isodoc/jis/figure.rb
CHANGED
@@ -14,7 +14,7 @@ module IsoDoc
|
|
14
14
|
{ units: node.at(ns("./note[@type = 'units']")),
|
15
15
|
notes_etc: figure_notes_examples_paras(node
|
16
16
|
.xpath(ns("./note[not(@type = 'units')] | ./example | ./p"))),
|
17
|
-
name: node.at(ns("./name")),
|
17
|
+
name: node.at(ns("./fmt-name")),
|
18
18
|
key: node.xpath(ns("./p[@class = 'ListTitle' or @class = 'dl']")),
|
19
19
|
img: node.at(ns("./image")),
|
20
20
|
aside: node.at(ns("./aside")),
|
@@ -1393,7 +1393,7 @@ div.Note table.dl {
|
|
1393
1393
|
font-size: {{smallerfontsize}};
|
1394
1394
|
margin-left: 1.0cm; }
|
1395
1395
|
|
1396
|
-
span.note_label, span.example_label, td.example_label, td.note_label {
|
1396
|
+
span.note_label, span.example_label, td.example_label, td.note_label, span.termnote_label, td.termnote_label {
|
1397
1397
|
font-size: {{smallerfontsize}};
|
1398
1398
|
font-family: {{headerfont}}; }
|
1399
1399
|
|
@@ -1352,7 +1352,7 @@ div.Note table.dl {
|
|
1352
1352
|
margin-left: 1.0cm;
|
1353
1353
|
}
|
1354
1354
|
|
1355
|
-
span.note_label, span.example_label, td.example_label, td.note_label
|
1355
|
+
span.note_label, span.example_label, td.example_label, td.note_label, span.termnote_label, td.termnote_label
|
1356
1356
|
{
|
1357
1357
|
font-size: $smallerfontsize;
|
1358
1358
|
font-family:$headerfont;
|
data/lib/isodoc/jis/init.rb
CHANGED
@@ -20,13 +20,21 @@ module IsoDoc
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def bibrenderer(options = {})
|
23
|
-
::Relaton::Render::Jis::General.new(options
|
24
|
-
|
23
|
+
::Relaton::Render::Jis::General.new(options
|
24
|
+
.merge(language: @lang, i18nhash: @i18n.get))
|
25
25
|
end
|
26
26
|
|
27
27
|
def std_docid_semantic(text)
|
28
28
|
text
|
29
29
|
end
|
30
|
+
|
31
|
+
def convert_i18n_init1(docxml)
|
32
|
+
b = docxml.at("//xmlns:bibdata") or return
|
33
|
+
lang = docxml.at("//xmlns:bibdata/xmlns:language") ||
|
34
|
+
(docxml << "<language/>")
|
35
|
+
%w(en ja).include?(lang&.text) or lang.content = "ja"
|
36
|
+
super
|
37
|
+
end
|
30
38
|
end
|
31
39
|
end
|
32
40
|
end
|