metanorma-itu 2.1.9 → 2.1.10

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: 7f72fef8d6e3a4fcaab329f7c4af6243e9b311c3b7f33fd99c35be35916faac6
4
- data.tar.gz: 5d3d9a69cb643e04e4d65086d20a445fa3cc37af6b214bbbc3e64665a90c16f1
3
+ metadata.gz: ff80a10c49839631d4c76846f353bf8e180ce0ec482a126f63474ecbe091b3ad
4
+ data.tar.gz: e4d8301448368fbd4c9f01a512c8fd7372c88d2adfd34cec55a5e9f33d75c50d
5
5
  SHA512:
6
- metadata.gz: 882e426a2baf071bf46e8e432d41fc8e914d80e6aebbd2dd7b0c000453629d171b8b74ac0f94541b14948ffd16033af282f0a1d0f20cccb1a84049c1055aa315
7
- data.tar.gz: e69929e2e5434ad6a1eb741a067fb3653dae77de44f657b00b5a13d501657455829649cac8d3f889c6645a0ebd3be632354b5a9931a116fa6f9a3b575009a13c
6
+ metadata.gz: cca3ddc45419d73b876c58cc13f1a3fd3328642bb815308125ceb58a5add436483645160f0975e4385567b7f294e59a2b78e306b5bff7be530092d933d05156d
7
+ data.tar.gz: bd00bfced817a40dce7e195d36638c15255bd8f76d5429ac5c105bb00852dbba0320d3b72326990be6f9b74cf91add3356069fc3fcf4e35dbffe24ac7ab00edb
@@ -8865,7 +8865,7 @@
8865
8865
  <!-- ====== -->
8866
8866
  <!-- eref -->
8867
8867
  <!-- ====== -->
8868
- <xsl:template match="*[local-name() = 'eref']">
8868
+ <xsl:template match="*[local-name() = 'eref']" name="eref">
8869
8869
  <xsl:variable name="current_bibitemid" select="@bibitemid"/>
8870
8870
  <!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
8871
8871
  <xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
@@ -8865,7 +8865,7 @@
8865
8865
  <!-- ====== -->
8866
8866
  <!-- eref -->
8867
8867
  <!-- ====== -->
8868
- <xsl:template match="*[local-name() = 'eref']">
8868
+ <xsl:template match="*[local-name() = 'eref']" name="eref">
8869
8869
  <xsl:variable name="current_bibitemid" select="@bibitemid"/>
8870
8870
  <!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
8871
8871
  <xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
@@ -8865,7 +8865,7 @@
8865
8865
  <!-- ====== -->
8866
8866
  <!-- eref -->
8867
8867
  <!-- ====== -->
8868
- <xsl:template match="*[local-name() = 'eref']">
8868
+ <xsl:template match="*[local-name() = 'eref']" name="eref">
8869
8869
  <xsl:variable name="current_bibitemid" select="@bibitemid"/>
8870
8870
  <!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
8871
8871
  <xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
@@ -8865,7 +8865,7 @@
8865
8865
  <!-- ====== -->
8866
8866
  <!-- eref -->
8867
8867
  <!-- ====== -->
8868
- <xsl:template match="*[local-name() = 'eref']">
8868
+ <xsl:template match="*[local-name() = 'eref']" name="eref">
8869
8869
  <xsl:variable name="current_bibitemid" select="@bibitemid"/>
8870
8870
  <!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
8871
8871
  <xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
@@ -8865,7 +8865,7 @@
8865
8865
  <!-- ====== -->
8866
8866
  <!-- eref -->
8867
8867
  <!-- ====== -->
8868
- <xsl:template match="*[local-name() = 'eref']">
8868
+ <xsl:template match="*[local-name() = 'eref']" name="eref">
8869
8869
  <xsl:variable name="current_bibitemid" select="@bibitemid"/>
8870
8870
  <!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
8871
8871
  <xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
@@ -8865,7 +8865,7 @@
8865
8865
  <!-- ====== -->
8866
8866
  <!-- eref -->
8867
8867
  <!-- ====== -->
8868
- <xsl:template match="*[local-name() = 'eref']">
8868
+ <xsl:template match="*[local-name() = 'eref']" name="eref">
8869
8869
  <xsl:variable name="current_bibitemid" select="@bibitemid"/>
8870
8870
  <!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
8871
8871
  <xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
@@ -8865,7 +8865,7 @@
8865
8865
  <!-- ====== -->
