metanorma-iec 2.2.8 → 2.2.10

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: 18f6bc14680c197555785231faaa0869ab871b4512a7ccbd70b777496a6bba0e
4
- data.tar.gz: 67a8eec620949d8ab8cf051ed565c841062dc65257abaccb641cd5b4f6cf4926
3
+ metadata.gz: 62538b194115d8110ff19c678faa2ca81d31ec0c3c01f4f37d73525aaa8f6080
4
+ data.tar.gz: d4aef599c46d1f75868b047f9c9011892f9a4faae97f8045b5e8faab4c640ef2
5
5
  SHA512:
6
- metadata.gz: e07e419fb0656fff285c3026ff77faff0e0bca0f26f18a8666ac748f651fec0dd140cce944e10a20b9c3929988c27ae8740e456ece5774d66bba658c1564e6c4
7
- data.tar.gz: 7438d74061aa138779b8d307379dc88dedbf6fa0de91fec335e7dcd54409ae7e7d9ff177b172940ea46072e81491c2ae81f2fe20856e550fb12a2636a5f7e31c
6
+ metadata.gz: ddbbff3240bec3f5f8b584c3e6442a52c702d04445079833c7f5ff698b764bae82ab64edb78e425df7aeef82167458fab177c956d8527add1ba7046fb40f765c
7
+ data.tar.gz: de52dc41380bbe7585d0ecb4297030753256b08972e59acdfb6ae6b317189af3d88d231978abb165be8336ad29606a0010930ce95479122dca6069116cebee42
@@ -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