metanorma-standoc 3.5.6 → 3.5.8
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 +4 -4
- data/Gemfile +6 -1
- data/Gemfile.devel +2 -1
- data/lib/metanorma/converter/base.rb +12 -1
- data/lib/metanorma/converter/init.rb +11 -1
- data/lib/metanorma/converter/ref_queue.rb +18 -1
- data/lib/metanorma/standoc/document/metadata/presentation_metadata.rb +2 -0
- data/lib/metanorma/standoc/version.rb +1 -1
- data/metanorma-standoc.gemspec +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd8394f512bdddb0bbac5d9f194aeacee3dd15888badedc6333ab5cb1fb70f70
|
|
4
|
+
data.tar.gz: cb4c9485fc8413c496641896b191a1b554e9bb2fd06d242b78e4f34fd4690110
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ad1bde15dddbf24b919f1037c163bc2a29d25f62921fd7271ca5757fadb0c91ad93567cab4f8de71893d28f620f1eb75a9ab4c246c78519db91dd70833e6c1d
|
|
7
|
+
data.tar.gz: ca562fb4764cc0287a5bf8d8be78e2e163b7c2d633d829450857c3960f695720037df1a4df67fdc2b6f9be6beb6ea90dc2bef032730983103e519914c010f9a1
|
data/Gemfile
CHANGED
|
@@ -28,11 +28,16 @@ gem "isodoc", github: "metanorma/isodoc", branch: "main"
|
|
|
28
28
|
# release. Prefer the released gem over a git pin: relaton main has since
|
|
29
29
|
# moved to lutaml-store ~> 0.3, which conflicts with glossarist 2.14's
|
|
30
30
|
# lutaml-store ~> 0.2.0 and makes this bundle unresolvable.
|
|
31
|
+
# parsanol 1.3.120 removed the pre-1.3.113 grammar-header alias (mode), breaking pubid 2.0.1's baked self-description grammar at compile (81 suite failures). Pin below the break until pubid regenerates its artifacts against the current compiler.
|
|
32
|
+
gem "parsanol", "< 1.3.120"
|
|
31
33
|
gem "relaton", "~> 3.0"
|
|
32
|
-
gem "pubid", "
|
|
34
|
+
gem "pubid", ">= 2.0.3" # 2.0.3: edition-2 iso artifact
|
|
33
35
|
|
|
34
36
|
gem "metanorma-plugin-lutaml", github: "metanorma/metanorma-plugin-lutaml", branch: "main"
|
|
35
37
|
|
|
36
38
|
eval_gemfile("Gemfile.devel") rescue nil
|
|
37
39
|
|
|
38
40
|
gem "metanorma-utils", "~> 2.0.8" # GcBudget (utils#54) + the array-join asciidoctor table cell buffer (utils#55/#56), released in 2.0.8, github: "metanorma/metanorma-utils", branch: "main"
|
|
41
|
+
|
|
42
|
+
gem "svg_conform", "~> 0.2.6" # 0.2.6 ships the corrected metadata
|
|
43
|
+
|
data/Gemfile.devel
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
# The 0.2.4 bridge pin is gone: svg_conform 0.2.6 is the corrected push the
|
|
2
|
+
# bridge anticipated; the main Gemfile rides ~> 0.2.6.
|
|
2
3
|
gem "parsanol", "1.3.114" # bridge: pubid 2.0.1 grammars carry the mode header alias removed in parsanol 1.3.113+ — drop at pubid PARG edition 2
|
|
@@ -237,7 +237,8 @@ module Metanorma
|
|
|
237
237
|
end
|
|
238
238
|
end
|
|
239
239
|
end.join
|
|
240
|
-
out + document_scheme_metadata(node) + index_metadata(node)
|
|
240
|
+
out + document_scheme_metadata(node) + index_metadata(node) +
|
|
241
|
+
output_extensions_metadata(node)
|
|
241
242
|
end
|
|
242
243
|
|
|
243
244
|
def document_scheme_metadata(node)
|
|
@@ -256,6 +257,16 @@ module Metanorma
|
|
|
256
257
|
"true</index-case-sensitive></presentation-metadata>"
|
|
257
258
|
end
|
|
258
259
|
|
|
260
|
+
# persist the requested output formats, so that a later compile of
|
|
261
|
+
# the semantic XML honours them (metanorma/metanorma-cli#155)
|
|
262
|
+
def output_extensions_metadata(node)
|
|
263
|
+
a = node.attr("mn-output-extensions") or return ""
|
|
264
|
+
a = a.split(",").map(&:strip).reject(&:empty?).join(",")
|
|
265
|
+
a.empty? and return ""
|
|
266
|
+
"<presentation-metadata><output-extensions>" \
|
|
267
|
+
"#{a}</output-extensions></presentation-metadata>"
|
|
268
|
+
end
|
|
269
|
+
|
|
259
270
|
def document_scheme(node)
|
|
260
271
|
node.attr("document-scheme")
|
|
261
272
|
end
|
|
@@ -74,10 +74,20 @@ module Metanorma
|
|
|
74
74
|
severity = node.attr("log-filter-severity")&.to_i || 4
|
|
75
75
|
category = csv_split(node.attr("log-filter-category"), ",")
|
|
76
76
|
error_ids = csv_split(node.attr("log-filter-error-ids"), ",")
|
|
77
|
+
error_regexes = extract_log_filter_error_regex(node)
|
|
77
78
|
locations = cleanup_log_filter_error_log(
|
|
78
79
|
extract_log_filter_error_loc(node),
|
|
79
80
|
)
|
|
80
|
-
@log.suppress_log = { severity:, category:, error_ids:,
|
|
81
|
+
@log.suppress_log = { severity:, category:, error_ids:,
|
|
82
|
+
error_regexes:, locations: }
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# `log-filter-error-regex`: comma-separated regexes matched against the
|
|
86
|
+
# interpolated message text, suppressing matching entries without
|
|
87
|
+
# suppressing the other messages sharing the code (utils Log).
|
|
88
|
+
def extract_log_filter_error_regex(node)
|
|
89
|
+
csv_split(node.attr("log-filter-error-regex"), ",")
|
|
90
|
+
&.map { |r| Regexp.new(r) } || []
|
|
81
91
|
end
|
|
82
92
|
|
|
83
93
|
def extract_log_filter_error_loc(node)
|
|
@@ -219,7 +219,7 @@ module Metanorma
|
|
|
219
219
|
def init_bib_caches(node)
|
|
220
220
|
@no_isobib and return
|
|
221
221
|
global = !@no_isobib_cache && !node.attr("local-cache-only")
|
|
222
|
-
local =
|
|
222
|
+
local = local_cache_dir(node)
|
|
223
223
|
local = nil if @no_isobib_cache
|
|
224
224
|
flush_bib_caches_force(node) if node.attr("flush-caches") &&
|
|
225
225
|
@no_isobib_cache
|
|
@@ -230,6 +230,23 @@ module Metanorma
|
|
|
230
230
|
)
|
|
231
231
|
end
|
|
232
232
|
|
|
233
|
+
# The local bibliographic cache belongs to the document, not to
|
|
234
|
+
# wherever the compile was invoked from (metanorma#627): an empty
|
|
235
|
+
# `:local-cache:`/`:local-cache-only:` attribute anchors the cache
|
|
236
|
+
# at the docfile's directory (docfile/relaton/cache) instead of the
|
|
237
|
+
# process working directory, and a relative path is resolved against
|
|
238
|
+
# the docfile directory. Absolute paths pass through untouched.
|
|
239
|
+
def local_cache_dir(node)
|
|
240
|
+
local = node.attr("local-cache") || node.attr("local-cache-only")
|
|
241
|
+
return local if local.nil?
|
|
242
|
+
|
|
243
|
+
docfile = node.attributes["docfile"]
|
|
244
|
+
return local unless docfile
|
|
245
|
+
|
|
246
|
+
File.expand_path(local.empty? ? "relaton" : local,
|
|
247
|
+
File.dirname(docfile))
|
|
248
|
+
end
|
|
249
|
+
|
|
233
250
|
# `:flush-caches:` must clear stale cache state regardless of whether
|
|
234
251
|
# `:no-isobib-cache:` disables caching for *this* compile. When both
|
|
235
252
|
# are set, the `Relaton::Db.init_bib_caches` path no-ops on the flush
|
|
@@ -42,6 +42,7 @@ module Metanorma
|
|
|
42
42
|
attribute :doc_toc_heading_levels, :string
|
|
43
43
|
attribute :pdf_toc_heading_levels, :string
|
|
44
44
|
attribute :html_details_open, :string
|
|
45
|
+
attribute :output_extensions, :string
|
|
45
46
|
attribute :fonts, :string, collection: true
|
|
46
47
|
attribute :name, :string
|
|
47
48
|
attribute :value, :string
|
|
@@ -97,6 +98,7 @@ module Metanorma
|
|
|
97
98
|
map_element "doc-toc-heading-levels", to: :doc_toc_heading_levels
|
|
98
99
|
map_element "pdf-toc-heading-levels", to: :pdf_toc_heading_levels
|
|
99
100
|
map_element "html-details-open", to: :html_details_open
|
|
101
|
+
map_element "output-extensions", to: :output_extensions
|
|
100
102
|
map_element "fonts", to: :fonts
|
|
101
103
|
map_element "name", to: :name
|
|
102
104
|
map_element "value", to: :value
|
data/metanorma-standoc.gemspec
CHANGED
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
# spec.add_dependency "iev", "~> 0.4"
|
|
35
35
|
spec.add_dependency "isodoc", "~> 3.7.2"
|
|
36
36
|
spec.add_dependency "metanorma-core", "~> 0.2.3"
|
|
37
|
-
spec.add_dependency "metanorma-document", "
|
|
37
|
+
spec.add_dependency "metanorma-document", "~> 0.5.3"
|
|
38
38
|
spec.add_dependency "metanorma-mirror"
|
|
39
39
|
spec.add_dependency "metanorma-plugin-asciichem", "~> 0.1.0"
|
|
40
40
|
spec.add_dependency "metanorma-plugin-glossarist", "~> 0.5"
|
|
@@ -43,7 +43,7 @@ Gem::Specification.new do |spec|
|
|
|
43
43
|
spec.add_dependency "metanorma-utils", "~> 2.0.10"
|
|
44
44
|
# moxml 0.6.0 removed the Opal surface (lutaml/moxml#516); owner
|
|
45
45
|
# call to update all to the latest moxml line.
|
|
46
|
-
spec.add_dependency "moxml", "~> 0.6.
|
|
46
|
+
spec.add_dependency "moxml", "~> 0.6.1"
|
|
47
47
|
spec.add_dependency "leptris", "~> 1.9"
|
|
48
48
|
spec.add_dependency "concurrent-ruby"
|
|
49
49
|
spec.add_dependency "png_conform", "~> 0.1.0"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-standoc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.5.
|
|
4
|
+
version: 3.5.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -84,16 +84,16 @@ dependencies:
|
|
|
84
84
|
name: metanorma-document
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
|
-
- - "
|
|
87
|
+
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 0.5.
|
|
89
|
+
version: 0.5.3
|
|
90
90
|
type: :runtime
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
|
-
- - "
|
|
94
|
+
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0.5.
|
|
96
|
+
version: 0.5.3
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: metanorma-mirror
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -184,14 +184,14 @@ dependencies:
|
|
|
184
184
|
requirements:
|
|
185
185
|
- - "~>"
|
|
186
186
|
- !ruby/object:Gem::Version
|
|
187
|
-
version: 0.6.
|
|
187
|
+
version: 0.6.1
|
|
188
188
|
type: :runtime
|
|
189
189
|
prerelease: false
|
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
|
191
191
|
requirements:
|
|
192
192
|
- - "~>"
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
|
-
version: 0.6.
|
|
194
|
+
version: 0.6.1
|
|
195
195
|
- !ruby/object:Gem::Dependency
|
|
196
196
|
name: leptris
|
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|