isodoc 3.2.5 → 3.2.6
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/presentation_function/footnotes.rb +14 -5
- data/lib/isodoc/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: 43165a177a896526892723b216ed2cff72eee876ace1c099c52ea92ec549fff8
|
4
|
+
data.tar.gz: fc24432b8ccaeecbc0fad71bc64f5311c3307d0a1b336b32c3bc9399269ba031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58ddea5bae6b878309b915ba9e70837dbfdfd26d6d1b257f80a46345064770949b67dca7940aa9e1675a4089541e1c6d46961f01b8f42b1184ddbf7dcdeaf908
|
7
|
+
data.tar.gz: df2b697149cdbbc2c0e855047c7f7e2c5bced1ae89b1dc3d3d8b382e1b877ad195ea1251d5786e45eb769034f87e517a5ca613243637f4b1363a13c9f29a6ccf
|
@@ -80,13 +80,21 @@ module IsoDoc
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def non_document_footnotes(docxml)
|
83
|
-
|
83
|
+
table_footnotes(docxml) + figure_footnotes(docxml)
|
84
|
+
end
|
85
|
+
|
86
|
+
def table_footnotes(docxml)
|
87
|
+
docxml.xpath(ns("//table//fn")) -
|
84
88
|
docxml.xpath(ns("//table/name//fn")) -
|
85
|
-
docxml.xpath(ns("//table/fmt-name//fn"))
|
86
|
-
|
89
|
+
docxml.xpath(ns("//table/fmt-name//fn")) -
|
90
|
+
docxml.xpath(ns("//fmt-provision/table//fn")) +
|
91
|
+
docxml.xpath(ns("//fmt-provision/table//table//fn"))
|
92
|
+
end
|
93
|
+
|
94
|
+
def figure_footnotes(docxml)
|
95
|
+
docxml.xpath(ns("//figure//fn")) -
|
87
96
|
docxml.xpath(ns("//figure/name//fn")) -
|
88
97
|
docxml.xpath(ns("//figure/fmt-name//fn"))
|
89
|
-
table_fns + fig_fns
|
90
98
|
end
|
91
99
|
|
92
100
|
def filter_document_footnotes(sects, excl)
|
@@ -190,7 +198,8 @@ module IsoDoc
|
|
190
198
|
def comment_to_bookmark_attrs(elem, bookmark, start: true)
|
191
199
|
bookmark["target"] = elem["id"]
|
192
200
|
if start then bookmark["end"] = elem["to"]
|
193
|
-
else bookmark["start"] = elem["from"]
|
201
|
+
else bookmark["start"] = elem["from"]
|
202
|
+
end
|
194
203
|
%w(author date).each { |k| bookmark[k] = elem[k] }
|
195
204
|
end
|
196
205
|
|
data/lib/isodoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|