metanorma-un 0.10.4 → 0.10.6
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/html/htmlstyle.css +4 -0
- data/lib/isodoc/un/html_convert.rb +17 -16
- data/lib/isodoc/un/un.plenary-attachment.xsl +555 -111
- data/lib/isodoc/un/un.plenary.xsl +555 -111
- data/lib/isodoc/un/un.recommendation.xsl +557 -111
- data/lib/metanorma/un/isodoc.rng +46 -296
- 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: 13fff374aafdafa6d161fede1185537264028684bee832b5f7621bf6a123b59b
|
4
|
+
data.tar.gz: 0c8aa1357775cd80b6e40d8d2ae741de66138677ef5ea2d01ee694b01fcf37c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb1e37afcafb4c86209c90ba71886364bf14ee28533524973b38948d578a06766a7385099cded6e71c88fd8ae38ebb7e443ee63a235014c35847da2a0b18fe98
|
7
|
+
data.tar.gz: 19b02d8f0fc9ff5f5149d1a35d498ceef5b70e15bd1d4ef88576dba0e4c7cea48d164c7c70060d2ca152746c7cf853870edf8c94f0f29bd36b870eb2f629a9af
|
@@ -4,7 +4,6 @@ require "isodoc"
|
|
4
4
|
|
5
5
|
module IsoDoc
|
6
6
|
module UN
|
7
|
-
|
8
7
|
# A {Converter} implementation that generates HTML output, and a document
|
9
8
|
# schema encapsulation of the document for validation
|
10
9
|
#
|
@@ -17,14 +16,18 @@ module IsoDoc
|
|
17
16
|
def default_fonts(options)
|
18
17
|
{
|
19
18
|
bodyfont: (
|
20
|
-
options[:script] == "Hans"
|
21
|
-
|
22
|
-
|
19
|
+
if options[:script] == "Hans"
|
20
|
+
'"Source Han Sans",serif'
|
21
|
+
else
|
22
|
+
'"Times New Roman", serif'
|
23
|
+
end
|
23
24
|
),
|
24
25
|
headerfont: (
|
25
|
-
options[:script] == "Hans"
|
26
|
-
|
27
|
-
|
26
|
+
if options[:script] == "Hans"
|
27
|
+
'"Source Han Sans",sans-serif'
|
28
|
+
else
|
29
|
+
'"Times New Roman", serif'
|
30
|
+
end
|
28
31
|
),
|
29
32
|
monospacefont: '"Courier New",monospace',
|
30
33
|
normalfontsize: "15px",
|
@@ -40,11 +43,10 @@ module IsoDoc
|
|
40
43
|
}
|
41
44
|
end
|
42
45
|
|
43
|
-
|
44
46
|
def googlefonts
|
45
47
|
<<~HEAD.freeze
|
46
|
-
|
47
|
-
|
48
|
+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet">
|
49
|
+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,700,900" rel="stylesheet">
|
48
50
|
HEAD
|
49
51
|
end
|
50
52
|
|
@@ -64,7 +66,7 @@ module IsoDoc
|
|
64
66
|
end
|
65
67
|
|
66
68
|
def make_body3(body, docxml)
|
67
|
-
body.div
|
69
|
+
body.div class: "main-section" do |div3|
|
68
70
|
boilerplate docxml, div3
|
69
71
|
preface_block docxml, div3
|
70
72
|
abstract docxml, div3
|
@@ -88,8 +90,8 @@ module IsoDoc
|
|
88
90
|
def introduction(isoxml, out)
|
89
91
|
f = isoxml.at(ns("//introduction")) || return
|
90
92
|
page_break(out)
|
91
|
-
out.div
|
92
|
-
clause_name(
|
93
|
+
out.div class: "Section3", id: f["id"] do |div|
|
94
|
+
clause_name(f, f.at(ns("./title")), div, { class: "IntroTitle" })
|
93
95
|
f.elements.each do |e|
|
94
96
|
parse(e, div) unless e.name == "title"
|
95
97
|
end
|
@@ -100,8 +102,8 @@ module IsoDoc
|
|
100
102
|
f = isoxml.at(ns("//foreword")) || return
|
101
103
|
page_break(out)
|
102
104
|
out.div **attr_code(id: f["id"]) do |s|
|
103
|
-
clause_name(
|
104
|
-
|
105
|
+
clause_name(f, f.at(ns("./title")) || @i18n.foreword, s,
|
106
|
+
class: "ForewordTitle")
|
105
107
|
f.elements.each { |e| parse(e, s) unless e.name == "title" }
|
106
108
|
end
|
107
109
|
end
|
@@ -111,4 +113,3 @@ module IsoDoc
|
|
111
113
|
end
|
112
114
|
end
|
113
115
|
end
|
114
|
-
|