metanorma-jis 0.5.9 → 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 -15
- data/lib/isodoc/jis/html/style-human.css +7 -1
- data/lib/isodoc/jis/html/style-iso.css +7 -1
- data/lib/isodoc/jis/jis.international-standard.xsl +10972 -11120
- 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 +2 -3
- metadata +5 -18
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,24 +76,10 @@ module IsoDoc
|
|
76
76
|
)
|
77
77
|
end
|
78
78
|
|
79
|
-
def table_note_cleanup(docxml)
|
80
|
-
tn = ::IsoDoc::Function::Cleanup::TABLENOTE_CSS
|
81
|
-
docxml.xpath("//table[dl or #{tn} or p[@class = 'dl']]").each do |t|
|
82
|
-
tfoot = table_get_or_make_tfoot(t)
|
83
|
-
insert_here = new_fullcolspan_row(t, tfoot)
|
84
|
-
t.xpath("dl | p[@class = 'ListTitle'] | #{tn} | " \
|
85
|
-
"p[@class = 'dl']")
|
86
|
-
.each do |d|
|
87
|
-
d.parent = insert_here
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
79
|
# table name footnote is formatted like other footnotes, since table name
|
93
80
|
# is a table row.
|
94
81
|
def footnote_parse(node, out)
|
95
|
-
return table_footnote_parse(node, out)
|
96
|
-
|
82
|
+
@in_table and return table_footnote_parse(node, out)
|
97
83
|
super
|
98
84
|
end
|
99
85
|
end
|
@@ -318,9 +318,15 @@ h6:hover > a.anchor,
|
|
318
318
|
padding: 0;
|
319
319
|
}
|
320
320
|
|
321
|
+
.svg-container {
|
322
|
+
width: 100%; /* or any desired width */
|
323
|
+
display: block; /* ← removes unwanted inline spacing */
|
324
|
+
}
|
325
|
+
|
321
326
|
svg {
|
322
327
|
width: 100%;
|
323
|
-
|
328
|
+
height: auto; /* ← key to maintaining aspect ratio */
|
329
|
+
display: block; /* ← removes unwanted inline spacing */
|
324
330
|
}
|
325
331
|
|
326
332
|
#standard-band {
|
@@ -318,9 +318,15 @@ h6:hover > a.anchor,
|
|
318
318
|
padding: 0;
|
319
319
|
}
|
320
320
|
|
321
|
+
.svg-container {
|
322
|
+
width: 100%; /* or any desired width */
|
323
|
+
display: block; /* ← removes unwanted inline spacing */
|
324
|
+
}
|
325
|
+
|
321
326
|
svg {
|
322
327
|
width: 100%;
|
323
|
-
|
328
|
+
height: auto; /* ← key to maintaining aspect ratio */
|
329
|
+
display: block; /* ← removes unwanted inline spacing */
|
324
330
|
}
|
325
331
|
|
326
332
|
#standard-band {
|