metanorma-jis 0.2.12 → 0.3.1
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 +20 -0
- data/lib/isodoc/jis/i18n-en.yaml +3 -0
- data/lib/isodoc/jis/i18n-ja.yaml +3 -0
- data/lib/isodoc/jis/init.rb +5 -0
- data/lib/isodoc/jis/jis.international-standard.xsl +1069 -998
- data/lib/isodoc/jis/metadata.rb +10 -7
- data/lib/isodoc/jis/presentation_section.rb +48 -4
- data/lib/isodoc/jis/presentation_xml_convert.rb +3 -2
- data/lib/isodoc/jis/xref.rb +12 -1
- data/lib/metanorma/jis/front.rb +9 -8
- data/lib/metanorma/jis/isodoc.rng +5 -5
- data/lib/metanorma/jis/version.rb +1 -1
- data/lib/relaton/render-jis/general.rb +21 -0
- data/lib/relaton/render-jis/parse.rb +24 -0
- data/metanorma-jis.gemspec +1 -0
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3c4ae85ab16813c1ea6df1c84c0f35eed81c3cfced1a6847f24c18ee4d3d15a
|
4
|
+
data.tar.gz: 6cd56b9042872341a10daa7a420eeb2fc253b36316d487ee40e0b863b1cd34fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 917d400c63d026ef24f46382369e4c0d0789060e85938bff493143045219ed36b256aa92d19f7dbfa74f06640f031a7ea231f44adfa1abf196ce9b32e8d0472a
|
7
|
+
data.tar.gz: 21a50c365f2107c6dc1fde249ff28453c2fcbf3d9d2c6c9064d6881738fbfc9d8a858bd9c7cc412b59e0be7ff643a27bdcb64c5843975b7158c1b4dd664ef0de
|
@@ -63,6 +63,13 @@ module IsoDoc
|
|
63
63
|
super
|
64
64
|
end
|
65
65
|
|
66
|
+
def table_parse_tail(node, out)
|
67
|
+
node.xpath(ns("./p[@class = 'ListTitle' or @class = 'dl']"))
|
68
|
+
.each { |p| parse(p, out) }
|
69
|
+
node.xpath(ns("./source")).each { |n| parse(n, out) }
|
70
|
+
node.xpath(ns("./note")).each { |n| parse(n, out) }
|
71
|
+
end
|
72
|
+
|
66
73
|
def table_thead_pt(node, name)
|
67
74
|
node.at(ns("./thead")) ||
|
68
75
|
name&.after("<thead> </thead>")&.next ||
|
@@ -87,6 +94,19 @@ module IsoDoc
|
|
87
94
|
full_row(cols, "<p class='TableTitle' style='text-align:center;'> " \
|
88
95
|
"#{name.remove.children.to_xml}</p>")
|
89
96
|
end
|
97
|
+
|
98
|
+
def table_note_cleanup(docxml)
|
99
|
+
tn = ::IsoDoc::Function::Cleanup::TABLENOTE_CSS
|
100
|
+
docxml.xpath("//table[dl or #{tn} or p[@class = 'dl']]").each do |t|
|
101
|
+
tfoot = table_get_or_make_tfoot(t)
|
102
|
+
insert_here = new_fullcolspan_row(t, tfoot)
|
103
|
+
t.xpath("dl | p[@class = 'ListTitle'] | #{tn} | " \
|
104
|
+
"p[@class = 'dl']")
|
105
|
+
.each do |d|
|
106
|
+
d.parent = insert_here
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
90
110
|
end
|
91
111
|
end
|
92
112
|
end
|
data/lib/isodoc/jis/i18n-en.yaml
CHANGED
@@ -6,6 +6,9 @@ commentary_page: Comm.
|
|
6
6
|
JIS: 日本工業規格
|
7
7
|
permission_footer: Duplication, reprinting, etc. without permission is prohibited by copyright law.
|
8
8
|
chairperson: chairperson
|
9
|
+
membership_table: Membership Table
|
10
|
+
full_name: Full Name
|
11
|
+
affiliation: Affiliation
|
9
12
|
doctype_dict:
|
10
13
|
international-standard: International standard
|
11
14
|
japanese-industrial-standard: International standard
|
data/lib/isodoc/jis/i18n-ja.yaml
CHANGED
data/lib/isodoc/jis/init.rb
CHANGED
@@ -20,6 +20,11 @@ module IsoDoc
|
|
20
20
|
i18nyaml: i18nyaml || @i18nyaml)
|
21
21
|
end
|
22
22
|
|
23
|
+
def bibrenderer(options = {})
|
24
|
+
::Relaton::Render::JIS::General.new(options.merge(language: @lang,
|
25
|
+
i18nhash: @i18n.get))
|
26
|
+
end
|
27
|
+
|
23
28
|
def omit_docid_prefix(prefix)
|
24
29
|
return true if prefix.nil? || prefix.empty?
|
25
30
|
|