metanorma-iec 2.3.5 → 2.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iec/i18n.rb +7 -11
- data/lib/metanorma/iec/biblio.rng +13 -0
- data/lib/metanorma/iec/isodoc.rng +11 -1
- data/lib/metanorma/iec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dadf0494f3b4da1463098fd60cedc80b9700b717b63b0fddc60f8b5dc60efbd6
|
4
|
+
data.tar.gz: fc22e411d46874ef0bdddd89d8c1ab175fcfc26aff5e43bb24736243ed86920a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3dc7b116fea310b75b1d0e59af9b7e78a4a132693d118d0b4fd6a91b7d18bb008506467ac2953e3df94ef4ac9b5c3d2a1b8bf239aab42b518c7e724fb816a6e
|
7
|
+
data.tar.gz: 79db819a96a68b1c6c2ec8e1ae54910d7fedebca8cda32e7ca956fb84b78ea2c29a111f5093e4e6c2ad1b6f234a33de9e81f793366b9eef462527c3c8f9ff45f
|
data/lib/isodoc/iec/i18n.rb
CHANGED
@@ -1,19 +1,15 @@
|
|
1
1
|
module IsoDoc
|
2
2
|
module Iec
|
3
3
|
class I18n < IsoDoc::Iso::I18n
|
4
|
+
def load_file(fname)
|
5
|
+
f = File.join(File.dirname(__FILE__), fname)
|
6
|
+
File.exist?(f) ? YAML.load_file(f) : {}
|
7
|
+
end
|
8
|
+
|
4
9
|
def load_yaml1(lang, script)
|
5
|
-
y =
|
6
|
-
|
7
|
-
elsif lang == "fr"
|
8
|
-
YAML.load_file(File.join(File.dirname(__FILE__), "i18n-fr.yaml"))
|
9
|
-
elsif lang == "zh" && script == "Hans"
|
10
|
-
YAML.load_file(File.join(File.dirname(__FILE__), "i18n-zh-Hans.yaml"))
|
11
|
-
else
|
12
|
-
YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))
|
13
|
-
end
|
14
|
-
super.deep_merge(y)
|
10
|
+
y = load_file("i18n-#{yaml_lang(lang, script)}.yaml")
|
11
|
+
y.empty? ? load_file("i18n-en.yaml").merge(super) : super.deep_merge(y)
|
15
12
|
end
|
16
13
|
end
|
17
14
|
end
|
18
15
|
end
|
19
|
-
|
@@ -374,6 +374,16 @@
|
|
374
374
|
<ref name="image"/>
|
375
375
|
</element>
|
376
376
|
</define>
|
377
|
+
<define name="depiction">
|
378
|
+
<element name="depiction">
|
379
|
+
<optional>
|
380
|
+
<attribute name="scope"/>
|
381
|
+
</optional>
|
382
|
+
<zeroOrMore>
|
383
|
+
<ref name="image"/>
|
384
|
+
</zeroOrMore>
|
385
|
+
</element>
|
386
|
+
</define>
|
377
387
|
<define name="NameWithVariants">
|
378
388
|
<element name="primary">
|
379
389
|
<ref name="LocalizedString"/>
|
@@ -760,6 +770,9 @@
|
|
760
770
|
<optional>
|
761
771
|
<ref name="validity"/>
|
762
772
|
</optional>
|
773
|
+
<optional>
|
774
|
+
<ref name="depiction"/>
|
775
|
+
</optional>
|
763
776
|
</define>
|
764
777
|
<define name="ReducedBibliographicItem">
|
765
778
|
<optional>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
these elements; we just want one namespace for any child grammars
|
18
18
|
of this.
|
19
19
|
-->
|
20
|
-
<!-- VERSION v1.2.
|
20
|
+
<!-- VERSION v1.2.9 -->
|
21
21
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
22
22
|
<include href="reqt.rng"/>
|
23
23
|
<include href="basicdoc.rng">
|
@@ -1958,6 +1958,16 @@
|
|
1958
1958
|
<data type="boolean"/>
|
1959
1959
|
</attribute>
|
1960
1960
|
</optional>
|
1961
|
+
<optional>
|
1962
|
+
<attribute name="type">
|
1963
|
+
<choice>
|
1964
|
+
<value>letter</value>
|
1965
|
+
<value>symbol</value>
|
1966
|
+
<value>formula</value>
|
1967
|
+
<value>equation</value>
|
1968
|
+
</choice>
|
1969
|
+
</attribute>
|
1970
|
+
</optional>
|
1961
1971
|
<element name="name">
|
1962
1972
|
<oneOrMore>
|
1963
1973
|
<choice>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-iso
|