metanorma-ieee 1.3.3 → 1.3.6

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: 63f97a664f710c4f0bd501b3c896983946bebac162e865e6a32fe9b9bc53122e
4
- data.tar.gz: 10c5f1c367b4d585cf1952ea6dac2bb20c28d4be26d3b75002f759c103d0bb28
3
+ metadata.gz: 7bed94947472e520546144ef97abcf02e8fe7d2892ebc7e6691845223eef19a4
4
+ data.tar.gz: 5eff3d3949ca61fe5e1cf4bc2585f1f21ad766c70584443b775d9c6e5da9ba28
5
5
  SHA512:
6
- metadata.gz: a4b271e84518e5b94e18ec56f15593a68cb34dbf28747ccd711122ee4f0d9b30c8f3d4e8ff2d004c3307265a07a435580bd53995486a2e928664ed3b2753847d
7
- data.tar.gz: ee4f212122dfa2a7100b9cb24b07e99056285908c173834ab1b9a9b0c87c404967123a5607ec0f0e7a19d67fc5647f8c6230e7b20849f45e70b615af4ca0d7a5
6
+ metadata.gz: 234d45e36875bcbf19a3823beec80f1d1b93e86a20a43cca597a55e1c84531041c9b2040ec83d94a87b5bcb0428abe3707b59c4db832bfc3744b04cb9150be8c
7
+ data.tar.gz: bc1da6f07b793cf1f7bd11f84b77fd3937c406272fa917000eea081a9a9c3b31db2b4309ea3a7a7917c90ccbb5fd9860d76462f623694eaa1e983e81a877a3a1
@@ -17,9 +17,9 @@ module IsoDoc
17
17
  def scope(node, out, num)
18
18
  out.div **attr_code(id: node["id"]) do |div|
19
19
  num = num + 1
20
- clause_name(node, node&.at(ns("./title")), div, nil)
20
+ clause_name(node, node&.at(ns("./fmt-title")), div, nil)
21
21
  node.elements.each do |e|
22
- parse(e, div) unless e.name == "title"
22
+ parse(e, div) unless e.name == "fmt-title"
23
23
  end
24
24
  end
25
25
  num
@@ -34,59 +34,42 @@ module IsoDoc
34
34
  super.merge(type: node["type"])
35
35
  end
36
36
 
37
- def note_delim
38
- "—"
39
- end
40
-
41
- def omit_docid_prefix(prefix)
42
- prefix == "DOI" and return true
43
- super
44
- end
45
-
46
- def note_p_parse(node, div)
47
- name = node&.at(ns("./name"))&.remove
37
+ #TODO kill
38
+ def note_p_parsex(node, div)
39
+ name = node&.at(ns("./fmt-name"))&.remove
48
40
  div.p do |p|
49
41
  name and p.span class: "note_label" do |s|
50
42
  name.children.each { |n| parse(n, s) }
51
- s << note_delim
52
43
  end
53
44
  node.first_element_child.children.each { |n| parse(n, p) }
54
45
  end
55
46
  node.element_children[1..-1].each { |n| parse(n, div) }
56
47
  end
57
48
 
58
- def note_parse1(node, div)
49
+ #TODO kill
50
+ def note_parse1x(node, div)
59
51
  name = node&.at(ns("./name"))&.remove
60
52
  name and div.p do |p|
61
53
  p.span class: "note_label" do |s|
62
54
  name.children.each { |n| parse(n, s) }
63
- s << note_delim
64
55
  end
65
56
  end
66
57
  node.children.each { |n| parse(n, div) }
67
58
  end
68
59
 
69
- def termnote_delim
70
- "&#x2014;"
71
- end
72
-
73
- def bracket_if_num(num)
74
- return nil if num.nil?
75
-
76
- num = num.text.sub(/^\[/, "").sub(/\]$/, "")
77
- return "[#{num}]" if /^B?\d+$/.match?(num)
78
-
79
- num
80
- end
81
-
82
60
  def example_label(_node, div, name)
83
61
  return if name.nil?
84
62
 
85
- name << ":"
86
63
  div.p class: "example-title" do |p|
87
64
  name.children.each { |n| parse(n, p) }
88
65
  end
89
66
  end
67
+
68
+ def span_parse(node, out)
69
+ node["class"] == "fmt-obligation" and
70
+ node["class"] = "obligation"
71
+ super
72
+ end
90
73
  end
91
74
  end
92
75
  end
@@ -50,8 +50,8 @@ APMAAAA+BQAAAAA=
50
50
  id="Line_x0020_21" o:spid="_x0000_s2050" style='position:absolute;left:0;
51
51
  text-align:left;z-index:-251660800;visibility:visible;mso-wrap-style:square;
52
52
  mso-width-percent:0;mso-height-percent:0;mso-wrap-distance-left:0;
53
- mso-wrap-distance-top:.&#0;mm;mso-wrap-distance-right:0;
54
- mso-wrap-distance-bottom:.&#0;mm;mso-position-horizontal:absolute;
53
+ mso-wrap-distance-top:0;mso-wrap-distance-right:0;
54
+ mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;
55
55
  mso-position-horizontal-relative:page;mso-position-vertical:absolute;
56
56
  mso-position-vertical-relative:text;mso-width-percent:0;mso-height-percent:0;
57
57
  mso-width-relative:page;mso-height-relative:page' from="175.8pt,59.2pt" to="336.9pt,59.2pt"
@@ -7,7 +7,7 @@ termsdefsymbols: Definitions, acronyms and abbreviations
7
7
  termsdefabbrev: Definitions, acronyms and abbreviations
8
8
  formula: Equation
9
9
  inequality: Inequality
10
- termnote: NOTE
10
+ termnote: "<span class='fmt-element-name'>NOTE</span> %"
11
11
  example: Example
12
12
  table_of_contents: Contents
13
13
  viewed: accessed