metanorma-un 0.10.6 → 0.10.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13fff374aafdafa6d161fede1185537264028684bee832b5f7621bf6a123b59b
4
- data.tar.gz: 0c8aa1357775cd80b6e40d8d2ae741de66138677ef5ea2d01ee694b01fcf37c6
3
+ metadata.gz: c7c45854aea4c72619dbb87420deb144e2074c879cc7ade99cf19f2c55d3194f
4
+ data.tar.gz: c20d5555a7ed1cd05878113402842e95281f881807904bd6cdd7fc8642e5f21a
5
5
  SHA512:
6
- metadata.gz: bb1e37afcafb4c86209c90ba71886364bf14ee28533524973b38948d578a06766a7385099cded6e71c88fd8ae38ebb7e443ee63a235014c35847da2a0b18fe98
7
- data.tar.gz: 19b02d8f0fc9ff5f5149d1a35d498ceef5b70e15bd1d4ef88576dba0e4c7cea48d164c7c70060d2ca152746c7cf853870edf8c94f0f29bd36b870eb2f629a9af
6
+ metadata.gz: 4dd0dd4b0b94377c146c5994899dba8da5ea5dd1dd9247d10567c601320b38535917f63ab9cfecdaba3d3170bb568125297d36ee3714fc2f1d032150639b65b3
7
+ data.tar.gz: e232807d3106fff96e09a44bb5ed661637ccfbe180d86ee18dfa07e45fbf1d1252a27b1a50a489740389ce257d6b1642fccc49cea13756c77ff086268427854e
@@ -31,6 +31,11 @@ module IsoDoc
31
31
 
32
32
  false
33
33
  end
34
+
35
+ def convert_i18n_init1(docxml)
36
+ super
37
+ docxml.xpath(ns("//bibdata/language")).size > 1 and @lang = "en"
38
+ end
34
39
  end
35
40
  end
36
41
  end
@@ -6,7 +6,6 @@
6
6
  {% endif %}
7
7
 
8
8
  <nav>
9
- <h1 id="content">{{ labels["table_of_contents"] }}</h1>
10
9
  <div id="toc"></div>
11
10
 
12
11
  </nav>
@@ -8,8 +8,3 @@
8
8
  <div id="preface_container"/>
9
9
  {% endif %}
10
10
 
11
- {% if toc %}
12
- <p class="zzContents" style='margin-top:0cm'><span lang="EN-GB">{{ labels["table_of_contents"] }}</span></p>
13
-
14
- WORDTOC
15
- {% endif %}
@@ -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
- preface_block docxml, div3
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(isoxml, out)
91
- f = isoxml.at(ns("//introduction")) || return
85
+ def introduction(clause, out)
92
86
  page_break(out)
93
- out.div class: "Section3", id: f["id"] do |div|
94
- clause_name(f, f.at(ns("./title")), div, { class: "IntroTitle" })
95
- f.elements.each do |e|
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(isoxml, out)
102
- f = isoxml.at(ns("//foreword")) || return
95
+ def foreword(clause, out)
103
96
  page_break(out)
104
- out.div **attr_code(id: f["id"]) do |s|
105
- clause_name(f, f.at(ns("./title")) || @i18n.foreword, s,
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
- f.elements.each { |e| parse(e, s) unless e.name == "title" }
100
+ clause.elements.each { |e| parse(e, s) unless e.name == "title" }
108
101
  end
109
102
  end
110
103
 
@@ -39,6 +39,11 @@ module IsoDoc
39
39
  prefix_name(elem, "<br/>", lbl, "title")
40
40
  end
41
41
 
42
+ def toc_title(docxml)
43
+ @toc or return
44
+ super
45
+ end
46
+
42
47
  include Init
43
48
  end
44
49
  end