metanorma-iec 2.2.7 → 2.2.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: 8e1fc48630666c6749ec3bcd326cd1a0da5d5cf961cfd702e0f43f385d256919
4
- data.tar.gz: 370662a054ffa70d325da95ce080bbd9ca05a767ad938a2a42c32d9331bec1a6
3
+ metadata.gz: 582be39d0a34200cdd7f77519d2366e23bfa3c07bb5e9c23ffb5dae558f5796b
4
+ data.tar.gz: c5d650ca2ccab49fd4719ff61f52781fe21f0f530d564412a3b08ac7a747baba
5
5
  SHA512:
6
- metadata.gz: 10fc31cc59820dca344cdb94069b3f90a7037be04c2715144355a753561e466cf00407200f2e25d2bd63fb06051d45a6b5156b44e79fac165e7693a2c867e5ae
7
- data.tar.gz: ae68e356bbe71bd9a02ea06cb9bb6ecc91b146cef7c9d0fa9e8c035a335b24c317ad0165aa7cc39d3235f6a28e25f808447b3d7d883daa17c2b082b84de0b0ec
6
+ metadata.gz: 3c97a5a76d0bfb9986ccb5bdc05d81464dbb807fd4a3cbf717438b92ae774893b9bc27e05fabde23a7461ef042a01a8767a422ed91bd913925ef74d45978fd41
7
+ data.tar.gz: dcd178a0bcc682a0ab14b02bb29b8c031bc75983f5f799786dbfc9a238e842f7678527e39e040f82c284a22bf4ec82a2226cbce0c3d33a0df503b113ec75b064
@@ -8,32 +8,13 @@ module IsoDoc
8
8
  # processed in foreword instead
9
9
  end
10
10
 
11
- def foreword(isoxml, out)
12
- f = isoxml.at(ns("//foreword"))
13
- b = isoxml.at(ns("//boilerplate/legal-statement"))
14
- page_break(out)
15
- iec_orgname(out)
16
- middle_title(isoxml, out)
17
- foreword1(f, b, out)
18
- end
19
-
20
- def foreword1(sect, boilerplate, out)
11
+ def foreword(sect, out)
21
12
  out.div **attr_code(id: sect ? sect["id"] : "") do |s|
22
13
  s.h1(class: "ForewordTitle") { |h1| h1 << @i18n.foreword }
23
- @meta.get[:doctype] == "Amendment" or
24
- s.div **attr_code(class: "boilerplate_legal") do |s1|
25
- boilerplate&.elements&.each { |e| parse(e, s1) }
26
- end
27
14
  sect&.elements&.each { |e| parse(e, s) unless e.name == "title" }
28
15
  end
29
16
  end
30
17
 
31
- def iec_orgname(out)
32
- out.p(class: "zzSTDTitle1") { |p| p << @i18n.get["IEC"] }
33
- out.p(class: "zzSTDTitle1") { |p| p << "____________" }
34
- out.p(class: "zzSTDTitle1") { |p| p << "&#xa0;" }
35
- end
36
-
37
18
  def middle_title(_isoxml, out)
38
19
  title1, title2 = middle_title_parts(out)
39
20
  out.p(class: "zzSTDTitle1") do |p|
@@ -94,6 +75,19 @@ module IsoDoc
94
75
  def set_termdomain(termdomain)
95
76
  return super unless @is_iev
96
77
  end
78
+
79
+ def para_class(node)
80
+ case node["class"]
81
+ when "zzSTDTitle1", "zzSTDTitle2" then "zzSTDTitle1"
82
+ else super
83
+ end
84
+ end
85
+
86
+ def clause_attrs(node)
87
+ ret = super
88
+ node["type"] == "boilerplate_legal" and ret["class"] = "boilerplate_legal"
89
+ ret
90
+ end
97
91
  end
98
92
  end
99
93
  end
@@ -2,7 +2,6 @@
2
2
 
3
3
  <nav>
4
4
 
5
- <h1 id="content">{{ labels["table_of_contents"] }}</h1>
6
5
  <div id="toc"></div>
7
6
 
8
7
  </nav>
@@ -1,3 +0,0 @@
1
- <p class="zzContents" style='margin-top:0cm'><span lang="EN-GB">{{ labels["table_of_contents"] }}</span></p>
2
-
3
- WORDTOC