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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isodoc/ogc/html/htmlstyle.css +41 -1
  3. data/lib/isodoc/ogc/html/htmlstyle.scss +1 -1
  4. data/lib/isodoc/ogc/html/ogc.css +1 -1
  5. data/lib/isodoc/ogc/html/ogc.scss +1 -1
  6. data/lib/isodoc/ogc/html_convert.rb +19 -2
  7. data/lib/isodoc/ogc/i18n-en.yaml +15 -9
  8. data/lib/isodoc/ogc/metadata.rb +11 -0
  9. data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +253 -76
  10. data/lib/isodoc/ogc/ogc.best-practice.xsl +253 -76
  11. data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +253 -76
  12. data/lib/isodoc/ogc/ogc.community-practice.xsl +253 -76
  13. data/lib/isodoc/ogc/ogc.community-standard.xsl +253 -76
  14. data/lib/isodoc/ogc/ogc.discussion-paper.xsl +253 -76
  15. data/lib/isodoc/ogc/ogc.draft-standard.xsl +253 -76
  16. data/lib/isodoc/ogc/ogc.engineering-report.xsl +253 -76
  17. data/lib/isodoc/ogc/ogc.other.xsl +253 -76
  18. data/lib/isodoc/ogc/ogc.policy.xsl +253 -76
  19. data/lib/isodoc/ogc/ogc.reference-model.xsl +253 -76
  20. data/lib/isodoc/ogc/ogc.release-notes.xsl +253 -76
  21. data/lib/isodoc/ogc/ogc.standard.xsl +253 -76
  22. data/lib/isodoc/ogc/ogc.test-suite.xsl +253 -76
  23. data/lib/isodoc/ogc/ogc.user-guide.xsl +253 -76
  24. data/lib/isodoc/ogc/ogc.white-paper.xsl +108 -40
  25. data/lib/isodoc/ogc/presentation_xml_convert.rb +15 -1
  26. data/lib/isodoc/ogc/word_convert.rb +1 -1
  27. data/lib/isodoc/ogc/xref.rb +20 -0
  28. data/lib/metanorma/ogc/basicdoc.rng +71 -6
  29. data/lib/metanorma/ogc/biblio.rng +3 -1
  30. data/lib/metanorma/ogc/cleanup.rb +1 -1
  31. data/lib/metanorma/ogc/converter.rb +70 -0
  32. data/lib/metanorma/ogc/isodoc.rng +8 -5
  33. data/lib/metanorma/ogc/reqt.rng +3 -0
  34. data/lib/metanorma/ogc/version.rb +1 -1
  35. data/metanorma-ogc.gemspec +1 -1
  36. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20a42aacc8919672ff6672fba3620817651a5e0e7b6d13dbac7d9d51a7a34bc0
4
- data.tar.gz: a781bdab6a4550bc6d04f0a3cde51775d6755f680f2d9a22b4dfe65d9e8e5933
3
+ metadata.gz: 27c6878e7287b08cb973284d9b5f753f1f5aac697dc983a128c495649b38660d
4
+ data.tar.gz: 9ed25beb811a9f4a24b08e479581063160a6af5081c9e539043d9a6254b1da33
5
5
  SHA512:
6
- metadata.gz: e309309936b82e9e266346b7c630f845a9e77269724a31e20e1e29fc5b7ec2aa3a0d906664a67d34398ade90168276d1b66979aad8c46664b39a71a19b0bf868
7
- data.tar.gz: 358c573ed7cd006c1fc6a25a1b94ea13b47f43a4ba78fb80f934c12c0dd45bab470e9c55d0c699e6d589a69f104b0944b04c17b85a723603d305f4c36014b814
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%;
@@ -401,7 +401,7 @@ p.AltTerms {
401
401
  margin-top: 1em;
402
402
  }
403
403
 
404
- span.AdmittedLabel {
404
+ span.AdmittedLabel, span.DeprecatedLabel {
405
405
  color: #00335b;
406
406
  background-color: #CFE2F3;
407
407
  font-size: 70%;
@@ -856,6 +856,6 @@ div.warning p {
856
856
  span.hi {
857
857
  background-color: yellow; }
858
858
 
859
- span.AdmittedLabel {
859
+ span.AdmittedLabel, span.DeprecatedLabel {
860
860
  color: #00335b;
861
861
  background-color: #CFE2F3; }
@@ -814,7 +814,7 @@ padding:0cm;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt;
814
814
  span.hi {
815
815
  background-color: yellow;
816
816
  }
817
- span.AdmittedLabel {
817
+ span.AdmittedLabel, span.DeprecatedLabel {
818
818
  color: #00335b;
819
819
  background-color: #CFE2F3;
820
820
  }
@@ -41,8 +41,13 @@ module IsoDoc
41
41
 
42
42
  def admonition_class(node)
43
43
  case node["type"]
44
- when "important" then "Admonition.Important"
45
- when "warning" then "Admonition.Warning"
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
@@ -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
- <p>This document uses the terms defined in <link target="https://portal.ogc.org/public_ogc/directives/directives.php">OGC Policy Directive 49</link>, 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.</p>
24
- <p>This document also uses terms defined in the OGC Standard for Modular specifications (<link target="https://portal.opengeospatial.org/files/?artifact_id=34762">OGC 08-131r3</link>), also known as the 'ModSpec'. The definitions of terms such as standard, specification, requirement, and conformance test are provided in the ModSpec.</p>
25
- <p>For the purposes of this document, the following additional terms and definitions apply.</p>
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
- <p>This document uses the terms defined in <link target="https://portal.ogc.org/public_ogc/directives/directives.php">OGC Policy Directive 49</link>, 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.</p>
28
- <p>This document also uses terms defined in the OGC Standard for Modular specifications (<link target="https://portal.opengeospatial.org/files/?artifact_id=34762">OGC 08-131r3</link>), also known as the 'ModSpec'. The definitions of terms such as standard, specification, requirement, and conformance test are provided in the ModSpec.</p>
29
- <p>For the purposes of this document, the terms and definitions given in % additionally apply.</p>
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
- <p>This document uses the terms defined in <link target="https://portal.ogc.org/public_ogc/directives/directives.php">OGC Policy Directive 49</link>, 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.</p>
32
- <p>This document also uses terms defined in the OGC Standard for Modular specifications (<link target="https://portal.opengeospatial.org/files/?artifact_id=34762">OGC 08-131r3</link>), also known as the 'ModSpec'. The definitions of terms such as standard, specification, requirement, and conformance test are provided in the ModSpec.</p>
33
- <p>For the purposes of this document, the terms and definitions given in % and the following additionally apply.</p>
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
@@ -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