metanorma-itu 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/itu/base_convert.rb +4 -10
- data/lib/isodoc/itu/html/htmlstyle.scss +7 -4
- data/lib/isodoc/itu/word_convert.rb +7 -5
- data/lib/metanorma/itu/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: 769b5dfa383417d0e825e49c1fdfc4cbf94cf3beae6664059b726f744f0ce644
|
4
|
+
data.tar.gz: 747f979885c03d835f9ebac18dd037e39101182ecb7d419516ea43db44cee2ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '099437ac36008d722c6c6e1838f9a59e11bbff63973446b1c8259260c5785497972d92089708df367dfc3cf90eaa5faf2292f5267d38a125494114374e51e6d2'
|
7
|
+
data.tar.gz: 88a1bca6a28030750b72e438453c8f5aeaaafe8aaff00fef2e616f81b97fd5c7a7218e8f8e4e0a70b48c4226f4c5b99ececcfe4e261f62ea142a04ba43e47b2e
|
@@ -150,16 +150,6 @@ module IsoDoc
|
|
150
150
|
out.p(**{ class: "zzSTDTitle2" }) { |p| p << @meta.get[:doctitle] }
|
151
151
|
end
|
152
152
|
|
153
|
-
def make_table_footnote_target(out, fnid, fnref)
|
154
|
-
attrs = { id: fnid, class: "TableFootnoteRef" }
|
155
|
-
out.span do |s|
|
156
|
-
out.span **attrs do |a|
|
157
|
-
a << fnref + ")"
|
158
|
-
end
|
159
|
-
insert_tab(s, 1)
|
160
|
-
end
|
161
|
-
end
|
162
|
-
|
163
153
|
def add_parse(node, out)
|
164
154
|
out.span **{class: "addition"} do |e|
|
165
155
|
node.children.each { |n| parse(n, e) }
|
@@ -199,6 +189,10 @@ module IsoDoc
|
|
199
189
|
end
|
200
190
|
node.children.each { |n| parse(n, div) }
|
201
191
|
end
|
192
|
+
|
193
|
+
def table_footnote_reference_format(a)
|
194
|
+
a.content = a.content + ")"
|
195
|
+
end
|
202
196
|
end
|
203
197
|
end
|
204
198
|
end
|
@@ -145,13 +145,16 @@ nav {
|
|
145
145
|
font-size: 0.8em;
|
146
146
|
}
|
147
147
|
|
148
|
+
.SourceTitle {
|
149
|
+
@include blockTitle();
|
150
|
+
}
|
148
151
|
|
149
|
-
|
152
|
+
pre {
|
150
153
|
@include sourceBlock(#f6f6f6);
|
151
154
|
font-size: 0.8em;
|
152
155
|
}
|
153
156
|
|
154
|
-
.example
|
157
|
+
.example pre, .example .pseudocode {
|
155
158
|
background: none;
|
156
159
|
margin: 0;
|
157
160
|
padding: 0 0 0 2em;
|
@@ -369,7 +372,7 @@ p.Biblio, p.NormRef {
|
|
369
372
|
margin-left: -1.5em;
|
370
373
|
}
|
371
374
|
|
372
|
-
|
375
|
+
pre, .pseudocode {
|
373
376
|
background: none;
|
374
377
|
margin: 0;
|
375
378
|
padding: 0 0 0 2em;
|
@@ -556,7 +559,7 @@ a.anchorjs-link {
|
|
556
559
|
background-color: white;
|
557
560
|
}
|
558
561
|
|
559
|
-
.note, .figure,
|
562
|
+
.note, .figure, pre, table {
|
560
563
|
page-break-inside: avoid;
|
561
564
|
}
|
562
565
|
|
@@ -84,12 +84,14 @@ module IsoDoc
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def word_title_cleanup(docxml)
|
87
|
-
docxml.xpath("p[@class = '
|
88
|
-
"//h1 | //h2 | //h3 | //h4 | //h5 | //h6 | "\
|
89
|
-
"//p[@class = 'annex_obligation']").each do |h|
|
87
|
+
docxml.xpath("//p[@class = 'annex_obligation']").each do |h|
|
90
88
|
h&.next_element&.name == "p" or next
|
91
89
|
h.next_element["class"] ||= "Normalaftertitle"
|
92
90
|
end
|
91
|
+
docxml.xpath("//p[@class = 'FigureTitle']").each do |h|
|
92
|
+
h&.parent&.next_element&.name == "p" or next
|
93
|
+
h.parent.next_element["class"] ||= "Normalaftertitle"
|
94
|
+
end
|
93
95
|
end
|
94
96
|
|
95
97
|
def word_history_cleanup(docxml)
|
@@ -207,9 +209,9 @@ module IsoDoc
|
|
207
209
|
dest = docxml.at("//div[@id = 'boilerplate-#{t}-destination']")
|
208
210
|
auth = docxml.at("//div[@class = 'boilerplate-#{t}']")
|
209
211
|
next unless auth && dest
|
210
|
-
t == "copyright" and p = auth&.at(".//p
|
212
|
+
t == "copyright" and p = auth&.at(".//p") and
|
211
213
|
p["class"] = "boilerplateHdr"
|
212
|
-
auth&.xpath(".//p[not(@class)
|
214
|
+
auth&.xpath(".//p[not(@class)]")&.each do |p|
|
213
215
|
p["class"] = "boilerplate"
|
214
216
|
end
|
215
217
|
auth << "<p> </p><p> </p><p> </p>" unless t == "copyright"
|
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: 1.0.
|
4
|
+
version: 1.0.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: 2020-
|
11
|
+
date: 2020-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|