metanorma-ribose 1.8.2 → 1.8.3

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: 61e395cc57490abef6746a5c86f2a40bf58d18323d9c290688fc8929509aa6a9
4
- data.tar.gz: 935a69124df03251136e51fc5d17bc8b0601072222c93a59c89daa4b29d7ec2b
3
+ metadata.gz: 654aab85ead54fb2e9f016326b3283cb3a25af097fbe6af767aa42583a64d217
4
+ data.tar.gz: 8ea11b8d247cdb71968e627a592f04ca4b428ce18462f386d10d4af19a4819fa
5
5
  SHA512:
6
- metadata.gz: 371af3c6f9e94e6bc3215439b49f35405bd24d1fed9ad23a592ece577f0097a2edf78396f3a38c7701fcf3c0c9814bece1f415013817ae32b0abe6c4ece78cb6
7
- data.tar.gz: f144703d842c4021c99ed845a857a9a96f766c68c11fd98732a4067f2aac017252bf4456bf21ae87039fa4d86aff9ccfdcad13eda8e95a9dbfd94f46421a5924
6
+ metadata.gz: 8d8fd6841d00a8a35be87e27489b9f6a35e908578a0baf438daef5cfaef5f4d39bfbb3c61735bdce3aaf821c8c4b4a8c53e1802557380556a514e1d9cb4a125e
7
+ data.tar.gz: 66ba8cf2a79b4f3403f1adbc1c090365220a2c256cf8239c565d79cf29d500c93cdccdaf75c45ab106919529572ecd17b4bce1161ae15c620050af433d55d415
@@ -58,7 +58,7 @@
58
58
  <attribute name="alt"/>
59
59
  </optional>
60
60
  <optional>
61
- <attribute name="updatetype">
61
+ <attribute name="update-type">
62
62
  <data type="boolean"/>
63
63
  </attribute>
64
64
  </optional>
@@ -1814,9 +1814,6 @@
1814
1814
  <optional>
1815
1815
  <ref name="termsubject"/>
1816
1816
  </optional>
1817
- <optional>
1818
- <ref name="termusage"/>
1819
- </optional>
1820
1817
  <oneOrMore>
1821
1818
  <ref name="termdefinition"/>
1822
1819
  </oneOrMore>
@@ -1880,17 +1877,37 @@
1880
1877
  </attribute>
1881
1878
  </optional>
1882
1879
  <optional>
1883
- <attribute name="geographicArea"/>
1880
+ <attribute name="geographic-area"/>
1884
1881
  </optional>
1885
1882
  <choice>
1886
1883
  <ref name="expression_designation"/>
1887
1884
  <ref name="letter_symbol_designation"/>
1888
1885
  <ref name="graphical_symbol_designation"/>
1889
1886
  </choice>
1887
+ <optional>
1888
+ <ref name="fieldofapplication"/>
1889
+ </optional>
1890
+ <optional>
1891
+ <ref name="usageinfo"/>
1892
+ </optional>
1890
1893
  <zeroOrMore>
1891
1894
  <ref name="termsource"/>
1892
1895
  </zeroOrMore>
1893
1896
  </define>
1897
+ <define name="fieldofapplication">
1898
+ <element name="field-of-application">
1899
+ <oneOrMore>
1900
+ <ref name="PureTextElement"/>
1901
+ </oneOrMore>
1902
+ </element>
1903
+ </define>
1904
+ <define name="usageinfo">
1905
+ <element name="usage-info">
1906
+ <oneOrMore>
1907
+ <ref name="PureTextElement"/>
1908
+ </oneOrMore>
1909
+ </element>
1910
+ </define>
1894
1911
  <define name="letter_symbol_designation">
1895
1912
  <element name="letter-symbol">
1896
1913
  <optional>
@@ -1946,7 +1963,7 @@
1946
1963
  </zeroOrMore>
1947
1964
  </element>
1948
1965
  <optional>
1949
- <element name="abbreviationType">
1966
+ <element name="abbreviation-type">
1950
1967
  <ref name="AbbreviationType"/>
1951
1968
  </element>
1952
1969
  </optional>
@@ -1956,7 +1973,7 @@
1956
1973
  </element>
1957
1974
  </optional>
1958
1975
  <optional>
1959
- <element name="grammarInfo">
1976
+ <element name="grammar-info">
1960
1977
  <ref name="Grammar"/>
