metanorma-un 0.10.7 → 0.10.9

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: 07114d1e32b69ac6b36edb86273058d1e9e7cc66962ca18d710be70c51e8e3f8
4
- data.tar.gz: e48bfe9b62640242b24a609bb8ee7e858e01c9fbcb700647d7597565a8168c26
3
+ metadata.gz: 5d5f21ba4f476f4f4eb4c4ea273724746e9d66a690c8f6ded9bbc8115c2268cf
4
+ data.tar.gz: b4d20e7df2a817f278499fd1d01e685a548364aa82929ef87c23ca32516392f8
5
5
  SHA512:
6
- metadata.gz: afb9c24220d815c2bfddceeb0484768954f120465177d24d6c9abaeac1f0fd155359910c2b4de8b3a56374783f463aa2452504ff1484aebba81a8814160e46c4
7
- data.tar.gz: 31b47dd6d2c2d929eb5c9be33e54d89240ea6ce24cea1a4ac627b9aa16f3284c9971a40796282c079cf03998749837ed5bc5ab39d6a175cc567c16b260b6b1d2
6
+ metadata.gz: b8130bdd72fc907640e55c637bb76620b6f7ead9332698a99e74e39276d6c0ea9e8d11c6165439cd4015c0b3b308b3108afa3bbb9fbe2d3ea2db3bb76b5e64ba
7
+ data.tar.gz: 4550c21f8cc91a6bf7780847efe8c69c60168226f968f0d1b832e06ca9961eeb1b57667915005c44be78e0c352985ca945cd12eea6ad83dd5fb16a25b1adbb59
@@ -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