metanorma-taste 1.1.2 → 1.1.3

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: a276fd02ec6b8d7ef348c48ff5a3cdbe89f2a768f635d89d35d5d198fcb56ed7
4
+ data.tar.gz: 7c2c22381234ac45b72599b0db632efe707e1d12768f69773c685df404ddd9d2
5
5
  SHA512:
6
- metadata.gz: 665f8ecdec1836661122a841ea97282766d30054fa294abc35fa023e141e0d598702bf061b62670916e314af22462b8cc4142bc921bda63c2f6a73b67fc7ff48
7
- data.tar.gz: ca8f7653266b45efe14df6cd5159bd12ef7d2b6e0771c4686681a9b7a1aeb804522c51fa8083acf31bf5be37a992555dbe7cb3d99d3b395a2efe147d6e10b207
6
+ metadata.gz: 539118a3211bdb79c37b281ec0b6ab7c716a4b3a66dcbd3b8142e2f154369d64d152dcda66288ead9759d30ecff01066840ca3f65da53cee6b0b77d70c29a84e
7
+ data.tar.gz: 0150523a1366d0530533fcce7538210b8cfe302e861aad84e11c33f41920c9263196ea5b2aef906afbe4bdcb1e8e5b25be70fa9f2824fc7c842cf04484978df4
data/Gemfile CHANGED
@@ -6,16 +6,22 @@ git_source(:github) { |repo| "https://github.com/#{repo}" }
6
6
 
7
7
  gemspec
8
8
 
9
+ gem "metanorma-core", "~> 0.2.5.pre.alpha" # published flavor/taste table (metanorma-core#18)
10
+ # TEMPORARY pin for the compile fix (implicit presentation dependency +
11
+ # non-mutating output_formats, metanorma#602, rebase-merged into
12
+ # feat/flavors-table); drop when that branch reaches rubygems.
13
+ gem "metanorma", github: "metanorma/metanorma", branch: "main"
14
+
9
15
  group :development do
10
16
  gem "canon"
11
17
  gem "debug"
12
18
  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"
19
+ gem "metanorma", github: "metanorma/metanorma", branch: "main"
20
+ gem "metanorma-cli", github: "metanorma/metanorma-cli", branch: "main"
21
+ gem "metanorma-generic", github: "metanorma/metanorma-generic", branch: "main" # generic#130 merged
22
+ gem "metanorma-ieee", github: "metanorma/metanorma-ieee", branch: "main"
23
+ gem "metanorma-iso", github: "metanorma/metanorma-iso", branch: "main" # released caps document at 0.2; oiml main needs 0.4+
24
+ gem "metanorma-ribose", github: "metanorma/metanorma-ribose", branch: "main"
19
25
  gem "mnconvert"
20
26
  gem "pry"
21
27
  gem "rake", "~> 13.0"
@@ -32,3 +38,36 @@ begin
32
38
  rescue StandardError
33
39
  nil
34
40
  end
41
+ gem "metanorma-oiml", github: "metanorma/metanorma-oiml", branch: "main" # oiml taste specs lazy-require the STS adapter (main-only, unreleased)
42
+ gem "relaton-iev", "2.0.2" # 2.0.1 and earlier cap relaton < 3, conflicting with the 3.x pre monogem
43
+ # released suma (all >= 0.2.6) pins svg_conform ~> 0.1.0, incompatible
44
+ # with standoc's ~> 0.2 (suma#127); main carries the fix
45
+ gem "suma", github: "metanorma/suma", branch: "main"
46
+ # released plugin-lutaml 0.7.50 dropped the preprocessor names standoc
47
+ # registers (LutamlDataPreprocessor); main carries them (generic#133)
48
+ gem "metanorma-plugin-lutaml", github: "metanorma/metanorma-plugin-lutaml", branch: "main"
49
+ # relaton 3.0.0 is released; the α-era exact pin sorts below it and
50
+ # conflicts with released metanorma-document's `relaton ~> 3.0` floor
51
+ gem "relaton", "~> 3.0"
52
+ gem "relaton-render", "~> 3.0"
53
+ # coherent core mains: the α relaton line needs them (released ones cap render at 1.x)
54
+ gem "metanorma-standoc", github: "metanorma/metanorma-standoc", branch: "main"
55
+ gem "metanorma-document", github: "metanorma/metanorma-document", branch: "main"
56
+ gem "isodoc", github: "metanorma/isodoc", branch: "main"
57
+ gem "isodoc-i18n", github: "metanorma/isodoc-i18n", branch: "main"
58
+ gem "metanorma-utils", github: "metanorma/metanorma-utils", branch: "main"
59
+ # the suite compiles these base flavors; released ones reference retired 1.x render APIs
60
+ gem "metanorma-iho", github: "metanorma/metanorma-iho", branch: "main"
61
+
62
+ # full flavor zoo on mains: the metagem's released-cap zoo pulls 1.x-render flavors (ogc 2.10 → Relaton::Render::Parse)
63
+ gem "metanorma-bipm", github: "metanorma/metanorma-bipm", branch: "main"
64
+ gem "metanorma-cc", github: "metanorma/metanorma-cc", branch: "main"
65
+ gem "metanorma-iec", github: "metanorma/metanorma-iec", branch: "main"
66
+ gem "metanorma-ieee", github: "metanorma/metanorma-ieee", branch: "main"
67
+ gem "metanorma-ietf", github: "metanorma/metanorma-ietf", branch: "main"
68
+ gem "metanorma-gb", github: "metanorma/metanorma-gb", branch: "main"
69
+ gem "metanorma-iho", github: "metanorma/metanorma-iho", branch: "main"
70
+ gem "metanorma-itu", github: "metanorma/metanorma-itu", branch: "main"
71
+ gem "metanorma-jis", github: "metanorma/metanorma-jis", branch: "main"
72
+ gem "metanorma-ogc", github: "metanorma/metanorma-ogc", branch: "main"
73
+ 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