metanorma-unece 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/unece/boilerplate.xml +57 -0
- data/lib/asciidoctor/unece/converter.rb +0 -5
- data/lib/isodoc/unece/base_convert.rb +44 -32
- data/lib/isodoc/unece/html/html_unece_intro.html +4 -16
- data/lib/isodoc/unece/html/html_unece_plenary_titlepage.html +4 -37
- data/lib/isodoc/unece/html/html_unece_titlepage.html +4 -37
- data/lib/isodoc/unece/html/htmlstyle.scss +11 -3
- data/lib/isodoc/unece/html/unece.scss +79 -1
- data/lib/isodoc/unece/html/word_unece_intro.html +2 -15
- data/lib/isodoc/unece/html_convert.rb +1 -28
- data/lib/isodoc/unece/pdf_convert.rb +1 -0
- data/lib/isodoc/unece/word_convert.rb +11 -2
- data/lib/metanorma/unece/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b3cff7f43d8c91bd1ff185db5bb3957cd7ef76851894ad2b171d2337ea00a28
|
4
|
+
data.tar.gz: 8f658026cd8011d9a9ec8e87412f53fc42099b133689b8651f755e2b32d12dcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c44286119f5c0b9397d2a6ddb425e11f0a47fdaa94c8f6e4684e7f2d3134332ef35eb4a6cf0d6d709ef1f191c0ab17e9b69ade273b8473d7be1fa24213dcf98
|
7
|
+
data.tar.gz: 2ccb65e2f73701f5ee722740ab23c2a1c8949f3e630f4b56851e94fa9c4b60d13ce7a5f3f716f07852ca6b6885dcbbd71304b93b7d1703b07bba782e13dd77b1
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<boilerplate>
|
2
|
+
<copyright-statement>
|
3
|
+
<clause>
|
4
|
+
<p id="boilerplate-ECEhdr">ECE/TRADE/437</p>
|
5
|
+
<p>Copyright © United Nations {{ docyear }}<br/>
|
6
|
+
All rights reserved worldwide<br/>
|
7
|
+
United Nations publication issued by the Economic Commission for Europe</p>
|
8
|
+
</clause>
|
9
|
+
</copyright-statement>
|
10
|
+
<license-statement>
|
11
|
+
<clause>
|
12
|
+
<p>None of the materials provided on this web site may be used,
|
13
|
+
reproduced or transmitted, in whole or in part, in any form or by any
|
14
|
+
means, electronic or mechanical, including photocopying, recording or
|
15
|
+
the use of any information storage and retrieval system, except as
|
16
|
+
provided for in the Terms and Conditions of Use of United Nations Web
|
17
|
+
Sites, without permission in writing from the publisher.</p>
|
18
|
+
|
19
|
+
<p>News-related material can be used as long as the appropriate credit is given and the United Nations is advised.</p>
|
20
|
+
<p>To request such permission or for further enquires, please visit:
|
21
|
+
<link target="https://shop.un.org/rights-permissions">United Nations Publications: Rights and Permissions.</link></p>
|
22
|
+
</clause>
|
23
|
+
</license-statement>
|
24
|
+
<legal-statement>
|
25
|
+
<clause>
|
26
|
+
<clause>
|
27
|
+
<title>Note</title>
|
28
|
+
<p>The designations employed and the presentation of the material in this publication do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations concerning the legal status of any country, territory, city or area, or of its authorities, or concerning the delimitation of its frontiers or boundaries.</p>
|
29
|
+
</clause>
|
30
|
+
|
31
|
+
{% if tc == "United Nations Centre for Trade Facilitation and Electronic Business (UN/CEFACT)" %}
|
32
|
+
<clause>
|
33
|
+
<title>#{tc}<br/>Simple, Transparent and Effective Processes for Global Commerce</title>
|
34
|
+
<p>UN/CEFACT's mission is to improve the ability of business, trade and administrative organizations, from developed, developing and transitional economies, to exchange products and relevant services effectively. Its principal focus is on facilitating national and international transactions, through the simplification and harmonization of processes, procedures and information flows, and so contribute to the growth of global commerce.</p>
|
35
|
+
<p>Participation in UN/CEFACT is open to experts from United Nations Member States, Intergovernmental Organizations and Non-Governmental Organizations recognised by the United Nations Economic and Social Council (ECOSOC). Through this participation of government and business representatives from around the world, UN/CEFACT has developed a range of trade facilitation and e-business standards, recommendations and tools that are approved within a broad intergovernmental process and implemented globally.</p>
|
36
|
+
<p align="center"><b>www.unece.org/cefact</b></p>
|
37
|
+
</clause>
|
38
|
+
{% endif %}
|
39
|
+
</clause>
|
40
|
+
</legal-statement>
|
41
|
+
<feedback-statement>
|
42
|
+
<clause>
|
43
|
+
<p id="boilerplate-feedback-name">UN Economic Commission for Europe: Information Service</p>
|
44
|
+
<p id="boilerplate-feedback-address">
|
45
|
+
Palais des Nations<br />
|
46
|
+
CH-1211 Geneva 10<br />
|
47
|
+
Switzerland<br />
|
48
|
+
<br />
|
49
|
+
<link target="tel:+41(0)229171234">+41 (0) 22 917 12 34 (switchboard)</link><br />
|
50
|
+
<link target="mailto:unece_info@un.org">unece_info@un.org</link><br />
|
51
|
+
<link target="https://www.unece.org/">www.unece.org/</link>
|
52
|
+
</p>
|
53
|
+
</clause>
|
54
|
+
</feedback-statement>
|
55
|
+
</boilerplate>
|
56
|
+
|
57
|
+
|
@@ -207,11 +207,6 @@ module Asciidoctor
|
|
207
207
|
"subsequence": node.attr("subsequence"),
|
208
208
|
))
|
209
209
|
end
|
210
|
-
|
211
|
-
#def clause_parse(attrs, xml, node)
|
212
|
-
#abstract_parse(attrs, xml, node) && return if node.attr("style") == "abstract"
|
213
|
-
#super
|
214
|
-
#end
|
215
210
|
end
|
216
211
|
end
|
217
212
|
end
|
@@ -9,7 +9,7 @@ module IsoDoc
|
|
9
9
|
@meta = Metadata.new(lang, script, labels)
|
10
10
|
@meta.set(:toc, @toc)
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
def annex_name(annex, name, div)
|
14
14
|
div.h1 **{ class: "Annex" } do |t|
|
15
15
|
t << "#{anchor(annex['id'], :label)}"
|
@@ -59,7 +59,7 @@ module IsoDoc
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
-
def
|
62
|
+
def annex_levelnum(num, lvl)
|
63
63
|
case lvl % 3
|
64
64
|
when 0 then RomanNumerals.to_roman(num)
|
65
65
|
when 1 then ("A".ord + num - 1).chr
|
@@ -67,43 +67,53 @@ module IsoDoc
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
|
70
|
+
NONTERMINAL =
|
71
|
+
"./clause | ./term | ./terms | ./definitions | ./references".freeze
|
72
|
+
|
73
|
+
def leaf_section?(clause)
|
74
|
+
!clause.at(ns(NONTERMINAL)) &&
|
75
|
+
!%w(definitions annex terms).include?(clause.name) &&
|
76
|
+
clause.at(ns("./p | ./bibitem"))
|
77
|
+
end
|
78
|
+
|
79
|
+
def label_leaf_section(clause, lvl)
|
71
80
|
@paranumber += 1
|
72
|
-
@anchors[clause["id"]] = {label: @paranumber.to_s,
|
81
|
+
@anchors[clause["id"]] = {label: @paranumber.to_s,
|
82
|
+
xref: "paragraph #{@paranumber}",
|
83
|
+
level: lvl, type: "paragraph" }
|
73
84
|
end
|
74
85
|
|
75
|
-
def
|
86
|
+
def label_annex_leaf_section(clause, num, lvl)
|
76
87
|
@paranumber += 1
|
77
|
-
@anchors[clause["id"]] = {label: @paranumber.to_s,
|
88
|
+
@anchors[clause["id"]] = {label: @paranumber.to_s,
|
89
|
+
xref: "paragraph #{num}.#{@paranumber}",
|
90
|
+
level: lvl, type: "paragraph" }
|
78
91
|
end
|
79
92
|
|
80
93
|
def section_names(clause, num, lvl)
|
81
94
|
return num if clause.nil?
|
82
|
-
|
83
|
-
leaf_section(clause, lvl) && return
|
95
|
+
leaf_section?(clause) and label_leaf_section(clause, lvl) and return
|
84
96
|
num = num + 1
|
85
97
|
lbl = levelnumber(num, 1)
|
86
|
-
@anchors[clause["id"]] =
|
87
|
-
|
98
|
+
@anchors[clause["id"]] = { label: lbl, level: lvl, type: "clause",
|
99
|
+
xref: l10n("#{@clause_lbl} #{lbl}") }
|
88
100
|
i = 1
|
89
|
-
clause.xpath(ns(
|
101
|
+
clause.xpath(ns(NONTERMINAL)).each do |c|
|
90
102
|
section_names1(c, "#{lbl}.#{levelnumber(i, lvl + 1)}", lvl + 1)
|
91
|
-
i += 1 if c
|
103
|
+
i += 1 if !leaf_section?(c)
|
92
104
|
end
|
93
105
|
num
|
94
106
|
end
|
95
107
|
|
96
108
|
def section_names1(clause, num, level)
|
97
|
-
|
98
|
-
leaf_section(clause, level) and return
|
99
|
-
end
|
109
|
+
leaf_section?(clause) and label_leaf_section(clause, level) and return
|
100
110
|
/\.(?<leafnum>[^.]+$)/ =~ num
|
101
|
-
@anchors[clause["id"]] =
|
102
|
-
|
111
|
+
@anchors[clause["id"]] = { label: leafnum, level: level, type: "clause",
|
112
|
+
xref: l10n("#{@clause_lbl} #{num}") }
|
103
113
|
i = 1
|
104
|
-
clause.xpath(ns(
|
114
|
+
clause.xpath(ns(NONTERMINAL)).each do |c|
|
105
115
|
section_names1(c, "#{num}.#{levelnumber(i, level + 1)}", level + 1)
|
106
|
-
i += 1 if c
|
116
|
+
i += 1 if !leaf_section?(c)
|
107
117
|
end
|
108
118
|
end
|
109
119
|
|
@@ -113,29 +123,28 @@ module IsoDoc
|
|
113
123
|
|
114
124
|
def annex_names(clause, num)
|
115
125
|
hierarchical_asset_names(clause, num)
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
126
|
+
leaf_section?(clause) and
|
127
|
+
label_annex_leaf_section(clause, num, 1) and return
|
128
|
+
@anchors[clause["id"]] = { label: annex_name_lbl(clause, num),
|
129
|
+
type: "clause",
|
120
130
|
xref: "#{@annex_lbl} #{num}", level: 1 }
|
121
131
|
i = 1
|
122
132
|
clause.xpath(ns("./clause")).each do |c|
|
123
|
-
annex_names1(c, "#{num}.#{
|
124
|
-
i += 1 if c
|
133
|
+
annex_names1(c, "#{num}.#{annex_levelnum(i, 2)}", 2)
|
134
|
+
i += 1 if !leaf_section?(c)
|
125
135
|
end
|
126
136
|
end
|
127
137
|
|
128
138
|
def annex_names1(clause, num, level)
|
129
|
-
|
130
|
-
|
131
|
-
end
|
139
|
+
leaf_section?(clause) and
|
140
|
+
label_annex_leaf_section(clause, num, level) and return
|
132
141
|
/\.(?<leafnum>[^.]+$)/ =~ num
|
133
142
|
@anchors[clause["id"]] = { label: leafnum, xref: "#{@annex_lbl} #{num}",
|
134
143
|
level: level, type: "clause" }
|
135
144
|
i = 1
|
136
145
|
clause.xpath(ns("./clause | ./references")).each do |c|
|
137
|
-
annex_names1(c, "#{num}.#{
|
138
|
-
i += 1 if c
|
146
|
+
annex_names1(c, "#{num}.#{annex_levelnum(i, level + 1)}", level + 1)
|
147
|
+
i += 1 if !leaf_section?(c)
|
139
148
|
end
|
140
149
|
end
|
141
150
|
|
@@ -158,7 +167,8 @@ module IsoDoc
|
|
158
167
|
clause.xpath(ns(".//admonition")).each do |t|
|
159
168
|
i += 1 unless t["unnumbered"]
|
160
169
|
next if t["id"].nil? || t["id"].empty?
|
161
|
-
@anchors[t["id"]] = anchor_struct(i.to_s, nil, @admonition_lbl,
|
170
|
+
@anchors[t["id"]] = anchor_struct(i.to_s, nil, @admonition_lbl,
|
171
|
+
"box", t["unnumbered"])
|
162
172
|
end
|
163
173
|
end
|
164
174
|
|
@@ -167,7 +177,9 @@ module IsoDoc
|
|
167
177
|
clause.xpath(ns(".//admonition")).each do |t|
|
168
178
|
i += 1 unless t["unnumbered"]
|
169
179
|
next if t["id"].nil? || t["id"].empty?
|
170
|
-
@anchors[t["id"]] =
|
180
|
+
@anchors[t["id"]] =
|
181
|
+
anchor_struct("#{num}.#{i}", nil, @admonition_lbl, "box",
|
182
|
+
t["unnumbered"])
|
171
183
|
end
|
172
184
|
end
|
173
185
|
|
@@ -1,21 +1,9 @@
|
|
1
|
+
{% if doctype == "Recommendation" %}
|
1
2
|
<div>
|
2
|
-
|
3
|
-
<
|
4
|
-
|
5
|
-
{% if tc == "United Nations Centre for Trade Facilitation and Electronic Business (UN/CEFACT)" %}
|
6
|
-
<p align="center"><b>The United Nations Centre for Trade Facilitation and Electronic Business (UN/CEFACT)</b></p>
|
7
|
-
<p align="center"><b>Simple, Transparent and Effective Processes for Global Commerce</b></p>
|
8
|
-
<p>UN/CEFACT’s mission is to improve the ability of business, trade and administrative organizations, from developed, developing and transitional economies, to exchange products and relevant services effectively. Its principal focus is on facilitating national and international transactions, through the simplification and harmonization of processes, procedures and information flows, and so contribute to the growth of global commerce.</p>
|
9
|
-
<p>Participation in UN/CEFACT is open to experts from United Nations Member States, Intergovernmental Organizations and Non-Governmental Organizations recognised by the United Nations Economic and Social Council (ECOSOC). Through this participation of government and business representatives from around the world, UN/CEFACT has developed a range of trade facilitation and e-business standards, recommendations and tools that are approved within a broad intergovernmental process and implemented globally.</p>
|
10
|
-
<p align="center"<b>www.unece.org/cefact</b></p>
|
11
|
-
{% endif %}
|
12
|
-
|
13
|
-
<p align="center" style="border:solid;">ECE/TRADE/437</p>
|
14
|
-
<p align="center">Copyright © United Nations {{ docyear }}<br/>
|
15
|
-
All rights reserved worldwide<br/>
|
16
|
-
United Nations publication issued by the Economic Commission for Europe</p>
|
17
|
-
|
3
|
+
<div id="boilerplate-legal-destination"/>
|
4
|
+
<div id="boilerplate-copyright-destination"/>
|
18
5
|
</div>
|
6
|
+
{% endif %}
|
19
7
|
|
20
8
|
<nav>
|
21
9
|
<h1 id="content">Contents</h1>
|
@@ -77,51 +77,18 @@
|
|
77
77
|
<div class="coverpage-stage-block" >{{ revdate }}</div>
|
78
78
|
{% endif %}
|
79
79
|
|
80
|
-
{% if unpublished %}
|
81
|
-
<div class="coverpage-warning">
|
82
|
-
<span class="title">Warning for Drafts</span>
|
83
|
-
|
84
|
-
<p class="content">
|
85
|
-
This document is not a UNECE Standard. It is distributed for review and
|
86
|
-
comment, and is subject to change without notice and may not be referred to as
|
87
|
-
a Standard. Recipients of this draft are invited to submit, with their
|
88
|
-
comments, notification of any relevant patent rights of which they are aware
|
89
|
-
and to provide supporting documentation.
|
90
|
-
</p>
|
91
|
-
</div>
|
92
|
-
{% endif %}
|
93
|
-
|
94
80
|
<div class="info-section">
|
95
81
|
<div class="copyright">
|
96
82
|
<p class="year">
|
97
83
|
© {{ docyear }} United Nations.
|
98
84
|
</p>
|
99
85
|
|
100
|
-
<
|
101
|
-
|
102
|
-
|
103
|
-
means, electronic or mechanical, including photocopying, recording or
|
104
|
-
the use of any information storage and retrieval system, except as
|
105
|
-
provided for in the Terms and Conditions of Use of United Nations Web
|
106
|
-
Sites, without permission in writing from the publisher. <br>
|
107
|
-
<br>
|
108
|
-
News-related material can be used as long as the appropriate credit is given and the United Nations is advised.<br>
|
109
|
-
<br>
|
110
|
-
To request such permission or for further enquires, please visit:
|
111
|
-
<a href="https://shop.un.org/rights-permissions">United Nations Publications: Rights and Permissions.</a><br>
|
112
|
-
</p>
|
86
|
+
<div class="message">
|
87
|
+
<div id="boilerplate-license-destination"/>
|
88
|
+
</div>
|
113
89
|
|
114
90
|
<div class="contact-info">
|
115
|
-
<
|
116
|
-
<p class="address">
|
117
|
-
Palais des Nations<br />
|
118
|
-
CH-1211 Geneva 10<br />
|
119
|
-
Switzerland<br />
|
120
|
-
<br />
|
121
|
-
<a href="tel:+41(0)229171234">+41 (0) 22 917 12 34 (switchboard)</a><br />
|
122
|
-
<a href="mailto:unece_info@un.org">unece_info@un.org</a><br />
|
123
|
-
<a href="https://www.unece.org/">www.unece.org/</a>
|
124
|
-
</p>
|
91
|
+
<div id="boilerplate-feedback-destination"/>
|
125
92
|
</div>
|
126
93
|
</div>
|
127
94
|
|
@@ -58,51 +58,18 @@
|
|
58
58
|
<div class="coverpage-stage-block" >{{ revdate }}</div>
|
59
59
|
{% endif %}
|
60
60
|
|
61
|
-
{% if unpublished %}
|
62
|
-
<div class="coverpage-warning">
|
63
|
-
<span class="title">Warning for Drafts</span>
|
64
|
-
|
65
|
-
<p class="content">
|
66
|
-
This document is not a UNECE Standard. It is distributed for review and
|
67
|
-
comment, and is subject to change without notice and may not be referred to as
|
68
|
-
a Standard. Recipients of this draft are invited to submit, with their
|
69
|
-
comments, notification of any relevant patent rights of which they are aware
|
70
|
-
and to provide supporting documentation.
|
71
|
-
</p>
|
72
|
-
</div>
|
73
|
-
{% endif %}
|
74
|
-
|
75
61
|
<div class="info-section">
|
76
62
|
<div class="copyright">
|
77
63
|
<p class="year">
|
78
64
|
© {{ docyear }} United Nations.
|
79
65
|
</p>
|
80
66
|
|
81
|
-
<
|
82
|
-
|
83
|
-
|
84
|
-
means, electronic or mechanical, including photocopying, recording or
|
85
|
-
the use of any information storage and retrieval system, except as
|
86
|
-
provided for in the Terms and Conditions of Use of United Nations Web
|
87
|
-
Sites, without permission in writing from the publisher. <br>
|
88
|
-
<br>
|
89
|
-
News-related material can be used as long as the appropriate credit is given and the United Nations is advised.<br>
|
90
|
-
<br>
|
91
|
-
To request such permission or for further enquires, please visit:
|
92
|
-
<a href="https://shop.un.org/rights-permissions">United Nations Publications: Rights and Permissions.</a><br>
|
93
|
-
</p>
|
67
|
+
<div class="message">
|
68
|
+
<div id="boilerplate-license-destination"/>
|
69
|
+
</div>
|
94
70
|
|
95
71
|
<div class="contact-info">
|
96
|
-
<
|
97
|
-
<p class="address">
|
98
|
-
Palais des Nations<br />
|
99
|
-
CH-1211 Geneva 10<br />
|
100
|
-
Switzerland<br />
|
101
|
-
<br />
|
102
|
-
<a href="tel:+41(0)229171234">+41 (0) 22 917 12 34 (switchboard)</a><br />
|
103
|
-
<a href="mailto:unece_info@un.org">unece_info@un.org</a><br />
|
104
|
-
<a href="https://www.unece.org/">www.unece.org/</a>
|
105
|
-
</p>
|
72
|
+
<div id="boilerplate-feedback-destination"/>
|
106
73
|
</div>
|
107
74
|
</div>
|
108
75
|
|
@@ -819,7 +819,7 @@ a.footnote-number {
|
|
819
819
|
}
|
820
820
|
|
821
821
|
/* http://www.un.org/styleguide/ labels */
|
822
|
-
.contact-info
|
822
|
+
.contact-info #boilerplate-feedback-name {
|
823
823
|
/* font-weight: 700;
|
824
824
|
font-size: 1.2em;
|
825
825
|
margin-bottom:0;*/
|
@@ -834,7 +834,7 @@ a.footnote-number {
|
|
834
834
|
margin-bottom: 9px;
|
835
835
|
}
|
836
836
|
|
837
|
-
.contact-info
|
837
|
+
.contact-info #boilerplate-feedback-address {
|
838
838
|
font-size: 1em;
|
839
839
|
line-height: 1.3em;
|
840
840
|
margin-top:0;
|
@@ -986,13 +986,21 @@ h2 p {
|
|
986
986
|
4.4 Copyright
|
987
987
|
*/
|
988
988
|
|
989
|
-
.copyright {
|
989
|
+
.boilerplate-copyright {
|
990
990
|
padding: 1em;
|
991
991
|
font-size: 0.9em;
|
992
992
|
text-align: left;
|
993
993
|
}
|
994
994
|
|
995
995
|
|
996
|
+
.boilerplate-copyright p {
|
997
|
+
text-align: center;
|
998
|
+
}
|
999
|
+
|
1000
|
+
#boilerplate-ECEhdr {
|
1001
|
+
border: solid;
|
1002
|
+
}
|
1003
|
+
|
996
1004
|
/* .copyright .name, .copyright .address {color: $un-link;} */
|
997
1005
|
|
998
1006
|
|
@@ -268,13 +268,36 @@ p.IntroTitle, li.IntroTitle, div.IntroTitle
|
|
268
268
|
tab-stops:20.15pt;
|
269
269
|
font-size:14.0pt;
|
270
270
|
mso-bidi-font-size:11.0pt;
|
271
|
-
page-break-before:always;
|
272
271
|
font-family:$headerfont;
|
273
272
|
mso-fareast-font-family:$headerfont;
|
274
273
|
mso-bidi-font-family:$headerfont;
|
275
274
|
mso-ansi-language:EN-GB;
|
276
275
|
font-weight:bold;
|
276
|
+
page-break-before:always;
|
277
277
|
mso-bidi-font-weight:normal;}
|
278
|
+
p.TitlePageSubhead, li.TitlePageSubhead, div.TitlePageSubhead {
|
279
|
+
mso-style-noshow:yes;
|
280
|
+
mso-style-unhide:no;
|
281
|
+
mso-style-parent:"Foreword Title";
|
282
|
+
margin-top:0cm;
|
283
|
+
margin-right:0cm;
|
284
|
+
margin-bottom:15.5pt;
|
285
|
+
margin-left:0cm;
|
286
|
+
text-align:center;
|
287
|
+
line-height:15.5pt;
|
288
|
+
mso-pagination:widow-orphan;
|
289
|
+
page-break-after:avoid;
|
290
|
+
mso-hyphenate:none;
|
291
|
+
tab-stops:20.15pt;
|
292
|
+
font-size:14.0pt;
|
293
|
+
mso-bidi-font-size:11.0pt;
|
294
|
+
font-family:$headerfont;
|
295
|
+
mso-fareast-font-family:$headerfont;
|
296
|
+
mso-bidi-font-family:$headerfont;
|
297
|
+
mso-ansi-language:EN-GB;
|
298
|
+
font-weight:bold;
|
299
|
+
mso-bidi-font-weight:normal;
|
300
|
+
}
|
278
301
|
p.Terms, li.Terms, div.Terms
|
279
302
|
{mso-style-name:"Term\(s\)";
|
280
303
|
mso-style-priority:8;
|
@@ -574,6 +597,30 @@ div.WordSection1
|
|
574
597
|
mso-paper-source:0;
|
575
598
|
mso-footnote-numbering-restart:each-section;
|
576
599
|
}
|
600
|
+
@page WordSection2L
|
601
|
+
{size:841.9pt 595.3pt;
|
602
|
+
margin:39.7pt 53.85pt 1.0cm 3.0cm;
|
603
|
+
mso-header-margin:35.45pt;
|
604
|
+
mso-footer-margin:14.2pt;
|
605
|
+
mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
|
606
|
+
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
|
607
|
+
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
|
608
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
|
609
|
+
mso-paper-source:0;
|
610
|
+
mso-footnote-numbering-restart:each-section;
|
611
|
+
}
|
612
|
+
@page WordSection2P
|
613
|
+
{size:595.3pt 841.9pt;
|
614
|
+
margin:39.7pt 53.85pt 1.0cm 3.0cm;
|
615
|
+
mso-header-margin:35.45pt;
|
616
|
+
mso-footer-margin:14.2pt;
|
617
|
+
mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
|
618
|
+
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
|
619
|
+
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
|
620
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
|
621
|
+
mso-paper-source:0;
|
622
|
+
mso-footnote-numbering-restart:each-section;
|
623
|
+
}
|
577
624
|
div.WordSection2
|
578
625
|
{page:WordSection2;}
|
579
626
|
@page WordSection3
|
@@ -589,6 +636,30 @@ div.WordSection2
|
|
589
636
|
mso-paper-source:0;
|
590
637
|
mso-footnote-numbering-restart:each-section;
|
591
638
|
}
|
639
|
+
@page WordSection3L
|
640
|
+
{size:841.9pt 595.3pt;
|
641
|
+
margin:39.7pt 53.85pt 1.0cm 3.0cm;
|
642
|
+
mso-header-margin:35.45pt;
|
643
|
+
mso-footer-margin:14.2pt;
|
644
|
+
mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
|
645
|
+
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
|
646
|
+
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
|
647
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
648
|
+
mso-paper-source:0;
|
649
|
+
mso-footnote-numbering-restart:each-section;
|
650
|
+
}
|
651
|
+
@page WordSection3P
|
652
|
+
{size:595.3pt 841.9pt;
|
653
|
+
margin:39.7pt 53.85pt 1.0cm 3.0cm;
|
654
|
+
mso-header-margin:35.45pt;
|
655
|
+
mso-footer-margin:14.2pt;
|
656
|
+
mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
|
657
|
+
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
|
658
|
+
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
|
659
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
660
|
+
mso-paper-source:0;
|
661
|
+
mso-footnote-numbering-restart:each-section;
|
662
|
+
}
|
592
663
|
div.WordSection3
|
593
664
|
{page:WordSection3;}
|
594
665
|
table.MsoISOTable
|
@@ -721,3 +792,10 @@ table.dl
|
|
721
792
|
margin-bottom:11.0pt;
|
722
793
|
margin-left:20.15pt;}
|
723
794
|
|
795
|
+
.boilerplate-ECEhdr {
|
796
|
+
border: solid;
|
797
|
+
}
|
798
|
+
|
799
|
+
.boilerplate-copyright p {
|
800
|
+
text-align: center;
|
801
|
+
}
|
@@ -1,20 +1,7 @@
|
|
1
1
|
{% if doctype == "Recommendation" %}
|
2
2
|
<div>
|
3
|
-
<
|
4
|
-
<
|
5
|
-
|
6
|
-
{% if tc == "United Nations Centre for Trade Facilitation and Electronic Business (UN/CEFACT)" %}
|
7
|
-
<p align="center"><b>The United Nations Centre for Trade Facilitation and Electronic Business (UN/CEFACT)</b></p>
|
8
|
-
<p align="center"><b>Simple, Transparent and Effective Processes for Global Commerce</b></p>
|
9
|
-
<p>UN/CEFACT’s mission is to improve the ability of business, trade and administrative organizations, from developed, developing and transitional economies, to exchange products and relevant services effectively. Its principal focus is on facilitating national and international transactions, through the simplification and harmonization of processes, procedures and information flows, and so contribute to the growth of global commerce.</p>
|
10
|
-
<p>Participation in UN/CEFACT is open to experts from United Nations Member States, Intergovernmental Organizations and Non-Governmental Organizations recognised by the United Nations Economic and Social Council (ECOSOC). Through this participation of government and business representatives from around the world, UN/CEFACT has developed a range of trade facilitation and e-business standards, recommendations and tools that are approved within a broad intergovernmental process and implemented globally.</p>
|
11
|
-
<p align="center"<b>www.unece.org/cefact</b></p>
|
12
|
-
{% endif %}
|
13
|
-
|
14
|
-
<p align="center" style="border:solid;">ECE/TRADE/437</p>
|
15
|
-
<p align="center">Copyright © United Nations {{ docyear }}<br/>
|
16
|
-
All rights reserved worldwide<br/>
|
17
|
-
United Nations publication issued by the Economic Commission for Europe</p>
|
3
|
+
<div id="boilerplate-legal-destination"/>
|
4
|
+
<div id="boilerplate-copyright-destination"/>
|
18
5
|
|
19
6
|
</div>
|
20
7
|
|
@@ -13,12 +13,6 @@ module IsoDoc
|
|
13
13
|
super
|
14
14
|
end
|
15
15
|
|
16
|
-
#def convert1(docxml, filename, dir)
|
17
|
-
#FileUtils.cp html_doc_path('logo.jpg'), File.join(@localdir, "logo.jpg")
|
18
|
-
#@files_to_delete << File.join(@localdir, "logo.jpg")
|
19
|
-
#super
|
20
|
-
#end
|
21
|
-
|
22
16
|
def default_fonts(options)
|
23
17
|
{
|
24
18
|
bodyfont: (
|
@@ -58,7 +52,6 @@ module IsoDoc
|
|
58
52
|
if plenary && @htmlcoverpage == html_doc_path("html_unece_titlepage.html")
|
59
53
|
@htmlcoverpage = html_doc_path("html_unece_plenary_titlepage.html")
|
60
54
|
end
|
61
|
-
#@htmlintropage = nil if plenary
|
62
55
|
xml.body **body_attr do |body|
|
63
56
|
make_body1(body, docxml)
|
64
57
|
make_body2(body, docxml)
|
@@ -68,6 +61,7 @@ module IsoDoc
|
|
68
61
|
|
69
62
|
def make_body3(body, docxml)
|
70
63
|
body.div **{ class: "main-section" } do |div3|
|
64
|
+
boilerplate docxml, div3
|
71
65
|
abstract docxml, div3
|
72
66
|
foreword docxml, div3
|
73
67
|
introduction docxml, div3
|
@@ -77,27 +71,6 @@ module IsoDoc
|
|
77
71
|
end
|
78
72
|
end
|
79
73
|
|
80
|
-
def html_preface(docxml)
|
81
|
-
super
|
82
|
-
=begin
|
83
|
-
preface_container = docxml.at("//div[@id = 'preface_container']") # recommendation
|
84
|
-
abstractbox = docxml.at("//div[@id = 'abstractbox']") # plenary
|
85
|
-
foreword = docxml.at("//p[@class = 'ForewordTitle']/..")
|
86
|
-
intro = docxml.at("//p[@class = 'IntroTitle']/..")
|
87
|
-
abstract = docxml.at("//h1[@class = 'AbstractTitle']/..")
|
88
|
-
abstract.parent = (abstractbox || preface_container) if abstract
|
89
|
-
docxml.at("//h1[@class = 'AbstractTitle']").remove if abstractbox
|
90
|
-
foreword.parent = preface_container if foreword && preface_container
|
91
|
-
intro.parent = preface_container if intro && preface_container
|
92
|
-
if abstractbox && !intro && !foreword
|
93
|
-
sect2 = docxml.at("//div[@class='WordSection2']")
|
94
|
-
sect2.next_element.remove # pagebreak
|
95
|
-
sect2.remove # pagebreak
|
96
|
-
end
|
97
|
-
=end
|
98
|
-
docxml
|
99
|
-
end
|
100
|
-
|
101
74
|
def middle(isoxml, out)
|
102
75
|
clause isoxml, out
|
103
76
|
annex isoxml, out
|
@@ -67,6 +67,7 @@ module IsoDoc
|
|
67
67
|
def make_body2(body, docxml)
|
68
68
|
body.div **{ class: "WordSection2" } do |div2|
|
69
69
|
info docxml, div2
|
70
|
+
boilerplate docxml, div2
|
70
71
|
abstract docxml, div2
|
71
72
|
foreword docxml, div2
|
72
73
|
introduction docxml, div2
|
@@ -101,8 +102,10 @@ module IsoDoc
|
|
101
102
|
else
|
102
103
|
div.send "h#{anchor(node['id'], :level) || '1'}" do |h|
|
103
104
|
lbl = anchor(node['id'], :label, false)
|
104
|
-
|
105
|
-
|
105
|
+
if lbl && !@suppressheadingnumbers
|
106
|
+
h << "#{lbl}. "
|
107
|
+
insert_tab(h, 1)
|
108
|
+
end
|
106
109
|
c1&.children&.each { |c2| parse(c2, h) }
|
107
110
|
end
|
108
111
|
end
|
@@ -165,6 +168,12 @@ module IsoDoc
|
|
165
168
|
end
|
166
169
|
end
|
167
170
|
|
171
|
+
def authority_cleanup(docxml)
|
172
|
+
super
|
173
|
+
a = docxml.at("//div[@id = 'boilerplate-ECEhdr']") and a["class"] = "boilerplate-ECEhdr"
|
174
|
+
docxml&.at("//div[@class = 'authority']")&.remove
|
175
|
+
end
|
176
|
+
|
168
177
|
include BaseConvert
|
169
178
|
end
|
170
179
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-unece
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.13
|
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-01-
|
11
|
+
date: 2020-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -274,6 +274,7 @@ files:
|
|
274
274
|
- lib/asciidoctor/unece.rb
|
275
275
|
- lib/asciidoctor/unece/basicdoc.rng
|
276
276
|
- lib/asciidoctor/unece/biblio.rng
|
277
|
+
- lib/asciidoctor/unece/boilerplate.xml
|
277
278
|
- lib/asciidoctor/unece/converter.rb
|
278
279
|
- lib/asciidoctor/unece/isodoc.rng
|
279
280
|
- lib/asciidoctor/unece/reqt.rng
|