metanorma-standoc 2.2.7 → 2.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/html/htmlstyle.css +6 -0
- data/lib/metanorma/standoc/cleanup_biblio.rb +3 -3
- data/lib/metanorma/standoc/cleanup_xref.rb +6 -5
- data/lib/metanorma/standoc/isodoc.rng +1 -1
- data/lib/metanorma/standoc/render.rb +2 -2
- data/lib/metanorma/standoc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 243e174494c4a7ce6b3b8ca5d861feb72d045439ce32948b44af9c14f9180981
|
4
|
+
data.tar.gz: 40c2d970ccb90fdf19c77cd38d5e9e7c7626fa10c96050a0486a4697c3146624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = "<
|
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
|
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
|
-
|
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
|
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)
|
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
|
-
|
212
|
+
extract_localities(x)
|
212
213
|
end
|
213
214
|
end
|
214
215
|
end
|
@@ -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
|
-
|
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
|
-
|
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"),
|
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.
|
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-
|
11
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|