metanorma-iso 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module IsoDoc
10
10
  admonition: "Admonition",
11
11
  admonitiontitle: "AdmonitionTitle",
12
12
  sourcetitle: "SourceTitle",
13
- tabletitle: "TableTitle",
13
+ TableTitle: "Tabletitle",
14
14
  titlepagesbhead: "TablePageSubhead",
15
15
  NormRef: "RefNorm",
16
16
  Biblio: "BiblioEntry",
@@ -240,12 +240,13 @@ module IsoDoc
240
240
  end
241
241
  end
242
242
 
243
- def make_FigureWordToC(docxml)
244
- super.sub(/FigureTitle,figuretitle/, "Figure title,Annex Figure Title")
243
+ def table_toc_class
244
+ ["Table title", "Tabletitle", "Annex Table Title", "AnnexTableTitle"] +
245
+ super
245
246
  end
246
247
 
247
- def make_TableWordToC(docxml)
248
- super.sub(/TableTitle,tabletitle/, "Table title,Annex Table Title")
248
+ def figure_toc_class
249
+ ["Figure Title", "Annex Figure Title", "AnnexFigureTitle"] + super
249
250
  end
250
251
  end
251
252
  end
@@ -44,7 +44,7 @@ module IsoDoc
44
44
  end
45
45
 
46
46
  def table_title_attrs(_node)
47
- { class: "Tabletitle", style: "text-align:center;" }
47
+ { class: "TableTitle", style: "text-align:center;" }
48
48
  end
49
49
 
50
50
  def span_parse(node, out)
@@ -1152,7 +1152,7 @@
1152
1152
  <data type="boolean"/>
1153
1153
  </attribute>
1154
1154
  </optional>
1155
- <ref name="BibliographicItem"/>
1155
+ <ref name="ReducedBibliographicItem"/>
1156
1156
  </element>
1157
1157
  </define>
1158
1158
  <define name="image" combine="choice">
@@ -36,10 +36,10 @@ module Metanorma
36
36
  /\b(see| refer to)\s*\Z/mi.match(preceding)
37
37
 
38
38
  (target = root.at("//*[@id = '#{t['target']}']")) || next
39
- if target.at("./ancestor-or-self::*[@obligation = 'normative']")
39
+ target.at("./ancestor-or-self::*[@obligation = 'normative']") &&
40
+ !target.at("./ancestor::sections") and
40
41
  @log.add("Style", t,
41
42
  "'see #{t['target']}' is pointing to a normative section")
42
- end
43
43
  end
44
44
  end
45
45
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "2.2.3".freeze
3
+ VERSION = "2.2.4".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: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-07 00:00:00.000000000 Z
11
+ date: 2022-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc