metanorma-ieee 1.3.2 → 1.3.4
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 +0 -25
- data/lib/isodoc/ieee/ieee.amendment.xsl +251 -55
- data/lib/isodoc/ieee/ieee.standard.xsl +251 -55
- data/lib/isodoc/ieee/presentation_ref.rb +14 -0
- data/lib/isodoc/ieee/presentation_terms.rb +18 -3
- data/lib/isodoc/ieee/presentation_xml_convert.rb +12 -9
- data/lib/isodoc/ieee/word_authority.rb +6 -6
- data/lib/isodoc/ieee/word_cleanup_blocks.rb +0 -1
- data/lib/isodoc/ieee/word_convert.rb +0 -1
- data/lib/isodoc/ieee/word_wp_convert.rb +0 -1
- data/lib/metanorma/ieee/isodoc.rng +1 -1
- 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: 64f37a09bcd0a24e2a8d4bef90b31984a8b09ff5df27dc62e56010f72a448e1d
|
4
|
+
data.tar.gz: badb4688f8611ab3f17df678faad8484a9778d83adc6c32bd143bb5e7d859e54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0ee1558421bdc365a7d0dd0e049a70e7c6140e24ffda7809f6e92c2cfbc9693830392a11c24c35fe7d6f3546f1cd77df0ea1f79662b262e77ef49f3be887565
|
7
|
+
data.tar.gz: 46cbd320df62354dade79dbdc7ee2360a2abef040696ebfcc311d510898637655e4973e87b219ce08b0ea55b235d76d6e4f9f24ebd258259a87488361444047a
|
@@ -34,21 +34,11 @@ 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
37
|
def note_p_parse(node, div)
|
47
38
|
name = node&.at(ns("./name"))&.remove
|
48
39
|
div.p do |p|
|
49
40
|
name and p.span class: "note_label" do |s|
|
50
41
|
name.children.each { |n| parse(n, s) }
|
51
|
-
s << note_delim
|
52
42
|
end
|
53
43
|
node.first_element_child.children.each { |n| parse(n, p) }
|
54
44
|
end
|
@@ -60,29 +50,14 @@ module IsoDoc
|
|
60
50
|
name and div.p do |p|
|
61
51
|
p.span class: "note_label" do |s|
|
62
52
|
name.children.each { |n| parse(n, s) }
|
63
|
-
s << note_delim
|
64
53
|
end
|
65
54
|
end
|
66
55
|
node.children.each { |n| parse(n, div) }
|
67
56
|
end
|
68
57
|
|
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
58
|
def example_label(_node, div, name)
|
83
59
|
return if name.nil?
|
84
60
|
|
85
|
-
name << ":"
|
86
61
|
div.p class: "example-title" do |p|
|
87
62
|
name.children.each { |n| parse(n, p) }
|
88
63
|
end
|