metanorma-ogc 2.4.6 → 2.4.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a8edafd9da436d2118d264222ff13e771e35bff107a7758a2c27c1f346b12fb
4
- data.tar.gz: 4f970b93ca56712cc41ea2bdb9a3cfbddea6b8471acf9ceb9e80546ea8a5ffe9
3
+ metadata.gz: 13fbc569b404283fdee6b37d4d07319a4b2fd7fb380a9475885693a41a13c662
4
+ data.tar.gz: 84f5bc9f758b9d1822e529663d15fc978601ebc6bcfe23ac1c683ccd69ba6a9a
5
5
  SHA512:
6
- metadata.gz: 8bb73f9338de4466d6706ddf15aaf951155726cee950430b1d79abfb4fe306a77ff18fada9cc5fa71920518cf06f386fddc2d38151ce9d3ae1fdc924ce78c3f0
7
- data.tar.gz: 4099c50a591583455df3be7f8bc4906fd7309022fbcd36e28922f96e12f1c066e1d2a75b8965335313745a40fc1d0f2f7118c0f3d7a74e87dd2699fde750393c
6
+ metadata.gz: 744250296f3f6f1f2fc8137af1fdb987a3434a528f892db9722f5f5fb6549da7bf6a36fe6f30061a434671e92919125e3dcc807feb4be67eb6ed57d60a4bd45c
7
+ data.tar.gz: 3f6a685482e35e773a12a16cc25a621830bfaed9c04f3ed7dd32cfddc231c63fe70c1793c4be5f6744e1dab605561d16bb39f2b1c2b93d39eda1cf3ebd131b92
@@ -1,9 +1,14 @@
1
1
  module IsoDoc
2
2
  module Ogc
3
3
  class I18n < IsoDoc::I18n
4
+ def load_file(fname)
5
+ f = File.join(File.dirname(__FILE__), fname)
6
+ File.exist?(f) ? YAML.load_file(f) : {}
7
+ end
8
+
4
9
  def load_yaml1(lang, script)
5
- y = YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))
6
- super.deep_merge(y)
10
+ y = load_file("i18n-#{yaml_lang(lang, script)}.yaml")
11
+ y.empty? ? load_file("i18n-en.yaml").merge(super) : super.deep_merge(y)
7
12
  end
8
13
  end
9
14
  end
@@ -80,9 +80,9 @@ module IsoDoc
80
80
  @anchors[ref["id"]] = { xref: "#{@anchors[ref['id']][:xref]} (draft)" }
81
81
  end
82
82
 
83
- def sequential_permission_body(id, block, label, klass, model)
83
+ def sequential_permission_body(id, block, label, klass, model, container: false)
84
84
  @anchors[block["id"]] = model.postprocess_anchor_struct(
85
- block, anchor_struct(id, nil,
85
+ block, anchor_struct(id, container ? block : nil,
86
86
  label, klass, block["unnumbered"])
87
87
  )
88
88
  model.permission_parts(block, id, label, klass).each do |n|
@@ -374,6 +374,16 @@
374
374
  <ref name="image"/>
375
375
  </element>
376
376
  </define>
377
+ <define name="depiction">
378
+ <element name="depiction">
379
+ <optional>
380
+ <attribute name="scope"/>
381
+ </optional>
382
+ <zeroOrMore>
383
+ <ref name="image"/>
384
+ </zeroOrMore>
385
+ </element>
386
+ </define>
377
387
  <define name="NameWithVariants">
378
388
  <element name="primary">
379
389
  <ref name="LocalizedString"/>
@@ -760,6 +770,9 @@
760
770
  <optional>
761
771
  <ref name="validity"/>
762
772
  </optional>
773
+ <optional>
774
+ <ref name="depiction"/>
775
+ </optional>
763
776
  </define>
764
777
  <define name="ReducedBibliographicItem">
765
778
  <optional>
@@ -17,7 +17,7 @@
17
17
  these elements; we just want one namespace for any child grammars
18
18
  of this.
19
19
  -->
20
- <!-- VERSION v1.2.8 -->
20
+ <!-- VERSION v1.2.9 -->
21
21
  <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
22
22
  <include href="reqt.rng"/>
23
23
  <include href="basicdoc.rng">
@@ -1958,6 +1958,16 @@
1958
1958
  <data type="boolean"/>
1959
1959
  </attribute>
1960
1960
  </optional>
1961
+ <optional>
1962
+ <attribute name="type">
1963
+ <choice>
1964
+ <value>letter</value>
1965
+ <value>symbol</value>
1966
+ <value>formula</value>
1967
+ <value>equation</value>
1968
+ </choice>
1969
+ </attribute>
1970
+ </optional>
1961
1971
  <element name="name">
1962
1972
  <oneOrMore>
1963
1973
  <choice>
@@ -25,7 +25,7 @@ module Metanorma
25
25
  @doctype == "engineering-report" and return
26
26
  stage = xmldoc&.at("//bibdata/status/stage")&.text
27
27
  %w(draft swg-draft oab-review public-rfc tc-vote work-item-draft
28
- approved deprecated retired rescinded).include? stage or
28
+ approved deprecated retired rescinded legacy).include? stage or
29
29
  @log.add("Document Attributes", nil,
30
30
  "#{stage} is not a recognised status")
31
31
  stage_type_validate(stage, @doctype)
@@ -40,7 +40,7 @@ module Metanorma
40
40
  when "best-practice", "community-practice"
41
41
  %w(draft swg-draft work-item-draft).include?(stage)
42
42
  else %w(swg-draft oab-review public-rfc tc-vote
43
- work-item-draft deprecated rescinded).include?(stage)
43
+ work-item-draft deprecated rescinded legacy).include?(stage)
44
44
  end
45
45
  err and @log.add("Document Attributes", nil,
46
46
  "#{stage} is not an allowed status for #{doctype}")
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "2.4.6".freeze
3
+ VERSION = "2.4.7".freeze
4
4
  end
5
5
  end
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.4.6
4
+ version: 2.4.7
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-11-27 00:00:00.000000000 Z
11
+ date: 2023-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639