metanorma-taste 1.1.2 → 1.1.3.pre.alpha.1

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: b99de9e29c2b48903a52665d58004a55e17b1a0393cca0f068d0a1f8da1e09a9
4
- data.tar.gz: 9e1c2fd3a98d1fe24b173bf19f9b5a8326f0daa54d4e7bd8215aff849070238d
3
+ metadata.gz: 970981d5547cb853262ebe258f8d11c6fd52e8deb593dcbd5953efef0e69b2bd
4
+ data.tar.gz: b237fe70bc854ffd52fcc05bf920c9a518fe8b4e62d9f5617f30f24c82e79304
5
5
  SHA512:
6
- metadata.gz: 665f8ecdec1836661122a841ea97282766d30054fa294abc35fa023e141e0d598702bf061b62670916e314af22462b8cc4142bc921bda63c2f6a73b67fc7ff48
7
- data.tar.gz: ca8f7653266b45efe14df6cd5159bd12ef7d2b6e0771c4686681a9b7a1aeb804522c51fa8083acf31bf5be37a992555dbe7cb3d99d3b395a2efe147d6e10b207
6
+ metadata.gz: 99c950b3d2e0ef7e8cdd0f279d4b9c9ed59bdff3249d1bded19219ca5f3ac7a54fe5720bcd0df46c3a17ea56564eeaaffee3bf201674aaff280238490da3f39c
7
+ data.tar.gz: 846c7de8900513aaafe1bb12067a1de53708575ee41329d3498b954e32116e731e15ec30c46651c2cf24fd3de26cc9978578755be6244a097af24a5c6c0e85f5
data/Gemfile CHANGED
@@ -6,16 +6,25 @@ git_source(:github) { |repo| "https://github.com/#{repo}" }
6
6
 
7
7
  gemspec
8
8
 
9
+ # TEMPORARY pin: the flavor/taste table (metanorma-core#18) merged to main on
10
+ # 2026-09-06 but is unreleased (latest gem 0.2.3 predates it). Drop this pin
11
+ # once metanorma-core > 0.2.3 is on rubygems.
12
+ gem "metanorma-core", github: "metanorma/metanorma-core", branch: "main"
13
+ # TEMPORARY pin for the compile fix (implicit presentation dependency +
14
+ # non-mutating output_formats, metanorma#602, rebase-merged into
15
+ # feat/flavors-table); drop when that branch reaches rubygems.
16
+ gem "metanorma", github: "metanorma/metanorma", branch: "main"
17
+
9
18
  group :development do
10
19
  gem "canon"
11
20
  gem "debug"
12
21
  gem "equivalent-xml", "~> 0.6"
13
- gem "metanorma"
14
- gem "metanorma-cli"
15
- gem "metanorma-generic", ">= 3.4.0"
16
- gem "metanorma-ieee", ">= 1.6.8"
17
- gem "metanorma-iso", ">= 3.4.2"
18
- gem "metanorma-ribose", ">= 2.8.4"
22
+ gem "metanorma", github: "metanorma/metanorma", branch: "main"
23
+ gem "metanorma-cli", github: "metanorma/metanorma-cli", branch: "main"
24
+ gem "metanorma-generic", github: "metanorma/metanorma-generic", branch: "main" # generic#130 merged
25
+ gem "metanorma-ieee", github: "metanorma/metanorma-ieee", branch: "main"
26
+ gem "metanorma-iso", github: "metanorma/metanorma-iso", branch: "main" # released caps document at 0.2; oiml main needs 0.4+
27
+ gem "metanorma-ribose", github: "metanorma/metanorma-ribose", branch: "main"
19
28
  gem "mnconvert"
20
29
  gem "pry"
21
30
  gem "rake", "~> 13.0"
@@ -32,3 +41,35 @@ begin
32
41
  rescue StandardError
33
42
  nil
34
43
  end
