metanorma-iec 2.2.8 → 2.2.10
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/iec/base_convert.rb +14 -20
- data/lib/isodoc/iec/html/html_iec_intro.html +0 -1
- data/lib/isodoc/iec/html/word_iec_intro.html +0 -3
- data/lib/isodoc/iec/iec.international-standard.xsl +834 -251
- data/lib/isodoc/iec/presentation_xml_convert.rb +59 -11
- data/lib/isodoc/iec/word_convert.rb +21 -17
- data/lib/metanorma/iec/iec.rng +6 -9
- data/lib/metanorma/iec/isodoc.rng +16 -7
- data/lib/metanorma/iec/isostandard.rng +5 -8
- data/lib/metanorma/iec/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: 62538b194115d8110ff19c678faa2ca81d31ec0c3c01f4f37d73525aaa8f6080
|
4
|
+
data.tar.gz: d4aef599c46d1f75868b047f9c9011892f9a4faae97f8045b5e8faab4c640ef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddbbff3240bec3f5f8b584c3e6442a52c702d04445079833c7f5ff698b764bae82ab64edb78e425df7aeef82167458fab177c956d8527add1ba7046fb40f765c
|
7
|
+
data.tar.gz: de52dc41380bbe7585d0ecb4297030753256b08972e59acdfb6ae6b317189af3d88d231978abb165be8336ad29606a0010930ce95479122dca6069116cebee42
|
@@ -8,32 +8,13 @@ module IsoDoc
|
|
8
8
|
# processed in foreword instead
|
9
9
|
end
|
10
10
|
|
11
|
-
def foreword(
|
12
|
-
f = isoxml.at(ns("//foreword"))
|
13
|
-
b = isoxml.at(ns("//boilerplate/legal-statement"))
|
14
|
-
page_break(out)
|
15
|
-
iec_orgname(out)
|
16
|
-
middle_title(isoxml, out)
|
17
|
-
foreword1(f, b, out)
|
18
|
-
end
|
19
|
-
|
20
|
-
def foreword1(sect, boilerplate, out)
|
11
|
+
def foreword(sect, out)
|
21
12
|
out.div **attr_code(id: sect ? sect["id"] : "") do |s|
|
22
13
|
s.h1(class: "ForewordTitle") { |h1| h1 << @i18n.foreword }
|
23
|
-
@meta.get[:doctype] == "Amendment" or
|
24
|
-
s.div **attr_code(class: "boilerplate_legal") do |s1|
|
25
|
-
boilerplate&.elements&.each { |e| parse(e, s1) }
|
26
|
-
end
|
27
14
|
sect&.elements&.each { |e| parse(e, s) unless e.name == "title" }
|
28
15
|
end
|
29
16
|
end
|
30
17
|
|
31
|
-
def iec_orgname(out)
|
32
|
-
out.p(class: "zzSTDTitle1") { |p| p << @i18n.get["IEC"] }
|
33
|
-
out.p(class: "zzSTDTitle1") { |p| p << "____________" }
|
34
|
-
out.p(class: "zzSTDTitle1") { |p| p << " " }
|
35
|
-
end
|
36
|
-
|
37
18
|
def middle_title(_isoxml, out)
|
38
19
|
title1, title2 = middle_title_parts(out)
|
39
20
|
out.p(class: "zzSTDTitle1") do |p|
|
@@ -94,6 +75,19 @@ module IsoDoc
|
|
94
75
|
def set_termdomain(termdomain)
|
95
76
|
return super unless @is_iev
|
96
77
|
end
|
78
|
+
|
79
|
+
def para_class(node)
|
80
|
+
case node["class"]
|
81
|
+
when "zzSTDTitle1", "zzSTDTitle2" then "zzSTDTitle1"
|
82
|
+
else super
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
def clause_attrs(node)
|
87
|
+
ret = super
|
88
|
+
node["type"] == "boilerplate_legal" and ret["class"] = "boilerplate_legal"
|
89
|
+
ret
|
90
|
+
end
|
97
91
|
end
|
98
92
|
end
|
99
93
|
end
|