metanorma-cc 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: 0a70b63c39dbfa99e161dda2eba79052dabeb4efbfab474054145acf4ca2339b
4
- data.tar.gz: 1f13bcf1324580e3bc5d13d81e44fbfc47df21a6069ab3c2c52fae274f782538
3
+ metadata.gz: '09051dfdeea6a295286b0b55b546ff965f76427554632f50b995ddc7f3842a9e'
4
+ data.tar.gz: '08f80ffd700b0947b75a81ef3ccc6031b8f6044f69dde7e291d8606ee2cbd412'
5
5
  SHA512:
6
- metadata.gz: 9603323530cb1fc79dc14f0d878525e30422d67353e3ac3a551574dc3a346441d0ba9f94826650bfcf628b869abf3cfd9e95436d5daef296a8e31dedf04d282a
7
- data.tar.gz: 687665318c2b8dce4384a54ca562d749a68413e6f035875d3c69dfd5f48d185ed5a4cf09a81dc168457368f7c5c87790cfc74fdff274a5d4376d20b6f32d0065
6
+ metadata.gz: 341a642e16714923295261707ce8d4efbd8dd06aadb54fb6c25b5bca7eb474ba3ca3ebb6218c045c2ef30447c897dc774571241f212d1d65c66c2d14eda7da37
7
+ data.tar.gz: d2a80f70cf8ca48edde2ef672befcfd7a38204e61f4da62b091b1422f4a6044a0bac1215aa2f126498a933c581eddadda588ed306a929363ce75c0ac57984be7
@@ -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"/>
@@ -652,6 +652,7 @@
652
652
  <xsl:apply-templates select="ancestor::csd:term[1]/csd:name" mode="presentation"/>
653
653
  </fo:block>
654
654
  <fo:block font-weight="bold" keep-with-next="always">
655
+ <xsl:call-template name="setStyle_preferred"/>
655
656
  <xsl:apply-templates/>
656
657
  </fo:block>
657
658
  </fo:block>
@@ -1402,7 +1403,8 @@
1402
1403
  <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"/>
1403
1404
 
1404
1405
  </xsl:template><xsl:template name="processMainSectionsDefault_Contents">
1405
- <xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
1406
+
1407
+ <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']]">
1406
1408
  <xsl:sort select="@displayorder" data-type="number"/>
1407
1409
  <xsl:apply-templates select="." mode="contents"/>
1408
1410
  </xsl:for-each>
@@ -1412,7 +1414,7 @@
1412
1414
  <xsl:apply-templates select="." mode="contents"/>
1413
1415
  </xsl:for-each>
1414
1416
 
1415
- <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
1417
+ <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')]]">
1416
1418
  <xsl:sort select="@displayorder" data-type="number"/>
1417
1419
  <xsl:apply-templates select="." mode="contents"/>
1418
1420
  </xsl:for-each>
@@ -4072,12 +4074,12 @@
4072
4074
  </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">
4073
4075
  <xsl:apply-templates mode="contents"/>
4074
4076
  <xsl:text> </xsl:text>
4075
- </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">
4077
+ </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">
4076
4078
  <xsl:apply-templates mode="bookmarks"/>
4077
4079
  <xsl:text> </xsl:text>
4078
4080
  </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">
4079
4081
  <xsl:value-of select="."/>
4080
- </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">
4082
+ </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">
4081
4083
  <xsl:value-of select="."/>
4082
4084
  </xsl:template><xsl:template match="node()" mode="contents">
4083
4085
  <xsl:apply-templates mode="contents"/>
@@ -4347,6 +4349,8 @@
4347
4349
 
4348
4350
 
4349
4351
 
4352
+
4353
+
4350
4354
  <fo:block xsl:use-attribute-sets="sourcecode-style">
4351
4355
  <xsl:variable name="_font-size">
4352
4356
 
@@ -4380,13 +4384,17 @@
4380
4384
 
4381
4385
 
4382
4386
 
4387
+
4388
+
4383
4389
  <xsl:apply-templates/>
4384
4390
  </fo:block>
4385
-
4391
+
4386
4392
 
4387
4393
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
4388
4394
 
4389
4395
 
4396
+
4397
+
4390
4398
  </fo:block-container>
4391
4399
  </fo:block-container>
4392
4400
  </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
@@ -4983,15 +4991,20 @@
4983
4991
  <fo:block xsl:use-attribute-sets="deprecates-style">
4984
4992
  <xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
4985
4993
  </fo:block>
4994
+ </xsl:template><xsl:template name="setStyle_preferred">
4995
+ <xsl:if test="*[local-name() = 'strong']">
4996
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
4997
+ </xsl:if>
4986
4998
  </xsl:template><xsl:template match="*[local-name() = 'definition']">
4987
4999
  <fo:block xsl:use-attribute-sets="definition-style">
4988
5000
  <xsl:apply-templates/>
4989
5001
  </fo:block>
4990
5002
  </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
4991
5003
  <xsl:apply-templates/>
4992
- </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p']">
5004
+ </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
4993
5005
  <fo:inline> <xsl:apply-templates/></fo:inline>
4994
- <fo:block> </fo:block>
5006
+ <!-- <fo:block>&#xA0;</fo:block> -->
5007
+ <fo:block/>
4995
5008
  </xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
4996
5009
 
4997
5010
  <fo:block>
@@ -751,10 +751,12 @@ p {
751
751
  margin-bottom: 1em; }
752
752
 
753
753
  /* Terms */
754
- .TermNum, .Terms, .AltTerms {
755
- color: #485094;
754
+ .TermNum {
756
755
  font-weight: 400; }
757
756
 
757
+ .TermNum, .Terms, .AltTerms {
758
+ color: #485094; }
759
+
758
760
  p.TermNum {
759
761
  font-size: 0.9em;
760
762
  line-height: 1em;
@@ -135,9 +135,12 @@ p {
135
135
 
136
136
  /* Terms */
137
137
 
138
+ .TermNum {
139
+ font-weight: 400;
140
+ }
141
+
138
142
  .TermNum, .Terms, .AltTerms {
139
143
  color: #485094;
140
- font-weight: 400;
141
144
  }
142
145
 
143
146
  p.TermNum {
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CC
3
- VERSION = "1.8.2".freeze
3
+ VERSION = "1.8.3".freeze
4
4
  end
5
5
  end
data/metanorma-cc.gemspec CHANGED
@@ -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-cc
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