metanorma-iso 2.3.6 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iso/base_convert.rb +1 -15
- data/lib/isodoc/iso/html/style-human.css +4 -0
- data/lib/isodoc/iso/html/style-iso.css +4 -0
- data/lib/isodoc/iso/html_convert.rb +4 -3
- data/lib/isodoc/iso/iso.amendment.xsl +274 -98
- data/lib/isodoc/iso/iso.international-standard.xsl +274 -98
- data/lib/isodoc/iso/presentation_xml_convert.rb +16 -0
- data/lib/isodoc/iso/sections.rb +6 -6
- data/lib/isodoc/iso/word_convert.rb +1 -1
- data/lib/metanorma/iso/cleanup.rb +8 -10
- data/lib/metanorma/iso/isodoc.rng +46 -296
- data/lib/metanorma/iso/isostandard.rng +1 -8
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.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: 933e6aa82c5ca8cef1a5ead9829cb1b754fd96a4ca96e9949bd3159bb314ae63
|
4
|
+
data.tar.gz: f39b54e13cbcd0f15c31808a8d3a94bafbb6d9834e0e6bd7cb73851643b590e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f46dc0381b71de56114fa2749729ee78a9a7c3f02d5a11d9c8ac97cead706d7e96a4ebeda77fc4f05843c44585f9c014447c954e519b34ba4337cf00c6af2f3
|
7
|
+
data.tar.gz: 4564b27b84fe80c5e15c817f3bb8d33daffb0e0fb0fa590983da1abf11c5fc8e97eff593a3ab3191c589c28f1c34fd5cd26818070d202dfc2f4f1ab96ad14ff8
|
@@ -86,20 +86,6 @@ module IsoDoc
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
def formula_where(dlist, out)
|
90
|
-
return if dlist.nil?
|
91
|
-
return super unless dlist.xpath(ns("./dt"))&.size == 1 &&
|
92
|
-
dlist.at(ns("./dd"))&.elements&.size == 1 &&
|
93
|
-
dlist.at(ns("./dd/p"))
|
94
|
-
|
95
|
-
out.span class: "zzMoveToFollowing" do |s|
|
96
|
-
s << "#{@i18n.where} "
|
97
|
-
dlist.at(ns("./dt")).children.each { |n| parse(n, s) }
|
98
|
-
s << " "
|
99
|
-
end
|
100
|
-
parse(dlist.at(ns("./dd/p")), out)
|
101
|
-
end
|
102
|
-
|
103
89
|
def admonition_parse(node, out)
|
104
90
|
type = node["type"]
|
105
91
|
name = admonition_name(node, type)
|
@@ -168,7 +154,7 @@ module IsoDoc
|
|
168
154
|
class: clause.name == "definitions" ? "Symbols" : nil,
|
169
155
|
) do |div|
|
170
156
|
num = num + 1
|
171
|
-
clause_name(
|
157
|
+
clause_name(clause, clause&.at(ns("./title")), div, nil)
|
172
158
|
clause.elements.each do |e|
|
173
159
|
parse(e, div) unless %w{title source}.include? e.name
|
174
160
|
end
|
@@ -61,6 +61,7 @@ module IsoDoc
|
|
61
61
|
content = header.at("./following-sibling::p" \
|
62
62
|
"[@class = 'variant-title-toc']") || header
|
63
63
|
if level == "h1" &&
|
64
|
+
header.parent.name != "main" &&
|
64
65
|
header.parent.at(".//h2#{toc_exclude_class}")
|
65
66
|
<<~HDR
|
66
67
|
<li class="#{level}"><div class="collapse-group"><a href="##{header['id']}">#{header_strip(content)}</a>
|
@@ -83,9 +84,9 @@ module IsoDoc
|
|
83
84
|
def middle(isoxml, out)
|
84
85
|
middle_title(isoxml, out)
|
85
86
|
middle_admonitions(isoxml, out)
|
86
|
-
|
87
|
-
|
88
|
-
clause_etc isoxml, out,
|
87
|
+
scope isoxml, out, 0
|
88
|
+
norm_ref isoxml, out, 0
|
89
|
+
clause_etc isoxml, out, 0
|
89
90
|
annex isoxml, out
|
90
91
|
bibliography isoxml, out
|
91
92
|
indexsect isoxml, out
|