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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9fdc30bd68584b0e694c4ebc052d9d5c9377ff0b97d470bf9a71b422cc4c01d
4
- data.tar.gz: 6eb37637765b514734b06b12beaee5769884636b9163844d6bfd8396e4beff49
3
+ metadata.gz: 43165a177a896526892723b216ed2cff72eee876ace1c099c52ea92ec549fff8
4
+ data.tar.gz: fc24432b8ccaeecbc0fad71bc64f5311c3307d0a1b336b32c3bc9399269ba031
5
5
  SHA512:
6
- metadata.gz: d8368550186c0826ce9f4cf4634b2c00970622eae12ed79582e8ef4002d88349e019a2a641877acf51747513f57d97a3d5bcf98695c5f58f638bec986b73331d
7
- data.tar.gz: c57d4d8f9a1c32fdef6f3828ee5b11d798de609e80cb72f0eec89a980235d28e5dbabd64431a9c683bbd430f406ddee169547c1af4dfe4bf15c2cfdbfa490d52
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
- table_fns = docxml.xpath(ns("//table//fn")) -
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
- fig_fns = docxml.xpath(ns("//figure//fn")) -
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"] end
201
+ else bookmark["start"] = elem["from"]
202
+ end
194
203
  %w(author date).each { |k| bookmark[k] = elem[k] }
195
204
  end
196
205
 
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "3.2.5".freeze
2
+ VERSION = "3.2.6".freeze
3
3
  end
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.5
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-01 00:00:00.000000000 Z
11
+ date: 2025-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64