metanorma-jis 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: 69d84c2a4a93bd07e8cc03bb17f85b74d5240fe452a221f51633879b49619c59
|
4
|
+
data.tar.gz: 0af70c6c8597a621929ba2c67479f1b4eee6c9cd6543f34d5e20bb6c8508a2b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce10805206a513ac7b8a60a309347d509cdca78d7b6ac42fe9793b2c483c3e33dd671c06539a5c9339cd3dc3df5e85ca903e44821cc9d889514c297255ee7d27
|
7
|
+
data.tar.gz: 1abd0d8a03a44699f47f7c5724c2478cd819dcf97cb90e7d67de677585b3e5e0a3aa28bd80496244429677ac0be702f050d4779af60031e0eb2502fb1b7b7953
|
@@ -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
|