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 +4 -4
- data/lib/isodoc/ieee/base_convert.rb +13 -30
- data/lib/isodoc/ieee/html/word_ieee_colophon_wp.html +2 -2
- data/lib/isodoc/ieee/i18n-en.yaml +1 -1
- data/lib/isodoc/ieee/ieee.amendment.xsl +1579 -1077
- data/lib/isodoc/ieee/ieee.standard.xsl +1579 -1077
- data/lib/isodoc/ieee/presentation_ref.rb +14 -0
- data/lib/isodoc/ieee/presentation_terms.rb +19 -5
- data/lib/isodoc/ieee/presentation_xml_convert.rb +31 -14
- data/lib/isodoc/ieee/word_authority.rb +6 -6
- data/lib/isodoc/ieee/word_cleanup_blocks.rb +0 -17
- data/lib/isodoc/ieee/word_convert.rb +40 -23
- data/lib/isodoc/ieee/word_wp_convert.rb +4 -5
- data/lib/isodoc/ieee/xref.rb +21 -13
- data/lib/metanorma/ieee/biblio.rng +13 -1
- data/lib/metanorma/ieee/cleanup.rb +2 -0
- data/lib/metanorma/ieee/isodoc.rng +6 -6
- data/lib/metanorma/ieee/version.rb +1 -1
- data/metanorma-ieee.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bed94947472e520546144ef97abcf02e8fe7d2892ebc7e6691845223eef19a4
|
4
|
+
data.tar.gz: 5eff3d3949ca61fe5e1cf4bc2585f1f21ad766c70584443b775d9c6e5da9ba28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
38
|
-
|
39
|
-
|
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
|
-
|
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
|
-
"—"
|
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
|
54
|
-
mso-wrap-distance-bottom
|
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
|