metanorma-un 0.10.4 → 0.10.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0d3975df160060e9876ded5a77afe98911c0af285cd938276d2b484a8c1315a
4
- data.tar.gz: '069bf630ea252f0604f6c5748a0ddcfcf2d2e02e4e8f7999e11c21066995c46f'
3
+ metadata.gz: 4c9e42af1a46f414fa008f1ac5884187a3100ee721181f36aa02745b8417f5b7
4
+ data.tar.gz: 9e76d11a8c635570cee7031c255ba07f43cac0ea1cc5749850bfdd8aa8def192
5
5
  SHA512:
6
- metadata.gz: 0fc842448fe0ce51727b09f339f53f2612a9df4eeb843888c33fae0c10b4f5210a4739cbbad02cebad5dd3da97e93b715feb2b701658dcb156c27392ccc7764a
7
- data.tar.gz: d77051bc251a1c98f8c1d8b70deb795c37585e1a556aedcd8a49c5545649b143bc826155bdb3dab90d8eb8ef359e41ac15f283e75e71f2a965a6ef8f9c2182a0
6
+ metadata.gz: 3490d782db4f6cbbb2469fcc30964d03305b2af838e8aeefc16eb3d15ead29d37ad7d17d0f14faa8ab6cee6883ca58b174e62cfc607920b34806162379d0fbe8
7
+ data.tar.gz: a02f9f18408ef70b322840204ddf3c64db71703d0b18c062021835aaaf7351aa204d7ac020263aa2dcad9add6da54053ef4e40b6e5f51df4f4d9a034eed43f52
@@ -124,6 +124,10 @@ a.FootnoteRef + a.FootnoteRef:before {
124
124
  content: ", ";
125
125
  vertical-align: super; }
126
126
 
127
+ a.TableFootnoteRef + a.TableFootnoteRef:before {
128
+ content: ", ";
129
+ vertical-align: super; }
130
+
127
131
  .addition {
128
132
  color: blue; }
129
133
 
@@ -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
- '"Source Han Sans",serif' :
22
- '"Times New Roman", serif'
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
- '"Source Han Sans",sans-serif' :
27
- '"Times New Roman", serif'
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
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet">
47
- <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,700,900" rel="stylesheet">
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 **{ class: "main-section" } do |div3|
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 **{ class: "Section3", id: f["id"] } do |div|
92
- clause_name(nil, f.at(ns("./title")), div, { class: "IntroTitle" })
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(nil, f.at(ns("./title")) || @i18n.foreword, s,
104
- class: "ForewordTitle")
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
-