metanorma-un 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/un/base_convert.rb +9 -4
- data/lib/isodoc/un/html_convert.rb +2 -0
- data/lib/isodoc/un/pdf_convert.rb +2 -0
- data/lib/isodoc/un/word_convert.rb +2 -0
- data/lib/metanorma/un/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: 9434eaf6a8d055ea8eb6fd49dbd53948f5421208780084497f9f525368c955d6
|
4
|
+
data.tar.gz: d4a1b4904ae6fdc1c2affeea0d5f459f31538a818277da8932934f7aa0336470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07451413d407acafa990d3c5f08ffc31fe82026f9978916a4c41af6a25428bfa643ec41d7863232b14e813cb6d160b072526d93022ac7119e3b36b9acd56fd4c
|
7
|
+
data.tar.gz: 5d036e3bc7b239cad032250d624dc401a6ff6a138a780fc535b683752254b33fb48e88d782d8949c9b98ae82c81e78fc0f25faf5572ce8c87d3fa2db73bb5f0b
|
@@ -33,10 +33,16 @@ module IsoDoc
|
|
33
33
|
MIDDLE_CLAUSE = "//clause[parent::sections]".freeze
|
34
34
|
|
35
35
|
def initial_anchor_names(d)
|
36
|
-
preface_names(d.at(ns("//abstract")))
|
36
|
+
preface_names(d.at(ns("//preface/abstract")))
|
37
37
|
preface_names(d.at(ns("//foreword")))
|
38
38
|
preface_names(d.at(ns("//introduction")))
|
39
|
-
|
39
|
+
d.xpath(ns("//preface/clause")).each do |c|
|
40
|
+
preface_names(c)
|
41
|
+
end
|
42
|
+
preface_names(d.at(ns("//acknowledgements")))
|
43
|
+
sequential_asset_names(
|
44
|
+
d.xpath(ns("//preface/abstract | //foreword | //introduction | "\
|
45
|
+
"//preface/clause | //acknowledgements")))
|
40
46
|
middle_section_asset_names(d)
|
41
47
|
clause_names(d, 0)
|
42
48
|
termnote_anchor_names(d)
|
@@ -213,13 +219,12 @@ module IsoDoc
|
|
213
219
|
end
|
214
220
|
|
215
221
|
def inline_header_title(out, node, c1)
|
216
|
-
title = c1&.content || ""
|
217
222
|
out.span **{ class: "zzMoveToFollowing" } do |s|
|
218
223
|
if lbl = anchor(node['id'], :label)
|
219
224
|
s << "#{lbl}. " unless @suppressheadingnumbers
|
220
225
|
insert_tab(s, 1)
|
221
226
|
end
|
222
|
-
s
|
227
|
+
c1&.children&.each { |c2| parse(c2, s) }
|
223
228
|
end
|
224
229
|
end
|
225
230
|
end
|
data/lib/metanorma/un/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-un
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
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-02-
|
11
|
+
date: 2020-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|