1961
1978
  </element>
1962
1979
  </optional>
@@ -1983,6 +2000,11 @@
1983
2000
  <ref name="GrammarGender"/>
1984
2001
  </element>
1985
2002
  </zeroOrMore>
2003
+ <zeroOrMore>
2004
+ <element name="number">
2005
+ <ref name="GrammarNumber"/>
2006
+ </element>
2007
+ </zeroOrMore>
1986
2008
  <optional>
1987
2009
  <element name="isPreposition">
1988
2010
  <data type="boolean"/>
@@ -2014,7 +2036,7 @@
2014
2036
  </element>
2015
2037
  </optional>
2016
2038
  <zeroOrMore>
2017
- <element name="grammarvalue">
2039
+ <element name="grammar-value">
2018
2040
  <text/>
2019
2041
  </element>
2020
2042
  </zeroOrMore>
@@ -2027,6 +2049,13 @@
2027
2049
  <value>common</value>
2028
2050
  </choice>
2029
2051
  </define>
2052
+ <define name="GrammarNumber">
2053
+ <choice>
2054
+ <value>singular</value>
2055
+ <value>dual</value>
2056
+ <value>plural</value>
2057
+ </choice>
2058
+ </define>
2030
2059
  <define name="termdomain">
2031
2060
  <element name="domain">
2032
2061
  <oneOrMore>
@@ -2041,13 +2070,6 @@
2041
2070
  </oneOrMore>
2042
2071
  </element>
2043
2072
  </define>
2044
- <define name="termusage">
2045
- <element name="usageinfo">
2046
- <oneOrMore>
2047
- <ref name="BasicBlock"/>
2048
- </oneOrMore>
2049
- </element>
2050
- </define>
2051
2073
  <define name="termdefinition">
2052
2074
  <element name="definition">
2053
2075
  <choice>
@@ -2061,13 +2083,16 @@
2061
2083
  </element>
2062
2084
  </define>
2063
2085
  <define name="verbaldefinition">
2064
- <element name="verbaldefinition">
2086
+ <element name="verbal-definition">
2065
2087
  <oneOrMore>
2066
2088
  <choice>
2067
2089
  <ref name="paragraph"/>
2068
2090
  <ref name="dl"/>
2069
2091
  <ref name="ol"/>
2070
2092
  <ref name="ul"/>
2093
+ <ref name="table"/>
2094
+ <ref name="figure"/>
2095
+ <ref name="formula"/>
2071
2096
  </choice>
2072
2097
  </oneOrMore>
2073
2098
  <zeroOrMore>
@@ -2076,7 +2101,7 @@
2076
2101
  </element>
2077
2102
  </define>
2078
2103
  <define name="nonverbalrep">
2079
- <element name="nonverbalrepresentation">
2104
+ <element name="non-verbal-representation">
2080
2105
  <oneOrMore>
2081
2106
  <choice>
2082
2107
  <ref name="table"/>
@@ -562,12 +562,12 @@ h3 {
562
562
  font-size: 1.1em;
563
563
  font-weight: 100; }
564
564
 
