metanorma-ogc 2.5.14 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/html/htmlstyle.css +41 -1
- data/lib/isodoc/ogc/html/htmlstyle.scss +1 -1
- data/lib/isodoc/ogc/html/ogc.css +1 -1
- data/lib/isodoc/ogc/html/ogc.scss +1 -1
- data/lib/isodoc/ogc/html_convert.rb +19 -2
- data/lib/isodoc/ogc/i18n-en.yaml +15 -9
- data/lib/isodoc/ogc/metadata.rb +11 -0
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +253 -76
- data/lib/isodoc/ogc/ogc.best-practice.xsl +253 -76
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +253 -76
- data/lib/isodoc/ogc/ogc.community-practice.xsl +253 -76
- data/lib/isodoc/ogc/ogc.community-standard.xsl +253 -76
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +253 -76
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +253 -76
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +253 -76
- data/lib/isodoc/ogc/ogc.other.xsl +253 -76
- data/lib/isodoc/ogc/ogc.policy.xsl +253 -76
- data/lib/isodoc/ogc/ogc.reference-model.xsl +253 -76
- data/lib/isodoc/ogc/ogc.release-notes.xsl +253 -76
- data/lib/isodoc/ogc/ogc.standard.xsl +253 -76
- data/lib/isodoc/ogc/ogc.test-suite.xsl +253 -76
- data/lib/isodoc/ogc/ogc.user-guide.xsl +253 -76
- data/lib/isodoc/ogc/ogc.white-paper.xsl +108 -40
- data/lib/isodoc/ogc/presentation_xml_convert.rb +15 -1
- data/lib/isodoc/ogc/word_convert.rb +1 -1
- data/lib/isodoc/ogc/xref.rb +20 -0
- data/lib/metanorma/ogc/basicdoc.rng +71 -6
- data/lib/metanorma/ogc/biblio.rng +3 -1
- data/lib/metanorma/ogc/cleanup.rb +1 -1
- data/lib/metanorma/ogc/converter.rb +70 -0
- data/lib/metanorma/ogc/isodoc.rng +8 -5
- data/lib/metanorma/ogc/reqt.rng +3 -0
- data/lib/metanorma/ogc/version.rb +1 -1
- data/metanorma-ogc.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: 27c6878e7287b08cb973284d9b5f753f1f5aac697dc983a128c495649b38660d
|
4
|
+
data.tar.gz: 9ed25beb811a9f4a24b08e479581063160a6af5081c9e539043d9a6254b1da33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bb9297e2ea6b848a8f604c6896a280fb6b4f8f81f34ea5b509a9a128fccd3a5552a2c47f3df19b5cd7283fb467558163fd2406843925e3b5fadc8c03898155c
|
7
|
+
data.tar.gz: 81bd653915b2c7f9b70c5748b302aae9074f0d329ffc6894bbc306f1750c48bc696afce2f4c42aa7810472ad40aa408f94fc3b644fa9a8f5d263830de004277d
|
@@ -222,6 +222,46 @@ h6:hover > a.anchor,
|
|
222
222
|
.inline-header:hover > a.anchor {
|
223
223
|
visibility: visible; }
|
224
224
|
|
225
|
+
/* collapsible snippets: collapsible before hidable */
|
226
|
+
.hidable {
|
227
|
+
max-height: 0;
|
228
|
+
overflow: hidden;
|
229
|
+
transition: max-height 0.2s ease-out; }
|
230
|
+
|
231
|
+
.collapsible {
|
232
|
+
background-color: #777;
|
233
|
+
color: white;
|
234
|
+
cursor: pointer;
|
235
|
+
padding: 12px 0;
|
236
|
+
margin: 0;
|
237
|
+
width: 100%;
|
238
|
+
border: none;
|
239
|
+
text-align: left;
|
240
|
+
outline: none;
|
241
|
+
font-size: 15px; }
|
242
|
+
|
243
|
+
.active, .collapsible:hover {
|
244
|
+
background-color: #555; }
|
245
|
+
|
246
|
+
.collapsible:after {
|
247
|
+
content: '\25bc';
|
248
|
+
color: white;
|
249
|
+
font-weight: bold;
|
250
|
+
float: right;
|
251
|
+
margin-left: 12px;
|
252
|
+
margin-right: 12px; }
|
253
|
+
|
254
|
+
.active:after {
|
255
|
+
content: "\25b2"; }
|
256
|
+
|
257
|
+
/* collapsible: */
|
258
|
+
.collapsible + .hidable {
|
259
|
+
margin-top: 0; }
|
260
|
+
|
261
|
+
.collapsible:not(.active) + .hidable {
|
262
|
+
overflow: hidden;
|
263
|
+
padding: 0; }
|
264
|
+
|
225
265
|
#standard-band {
|
226
266
|
background-color: #3D9970; }
|
227
267
|
|
@@ -1037,7 +1077,7 @@ p.AltTerms {
|
|
1037
1077
|
font-size: 24px;
|
1038
1078
|
margin-top: 1em; }
|
1039
1079
|
|
1040
|
-
span.AdmittedLabel {
|
1080
|
+
span.AdmittedLabel, span.DeprecatedLabel {
|
1041
1081
|
color: #00335b;
|
1042
1082
|
background-color: #CFE2F3;
|
1043
1083
|
font-size: 70%;
|
data/lib/isodoc/ogc/html/ogc.css
CHANGED
@@ -41,8 +41,13 @@ module IsoDoc
|
|
41
41
|
|
42
42
|
def admonition_class(node)
|
43
43
|
case node["type"]
|
44
|
-
when "important" then "Admonition
|
45
|
-
when "warning" then "Admonition
|
44
|
+
when "important" then "Admonition Important"
|
45
|
+
when "warning" then "Admonition Warning"
|
46
|
+
when "caution" then "Admonition Caution"
|
47
|
+
when "todo" then "Admonition Todo"
|
48
|
+
when "editor" then "Admonition Editor"
|
49
|
+
when "tip" then "Admonition Tip"
|
50
|
+
when "safety-precaution" then "Admonition Safety-Precaution"
|
46
51
|
else "Admonition"
|
47
52
|
end
|
48
53
|
end
|
@@ -135,6 +140,18 @@ module IsoDoc
|
|
135
140
|
html
|
136
141
|
end
|
137
142
|
|
143
|
+
# to pass on to imported _coverpage.scss
|
144
|
+
def scss_fontheader(is_html_css)
|
145
|
+
super + <<~SCSS
|
146
|
+
$color_text : #{@meta.get[:"presentation_metadata_color-text"].first};
|
147
|
+
$color_background_page : #{@meta.get[:"presentation_metadata_color-background-page"].first};
|
148
|
+
$color_background_definition_term : #{@meta.get[:"presentation_metadata_color-background-definition-term"].first};
|
149
|
+
$color_background_definition_description : #{@meta.get[:"presentation_metadata_color-background-definition-description"].first};
|
150
|
+
$color_secondary_shade_1 : #{@meta.get[:"presentation_metadata_color-secondary-shade-1"].first};
|
151
|
+
$color_background : #f6f8fa;
|
152
|
+
SCSS
|
153
|
+
end
|
154
|
+
|
138
155
|
include BaseConvert
|
139
156
|
include Init
|
140
157
|
end
|
data/lib/isodoc/ogc/i18n-en.yaml
CHANGED
@@ -20,17 +20,23 @@ toc_recommendations: List of Recommendations
|
|
20
20
|
table_of_figures: Table of Figures
|
21
21
|
security_empty: No security considerations have been made for this document.
|
22
22
|
internal_terms_boilerplate: |
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
This document uses the terms defined in https://portal.ogc.org/public_ogc/directives/directives.php[OGC Policy Directive 49], which is based on the ISO/IEC Directives, Part 2, Rules for the structure and drafting of International Standards. In particular, the word “shall” (not “must”) is the verb form used to indicate a requirement to be strictly followed to conform to this document and OGC documents do not use the equivalent phrases in the ISO/IEC Directives, Part 2.
|
24
|
+
|
25
|
+
This document also uses terms defined in the OGC Standard for Modular specifications (https://portal.opengeospatial.org/files/?artifact_id=34762[OGC 08-131r3]), also known as the 'ModSpec'. The definitions of terms such as standard, specification, requirement, and conformance test are provided in the ModSpec.
|
26
|
+
|
27
|
+
For the purposes of this document, the following additional terms and definitions apply.
|
26
28
|
external_terms_boilerplate: |
|
27
|
-
|
28
|
-
|
29
|
-
|
29
|
+
This document uses the terms defined in https://portal.ogc.org/public_ogc/directives/directives.php[OGC Policy Directive 49], which is based on the ISO/IEC Directives, Part 2, Rules for the structure and drafting of International Standards. In particular, the word “shall” (not “must”) is the verb form used to indicate a requirement to be strictly followed to conform to this document and OGC documents do not use the equivalent phrases in the ISO/IEC Directives, Part 2.
|
30
|
+
|
31
|
+
This document also uses terms defined in the OGC Standard for Modular specifications (https://portal.opengeospatial.org/files/?artifact_id=34762[OGC 08-131r3]), also known as the 'ModSpec'. The definitions of terms such as standard, specification, requirement, and conformance test are provided in the ModSpec.
|
32
|
+
|
33
|
+
For the purposes of this document, the terms and definitions given in % additionally apply.
|
30
34
|
internal_external_terms_boilerplate: |
|
31
|
-
|
32
|
-
|
33
|
-
|
35
|
+
This document uses the terms defined in https://portal.ogc.org/public_ogc/directives/directives.php[OGC Policy Directive 49], which is based on the ISO/IEC Directives, Part 2, Rules for the structure and drafting of International Standards. In particular, the word “shall” (not “must”) is the verb form used to indicate a requirement to be strictly followed to conform to this document and OGC documents do not use the equivalent phrases in the ISO/IEC Directives, Part 2.
|
36
|
+
|
37
|
+
This document also uses terms defined in the OGC Standard for Modular specifications (https://portal.opengeospatial.org/files/?artifact_id=34762[OGC 08-131r3]), also known as the 'ModSpec'. The definitions of terms such as standard, specification, requirement, and conformance test are provided in the ModSpec.
|
38
|
+
|
39
|
+
For the purposes of this document, the terms and definitions given in % and the following additionally apply.
|
34
40
|
term_defined_in: "(%)"
|
35
41
|
submission_date: Submission Date
|
36
42
|
approval_date: Approval Date
|
data/lib/isodoc/ogc/metadata.rb
CHANGED
@@ -157,6 +157,17 @@ module IsoDoc
|
|
157
157
|
end
|
158
158
|
set(:logo_word, old ? get[:logo_old] : get[:logo_new])
|
159
159
|
end
|
160
|
+
|
161
|
+
def presentation(xml, _out)
|
162
|
+
super
|
163
|
+
@metadata.each do |k, v|
|
164
|
+
/^presentation_metadata_color_/.match?(k) or next
|
165
|
+
v.is_a?(Array) or next
|
166
|
+
m = /^rgb\((\d+),\s*(\d+),\s*(\d+)\s*\)/.match(Array(v).first)
|
167
|
+
@metadata[k] =
|
168
|
+
sprintf("#%02x%02x%02x", m[1].to_i, m[2].to_i, m[3].to_i)
|
169
|
+
end
|
170
|
+
end
|
160
171
|
end
|
161
172
|
end
|
162
173
|
end
|