metanorma-csa 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/csa/isodoc.rng +42 -17
- data/lib/isodoc/csa/csa.standard.xsl +23 -10
- data/lib/isodoc/csa/html/csa.css +0 -1
- data/lib/isodoc/csa/html/csa.scss +0 -1
- data/lib/metanorma/csa/version.rb +1 -1
- data/metanorma-csa.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bafc881cbffc3a575e225d56264d50e18d46cbe74e91e92ed369603623f2398a
|
4
|
+
data.tar.gz: a45f716f6d4f93ca5c4aa845499732466b1e784b7b9a3486ca492c6dcca7e054
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b29c772a70fc9f0251c0b32710147f206685d7db9cf02ad726d9f51336dfd833a235b73fd7c936a6a140f1576842610fc8c681eaa65d21b136df03bd7b126023
|
7
|
+
data.tar.gz: 654a0ebc73f3de10bbd72f71caf11f97268d7fd83d3fcd9373b1f1b0d48106decd19d7ac72ba24d5ef4b659337f0814694b961de824068246d7bbea3016832ad
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<attribute name="alt"/>
|
59
59
|
</optional>
|
60
60
|
<optional>
|
61
|
-
<attribute name="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
2104
|
+
<element name="non-verbal-representation">
|
2080
2105
|
<oneOrMore>
|
2081
2106
|
<choice>
|
2082
2107
|
<ref name="table"/>
|
@@ -738,6 +738,7 @@
|
|
738
738
|
<xsl:apply-templates select="ancestor::csa:term[1]/csa:name" mode="presentation"/>
|
739
739
|
</fo:block>
|
740
740
|
<fo:block font-weight="bold" keep-with-next="always" line-height="1">
|
741
|
+
<xsl:call-template name="setStyle_preferred"/>
|
741
742
|
<xsl:apply-templates/>
|
742
743
|
</fo:block>
|
743
744
|
</fo:block>
|
@@ -1483,7 +1484,8 @@
|
|
1483
1484
|
<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"/>
|
1484
1485
|
|
1485
1486
|
</xsl:template><xsl:template name="processMainSectionsDefault_Contents">
|
1486
|
-
|
1487
|
+
|
1488
|
+
<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']]">
|
1487
1489
|
<xsl:sort select="@displayorder" data-type="number"/>
|
1488
1490
|
<xsl:apply-templates select="." mode="contents"/>
|
1489
1491
|
</xsl:for-each>
|
@@ -1493,7 +1495,7 @@
|
|
1493
1495
|
<xsl:apply-templates select="." mode="contents"/>
|
1494
1496
|
</xsl:for-each>
|
1495
1497
|
|
1496
|
-
<xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
|
1498
|
+
<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')]]">
|
1497
1499
|
<xsl:sort select="@displayorder" data-type="number"/>
|
1498
1500
|
<xsl:apply-templates select="." mode="contents"/>
|
1499
1501
|
</xsl:for-each>
|
@@ -4149,12 +4151,12 @@
|
|
4149
4151
|
</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">
|
4150
4152
|
<xsl:apply-templates mode="contents"/>
|
4151
4153
|
<xsl:text> </xsl:text>
|
4152
|
-
</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">
|
4154
|
+
</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">
|
4153
4155
|
<xsl:apply-templates mode="bookmarks"/>
|
4154
4156
|
<xsl:text> </xsl:text>
|
4155
4157
|
</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">
|
4156
4158
|
<xsl:value-of select="."/>
|
4157
|
-
</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">
|
4159
|
+
</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">
|
4158
4160
|
<xsl:value-of select="."/>
|
4159
4161
|
</xsl:template><xsl:template match="node()" mode="contents">
|
4160
4162
|
<xsl:apply-templates mode="contents"/>
|
@@ -4424,6 +4426,8 @@
|
|
4424
4426
|
|
4425
4427
|
|
4426
4428
|
|
4429
|
+
|
4430
|
+
|
4427
4431
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
4428
4432
|
<xsl:variable name="_font-size">
|
4429
4433
|
10
|
@@ -4457,13 +4461,17 @@
|
|
4457
4461
|
|
4458
4462
|
|
4459
4463
|
|
4464
|
+
|
4465
|
+
|
4460
4466
|
<xsl:apply-templates/>
|
4461
4467
|
</fo:block>
|
4462
|
-
|
4468
|
+
|
4463
4469
|
|
4464
4470
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
4465
4471
|
|
4466
4472
|
|
4473
|
+
|
4474
|
+
|
4467
4475
|
</fo:block-container>
|
4468
4476
|
</fo:block-container>
|
4469
4477
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
|
@@ -5042,24 +5050,29 @@
|
|
5042
5050
|
</xsl:template><xsl:template match="*[local-name() = 'deprecates']">
|
5043
5051
|
<xsl:variable name="title-deprecated">
|
5044
5052
|
|
5045
|
-
|
5046
|
-
|
5047
|
-
<xsl:with-param name="name" select="'title-deprecated'"/>
|
5053
|
+
<xsl:call-template name="getLocalizedString">
|
5054
|
+
<xsl:with-param name="key">deprecated</xsl:with-param>
|
5048
5055
|
</xsl:call-template>
|
5049
5056
|
|
5057
|
+
|
5050
5058
|
</xsl:variable>
|
5051
5059
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
5052
5060
|
<xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
|
5053
5061
|
</fo:block>
|
5062
|
+
</xsl:template><xsl:template name="setStyle_preferred">
|
5063
|
+
<xsl:if test="*[local-name() = 'strong']">
|
5064
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5065
|
+
</xsl:if>
|
5054
5066
|
</xsl:template><xsl:template match="*[local-name() = 'definition']">
|
5055
5067
|
<fo:block xsl:use-attribute-sets="definition-style">
|
5056
5068
|
<xsl:apply-templates/>
|
5057
5069
|
</fo:block>
|
5058
5070
|
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
|
5059
5071
|
<xsl:apply-templates/>
|
5060
|
-
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p']">
|
5072
|
+
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
|
5061
5073
|
<fo:inline> <xsl:apply-templates/></fo:inline>
|
5062
|
-
<fo:block
|
5074
|
+
<!-- <fo:block> </fo:block> -->
|
5075
|
+
<fo:block/>
|
5063
5076
|
</xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
|
5064
5077
|
|
5065
5078
|
<fo:block>
|
data/lib/isodoc/csa/html/csa.css
CHANGED
@@ -309,7 +309,6 @@ p.Terms, li.Terms, div.Terms {
|
|
309
309
|
mso-fareast-font-family: {{headerfont}};
|
310
310
|
mso-bidi-font-family: {{headerfont}};
|
311
311
|
mso-ansi-language: EN-GB;
|
312
|
-
font-weight: bold;
|
313
312
|
mso-bidi-font-weight: normal; }
|
314
313
|
|
315
314
|
p.AltTerms, li.AltTerms, div.AltTerms {
|
@@ -296,7 +296,6 @@ p.Terms, li.Terms, div.Terms
|
|
296
296
|
mso-fareast-font-family:$headerfont;
|
297
297
|
mso-bidi-font-family:$headerfont;
|
298
298
|
mso-ansi-language:EN-GB;
|
299
|
-
font-weight:bold;
|
300
299
|
mso-bidi-font-weight:normal;}
|
301
300
|
p.AltTerms, li.AltTerms, div.AltTerms
|
302
301
|
{mso-style-name:"AltTerm\(s\)";
|
data/metanorma-csa.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 "
|
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-csa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.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-
|
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:
|
28
|
+
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
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: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: equivalent-xml
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|