565
- .TermNum,
566
- .Terms,
567
- .AltTerms {
568
- color: #1661AD;
565
+ .TermNum {
569
566
  font-weight: 100; }
570
567
 
568
+ .TermNum, .Terms, .AltTerms {
569
+ color: #1661AD; }
570
+
571
571
  h2.TermNum {
572
572
  margin-bottom: 0; }
573
573
 
@@ -232,13 +232,14 @@ h3 {
232
232
  font-weight: 100;
233
233
  }
234
234
 
235
- .TermNum,
236
- .Terms,
237
- .AltTerms {
238
- color: #1661AD;
235
+ .TermNum {
239
236
  font-weight: 100;
240
237
  }
241
238
 
239
+ .TermNum, .Terms, .AltTerms {
240
+ color: #1661AD;
241
+ }
242
+
242
243
  h2.TermNum {
243
244
  margin-bottom: 0;
244
245
  }
@@ -1104,7 +1104,7 @@
1104
1104
  </fo:inline>
1105
1105
  </xsl:if>
1106
1106
 
1107
- <fo:inline padding-right="4mm"><xsl:apply-templates/></fo:inline>
1107
+ <fo:inline padding-right="4mm"><xsl:if test="local-name() = 'preferred'"><xsl:call-template name="setStyle_preferred"/></xsl:if><xsl:apply-templates/></fo:inline>
1108
1108
 
1109
1109
  <xsl:variable name="term_kind">
1110
1110
  <xsl:choose>
@@ -2106,7 +2106,8 @@
2106
2106
  <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]" mode="contents"/>
2107
2107
 
2108
2108
  </xsl:template><xsl:template name="processMainSectionsDefault_Contents">
2109
- <xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
2109
+
2110
+ <xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true'] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][@normative='true']]">
2110
2111
  <xsl:sort select="@displayorder" data-type="number"/>
2111
2112
  <xsl:apply-templates select="." mode="contents"/>
2112
2113
  </xsl:for-each>
@@ -2116,7 +2117,7 @@
2116
2117
  <xsl:apply-templates select="." mode="contents"/>
2117
2118
  </xsl:for-each>
2118
2119
 
2119
- <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
2120
+ <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
2120
2121
  <xsl:sort select="@displayorder" data-type="number"/>
2121
2122
  <xsl:apply-templates select="." mode="contents"/>
2122
2123
  </xsl:for-each>
@@ -4845,12 +4846,12 @@
4845
4846
  </xsl:template><xsl:template match="*[local-name() = 'emf']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
4846
4847
  <xsl:apply-templates mode="contents"/>
4847
4848
  <xsl:text> </xsl:text>
4848
- </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="bookmarks">
4849
+ </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name'] | *[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="bookmarks">
4849
4850
  <xsl:apply-templates mode="bookmarks"/>
4850
4851
  <xsl:text> </xsl:text>
4851
4852
  </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
4852
4853
  <xsl:value-of select="."/>
4853
- </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
4854
+ </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement' or local-name() = 'sourcecode']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
4854
4855
  <xsl:value-of select="."/>
4855
4856
  </xsl:template><xsl:template match="node()" mode="contents">
4856
4857
  <xsl:apply-templates mode="contents"/>
@@ -5122,6 +5123,8 @@
5122
5123
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
5123
5124
 
5124
5125
 
5126
+
5127
+
5125
5128
  <fo:block xsl:use-attribute-sets="sourcecode-style">
5126
5129
  <xsl:variable name="_font-size">
5127
5130
 
@@ -5174,10 +5177,14 @@
5174
5177
  </xsl:if>
5175
5178
 
5176
5179
 
5180
+
5181
+
5177
5182
  <xsl:apply-templates/>
5178
5183
  </fo:block>
5184
+
5179
5185
 
5180
5186
 
5187
+
5181
5188
 
5182
5189
  </fo:block-container>
5183
5190
  </fo:block-container>
@@ -5773,15 +5780,20 @@
5773
5780
  <fo:block xsl:use-attribute-sets="deprecates-style">
5774
5781
  <xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
5775
5782
  </fo:block>
5783
+ </xsl:template><xsl:template name="setStyle_preferred">
5784
+ <xsl:if test="*[local-name() = 'strong']">
5785
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
5786
+ </xsl:if>
5776
5787
  </xsl:template><xsl:template match="*[local-name() = 'definition']">
5777
5788
  <fo:block xsl:use-attribute-sets="definition-style">
5778
5789
  <xsl:apply-templates/>
5779
5790
  </fo:block>
5780
5791
  </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
5781
5792
  <xsl:apply-templates/>
5782
- </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p']">
5793
+ </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
5783
5794
  <fo:inline> <xsl:apply-templates/></fo:inline>
5784
- <fo:block> </fo:block>
5795
+ <!-- <fo:block>&#xA0;</fo:block> -->
5796
+ <fo:block/>
5785
5797
  </xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
5786
5798
 
5787
5799
  <fo:block>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "1.8.2".freeze
3
+ VERSION = "1.8.3".freeze
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_dependency "metanorma-generic", "~> 1.11.0"
32
32
 
33
- spec.add_development_dependency "byebug", "~> 9.1"
33
+ spec.add_development_dependency "debug"
34
34
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
35
35
  spec.add_development_dependency "guard", "~> 2.14"
36
36
  spec.add_development_dependency "guard-rspec", "~> 4.7"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.3
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-11-15 00:00:00.000000000 Z
11
+ date: 2021-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.11.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: byebug
28
+ name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '9.1'
33
+ version: '0'
34
34
  type: :development
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: '9.1'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: equivalent-xml
43
43
  requirement: !ruby/object:Gem::Requirement