metanorma-iec 2.5.6 → 2.5.8
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 +11 -16
- data/lib/isodoc/iec/iec.international-standard.xsl +691 -175
- data/lib/isodoc/iec/init.rb +2 -3
- data/lib/isodoc/iec/metadata.rb +12 -12
- data/lib/isodoc/iec/presentation_terms.rb +33 -13
- data/lib/isodoc/iec/presentation_xml_convert.rb +14 -11
- data/lib/isodoc/iec/word_convert.rb +3 -4
- data/lib/isodoc/iec/xref.rb +19 -6
- data/lib/metanorma/iec/biblio.rng +13 -1
- data/lib/metanorma/iec/front.rb +0 -1
- data/lib/metanorma/iec/isodoc.rng +6 -6
- data/lib/metanorma/iec/relaton-iec.rng +15 -32
- data/lib/metanorma/iec/version.rb +1 -1
- data/metanorma-iec.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: 66fba3763fe9014def32480c7a7a3b48b13359ee0d0aa68e32e6fec0895d997c
|
4
|
+
data.tar.gz: a611decb5788c0f8d5cef6a565887f87fad598709b733c709f83b7b4e7edb369
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 888379d6efae9178b3b159223d6a7d3d6168784d9e3f3acc9b28b3a9b4f322d79c944df4980b977a91650db96aa7c09a15db8a02d31d8e12908fac61eb852976
|
7
|
+
data.tar.gz: bdcc2276baa7c810f149b3f7e8c6b3df3cdcd41279f5b4adcc2931c43707fd81500b92c650209d919e894f9177ec7ef8aa320b892c698a8057d8c36ae33f5842
|
@@ -8,46 +8,41 @@ module IsoDoc
|
|
8
8
|
# processed in foreword instead
|
9
9
|
end
|
10
10
|
|
11
|
-
def foreword(
|
12
|
-
out.div **attr_code(id:
|
13
|
-
|
14
|
-
|
11
|
+
def foreword(clause, out)
|
12
|
+
out.div **attr_code(id: clause["id"]) do |s|
|
13
|
+
clause_name(nil, clause.at(ns("./fmt-title")), s,
|
14
|
+
{ class: "ForewordTitle" })
|
15
|
+
clause.elements.each { |e| parse(e, s) unless e.name == "fmt-title" }
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
18
19
|
def bibliography(node, out)
|
19
|
-
return super
|
20
|
+
@is_iev or return super
|
20
21
|
end
|
21
22
|
|
22
23
|
def biblio_list(elem, div, biblio)
|
23
|
-
return super
|
24
|
-
|
24
|
+
@is_iev or return super
|
25
25
|
elem.children.each do |b|
|
26
|
-
parse(b, div) unless %w(title bibitem).include? b.name
|
26
|
+
parse(b, div) unless %w(fmt-title bibitem).include? b.name
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
30
|
def terms_parse(node, out)
|
31
|
-
return super
|
32
|
-
|
31
|
+
@is_iev or return super
|
33
32
|
page_break(out)
|
34
33
|
out.div **attr_code(id: node["id"]) do |div|
|
35
34
|
depth = clause_title_depth(node, nil)
|
36
35
|
out.send "h#{depth}", class: "zzSTDTitle2" do |p|
|
37
36
|
p.b do |b|
|
38
|
-
node&.at(ns("./title"))&.children&.each { |c2| parse(c2, b) }
|
37
|
+
node&.at(ns("./fmt-title"))&.children&.each { |c2| parse(c2, b) }
|
39
38
|
end
|
40
39
|
end
|
41
|
-
node.children.reject { |c1| c1.name == "title" }.each do |c1|
|
40
|
+
node.children.reject { |c1| c1.name == "fmt-title" }.each do |c1|
|
42
41
|
parse(c1, div)
|
43
42
|
end
|
44
43
|
end
|
45
44
|
end
|
46
45
|
|
47
|
-
def set_termdomain(termdomain)
|
48
|
-
return super unless @is_iev
|
49
|
-
end
|
50
|
-
|
51
46
|
def para_class(node)
|
52
47
|
case node["class"]
|
53
48
|
when "zzSTDTitle1", "zzSTDTitle2" then "zzSTDTitle1"
|