metanorma-iso 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96ae5df3fec06b5dd2ee0e25e90882631af5e927a53722b00e03d58802909028
4
- data.tar.gz: 98988c4b1651b37f915a31b086d2254bceba3fc8c83a008ccae6e804ac9fc7dd
3
+ metadata.gz: 0e9a97e56ab39bd783469a8bbaea2fee896ed29d60e65b5be523633efe3a9de3
4
+ data.tar.gz: 9ae9da323404361d1fb84516b944822a6544f664b67f708878a5a994ebc9a7c5
5
5
  SHA512:
6
- metadata.gz: c736e50067c394d2ccdb610fa1f7b32708e4e022ea050d3adce1ab856294f79aeeb919180b3b293eebe6728090f1451581cfe5149bd0e444c62b709c663fd86c
7
- data.tar.gz: 03d0c3b85f131bd5a7ecedc0a02b4804ee63d8d56e7c8562213f42d84b6a1bd2d07b4839a320c69edf1389badec38ff131855728bc2548483bd816c39a7a049b
6
+ metadata.gz: b318c2b971c4fb8aff7cf904d1454e6ebd394841d86be650b1dee69f6dac48e51254ee4249638d91f852b6d1e42ed6c7f51388c43514e8b870145cc039f52450
7
+ data.tar.gz: e2b8a94e4c748f6a792049779c9411c2f0d5698e18d40587006514ce25e8f7e1433d403438ea1ec9c899d062c288799889a5d9473e35dc4c945dc66a49570d55
data/Gemfile CHANGED
@@ -1,14 +1,12 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
- gem "metanorma-mirror", "~> 1.0", github: "metanorma/metanorma-mirror", branch: "main"
4
+ gem "metanorma-mirror", "~> 1.0"
5
5
  gem "relaton", "~> 3.0"
6
6
 
7
7
  gem "canon"
8
8
  gem "isodoc", "~> 3.7.9" # carries the relaton-render range #846
9
- # plugin-lutaml main carries LutamlDataPreprocessor (registered by
10
- # standoc main's converter); released 0.7.53 does not define it yet.
11
- gem "metanorma-plugin-lutaml", github: "metanorma/metanorma-plugin-lutaml", branch: "main"
9
+ gem "metanorma-plugin-lutaml", "~> 0.7"
12
10
  gem "metanorma-utils", "~> 2.0" # GcBudget + the array-join table cell buffer
13
11
  gem "metanorma-standoc", "~> 3.5.7" # Standoc::Document split + the pubid-dispatch refs world
14
12
  gem "metanorma-document", "~> 0.5.3" # relaton 3.1 line; relaton-bib retired
@@ -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
- in_concept_container?(node) and
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,19 @@ module IsoDoc
22
22
  m = {}
23
23
  (f.xpath(ns(".//concept")) - f.xpath(ns(".//term//concept")))
24
24
  .each do |c|
25
- in_concept_container?(c) and
25
+ !in_concept_container?(c) and
26
26
  concept_term1(c, m)
27
27
  end
28
28
  end
29
29
  end
30
30
 
31
+ # The concepts the ISO pass renders are the ones OUTSIDE the semantic
32
+ # <definition>/<source>/<related> containers: their display twins under
33
+ # <fmt-definition>, the body text, and the term notes. Concepts inside
34
+ # the semantic containers must be left untouched — their xrefs are not
35
+ # resolved there, and no renderer displays the semantic copy. 81593cc
36
+ # inverted this polarity (metanorma-iso#1692): every visible mention
37
+ # came out empty because the pass rendered only the invisible copy.
31
38
  # Node#ancestors(selector) runs an XPath match per ancestor; with
32
39
  # this called per concept on deeply nested terms it is quadratic on
33
40
  # large vocabularies. Walk parents directly instead.
@@ -165,8 +165,15 @@ module Metanorma
165
165
 
166
166
  def draft_biblio_docid(orig, base_pubid, docid)
167
167
  id = orig.dup
168
- id.typed_stage = nil if id.respond_to?(:typed_stage=)
169
- id.stage = nil if id.respond_to?(:stage=)
168
+ # DIR 2 26.4's stage-less em-dash form ("ISO 17664-1:—") applies to a
169
+ # plain draft's year slot. A supplement draft ("ISO .../DAM 1") keeps
170
+ # its stage: stripping it leaves a bare "/" and an orphan number
171
+ # (metanorma-iso#1696).
172
+ unless id.is_a?(Pubid::Iso::SupplementIdentifier) ||
173
+ id.is_a?(Pubid::Iec::SupplementIdentifier)
174
+ id.typed_stage = nil
175
+ id.stage = nil
176
+ end
170
177
  id.date = Pubid::Components::Date.new(year: 123456789)
171
178
  docid.children = id.to_s.sub("123456789", "—")
172
179
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Iso
3
- VERSION = "3.5.6".freeze
3
+ VERSION = "3.5.8".freeze
4
4
  end
5
5
  end
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.6
4
+ version: 3.5.8
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-06 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: metanorma-document