metanorma-jis 0.5.1 → 0.5.2
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 +11 -2
- data/lib/isodoc/jis/html_convert.rb +2 -1
- data/lib/isodoc/jis/jis.international-standard.xsl +530 -219
- data/lib/isodoc/jis/presentation_xml_convert.rb +49 -26
- data/lib/isodoc/jis/table.rb +2 -1
- data/lib/isodoc/jis/word_convert.rb +2 -3
- data/lib/metanorma/jis/basicdoc.rng +37 -32
- data/lib/metanorma/jis/isodoc.rng +32 -17
- data/lib/metanorma/jis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abd40a2bc3e57de414cd4e120bf1a1c3416c20284a985253ce0d1a23f56b67eb
|
4
|
+
data.tar.gz: 34ad9d689e173e43a28fbcd8ced02ac3fcdc0549b21cb253e4e20a0bf51a0afe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcfae9c4647c416c89e5657aa66be23028312c42f1d1b20c873e1491839030cc7a541a7809514405782a86c4056fc3059cbb67d7788c1cc1a5c69234e0f1d52e
|
7
|
+
data.tar.gz: a303a12a0ac196d48eb0e14f93f7fe2ed9e65fde5f9f9952ca578404490b91f92c580da8f8e0f70155e8ddfea38bd70828adae4fad29bb077de590c17484aa38
|
@@ -46,6 +46,8 @@ module IsoDoc
|
|
46
46
|
.each { |p| parse(p, out) }
|
47
47
|
node.xpath(ns("./source")).each { |n| parse(n, out) }
|
48
48
|
node.xpath(ns("./note")).each { |n| parse(n, out) }
|
49
|
+
node.xpath(ns("./fmt-footnote-container/fmt-fn-body"))
|
50
|
+
.each { |n| parse(n, out) }
|
49
51
|
end
|
50
52
|
|
51
53
|
def table_thead_pt(node, name)
|
@@ -69,8 +71,8 @@ module IsoDoc
|
|
69
71
|
def table_name(name, thead, cols)
|
70
72
|
name or return
|
71
73
|
thead.add_first_child full_row(
|
72
|
-
cols, "<p class='TableTitle' style='text-align:center;'> " \
|
73
|
-
|
74
|
+
cols, "<fmt-name><p class='TableTitle' style='text-align:center;'> " \
|
75
|
+
"#{name.remove.children.to_xml}</p></fmt-name>"
|
74
76
|
)
|
75
77
|
end
|
76
78
|
|
@@ -85,6 +87,13 @@ module IsoDoc
|
|
85
87
|
d.parent = insert_here
|
86
88
|
end
|
87
89
|
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# table name footnote is formatted like other footnotes, since table name
|
93
|
+
# is a table row.
|
94
|
+
def footnote_parse(node, out)
|
95
|
+
return table_footnote_parse(node, out) if @in_table
|
96
|
+
super
|
88
97
|
end
|
89
98
|
end
|
90
99
|
end
|
@@ -36,7 +36,8 @@ module IsoDoc
|
|
36
36
|
end
|
37
37
|
|
38
38
|
# TODO to Presentation XML
|
39
|
-
|
39
|
+
# KILL
|
40
|
+
def make_table_footnote_targetx(out, fnid, fnref)
|
40
41
|
attrs = { id: fnid, class: "TableFootnoteRef" }
|
41
42
|
out.span do |s|
|
42
43
|
# TODO to Presentation XML
|