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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0d3975df160060e9876ded5a77afe98911c0af285cd938276d2b484a8c1315a
4
- data.tar.gz: '069bf630ea252f0604f6c5748a0ddcfcf2d2e02e4e8f7999e11c21066995c46f'
3
+ metadata.gz: 13fff374aafdafa6d161fede1185537264028684bee832b5f7621bf6a123b59b
4
+ data.tar.gz: 0c8aa1357775cd80b6e40d8d2ae741de66138677ef5ea2d01ee694b01fcf37c6
5
5
  SHA512:
6
- metadata.gz: 0fc842448fe0ce51727b09f339f53f2612a9df4eeb843888c33fae0c10b4f5210a4739cbbad02cebad5dd3da97e93b715feb2b701658dcb156c27392ccc7764a
7
- data.tar.gz: d77051bc251a1c98f8c1d8b70deb795c37585e1a556aedcd8a49c5545649b143bc826155bdb3dab90d8eb8ef359e41ac15f283e75e71f2a965a6ef8f9c2182a0
6
+ metadata.gz: bb1e37afcafb4c86209c90ba71886364bf14ee28533524973b38948d578a06766a7385099cded6e71c88fd8ae38ebb7e443ee63a235014c35847da2a0b18fe98
7
+ data.tar.gz: 19b02d8f0fc9ff5f5149d1a35d498ceef5b70e15bd1d4ef88576dba0e4c7cea48d164c7c70060d2ca152746c7cf853870edf8c94f0f29bd36b870eb2f629a9af
@@ -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
-