metanorma-iho 1.4.7 → 1.4.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: 2a0c8836fe444ec765c6b42245525c7c2c80c90446fd1baa6f15f3f1e091727e
4
- data.tar.gz: 628ae6e520fbb9a24ee27f7bf8afa26fcbf3787e1bcabcfa749913490c013785
3
+ metadata.gz: d50fe95ace4c8311cdad3d9087f4d5349cf4c127110be79e7b8c59d8b421928f
4
+ data.tar.gz: 5a78fd2fd551c049d16e2410239101481c24ee0d9d1bd1018db03348acee88f6
5
5
  SHA512:
6
- metadata.gz: b20740508b1bfe4d3490cc002ea8e37a9f4f8bd19bdef518e2bc14173e5f095e3027ea6d74699171a6f5e753a6902993f25d0208a08481dce1d7c9e9b88e7016
7
- data.tar.gz: 12feb28601377b2e7446d2b3015d8020a3ebfe5b514cfa89ca9ca6fbc809c12446b679dff96ccb6da6aea663893bcf90f78a8ac3eb94d866be850b885a0c3655
6
+ metadata.gz: 7e3f06dad6e1cea3bbb13de4343a4744cd6980b0a19dde21db3e46d7bddb6210f9d49d2085f7e752fdee27098c48a792f5fcc0098e19c58ffc89321e7bc53548
7
+ data.tar.gz: 8251f478a30c4d9832bf4d0c8aaac0ebbef273d4f7168c4884391a3a248d128af039f21b37a3862a6da5c89d0ad8b53c02996a6f0df0320c01259fe116c3a0d3
@@ -61,6 +61,17 @@ module IsoDoc
61
61
  # super
62
62
  # end
63
63
 
64
+ # Resolution-style documents (IALA general-assembly resolutions and
65
+ # their kin) transcribe their content as bare blocks directly under
66
+ # <sections>, with no clause wrappers. Give those blocks their
67
+ # displayorder after the modelled sections: the top-level render
68
+ # walk in HTML, Word and PDF presupposes @displayorder on every
69
+ # element, and blocks left unordered are silently dropped from the
70
+ # output.
71
+ UNMODELLED_SECTIONS_XPATH =
72
+ "//sections/*[not(self::clause or self::terms or " \
73
+ "self::definitions or self::references or self::floating-title)]"
74
+
64
75
  def clause_order_main(docxml)
65
76
  if docxml.at(ns("//bibliography//references[@normative = 'true']")) ||
66
77
  docxml.at(ns("//sections/references[@normative = 'true']"))
@@ -69,6 +80,7 @@ module IsoDoc
69
80
  { path: "#{@klass.norm_ref_xpath} | //sections/references" },
70
81
  { path: "//sections/terms | //sections/definitions | " \
71
82
  "//sections/clause[not(@type = 'scope')]", multi: true },
83
+ { path: UNMODELLED_SECTIONS_XPATH, multi: true },
72
84
  ]
73
85
  else
74
86
  [
@@ -77,6 +89,7 @@ module IsoDoc
77
89
  "//bibliography/references[@normative = 'true'] | " \
78
90
  "//bibliography/clause[.//references[@normative = 'true']] | " \
79
91
  "//sections/clause", multi: true },
92
+ { path: UNMODELLED_SECTIONS_XPATH, multi: true },
80
93
  ]
81
94
  end
82
95
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Iho
3
- VERSION = "1.4.7".freeze
3
+ VERSION = "1.4.8".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iho
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.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-19 00:00:00.000000000 Z
11
+ date: 2026-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pubid