metanorma-iso 3.5.1.pre.alpha.2 → 3.5.1.pre.alpha.4
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 -17
- data/lib/isodoc/iso/iso.amendment.xsl +3 -1
- data/lib/isodoc/iso/iso.international-standard.xsl +3 -1
- data/lib/isodoc/iso/presentation_terms.rb +15 -2
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 743661292939ee8527d318189cc5078605b168f5320358d7648b10c9c730fda4
|
|
4
|
+
data.tar.gz: 648a0397c58c6106979298e2cb7e19b23314ec5bab76b36ece1ba6b8cc5e5649
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ef7060608d4b3459fb57d6cca90612de8fb5f045372aee9c4d1a104f12fab29567c5604f3d0b46c2364814fe6301a1ce9bb0bcf20728c02960c79f650732a53
|
|
7
|
+
data.tar.gz: 87032d0839ea375fef716993c732db6aa15e26716f05de2a739859b1a6425009e6d0dc858502398b3504f86c78305f3d51fdee77ee4e9a1b53c47ca96f1237ea
|
data/Gemfile
CHANGED
|
@@ -2,27 +2,16 @@ source "https://rubygems.org"
|
|
|
2
2
|
|
|
3
3
|
gemspec
|
|
4
4
|
gem "metanorma-mirror", "~> 1.0", github: "metanorma/metanorma-mirror", branch: "main"
|
|
5
|
-
|
|
6
|
-
# names it for resolution (isodoc's range alone is prerelease-blind).
|
|
7
|
-
gem "relaton", "~> 3.0.0.pre.alpha"
|
|
5
|
+
gem "relaton", "~> 3.0"
|
|
8
6
|
|
|
9
7
|
gem "canon"
|
|
10
|
-
|
|
11
|
-
# that the relaton 3 prerelease chain co-resolves with; the released
|
|
12
|
-
# 3.7.3 still pins ~> 1.3.0 and conflicts. Revert to the gem once an
|
|
13
|
-
# isodoc release carries #846.
|
|
14
|
-
gem "isodoc", github: "metanorma/isodoc", branch: "main"
|
|
8
|
+
gem "isodoc", "~> 3.7.4.pre.alpha" # carries the relaton-render range #846
|
|
15
9
|
# plugin-lutaml main carries LutamlDataPreprocessor (registered by
|
|
16
10
|
# standoc main's converter); released 0.7.53 does not define it yet.
|
|
17
11
|
gem "metanorma-plugin-lutaml", github: "metanorma/metanorma-plugin-lutaml", branch: "main"
|
|
18
|
-
gem "metanorma-utils", "~> 2.0
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# gem does not define Standoc::Document yet. Revert to the gem once a
|
|
22
|
-
# standoc release carries it.
|
|
23
|
-
gem "metanorma-standoc", github: "metanorma/metanorma-standoc", branch: "main"# metanorma-document main carries the relaton-bib 2.2.0.pre allowance;
|
|
24
|
-
# the released 0.5.1 does not yet, so the pin stays until that release.
|
|
25
|
-
gem "metanorma-document", github: "metanorma/metanorma-document", branch: "main"
|
|
12
|
+
gem "metanorma-utils", "~> 2.0" # GcBudget + the array-join table cell buffer
|
|
13
|
+
gem "metanorma-standoc", "~> 3.5.1.pre.alpha" # Standoc::Document split + the pubid-dispatch refs world
|
|
14
|
+
gem "metanorma-document", "~> 0.5.2.pre.alpha" # relaton-bib 2.2.0.pre allowance
|
|
26
15
|
gem "rake"
|
|
27
16
|
# relaton-bib 2.2.0.pre is the pubid-2-native line required by
|
|
28
17
|
# metanorma-document 0.4.0.
|
|
@@ -33,7 +22,7 @@ gem "simplecov"
|
|
|
33
22
|
gem "timecop"
|
|
34
23
|
gem "webmock"
|
|
35
24
|
gem "uniword", path: "../uniword" if File.exist?(File.expand_path("../uniword/Gemfile", __dir__))
|
|
36
|
-
gem "lutaml-model",
|
|
25
|
+
gem "lutaml-model", "~> 0.8"
|
|
37
26
|
# html2doc >= 1.12 is required for correct OMML math handling in Word output
|
|
38
27
|
# (isodoc main also pins ~> 1.12).
|
|
39
28
|
gem "html2doc", "~> 1.12.0"
|
|
@@ -4355,7 +4355,9 @@
|
|
|
4355
4355
|
<xsl:call-template name="getName"/>
|
|
4356
4356
|
</xsl:variable>
|
|
4357
4357
|
<xsl:variable name="variant_title">
|
|
4358
|
-
<xsl:
|
|
4358
|
+
<xsl:if test="not(self::mn:annex)">
|
|
4359
|
+
<xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
|
|
4360
|
+
</xsl:if>
|
|
4359
4361
|
</xsl:variable>
|
|
4360
4362
|
|
|
4361
4363
|
<xsl:variable name="root">
|
|
@@ -4355,7 +4355,9 @@
|
|
|
4355
4355
|
<xsl:call-template name="getName"/>
|
|
4356
4356
|
</xsl:variable>
|
|
4357
4357
|
<xsl:variable name="variant_title">
|
|
4358
|
-
<xsl:
|
|
4358
|
+
<xsl:if test="not(self::mn:annex)">
|
|
4359
|
+
<xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
|
|
4360
|
+
</xsl:if>
|
|
4359
4361
|
</xsl:variable>
|
|
4360
4362
|
|
|
4361
4363
|
<xsl:variable name="root">
|
|
@@ -11,7 +11,7 @@ module IsoDoc
|
|
|
11
11
|
concept_term(docxml)
|
|
12
12
|
(docxml.xpath(ns("//concept")) - docxml.xpath(ns("//term//concept")))
|
|
13
13
|
.each do |node|
|
|
14
|
-
node
|
|
14
|
+
in_concept_container?(node) and
|
|
15
15
|
concept_render(node, ital: "false", ref: "false",
|
|
16
16
|
linkref: "true", linkmention: "false")
|
|
17
17
|
end
|
|
@@ -22,12 +22,25 @@ module IsoDoc
|
|
|
22
22
|
m = {}
|
|
23
23
|
(f.xpath(ns(".//concept")) - f.xpath(ns(".//term//concept")))
|
|
24
24
|
.each do |c|
|
|
25
|
-
c
|
|
25
|
+
in_concept_container?(c) and
|
|
26
26
|
concept_term1(c, m)
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
# Node#ancestors(selector) runs an XPath match per ancestor; with
|
|
32
|
+
# this called per concept on deeply nested terms it is quadratic on
|
|
33
|
+
# large vocabularies. Walk parents directly instead.
|
|
34
|
+
def in_concept_container?(node)
|
|
35
|
+
parent = node.parent
|
|
36
|
+
while parent.is_a?(Nokogiri::XML::Element)
|
|
37
|
+
return true if %w[definition source related].include?(parent.name)
|
|
38
|
+
|
|
39
|
+
parent = parent.parent
|
|
40
|
+
end
|
|
41
|
+
false
|
|
42
|
+
end
|
|
43
|
+
|
|
31
44
|
def concept_term1(node, seen)
|
|
32
45
|
term = to_xml(node.at(ns("./refterm")))
|
|
33
46
|
if term && seen[term]
|
data/metanorma-iso.gemspec
CHANGED
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
|
|
|
35
35
|
spec.add_dependency "metanorma-document", "~> 0.5.0"
|
|
36
36
|
spec.add_dependency "metanorma-standoc", ">= 3.4.2" # relaxed until standoc#1232 releases
|
|
37
37
|
spec.add_dependency "mnconvert", "~> 1.14"
|
|
38
|
-
spec.add_dependency "pubid", "~> 2.0
|
|
38
|
+
spec.add_dependency "pubid", "~> 2.0"
|
|
39
39
|
spec.add_dependency "sts", ">= 0.5.6" # relaxed until glossarist supports 0.6
|
|
40
40
|
spec.add_dependency "tokenizer", "~> 0.3.0"
|
|
41
41
|
spec.add_dependency "uniword", "~> 1.0"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-iso
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.5.1.pre.alpha.
|
|
4
|
+
version: 3.5.1.pre.alpha.4
|
|
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-10-
|
|
11
|
+
date: 2026-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-document
|
|
@@ -58,14 +58,14 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 2.0
|
|
61
|
+
version: '2.0'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 2.0
|
|
68
|
+
version: '2.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: sts
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|