8866
8866
  <!-- eref -->
8867
8867
  <!-- ====== -->
8868
- <xsl:template match="*[local-name() = 'eref']">
8868
+ <xsl:template match="*[local-name() = 'eref']" name="eref">
8869
8869
  <xsl:variable name="current_bibitemid" select="@bibitemid"/>
8870
8870
  <!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
8871
8871
  <xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
@@ -8865,7 +8865,7 @@
8865
8865
  <!-- ====== -->
8866
8866
  <!-- eref -->
8867
8867
  <!-- ====== -->
8868
- <xsl:template match="*[local-name() = 'eref']">
8868
+ <xsl:template match="*[local-name() = 'eref']" name="eref">
8869
8869
  <xsl:variable name="current_bibitemid" select="@bibitemid"/>
8870
8870
  <!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
8871
8871
  <xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
@@ -8865,7 +8865,7 @@
8865
8865
  <!-- ====== -->
8866
8866
  <!-- eref -->
8867
8867
  <!-- ====== -->
8868
- <xsl:template match="*[local-name() = 'eref']">
8868
+ <xsl:template match="*[local-name() = 'eref']" name="eref">
8869
8869
  <xsl:variable name="current_bibitemid" select="@bibitemid"/>
8870
8870
  <!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
8871
8871
  <xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
@@ -175,13 +175,12 @@ module IsoDoc
175
175
  end
176
176
 
177
177
  def annex1(elem)
178
- return super unless elem&.at(ns("//bibdata/ext/doctype"))&.text ==
178
+ return super unless elem.at(ns("//bibdata/ext/doctype"))&.text ==
179
179
  "resolution"
180
180
 
181
181
  lbl = @xrefs.anchor(elem["id"], :label)
182
- subhead = (@i18n.l10n("(#{@i18n.get['to']} ") +
183
- elem.at(ns("//bibdata/title[@type = 'resolution']"))
184
- .children.to_xml + @i18n.l10n(")"))
182
+ res = elem.at(ns("//bibdata/title[@type = 'resolution']"))
183
+ subhead = @i18n.l10n("(#{@i18n.get['to']} #{res.children.to_xml})")
185
184
  elem.elements.first.previous =
186
185
  "<p class='supertitle'>#{lbl}<br/>#{subhead}</p>"
187
186
  t = elem.at(ns("./title")) and
@@ -97,21 +97,24 @@ module IsoDoc
97
97
  end
98
98
  end
99
99
 
100
- def sequential_figure_body(subfignum, counter, block)
100
+ def sequential_figure_body(subfignum, counter, block, klass)
101
101
  label = counter.print
102
102
  label &&= label +
103
103
  (subfignum.zero? ? "" : "#{hierfigsep}#{(subfignum + 96).chr}")
104
104
  @anchors[block["id"]] = anchor_struct(
105
- label, nil, @labels["figure"], "figure", block["unnumbered"]
105
+ label, nil, @labels[klass] || klass.capitalize, klass,
106
+ block["unnumbered"]
106
107
  )
107
108
  end
108
109
 
109
- def hierarchical_figure_body(num, subfignum, counter, block)
110
+ def hierarchical_figure_body(num, subfignum, counter, block, klass)
110
111
  label = "#{num}#{hiersep}#{counter.print}" +
111
112
  (subfignum.zero? ? "" : "#{hierfigsep}#{(subfignum + 96).chr}")
112
113
 
113
- @anchors[block["id"]] = anchor_struct(label, nil, @labels["figure"],
114
- "figure", block["unnumbered"])
114
+ @anchors[block["id"]] = anchor_struct(
115
+ label, nil, @labels[klass] || klass.capitalize,
116
+ klass, block["unnumbered"]
117
+ )
115
118
  end
116
119
 
117
120
  def sequential_formula_names(clause)
@@ -205,6 +205,15 @@
205
205
  <data type="boolean"/>
206
206
  </attribute>
207
207
  </optional>
208
+ <optional>
209
+ <attribute name="style">
210
+ <choice>
211
+ <value>basic</value>
212
+ <value>full</value>
213
+ <value>short</value>
214
+ </choice>
215
+ </attribute>
216
+ </optional>
208
217
  <ref name="XrefBody"/>
209
218
  </element>
210
219
  </define>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "2.1.9".freeze
3
+ VERSION = "2.1.10".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.9
4
+ version: 2.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-26 00:00:00.000000000 Z
11
+ date: 2022-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities