metanorma-iec 2.5.6 → 2.5.8

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: 78359e2ac02b91e944cc5f6ca43a5f75bb7815bbec9b12095904b7e0b2b03c92
4
- data.tar.gz: 5aafa118815a882f6d6b77d0d92f8a3810973e1823d244edf8d8aa5a46763df6
3
+ metadata.gz: 66fba3763fe9014def32480c7a7a3b48b13359ee0d0aa68e32e6fec0895d997c
4
+ data.tar.gz: a611decb5788c0f8d5cef6a565887f87fad598709b733c709f83b7b4e7edb369
5
5
  SHA512:
6
- metadata.gz: 752e4dd0e8170ac2b9d890df5d3a8703cbf76d63c1598df38381a7118129d51bbc75cf1f2b86d00892f35d92df483ff7030b9dfeb3f148135d5b0af48cb24cb8
7
- data.tar.gz: 056c959058c619cb27330f33a3430ed8b4dcb4ea812381fc4dc9953f088a21b27d85b5a793c09381264082ab292ae1002fa808786df24af3c8c6a4963d39e8ac
6
+ metadata.gz: 888379d6efae9178b3b159223d6a7d3d6168784d9e3f3acc9b28b3a9b4f322d79c944df4980b977a91650db96aa7c09a15db8a02d31d8e12908fac61eb852976
7
+ data.tar.gz: bdcc2276baa7c810f149b3f7e8c6b3df3cdcd41279f5b4adcc2931c43707fd81500b92c650209d919e894f9177ec7ef8aa320b892c698a8057d8c36ae33f5842
@@ -8,46 +8,41 @@ module IsoDoc
8
8
  # processed in foreword instead
9
9
  end
10
10
 
11
- def foreword(sect, out)
12
- out.div **attr_code(id: sect ? sect["id"] : "") do |s|
13
- s.h1(class: "ForewordTitle") { |h1| h1 << @i18n.foreword }
14
- sect&.elements&.each { |e| parse(e, s) unless e.name == "title" }
11
+ def foreword(clause, out)
12
+ out.div **attr_code(id: clause["id"]) do |s|
13
+ clause_name(nil, clause.at(ns("./fmt-title")), s,
14
+ { class: "ForewordTitle" })
15
+ clause.elements.each { |e| parse(e, s) unless e.name == "fmt-title" }
15
16
  end
16
17
  end
17
18
 
18
19
  def bibliography(node, out)
19
- return super unless @is_iev
20
+ @is_iev or return super
20
21
  end
21
22
 
22
23
  def biblio_list(elem, div, biblio)
23
- return super unless @is_iev
24
-
24
+ @is_iev or return super
25
25
  elem.children.each do |b|
26
- parse(b, div) unless %w(title bibitem).include? b.name
26
+ parse(b, div) unless %w(fmt-title bibitem).include? b.name
27
27
  end
28
28
  end
29
29
 
30
30
  def terms_parse(node, out)
31
- return super unless @is_iev
32
-
31
+ @is_iev or return super
33
32
  page_break(out)
34
33
  out.div **attr_code(id: node["id"]) do |div|
35
34
  depth = clause_title_depth(node, nil)
36
35
  out.send "h#{depth}", class: "zzSTDTitle2" do |p|
37
36
  p.b do |b|
38
- node&.at(ns("./title"))&.children&.each { |c2| parse(c2, b) }
37
+ node&.at(ns("./fmt-title"))&.children&.each { |c2| parse(c2, b) }
39
38
  end
40
39
  end
41
- node.children.reject { |c1| c1.name == "title" }.each do |c1|
40
+ node.children.reject { |c1| c1.name == "fmt-title" }.each do |c1|
42
41
  parse(c1, div)
43
42
  end
44
43
  end
45
44
  end
46
45
 
47
- def set_termdomain(termdomain)
48
- return super unless @is_iev
49
- end
50
-
51
46
  def para_class(node)
52
47
  case node["class"]
53
48
  when "zzSTDTitle1", "zzSTDTitle2" then "zzSTDTitle1"