metanorma-ogc 1.4.5 → 1.5.0

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: 2cb1583cace9a2d58cc458ee480be7385034abb7666d511bcbe1a228908258fe
4
- data.tar.gz: 882469c7bf396171ad9cd81599d0f9f49c9b591a040968da758fb0d2d7fd600e
3
+ metadata.gz: '031379ecf57a52c5e03554fcd26e612d80b12c662e5c02653e334726baa9a763'
4
+ data.tar.gz: 4308644ba756016b6a58d9d8f135fb03a54d3f88b85dd21e1b1c670e225d080d
5
5
  SHA512:
6
- metadata.gz: 114c8e43be8dfb2c3d4f088645111f93014b258881f1df9de256a3850e6853f2342acc3bfb8784e48f74e9524f2a3d94c33e0d8a1fc7d7939f76d9c32b4ec1e8
7
- data.tar.gz: d070f02e1965aeb0c29d61a2010a90af3be5bd7614c31362d01befa59d212b26eb3b65479be5252caf5ab256511a4a66f2d3ed1b1f21b6db19d62aab2e239e87
6
+ metadata.gz: bfde0fdf6dea362dabefafd7451d12cae304298ab60617fa33fe1d013ada9dda8636741892f5ef51d7120f5ddeb80775cae198b7f92eddc6cc490ed9d8b480b8
7
+ data.tar.gz: d7f3fb149f6d529cf5e21c59e55e7bae77d74d5fb2d36457df75b41789029603443071249133cdea8222f21d2be30bea423eedb8f00ed05129532164bc879eaf
@@ -138,10 +138,15 @@ module Asciidoctor
138
138
  end
139
139
  end
140
140
 
141
+ def termdef_cleanup(xmldoc)
142
+ super
143
+ termdef_subclause_cleanup(xmldoc)
144
+ end
145
+
141
146
  # skip annex/terms/terms, which is empty node
142
147
  def termdef_subclause_cleanup(xmldoc)
143
- xmldoc.xpath("//annex//terms[terms]").each do |t|
144
- next if t.parent.name == "terms"
148
+ xmldoc.xpath("//annex//clause[terms]").each do |t|
149
+ next unless t.xpath("./clause | ./terms | ./definitions").size == 1
145
150
 
146
151
  t.children.each { |n| n.parent = t.parent }
147
152
  t.remove
@@ -1885,6 +1885,7 @@
1885
1885
  <choice>
1886
1886
  <ref name="expression_designation"/>
1887
1887
  <ref name="letter_symbol_designation"/>
1888
+ <ref name="graphical_symbol_designation"/>
1888
1889
  </choice>
1889
1890
  <zeroOrMore>
1890
1891
  <ref name="termsource"/>
@@ -1907,6 +1908,16 @@
1907
1908
  </element>
1908
1909
  </element>
1909
1910
  </define>
1911
+ <define name="graphical_symbol_designation">
1912
+ <element name="graphical-symbol">
1913
+ <optional>
1914
+ <attribute name="isInternational">
1915
+ <data type="boolean"/>
1916
+ </attribute>
1917
+ </optional>
1918
+ <ref name="figure"/>
1919
+ </element>
1920
+ </define>
1910
1921
  <define name="expression_designation">
1911
1922
  <element name="expression">
1912
1923
  <optional>
@@ -1930,12 +1941,9 @@
1930
1941
  </attribute>
1931
1942
  </optional>
1932
1943
  <element name="name">
1933
- <oneOrMore>
1934
- <choice>
1935
- <ref name="PureTextElement"/>
1936
- <ref name="stem"/>
1937
- </choice>
1938
- </oneOrMore>
1944
+ <zeroOrMore>
1945
+ <ref name="PureTextElement"/>
1946
+ </zeroOrMore>
1939
1947
  </element>
1940
1948
  <optional>
1941
1949
  <element name="abbreviationType">
@@ -2042,9 +2050,31 @@
2042
2050
  </define>
2043
2051
  <define name="termdefinition">
2044
2052
  <element name="definition">
2053
+ <choice>
2054
+ <ref name="verbaldefinition"/>
2055
+ <ref name="nonverbalrep"/>
2056
+ <group>
2057
+ <ref name="verbaldefinition"/>
2058
+ <ref name="nonverbalrep"/>
2059
+ </group>
2060
+ </choice>
2061
+ </element>
2062
+ </define>
2063
+ <define name="verbaldefinition">
2064
+ <element name="verbaldefinition">
2065
+ <oneOrMore>
2066
+ <ref name="paragraph"/>
2067
+ </oneOrMore>
2068
+ <zeroOrMore>
2069
+ <ref name="termsource"/>
2070
+ </zeroOrMore>
2071
+ </element>
2072
+ </define>
2073
+ <define name="nonverbalrep">
2074
+ <element name="nonverbalrepresentation">
2045
2075
  <oneOrMore>
2046
2076
  <choice>
2047
- <ref name="paragraph"/>
2077
+ <ref name="table"/>
2048
2078
  <ref name="figure"/>
2049
2079
  <ref name="formula"/>
2050
2080
  </choice>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -5660,6 +5660,7 @@
5660
5660
  </xsl:choose>
5661
5661
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
5662
5662
  <fo:block xsl:use-attribute-sets="termsource-style">
5663
+
5663
5664
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
5664
5665
  <xsl:variable name="termsource_text">
5665
5666
  <xsl:apply-templates/>
@@ -4977,6 +4977,7 @@
4977
4977
  </xsl:choose>
4978
4978
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
4979
4979
  <fo:block xsl:use-attribute-sets="termsource-style">
4980
+
4980
4981
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
4981
4982
  <xsl:variable name="termsource_text">
4982
4983
  <xsl:apply-templates/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "1.4.5".freeze
3
+ VERSION = "1.5.0".freeze
4
4
  end
5
5
  end
@@ -25,8 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
26
26
 
27
27
  spec.add_dependency "iso-639"
28
- spec.add_dependency "isodoc", "~> 1.7.0"
29
- spec.add_dependency "metanorma-standoc", "~> 1.10.0"
28
+ spec.add_dependency "metanorma-standoc", "~> 1.11.0"
30
29
 
31
30
  spec.add_development_dependency "byebug", "~> 9.1"
32
31
  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: 1.4.5
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-21 00:00:00.000000000 Z
11
+ date: 2021-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639
@@ -24,34 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: isodoc
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 1.7.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 1.7.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: metanorma-standoc
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: 1.10.0
33
+ version: 1.11.0
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: 1.10.0
40
+ version: 1.11.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: byebug
57
43
  requirement: !ruby/object:Gem::Requirement