44
+ gem "metanorma-oiml", github: "metanorma/metanorma-oiml", branch: "main" # oiml taste specs lazy-require the STS adapter (main-only, unreleased)
45
+ gem "relaton-iev", "2.0.2" # 2.0.1 and earlier cap relaton < 3, conflicting with the 3.x pre monogem
46
+ # released suma (all >= 0.2.6) pins svg_conform ~> 0.1.0, incompatible
47
+ # with standoc's ~> 0.2 (suma#127); main carries the fix
48
+ gem "suma", github: "metanorma/suma", branch: "main"
49
+ # released plugin-lutaml 0.7.50 dropped the preprocessor names standoc
50
+ # registers (LutamlDataPreprocessor); main carries them (generic#133)
51
+ gem "metanorma-plugin-lutaml", github: "metanorma/metanorma-plugin-lutaml", branch: "main"
52
+ # canonical 3.x pre line (the oiml chain needs prerelease relaton-logger)
53
+ gem "relaton", "= 3.0.0.pre.alpha.11"
54
+ gem "relaton-render", ">= 3.0.0.pre.alpha.43"
55
+ # coherent core mains: the α relaton line needs them (released ones cap render at 1.x)
56
+ gem "metanorma-standoc", github: "metanorma/metanorma-standoc", branch: "main"
57
+ gem "metanorma-document", github: "metanorma/metanorma-document", branch: "main"
58
+ gem "isodoc", github: "metanorma/isodoc", branch: "main"
59
+ gem "isodoc-i18n", github: "metanorma/isodoc-i18n", branch: "main"
60
+ gem "metanorma-utils", github: "metanorma/metanorma-utils", branch: "main"
61
+ # the suite compiles these base flavors; released ones reference retired 1.x render APIs
62
+ gem "metanorma-iho", github: "metanorma/metanorma-iho", branch: "main"
63
+
64
+ # full flavor zoo on mains: the metagem's released-cap zoo pulls 1.x-render flavors (ogc 2.10 → Relaton::Render::Parse)
65
+ gem "metanorma-bipm", github: "metanorma/metanorma-bipm", branch: "main"
66
+ gem "metanorma-cc", github: "metanorma/metanorma-cc", branch: "main"
67
+ gem "metanorma-iec", github: "metanorma/metanorma-iec", branch: "main"
68
+ gem "metanorma-ieee", github: "metanorma/metanorma-ieee", branch: "main"
69
+ gem "metanorma-ietf", github: "metanorma/metanorma-ietf", branch: "main"
70
+ gem "metanorma-gb", github: "metanorma/metanorma-gb", branch: "main"
71
+ gem "metanorma-iho", github: "metanorma/metanorma-iho", branch: "main"
72
+ gem "metanorma-itu", github: "metanorma/metanorma-itu", branch: "main"
73
+ gem "metanorma-jis", github: "metanorma/metanorma-jis", branch: "main"
74
+ gem "metanorma-ogc", github: "metanorma/metanorma-ogc", branch: "main"
75
+ gem "metanorma-plateau", github: "metanorma/metanorma-plateau", branch: "main"
data/README.adoc CHANGED
@@ -201,6 +201,10 @@ currently available:
201
201
  |`iho`
202
202
  |World Meteorological Organization specifications (e.g. S-411) with WMO branding and copyright, built on the IHO document structure
203
203
 
204
+ |`iala`
205
+ |International Organization for Marine Aids to Navigation
206
+ |`generic`
207
+ |IALA Standards (S), Recommendations (R), Guidelines (G), Model Courses (C) and Resolutions with IALA branding (#00558C, Calibri/Carlito), copyright and doctypes
204
208
 
205
209
  |===
206
210
 
@@ -793,6 +797,46 @@ taste = Metanorma::TasteRegister.get(:acme)
793
797
  # Returns an instance of Metanorma::Taste::Acme
794
798
  ----
795
799
 
800
+ === Document-model output transformers
801
+
802
+ Besides config overrides, a taste can contribute a document-model *output
803
+ format* — a reader + transformer that the taste-aware metanorma-core `Processor`
804
+ drives. This is how the OIML taste produces STS output through the pipeline
805
+ (`metanorma compile -t oiml -x oimlsts`) instead of a standalone tool.
806
+
807
+ Two pieces:
808
+
809
+ . Add the format symbol to the taste's `output-extensions` in
810
+ `data/<taste>/config.yaml` (under `base-override.value-attributes`), so it is
811
+ selectable at compile time.
812
+
813
+ . Add an optional `data/<taste>/transformers.rb` shim that registers the
814
+ transformer spec. It is discovered and required *lazily* — only when a build of
815
+ that taste resolves its output formats — so the artefact gem loads only for that
816
+ taste, and metanorma-taste keeps no hard dependency on it:
817
+
818
+ [source,ruby]
819
+ ----
820
+ Metanorma::TasteRegister.register_document_transformers(:acme) do
821
+ require "metanorma/acme/sts" # lazy: loaded only for :acme builds
822
+ {
823
+ acmests: {
824
+ reader: Metanorma::Acme::Sts::Reader, # .from_xml(String) -> model
825
+ transformer: Metanorma::Acme::Sts::Standard, # .new(model, opts); #transform -> target#to_xml
826
+ strip_default_namespace: false,
827
+ to_xml_options: {},
828
+ suffix: "acme.sts.xml", # output filename suffix
829
+ presentation: true, # consume presentation XML (vs semantic)
830
+ },
831
+ }
832
+ end
833
+ ----
834
+
835
+ The `reader` / `transformer` / `strip_default_namespace` / `to_xml_options` keys
836
+ conform to the metanorma-core `Processor#document_transformers` contract; the
837
+ `suffix` / `presentation` keys are read by the Metanorma compile driver to make
838
+ the format selectable and pick its input leg.
839
+
796
840
  === Taste code
797
841
 
798
842
  * Must be unique among all tastes