metanorma-plugin-lutaml 0.7.63 → 0.7.64

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: 38cf4c201317e4cccd775acaeaacd74e12ad4405aea44f1cab6baa92fca6657b
4
+ data.tar.gz: 32178d03c318d215048194169b8419fba33db8682acceca2c212caf6bab2da31
5
5
  SHA512:
6
- metadata.gz: cc8c7e181551079b69bb24d41c6bacea72bfa7e64cb6bce41ea3c6bc676f3883f7372a40d97d032e9dbafa0e2fab92c4e3783f280b579eeb15dd1aa675f68067
7
- data.tar.gz: 90a1af9e236cf1a855b4042e459951da82d477e9180f0e3192819ef60c9e157e0236e9fc96d2343e30fe70e053154b88ff53f436f0b79b59262d54b86bef513a
6
+ metadata.gz: a1d9df4d1c8204ac9baf0e94c25f4cafc628a3717f4f2ba2b06c7b0c732cd9342e53dac7799c8a812133371132cb0292af2882cac621c51fcba71450f723b2a9
7
+ data.tar.gz: 3d276422d4302805615607cc6a9de50dd3e3a6b79a1d656dec01ecbb193e26b9b9eebf2faf7ceecd7c502eb5cadee28c14e11d86cb1914d09b2883095d7b861d
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,24 @@
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
+ module ExpressHotspotAnchor
15
+ Metanorma::Collection::Renderer::Svg
16
+ .register_reference_anchor_resolver do |bibitemid, lookup|
17
+ next unless bibitemid.start_with?("express_")
18
+
19
+ lookup.call(bibitemid.sub(/\Aexpress_/, ""))
20
+ end
21
+ end
22
+ end
23
+ end
24
+ 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.64".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::Svg) &&
94
+ Metanorma::Collection::Renderer::Svg
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.64
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-08 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