metanorma-iso 2.8.8 → 2.9.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 +5 -41
- data/lib/isodoc/iso/html/word_iso_intro-dis.html +4 -2
- data/lib/isodoc/iso/html/word_iso_intro.html +4 -1
- data/lib/isodoc/iso/iso.amendment.xsl +271 -57
- data/lib/isodoc/iso/iso.international-standard.xsl +271 -57
- data/lib/isodoc/iso/presentation_bibdata.rb +1 -1
- data/lib/isodoc/iso/presentation_terms.rb +0 -13
- data/lib/isodoc/iso/presentation_xml_convert.rb +29 -20
- data/lib/isodoc/iso/presentation_xref.rb +2 -0
- data/lib/isodoc/iso/sections.rb +1 -1
- data/lib/isodoc/iso/word_cleanup.rb +33 -17
- data/lib/isodoc/iso/xref_section.rb +4 -4
- data/lib/metanorma/iso/boilerplate-fr.adoc +4 -0
- data/lib/metanorma/iso/boilerplate-ru.adoc +3 -0
- data/lib/metanorma/iso/boilerplate.adoc +4 -0
- data/lib/metanorma/iso/front.rb +5 -0
- data/lib/metanorma/iso/front_contributor.rb +1 -3
- data/lib/metanorma/iso/isodoc.rng +1 -1
- data/lib/metanorma/iso/relaton-iso.rng +8 -0
- 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: '0941432979465638a050af9a47a277a037c98bcf7ac8fd8dc6f5cdf55fe0f92b'
|
4
|
+
data.tar.gz: 628a80940efddab2c8659dae8aa140839f1b7eb2e4c662a9757410e0048c3e23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 322cbf882d1fb24c13c8263ce74d2d1d851763df54a2e27dc864657dbce0d47adf08537420aabb89eb3632ed1e476463e583fd9e52117072e0cf88a95fe666e2
|
7
|
+
data.tar.gz: 9eaa31b78ccfa61cb66a3352493dfcf38e36584a3ef960f7782dab497f77bccfdd750bddf2fbe96f23ac34907c530eced9ec30cd8a999eba08e5f07e964acf34
|
@@ -13,11 +13,6 @@ module IsoDoc
|
|
13
13
|
super
|
14
14
|
end
|
15
15
|
|
16
|
-
def implicit_reference(bib)
|
17
|
-
bib.at(ns("./docidentifier"))&.text == "IEV" and return true
|
18
|
-
super
|
19
|
-
end
|
20
|
-
|
21
16
|
# terms not defined in standoc
|
22
17
|
def error_parse(node, out)
|
23
18
|
case node.name
|
@@ -40,7 +35,7 @@ module IsoDoc
|
|
40
35
|
insert_tab(p, 1)
|
41
36
|
node.first_element_child.children.each { |n| parse(n, p) }
|
42
37
|
end
|
43
|
-
node.element_children[1
|
38
|
+
node.element_children[1..].each { |n| parse(n, div) }
|
44
39
|
end
|
45
40
|
|
46
41
|
def example_parse1(node, div)
|
@@ -83,42 +78,18 @@ module IsoDoc
|
|
83
78
|
end
|
84
79
|
end
|
85
80
|
|
86
|
-
def admonition_parse(node, out)
|
87
|
-
type = node["type"]
|
88
|
-
name = admonition_name(node, type)
|
89
|
-
out.div id: node["id"], class: admonition_class(node) do |div|
|
90
|
-
if node.first_element_child.name == "p"
|
91
|
-
admonition_p_parse(node, div, name)
|
92
|
-
else
|
93
|
-
admonition_parse1(node, div, name)
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
81
|
def admonition_class(node)
|
99
82
|
if node["type"] == "editorial" then "zzHelp"
|
100
83
|
else super
|
101
84
|
end
|
102
85
|
end
|
103
86
|
|
104
|
-
def
|
105
|
-
div
|
106
|
-
admonition_name_parse(node, p, name) if name
|
107
|
-
end
|
108
|
-
node.children.each { |n| parse(n, div) unless n.name == "name" }
|
109
|
-
end
|
110
|
-
|
111
|
-
def admonition_p_parse(node, div, name)
|
112
|
-
div.p do |p|
|
113
|
-
admonition_name_parse(node, p, name) if name
|
114
|
-
node.first_element_child.children.each { |n| parse(n, p) }
|
115
|
-
end
|
116
|
-
node.element_children[1..-1].each { |n| parse(n, div) }
|
87
|
+
def admonition_p_parse(node, div)
|
88
|
+
admonition_name_in_first_para(node, div)
|
117
89
|
end
|
118
90
|
|
119
|
-
def
|
120
|
-
|
121
|
-
div << " — "
|
91
|
+
def admonition_name_para_delim(para)
|
92
|
+
para << " "
|
122
93
|
end
|
123
94
|
|
124
95
|
def figure_name_parse(_node, div, name)
|
@@ -154,12 +125,6 @@ module IsoDoc
|
|
154
125
|
super.merge(start: node["start"]).compact
|
155
126
|
end
|
156
127
|
|
157
|
-
def render_identifier(ident)
|
158
|
-
ret = super
|
159
|
-
ret[:sdo] = std_docid_semantic(ret[:sdo])
|
160
|
-
ret
|
161
|
-
end
|
162
|
-
|
163
128
|
def table_parse(node, out)
|
164
129
|
@in_table = true
|
165
130
|
table_title_parse(node, out)
|
@@ -183,7 +148,6 @@ module IsoDoc
|
|
183
148
|
measurement_units(node, out)
|
184
149
|
out.div **figure_attrs(node) do |div|
|
185
150
|
node.children.each do |n|
|
186
|
-
figure_key(out) if n.name == "dl"
|
187
151
|
n.name == "note" && n["type"] == "units" and next
|
188
152
|
parse(n, div) unless n.name == "name"
|
189
153
|
end
|
@@ -1,7 +1,9 @@
|
|
1
1
|
{% if doctype == "Amendment" or doctype == "Technical Corrigendum" %}
|
2
2
|
{% else %}
|
3
3
|
|
4
|
-
<div id="boilerplate-copyright-destination"
|
5
|
-
|
4
|
+
<div id="boilerplate-copyright-destination">
|
5
|
+
<div id="boilerplate-copyright-default-destination"/>
|
6
|
+
<div id="boilerplate-copyright-append-destination"/>
|
7
|
+
</div>
|
6
8
|
|
7
9
|
{% endif %}
|
@@ -1,8 +1,11 @@
|
|
1
|
+
<div id="boilerplate-copyright-destination">
|
1
2
|
<div style='mso-element:para-border-div;border:solid windowtext 1.0pt;
|
2
3
|
border-bottom-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:
|
3
4
|
solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 0cm 4.0pt;
|
4
5
|
margin-left:5.1pt;margin-right:5.1pt'>
|
5
|
-
<div id="boilerplate-copyright-destination"/>
|
6
|
+
<div id="boilerplate-copyright-default-destination"/>
|
7
|
+
</div>
|
8
|
+
<div id="boilerplate-copyright-append-destination"/>
|
6
9
|
</div>
|
7
10
|
|
8
11
|
{% if doctype == "Amendment" or doctype == "Technical Corrigendum" %}
|