metanorma-itu 2.5.5 → 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: a3261c835429196306df6cfaa35a3fecf9648b1449e13290290ae9db79d50a29
4
- data.tar.gz: e5244715d2863c296587a45b7189ccce5f26c0efadcb841593c723b3eb376a95
3
+ metadata.gz: 8909beb4719bf31b9c0b76ddb06988f67e91dd0a5e7c49ca14017f9de203c9c9
4
+ data.tar.gz: 70a5bbf71297beb02ae879a0fadf2abef6969c0c612132c9840fbdbac2b4158f
5
5
  SHA512:
6
- metadata.gz: 8b6b7b3e5f5e8ca6ac9ceb724f3734454d695d9c9810ec41f10afcae9b7be583b35b31a9d6845650fbaec30725a7c0bbfc86bcc43c9c802e5758644303a551ae
7
- data.tar.gz: 36884c6bade781e001e32a614d7d0f6e3d7aaf2fabd625ea398fa631e2f6a963b5ad30d575ef66ec45c86a4638f241c8c12431d25190c8631f4c8e51cca4b388
6
+ metadata.gz: 515dae7b7a649197009f7d37d1c8eeb1f1c13022fdd021a4e5eac5ec3e2bca4dee9adb4502bcc942998783473e86cba96e5d4ac997d93aed0ecbe9037ae846f3
7
+ data.tar.gz: d1fa2804a6a16b6f55e3ea7affcd57d1f0dc728b0c45ee2a3dd74c8817881240b9f27d612157749c96f02f321218aea018ced98b907cac13044a2bd6e0cae993
@@ -37,13 +37,8 @@ module IsoDoc
37
37
  ""
38
38
  end
39
39
 
40
- def note_delim
41
- " – "
42
- end
43
-
44
40
  def para_class(node)
45
- return "supertitle" if node["class"] == "supertitle"
46
-
41
+ node["class"] == "supertitle" and return "supertitle"
47
42
  super
48
43
  end
49
44
 
@@ -59,21 +54,11 @@ module IsoDoc
59
54
  ol_style(type)
60
55
  end
61
56
 
62
- def annex_name(annex, name, div)
57
+ def annex_name(_annex, name, div)
63
58
  r_a = @meta.get[:doctype_original] == "recommendation-annex"
64
59
  div.h1 class: r_a ? "RecommendationAnnex" : "Annex" do |t|
65
60
  name&.children&.each { |c2| parse(c2, t) }
66
61
  end
67
- @meta.get[:doctype_original] == "resolution" or
68
- annex_obligation_subtitle(annex, div)
69
- end
70
-
71
- def annex_obligation_subtitle(annex, div)
72
- info = annex["obligation"] == "informative"
73
- div.p class: "annex_obligation" do |p|
74
- p << (info ? @i18n.inform_annex : @i18n.norm_annex)
75
- .sub("%", @meta.get[:doctype] || "")
76
- end
77
62
  end
78
63
 
79
64
  def annex(node, out)
@@ -102,7 +87,6 @@ module IsoDoc
102
87
  div.p do |p|
103
88
  name and p.span class: "note_label" do |s|
104
89
  name.children.each { |n| parse(n, s) }
105
- s << note_delim
106
90
  end
107
91
  node.first_element_child.children.each { |n| parse(n, p) }
108
92
  end
@@ -119,10 +103,6 @@ module IsoDoc
119
103
  node.children.each { |n| parse(n, div) }
120
104
  end
121
105
 
122
- def table_footnote_reference_format(node)
123
- node.content += ")"
124
- end
125
-
126
106
  def note_parse(node, out)
127
107
  node["type"] == "title-footnote" and return
128
108
  super
@@ -25,7 +25,7 @@ module IsoDoc
25
25
  def term_cleanup1(docxml)
26
26
  docxml.xpath("//p[@class = 'Terms']").each do |d|
27
27
  h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
28
- d.children.first.previous = "<b>#{h2.children.to_xml}</b>&#xa0;"
28
+ d.add_first_child "<b>#{h2.children.to_xml}</b>&#xa0;"
29
29
  d["id"] = h2["id"]
30
30
  h2.remove
31
31
  end