metanorma-ogc 2.3.6 → 2.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,12 +5,21 @@ require_relative "../../relaton/render/general"
5
5
  module IsoDoc
6
6
  module Ogc
7
7
  class PresentationXMLConvert < IsoDoc::PresentationXMLConvert
8
+ def initialize(options)
9
+ @libdir = File.dirname(__FILE__)
10
+ super
11
+ end
12
+
8
13
  def convert1(docxml, filename, dir)
9
14
  info docxml, nil
10
15
  insert_preface_sections(docxml)
11
16
  super
12
17
  end
13
18
 
19
+ def rouge_css_location
20
+ File.read(File.join(@libdir, "html", "rouge.css"))
21
+ end
22
+
14
23
  def insert_preface_sections(doc)
15
24
  preface_insert(doc.at(ns("//preface/clause" \
16
25
  "[@type = 'executivesummary']")),
@@ -215,6 +224,14 @@ module IsoDoc
215
224
  prefix_bracketed_ref("#{ret}#{datefn}")
216
225
  end
217
226
 
227
+ def deprecates(elem)
228
+ elem << "&#xa0;<span class='AdmittedLabel'>#{@i18n.deprecated}</span>"
229
+ end
230
+
231
+ def admits(elem)
232
+ elem << "&#xa0;<span class='AdmittedLabel'>#{@i18n.admitted}</span>"
233
+ end
234
+
218
235
  include Init
219
236
  end
220
237
  end
@@ -93,6 +93,17 @@ module IsoDoc
93
93
 
94
94
  @anchors[ref["id"]] = { xref: "#{@anchors[ref['id']][:xref]} (draft)" }
95
95
  end
96
+
97
+ def sequential_permission_body(id, block, label, klass, model)
98
+ @anchors[block["id"]] = model.postprocess_anchor_struct(
99
+ block, anchor_struct(id, nil,
100
+ label, klass, block["unnumbered"])
101
+ )
102
+ model.permission_parts(block, id, label, klass).each do |n|
103
+ @anchors[n[:id]] = anchor_struct(n[:number], nil, n[:label],
104
+ n[:klass], false)
105
+ end
106
+ end
96
107
  end
97
108
  end
98
109
  end
@@ -382,6 +382,9 @@
382
382
  <optional>
383
383
  <ref name="dl"/>
384
384
  </optional>
385
+ <optional>
386
+ <ref name="source"/>
387
+ </optional>
385
388
  </element>
386
389
  </define>
387
390
  <define name="figure">
@@ -404,9 +407,6 @@
404
407
  <attribute name="class"/>
405
408
  </optional>
406
409
  <ref name="BlockAttributes"/>
407
- <optional>
408
- <ref name="source"/>
409
- </optional>
410
410
  <optional>
411
411
  <ref name="tname"/>
412
412
  </optional>
@@ -431,6 +431,20 @@
431
431
  <zeroOrMore>
432
432
  <ref name="note"/>
433
433
  </zeroOrMore>
434
+ <optional>
435
+ <ref name="source"/>
436
+ </optional>
437
+ </element>
438
+ </define>
439
+ <define name="source">
440
+ <element name="source">
441
+ <attribute name="status">
442
+ <ref name="SourceStatusType"/>
443
+ </attribute>
444
+ <ref name="origin"/>
445
+ <optional>
446
+ <ref name="modification"/>
447
+ </optional>
434
448
  </element>
435
449
  </define>
436
450
  <define name="sourcecode">
@@ -2099,10 +2113,7 @@
2099
2113
  <define name="termsource">
2100
2114
  <element name="termsource">
2101
2115
  <attribute name="status">
2102
- <choice>
2103
- <value>identical</value>
2104
- <value>modified</value>
2105
- </choice>
2116
+ <ref name="SourceStatusType"/>
2106
2117
  </attribute>
2107
2118
  <attribute name="type">
2108
2119
  <choice>
@@ -2116,6 +2127,17 @@
2116
2127
  </optional>
2117
2128
  </element>
2118
2129
  </define>
2130
+ <define name="SourceStatusType">
2131
+ <choice>
2132
+ <value>identical</value>
2133
+ <value>modified</value>
2134
+ <value>restyled</value>
2135
+ <value>context-added</value>
2136
+ <value>generalisation</value>
2137
+ <value>specialisation</value>
2138
+ <value>unspecified</value>
2139
+ </choice>
2140
+ </define>
2119
2141
  <define name="origin">
2120
2142
  <element name="origin">
2121
2143
  <choice>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "2.3.6".freeze
3
+ VERSION = "2.3.8".freeze
4
4
  end
5
5
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
27
27
 
28
28
  spec.add_dependency "iso-639"
29
- spec.add_dependency "metanorma-standoc", "~> 2.4.0"
29
+ spec.add_dependency "metanorma-standoc", "~> 2.4.2"
30
30
 
31
31
  spec.add_development_dependency "debug"
32
32
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.6
4
+ version: 2.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-13 00:00:00.000000000 Z
11
+ date: 2023-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.4.0
33
+ version: 2.4.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.4.0
40
+ version: 2.4.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: debug
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -238,6 +238,8 @@ files:
238
238
  - lib/isodoc/ogc/html/ogc.scss
239
239
  - lib/isodoc/ogc/html/ogc_wp.css
240
240
  - lib/isodoc/ogc/html/ogc_wp.scss
241
+ - lib/isodoc/ogc/html/preprocess.xslt
242
+ - lib/isodoc/ogc/html/rouge.css
241
243
  - lib/isodoc/ogc/html/scripts.html
242
244
  - lib/isodoc/ogc/html/word_ogc_intro.html
243
245
  - lib/isodoc/ogc/html/word_ogc_intro_wp.html