metanorma-generic 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/generic/isodoc.rng +54 -18
- data/lib/isodoc/generic/base_convert.rb +4 -3
- data/lib/isodoc/generic/html/generic.scss +0 -1
- data/lib/isodoc/generic/html/htmlstyle.scss +4 -1
- data/lib/metanorma/generic/version.rb +1 -1
- data/metanorma-generic.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: 68780e456b59524a58f5943a2f611eb77eb8609d71d67d0fd03493845bd77a26
|
4
|
+
data.tar.gz: d80def3233b10b107eae9159b981755486555782962d5ab48ef8dfbd5f476e53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e583a0c09780c638708932e53c6d625f291650ad66cbc0c15aad3eb8fce7f1bc728e6503b7b2c7c531558da48fd305c4575541255f501cfd68a391ab775fd17
|
7
|
+
data.tar.gz: 0c937c51fc767624d6c05d2d74e409a8128b4c45d57da929bed48cf301be47b5897ecff6632219bb1532b785cce3cf707686568f42e9b6c2651ea65db27cd6a5
|
@@ -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,9 +2083,17 @@
|
|
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>
|
2089
|
+
<ref name="paragraph"/>
|
2090
|
+
<ref name="dl"/>
|
2091
|
+
<ref name="ol"/>
|
2092
|
+
<ref name="ul"/>
|
2093
|
+
<ref name="table"/>
|
2094
|
+
<ref name="figure"/>
|
2095
|
+
<ref name="formula"/>
|
2096
|
+
</choice>
|
2067
2097
|
</oneOrMore>
|
2068
2098
|
<zeroOrMore>
|
2069
2099
|
<ref name="termsource"/>
|
@@ -2071,7 +2101,7 @@
|
|
2071
2101
|
</element>
|
2072
2102
|
</define>
|
2073
2103
|
<define name="nonverbalrep">
|
2074
|
-
<element name="
|
2104
|
+
<element name="non-verbal-representation">
|
2075
2105
|
<oneOrMore>
|
2076
2106
|
<choice>
|
2077
2107
|
<ref name="table"/>
|
@@ -2163,6 +2193,12 @@
|
|
2163
2193
|
<value>modified</value>
|
2164
2194
|
</choice>
|
2165
2195
|
</attribute>
|
2196
|
+
<attribute name="type">
|
2197
|
+
<choice>
|
2198
|
+
<value>authoritative</value>
|
2199
|
+
<value>lineage</value>
|
2200
|
+
</choice>
|
2201
|
+
</attribute>
|
2166
2202
|
<ref name="origin"/>
|
2167
2203
|
<optional>
|
2168
2204
|
<ref name="modification"/>
|
@@ -12,14 +12,15 @@ module IsoDoc
|
|
12
12
|
def term_cleanup(docxml)
|
13
13
|
docxml.xpath("//p[@class = 'Terms']").each do |d|
|
14
14
|
h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
|
15
|
-
h2
|
16
|
-
|
15
|
+
d["id"] = h2["id"]
|
16
|
+
d.children.first.previous =
|
17
|
+
"<strong>#{h2.remove.children.to_xml}</strong> "
|
17
18
|
end
|
18
19
|
docxml
|
19
20
|
end
|
20
21
|
|
21
22
|
def make_body(xml, docxml)
|
22
|
-
body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72",
|
23
|
+
body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72",
|
23
24
|
"xml:lang": "EN-US", class: "container" }
|
24
25
|
xml.body **body_attr do |body|
|
25
26
|
make_body1(body, docxml)
|
@@ -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-generic.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency "metanorma-standoc", "~> 1.11.0"
|
31
31
|
spec.add_dependency "ruby-jing"
|
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-generic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.1
|
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
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -53,19 +53,19 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: debug
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: equivalent-xml
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|