metanorma-iso 3.5.6 → 3.5.7

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: a777848f763e77eabb2bd88a175d42383ab383487a0bc22f73d7430181261590
4
+ data.tar.gz: be3466479bdd0d5b2d6a1f44156f46f37f3cd9bfa6b88fb05ea268fb52aed6ae
5
5
  SHA512:
6
- metadata.gz: c736e50067c394d2ccdb610fa1f7b32708e4e022ea050d3adce1ab856294f79aeeb919180b3b293eebe6728090f1451581cfe5149bd0e444c62b709c663fd86c
7
- data.tar.gz: 03d0c3b85f131bd5a7ecedc0a02b4804ee63d8d56e7c8562213f42d84b6a1bd2d07b4839a320c69edf1389badec38ff131855728bc2548483bd816c39a7a049b
6
+ metadata.gz: e514bae4e7c4369d2e360e817f2feebbc1c459b9837edf16e3ca4bfcca3980e7626a1daa7360b7215d57daef36bae5fbafbbafe211e3a5c33069ae4be56782f4
7
+ data.tar.gz: 8c4ac63ba94ffbe9569ed9699d562ef8044f29435e9584faf5585147f1eedd7b001f136532b826bfd8fe272bf541d06e374599b3d043526cefe53e0905153d92
@@ -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.
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Iso
3
- VERSION = "3.5.6".freeze
3
+ VERSION = "3.5.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.