isodoc 3.7.21 → 3.7.22
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbf70f2270108a9954659cb9a101a731e81c333e9d7b8b2206888bb3a6d7cd99
|
|
4
|
+
data.tar.gz: c33ceb407707efcc89acbb01d913bc68d0aed61c5722d2afe7e76927b67226a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 647e985063f6a163df57c24e278eab3b5b57c4755bd3f9423b0aecf1a42d510bb3d808ee35a5427cdcfadc5263b20ba8740989a539448591e9a828ba8f501b6d
|
|
7
|
+
data.tar.gz: 82e7df3303fad27057a4104b271fea4ee42696e86811e972bacf03d2670beea904abfa253637dd893217a868b3d8322083e56240a34501b5f03fe1849bff6a9d
|
data/lib/isodoc/version.rb
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
module IsoDoc
|
|
2
2
|
module WordFunction
|
|
3
3
|
module Footnotes
|
|
4
|
+
# Word bookmark ids for _Toc and _Ref bookmarks. Minted from a
|
|
5
|
+
# document-scoped counter so that DOCX output is deterministic:
|
|
6
|
+
# identical input yields identical ids on every run (isodoc#923).
|
|
7
|
+
# The `%09d` shape keeps Word's _TocNNNNNNNNN convention.
|
|
4
8
|
def bookmarkid
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
end
|
|
9
|
+
@bookmarkid_counter ||= 0
|
|
10
|
+
ret = @bookmarkid_counter += 1
|
|
11
|
+
ret += 1 while @bookmarks_allocated[ret]
|
|
9
12
|
@bookmarks_allocated[ret] = true
|
|
10
|
-
|
|
13
|
+
@bookmarkid_counter = ret
|
|
14
|
+
format "%09d", ret
|
|
11
15
|
end
|
|
12
16
|
|
|
13
17
|
# Word footnote body id scheme: `ftn` prefix, no colon (Word bookmark
|
|
@@ -32,7 +32,7 @@ module IsoDoc
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def word_toc_entry(toclevel, heading)
|
|
35
|
-
bookmark = bookmarkid
|
|
35
|
+
bookmark = bookmarkid
|
|
36
36
|
<<~TOC
|
|
37
37
|
<p class="MsoToc#{toclevel}"><span class="MsoHyperlink"><span lang="EN-GB" style='mso-no-proof:yes'>
|
|
38
38
|
<a href="#_Toc#{bookmark}">#{heading}<span lang="EN-GB" class="MsoTocTextSpan">
|
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.7.
|
|
4
|
+
version: 3.7.22
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|