metanorma-standoc 2.2.7 → 2.2.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: c59c6e517b305ec3559d4948767575ba032d877714800712e883bc2a0a561e6b
4
- data.tar.gz: eeb0aaf07ac2ea303921b2ed855981b834f9fb8de4e06b708611852fb7465123
3
+ metadata.gz: 243e174494c4a7ce6b3b8ca5d861feb72d045439ce32948b44af9c14f9180981
4
+ data.tar.gz: 40c2d970ccb90fdf19c77cd38d5e9e7c7626fa10c96050a0486a4697c3146624
5
5
  SHA512:
6
- metadata.gz: 7a91ae88a07c545c1c03f0845d94f38db34cc1128d7c7274eb49cbd2dd509ea8ca02da007e1de78b0d91d773c7eec6798206613eacda9e6322ebc3b0ab67f37b
7
- data.tar.gz: 58af55addb78a590e2389dbce06cc29977bda866924c80e042047b85877f9374407dfb5f2b1679b8766bfd12ed0ce9e4fa7a339b88d333099666e5b169afcf09
6
+ metadata.gz: d957db18f3b90d596f69c048fa93c703e45736c23bbaa5787fd5111aaded043fd532a219187a4ff174067a3e456c0bfb48fea4e38d1c4705d6e97754a92ed26b
7
+ data.tar.gz: 7c37929c7115382a789348ee12041496f4fe10847c2aac893cd7f60ac3e0b413d63c5573dfd6dfadf6e58af5c5455bca09ca150fe0262f9e6324b6e064cfdabe
@@ -263,6 +263,12 @@ body {
263
263
  padding-left: 30px; }
264
264
  #toc .h3, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h3 {
265
265
  padding-left: 50px; }
266
+ #toc .h4, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h4 {
267
+ padding-left: 70px; }
268
+ #toc .h5, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h5 {
269
+ padding-left: 90px; }
270
+ #toc .h6, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h6 {
271
+ padding-left: 110px; }
266
272
  #toc .toc-active, #toc li:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
267
273
  background: #C70039;
268
274
  box-shadow: inset -5px 0px 10px -5px #C70039 !important; }
@@ -152,16 +152,16 @@ module Metanorma
152
152
  { volume: "volume", issue: "issue", pages: "page" }.each do |k, v|
153
153
  spans[k]&.each { |s| ret += span_to_extent(s, v) }
154
154
  end
155
- ret
155
+ "<extent>#{ret}</extent>"
156
156
  end
157
157
 
158
158
  def span_to_extent(span, key)
159
159
  values = span.split(/[-–]/)
160
- ret = "<extent type='#{key}'><locality>" \
160
+ ret = "<locality type='#{key}'>" \
161
161
  "<referenceFrom>#{values[0]}</referenceFrom>"
162
162
  values[1] and
163
163
  ret += "<referenceTo>#{values[1]}</referenceTo>"
164
- "#{ret}</locality></extent>"
164
+ "#{ret}</locality>"
165
165
  end
166
166
 
167
167
  def span_to_docid(span, key)
@@ -20,10 +20,11 @@ module Metanorma
20
20
  end
21
21
 
22
22
  def extract_localities(elem)
23
- f = elem.children&.first or return
23
+ elem.children.empty? and return
24
+ f = elem.children.first
24
25
  f.text? or return
25
26
  head = f.remove.text
26
- tail = elem.children&.remove
27
+ tail = elem.children.remove
27
28
  extract_localities1(elem, head)
28
29
  tail and elem << tail
29
30
  end
@@ -76,8 +77,8 @@ module Metanorma
76
77
  elem["citeas"] = ""
77
78
  xref_to_eref1(elem)
78
79
  end
79
- elem.delete("target")
80
- extract_localities(elem) unless elem.children.empty?
80
+ elem.delete("target").delete("style")
81
+ extract_localities(elem)
81
82
  end
82
83
 
83
84
  def xref_to_eref1(elem)
@@ -208,7 +209,7 @@ module Metanorma
208
209
  @log.add("Crossreferences", x,
209
210
  "#{x['bibitemid']} does not have a corresponding anchor " \
210
211
  "ID in the bibliography!")
211
- x.children.empty? or extract_localities(x)
212
+ extract_localities(x)
212
213
  end
213
214
  end
214
215
  end
@@ -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">
@@ -19,7 +19,7 @@ module Metanorma
19
19
  datauriimage: node.attr("data-uri-image") != "false",
20
20
  htmltoclevels: node.attr("htmltoclevels") || node.attr("toclevels"),
21
21
  doctoclevels: node.attr("doctoclevels") || node.attr("toclevels"),
22
- break_up_urls_in_tables: node.attr("break-up-urls-in-tables"),
22
+ breakupurlsintables: node.attr("break-up-urls-in-tables"),
23
23
  suppressasciimathdup: node.attr("suppress-asciimath-dup"),
24
24
  bare: node.attr("bare"),
25
25
  sectionsplit: node.attr("sectionsplit"),
@@ -63,7 +63,7 @@ module Metanorma
63
63
  olstyle: node.attr("olstyle"),
64
64
  htmltoclevels: node.attr("htmltoclevels") || node.attr("toclevels"),
65
65
  doctoclevels: node.attr("doctoclevels") || node.attr("toclevels"),
66
- break_up_urls_in_tables: node.attr("break-up-urls-in-tables"),
66
+ breakupurlsintables: node.attr("break-up-urls-in-tables"),
67
67
  suppressasciimathdup: node.attr("suppress-asciimath-dup"),
68
68
  bare: node.attr("bare"),
69
69
  baseassetpath: node.attr("base-asset-path"),
@@ -19,6 +19,6 @@ module Metanorma
19
19
  end
20
20
 
21
21
  module Standoc
22
- VERSION = "2.2.7".freeze
22
+ VERSION = "2.2.8".freeze
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-standoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.7
4
+ version: 2.2.8
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: asciidoctor