metanorma-un 0.10.6 → 0.10.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/un/base_convert.rb +5 -0
- data/lib/isodoc/un/html/html_unece_intro.html +0 -1
- data/lib/isodoc/un/html/word_unece_intro.html +0 -5
- data/lib/isodoc/un/html_convert.rb +9 -16
- data/lib/isodoc/un/presentation_xml_convert.rb +5 -0
- data/lib/isodoc/un/un.plenary-attachment.xsl +310 -94
- data/lib/isodoc/un/un.plenary.xsl +310 -94
- data/lib/isodoc/un/un.recommendation.xsl +309 -93
- data/lib/isodoc/un/word_convert.rb +18 -26
- data/lib/metanorma/un/isodoc.rng +41 -14
- data/lib/metanorma/un/un.rng +3 -8
- data/lib/metanorma/un/version.rb +1 -1
- data/metanorma-un.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7c45854aea4c72619dbb87420deb144e2074c879cc7ade99cf19f2c55d3194f
|
4
|
+
data.tar.gz: c20d5555a7ed1cd05878113402842e95281f881807904bd6cdd7fc8642e5f21a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dd0dd4b0b94377c146c5994899dba8da5ea5dd1dd9247d10567c601320b38535917f63ab9cfecdaba3d3170bb568125297d36ee3714fc2f1d032150639b65b3
|
7
|
+
data.tar.gz: e232807d3106fff96e09a44bb5ed661637ccfbe180d86ee18dfa07e45fbf1d1252a27b1a50a489740389ce257d6b1642fccc49cea13756c77ff086268427854e
|
@@ -68,12 +68,7 @@ module IsoDoc
|
|
68
68
|
def make_body3(body, docxml)
|
69
69
|
body.div class: "main-section" do |div3|
|
70
70
|
boilerplate docxml, div3
|
71
|
-
|
72
|
-
abstract docxml, div3
|
73
|
-
foreword docxml, div3
|
74
|
-
introduction docxml, div3
|
75
|
-
preface docxml, div3
|
76
|
-
acknowledgements docxml, div3
|
71
|
+
front docxml, div3
|
77
72
|
middle docxml, div3
|
78
73
|
footnotes div3
|
79
74
|
comments div3
|
@@ -87,24 +82,22 @@ module IsoDoc
|
|
87
82
|
bibliography isoxml, out
|
88
83
|
end
|
89
84
|
|
90
|
-
def introduction(
|
91
|
-
f = isoxml.at(ns("//introduction")) || return
|
85
|
+
def introduction(clause, out)
|
92
86
|
page_break(out)
|
93
|
-
out.div class: "Section3", id:
|
94
|
-
clause_name(
|
95
|
-
|
87
|
+
out.div class: "Section3", id: clause["id"] do |div|
|
88
|
+
clause_name(clause, clause.at(ns("./title")), div, { class: "IntroTitle" })
|
89
|
+
clause.elements.each do |e|
|
96
90
|
parse(e, div) unless e.name == "title"
|
97
91
|
end
|
98
92
|
end
|
99
93
|
end
|
100
94
|
|
101
|
-
def foreword(
|
102
|
-
f = isoxml.at(ns("//foreword")) || return
|
95
|
+
def foreword(clause, out)
|
103
96
|
page_break(out)
|
104
|
-
out.div **attr_code(id:
|
105
|
-
clause_name(
|
97
|
+
out.div **attr_code(id: clause["id"]) do |s|
|
98
|
+
clause_name(clause, clause.at(ns("./title")) || @i18n.foreword, s,
|
106
99
|
class: "ForewordTitle")
|
107
|
-
|
100
|
+
clause.elements.each { |e| parse(e, s) unless e.name == "title" }
|
108
101
|
end
|
109
102
|
end
|
110
103
|
|