metanorma-jis 0.5.10 → 0.6.0
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 +1 -17
- data/lib/isodoc/jis/jis.international-standard.xsl +807 -696
- data/lib/isodoc/jis/presentation_list.rb +4 -1
- data/lib/isodoc/jis/presentation_table.rb +97 -0
- data/lib/isodoc/jis/presentation_xml_convert.rb +1 -34
- data/lib/isodoc/jis/table.rb +6 -5
- data/lib/metanorma/jis/converter.rb +6 -0
- data/lib/metanorma/jis/isodoc.rng +51 -6
- data/lib/metanorma/jis/version.rb +1 -1
- data/metanorma-jis.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a97d43bcc7cfe72372d3ba002193451b0702bddd5ff2a5c7dee75a5a7c61085
|
4
|
+
data.tar.gz: 340ccc61aca2bd7ecac371b64e9a7dcf87ea5bf0f6bbb8ef9606240a1fae6e73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19f570ff8e6d5b5eef3efe3bf8c7ffe4798eb6fa3d65ab7e868c3f46bab997c647e96825cd1e107d8c6db631d64807fc5f57b75432e5c3809720d1a4d88920cc
|
7
|
+
data.tar.gz: 6c363bc9e2a13c536de107822eae3b623bf00987fa7b6697011c5147bb1b3b0e32fed170d984b3e316efed2ef2cbaba901e90f5c14727036a16a5c52ffc2ff87
|
@@ -76,26 +76,10 @@ module IsoDoc
|
|
76
76
|
)
|
77
77
|
end
|
78
78
|
|
79
|
-
# TODO: the approach taken in Plateau is more rational,
|
80
|
-
# of doing this in Presentation XML
|
81
|
-
def table_note_cleanup(docxml)
|
82
|
-
tn = ::IsoDoc::Function::Cleanup::TABLENOTE_CSS
|
83
|
-
docxml.xpath("//table[dl or #{tn} or p[@class = 'dl']]").each do |t|
|
84
|
-
tfoot = table_get_or_make_tfoot(t)
|
85
|
-
insert_here = new_fullcolspan_row(t, tfoot)
|
86
|
-
t.xpath("dl | p[@class = 'ListTitle'] | #{tn} | " \
|
87
|
-
"p[@class = 'dl']")
|
88
|
-
.each do |d|
|
89
|
-
d.parent = insert_here
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
79
|
# table name footnote is formatted like other footnotes, since table name
|
95
80
|
# is a table row.
|
96
81
|
def footnote_parse(node, out)
|
97
|
-
return table_footnote_parse(node, out)
|
98
|
-
|
82
|
+
@in_table and return table_footnote_parse(node, out)
|
99
83
|
super
|
100
84
|
end
|
101
85
|
end
|