metanorma-plugin-lutaml 0.7.63 → 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: 9087a3bdc384a47318affb8b8fc243d2bd7817d3c726b3b5cf27f9c229068a4a
4
- data.tar.gz: 7685b187bbf7d47e771b2276d42f62b3a4ed849abdec9ddd2154ff48f393864d
3
+ metadata.gz: a219a16d1ef8d04a061f15f5e1a267dbec89c860be64ed06e3c9fcb3f655608e
4
+ data.tar.gz: c15c55427c29505de786a4d0c5111c20098d89a1279e1e88dfc90a2a4c4ab453
5
5
  SHA512:
6
- metadata.gz: cc8c7e181551079b69bb24d41c6bacea72bfa7e64cb6bce41ea3c6bc676f3883f7372a40d97d032e9dbafa0e2fab92c4e3783f280b579eeb15dd1aa675f68067
7
- data.tar.gz: 90a1af9e236cf1a855b4042e459951da82d477e9180f0e3192819ef60c9e157e0236e9fc96d2343e30fe70e053154b88ff53f436f0b79b59262d54b86bef513a
6
+ metadata.gz: f0506bdbe474cc96c49164425fab37a59d3af21023a64d23bb83e52c2dbb43336e17b67ded88382724a5b2518613879e63409aceccb355d8e0624c0f3db1007d
7
+ data.tar.gz: 47ec10b15ca88e3f6b5f1ee51c0be57cf81e212a208cbb166512d42b34dc14865a4428d91f53c815dd791e01e2bb6941a6d4c024a21ab769525bb7d27a8ababa
data/Gemfile.devel CHANGED
@@ -1,12 +1,5 @@
1
1
  # gem "metanorma-standoc", github: "metanorma/metanorma-standoc", ref: "5ca49c85bbcc1422e48c4b625a66f7f026dc6832"
2
- gem "metanorma", github: "metanorma/metanorma", ref: "a899a9a6fc933dca0a53166d6633b609311b14e6"
3
- # relaton v3 prerelease line (rubyzip ~> 3.4, matching lutaml-model);
4
- # relaton-cli's v2line branch allows relaton 3 while keeping version
5
- # 2.1.2 for metanorma-standoc's constraint; the metanorma/standoc
6
- # refs are the known-good pair (newer standoc@main needs unreleased
7
- # metanorma-document components)
8
- gem "relaton", "~> 3.0.0.pre.alpha"
9
- gem "relaton-cli", "~> 3.0.0.pre.alpha"
2
+ gem "relaton", "~> 3.1.1"
10
3
 
11
4
  # lutaml-lml 0.1.5 adds Lutaml::Lml.parse + Formatter::Graphviz used by
12
5
  # the lutaml_diagram renderer; 0.1.1 (previously resolved) lacks them
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Metanorma
4
+ module Plugin
5
+ module Lutaml
6
+ # The EXPRESS vocabulary svgmap figures carry hidden bibliography
7
+ # entries (bibitemid "express_<schema>.<entity>") whose declarations
8
+ # live on the owning member's section pages as <schema>.<entity>
9
+ # followed by that member's edition suffix chain. Register the
10
+ # collection renderer's reference-anchor resolver for this family,
11
+ # so EXPRESS figure hotspot links bind to the declaration pages
12
+ # instead of falling to the reference list (metanorma#656 family;
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.
22
+ module ExpressHotspotAnchor
23
+ Metanorma::Collection::Renderer
24
+ .register_reference_anchor_resolver do |bibitemid, lookup|
25
+ next unless bibitemid.start_with?("express_")
26
+
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
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.63".freeze
4
+ VERSION = "0.7.65".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -85,3 +85,13 @@ autoload :GmlDictionaryDrop,
85
85
  "metanorma/plugin/lutaml/liquid_drops/gml_dictionary_drop"
86
86
  autoload :GmlDictionaryEntryDrop,
87
87
  "metanorma/plugin/lutaml/liquid_drops/gml_dictionary_entry_drop"
88
+
89
+ # Eager: registers the collection renderer's reference-anchor resolver
90
+ # for the EXPRESS vocabulary's hidden bibitems (a load-time side effect,
91
+ # not a lazily-referenced class). Guarded for stacks without the
92
+ # metanorma#658 renderer seam.
93
+ if defined?(Metanorma::Collection::Renderer) &&
94
+ Metanorma::Collection::Renderer
95
+ .respond_to?(:register_reference_anchor_resolver)
96
+ require "metanorma/plugin/lutaml/express_hotspot_anchor"
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.63
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-05 00:00:00.000000000 Z
11
+ date: 2026-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -462,6 +462,7 @@ files:
462
462
  - lib/metanorma/plugin/lutaml/config/root.rb
463
463
  - lib/metanorma/plugin/lutaml/content.rb
464
464
  - lib/metanorma/plugin/lutaml/data2_text_preprocessor.rb
465
+ - lib/metanorma/plugin/lutaml/express_hotspot_anchor.rb
465
466
  - lib/metanorma/plugin/lutaml/express_remark_adapter.rb
466
467
  - lib/metanorma/plugin/lutaml/express_remarks_decorator.rb
467
468
  - lib/metanorma/plugin/lutaml/express_repository_cache.rb