metanorma-itu 2.6.4 → 2.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/itu/base_convert.rb +0 -36
- data/lib/isodoc/itu/itu.implementers-guide.xsl +204 -35
- data/lib/isodoc/itu/itu.in-force.xsl +204 -35
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +204 -35
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +204 -35
- data/lib/isodoc/itu/itu.recommendation.xsl +204 -35
- data/lib/isodoc/itu/itu.resolution.xsl +204 -35
- data/lib/isodoc/itu/itu.service-publication.xsl +204 -35
- data/lib/isodoc/itu/itu.technical-paper.xsl +204 -35
- data/lib/isodoc/itu/itu.technical-report.xsl +204 -35
- data/lib/isodoc/itu/presentation_section.rb +4 -2
- data/lib/isodoc/itu/presentation_xml_convert.rb +1 -1
- data/lib/metanorma/itu/basicdoc.rng +9 -5
- data/lib/metanorma/itu/boilerplate.adoc +9 -0
- data/lib/metanorma/itu/cleanup.rb +5 -5
- data/lib/metanorma/itu/cleanup_section.rb +7 -7
- data/lib/metanorma/itu/converter.rb +3 -10
- data/lib/metanorma/itu/front_id.rb +1 -1
- data/lib/metanorma/itu/isodoc.rng +147 -5
- data/lib/metanorma/itu/itu.rng +0 -14
- data/lib/metanorma/itu/processor.rb +7 -7
- data/lib/metanorma/itu/validate.rb +2 -3
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dcbbd7572fe2303877767686ec3ee8674c33ce4f4a41155e59174a4085ef241
|
4
|
+
data.tar.gz: fb67c1baeacf801f605650d84f52d8490e60285721c489fcbd894ed8eb41b2c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da628d1d65997bbad001858fcd459eba9f161b8721445860f694a5bb49bdb4c0b5582147c2fb981a7f66be782d97c878c094ce9be1b931ebd01606aaaf79714e
|
7
|
+
data.tar.gz: ad8f591f58f2b3583abe75e1cb8ce9e79de7ad628392ca4fdad0fddfc9af5874537ee9a598cb45dea244b5295f73134a537e672286a3aa75baf9ef5e4b559086
|
@@ -42,19 +42,6 @@ module IsoDoc
|
|
42
42
|
super
|
43
43
|
end
|
44
44
|
|
45
|
-
# KILL
|
46
|
-
def ol_depthx(node)
|
47
|
-
node["class"] == "steps" ||
|
48
|
-
node.at(".//ancestor::xmlns:ol[@class = 'steps']") or return super
|
49
|
-
depth = node.ancestors("ul, ol").size + 1
|
50
|
-
type = :arabic
|
51
|
-
type = :alphabet if [2, 7].include? depth
|
52
|
-
type = :roman if [3, 8].include? depth
|
53
|
-
type = :alphabet_upper if [4, 9].include? depth
|
54
|
-
type = :roman_upper if [5, 10].include? depth
|
55
|
-
ol_style(type)
|
56
|
-
end
|
57
|
-
|
58
45
|
def annex_name(_annex, name, div)
|
59
46
|
r_a = @meta.get[:doctype_original] == "recommendation-annex"
|
60
47
|
div.h1 class: r_a ? "RecommendationAnnex" : "Annex" do |t|
|
@@ -83,29 +70,6 @@ module IsoDoc
|
|
83
70
|
super
|
84
71
|
end
|
85
72
|
|
86
|
-
# TODO kill
|
87
|
-
def note_p_parsex(node, div)
|
88
|
-
name = node.at(ns("./name"))&.remove
|
89
|
-
div.p do |p|
|
90
|
-
name and p.span class: "note_label" do |s|
|
91
|
-
name.children.each { |n| parse(n, s) }
|
92
|
-
end
|
93
|
-
node.first_element_child.children.each { |n| parse(n, p) }
|
94
|
-
end
|
95
|
-
node.element_children[1..-1].each { |n| parse(n, div) }
|
96
|
-
end
|
97
|
-
|
98
|
-
# TODO kill
|
99
|
-
def note_parse1x(node, div)
|
100
|
-
name = node.at(ns("./name"))&.remove
|
101
|
-
div.p do |p|
|
102
|
-
name and p.span class: "note_label" do |s|
|
103
|
-
name.children.each { |n| parse(n, s) }
|
104
|
-
end
|
105
|
-
end
|
106
|
-
node.children.each { |n| parse(n, div) }
|
107
|
-
end
|
108
|
-
|
109
73
|
def note_parse(node, out)
|
110
74
|
node["type"] == "title-footnote" and return
|
111
75
|
super
|