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 +4 -4
- data/lib/isodoc/itu/base_convert.rb +2 -22
- data/lib/isodoc/itu/cleanup.rb +1 -1
- data/lib/isodoc/itu/itu.implementers-guide.xsl +299 -78
- data/lib/isodoc/itu/itu.in-force.xsl +299 -78
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +299 -78
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +299 -78
- data/lib/isodoc/itu/itu.recommendation.xsl +299 -78
- data/lib/isodoc/itu/itu.resolution.xsl +299 -78
- data/lib/isodoc/itu/itu.service-publication.xsl +299 -78
- data/lib/isodoc/itu/itu.technical-paper.xsl +299 -78
- data/lib/isodoc/itu/itu.technical-report.xsl +299 -78
- data/lib/isodoc/itu/presentation_ref.rb +29 -2
- data/lib/isodoc/itu/presentation_xml_convert.rb +57 -19
- data/lib/isodoc/itu/ref.rb +4 -32
- data/lib/isodoc/itu/terms.rb +1 -14
- data/lib/isodoc/itu/word_cleanup.rb +2 -2
- data/lib/isodoc/itu/word_convert.rb +1 -1
- data/lib/isodoc/itu/xref.rb +0 -6
- data/lib/isodoc/itu/xref_section.rb +3 -3
- data/lib/metanorma/itu/cleanup.rb +0 -16
- data/lib/metanorma/itu/front.rb +1 -18
- data/lib/metanorma/itu/isodoc.rng +1 -1
- data/lib/metanorma/itu/version.rb +1 -1
- data/lib/nokogiri/xml.rb +10 -0
- data/metanorma-itu.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8909beb4719bf31b9c0b76ddb06988f67e91dd0a5e7c49ca14017f9de203c9c9
|
4
|
+
data.tar.gz: 70a5bbf71297beb02ae879a0fadf2abef6969c0c612132c9840fbdbac2b4158f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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(
|
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
|
data/lib/isodoc/itu/cleanup.rb
CHANGED
@@ -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.
|
28
|
+
d.add_first_child "<b>#{h2.children.to_xml}</b> "
|
29
29
|
d["id"] = h2["id"]
|
30
30
|
h2.remove
|
31
31
|
end
|