metanorma-plugin-lutaml 0.7.64 → 0.7.65
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: a219a16d1ef8d04a061f15f5e1a267dbec89c860be64ed06e3c9fcb3f655608e
|
|
4
|
+
data.tar.gz: c15c55427c29505de786a4d0c5111c20098d89a1279e1e88dfc90a2a4c4ab453
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0506bdbe474cc96c49164425fab37a59d3af21023a64d23bb83e52c2dbb43336e17b67ded88382724a5b2518613879e63409aceccb355d8e0624c0f3db1007d
|
|
7
|
+
data.tar.gz: 47ec10b15ca88e3f6b5f1ee51c0be57cf81e212a208cbb166512d42b34dc14865a4428d91f53c815dd791e01e2bb6941a6d4c024a21ab769525bb7d27a8ababa
|
|
@@ -11,12 +11,26 @@ module Metanorma
|
|
|
11
11
|
# so EXPRESS figure hotspot links bind to the declaration pages
|
|
12
12
|
# instead of falling to the reference list (metanorma#656 family;
|
|
13
13
|
# the core renderer registers no resolvers of its own).
|
|
14
|
+
#
|
|
15
|
+
# On section-split pages the split pass suffixes the hidden
|
|
16
|
+
# bibitems per page, so the svgmap eref's bibitemid carries the
|
|
17
|
+
# citing page's own suffix chain after the entity name
|
|
18
|
+
# ("express_geometry_schema.line_ISO_DIS_10303-108_2025_..._Annex_D_...").
|
|
19
|
+
# Lookup therefore walks prefixes from the full name down to
|
|
20
|
+
# "<schema>.<entity>", first unique match wins - the shortest
|
|
21
|
+
# candidate is the declaration closest to the asked entity.
|
|
14
22
|
module ExpressHotspotAnchor
|
|
15
|
-
Metanorma::Collection::Renderer
|
|
23
|
+
Metanorma::Collection::Renderer
|
|
16
24
|
.register_reference_anchor_resolver do |bibitemid, lookup|
|
|
17
25
|
next unless bibitemid.start_with?("express_")
|
|
18
26
|
|
|
19
|
-
|
|
27
|
+
name = bibitemid.sub(/\Aexpress_/, "")
|
|
28
|
+
rec = lookup.call(name)
|
|
29
|
+
while rec.nil? && name.include?("_")
|
|
30
|
+
name = name.sub(/_[^_]+\z/, "")
|
|
31
|
+
rec = lookup.call(name)
|
|
32
|
+
end
|
|
33
|
+
rec
|
|
20
34
|
end
|
|
21
35
|
end
|
|
22
36
|
end
|
|
@@ -90,8 +90,8 @@ autoload :GmlDictionaryEntryDrop,
|
|
|
90
90
|
# for the EXPRESS vocabulary's hidden bibitems (a load-time side effect,
|
|
91
91
|
# not a lazily-referenced class). Guarded for stacks without the
|
|
92
92
|
# metanorma#658 renderer seam.
|
|
93
|
-
if defined?(Metanorma::Collection::Renderer
|
|
94
|
-
Metanorma::Collection::Renderer
|
|
93
|
+
if defined?(Metanorma::Collection::Renderer) &&
|
|
94
|
+
Metanorma::Collection::Renderer
|
|
95
95
|
.respond_to?(:register_reference_anchor_resolver)
|
|
96
96
|
require "metanorma/plugin/lutaml/express_hotspot_anchor"
|
|
97
97
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-plugin-lutaml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.65
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|