metanorma-itu 2.3.4 → 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/Gemfile +5 -1
- data/lib/isodoc/itu/i18n-ar.yaml +1 -0
- data/lib/isodoc/itu/i18n-de.yaml +2 -0
- data/lib/isodoc/itu/i18n-en.yaml +2 -0
- data/lib/isodoc/itu/i18n-es.yaml +2 -0
- data/lib/isodoc/itu/i18n-fr.yaml +2 -0
- data/lib/isodoc/itu/i18n-ru.yaml +2 -0
- data/lib/isodoc/itu/i18n-zh-Hans.yaml +3 -2
- data/lib/isodoc/itu/i18n.rb +5 -13
- data/lib/isodoc/itu/presentation_xml_convert.rb +0 -4
- data/lib/isodoc/itu/xref.rb +6 -6
- data/lib/metanorma/itu/biblio.rng +13 -0
- data/lib/metanorma/itu/front.rb +9 -1
- data/lib/metanorma/itu/isodoc.rng +11 -1
- data/lib/metanorma/itu/version.rb +1 -1
- data/metanorma-itu.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ab874eac40d7f8d7ba5d8bc82ace71a87675477a7d87c8d750af1b22525ba9a
|
4
|
+
data.tar.gz: eb6f6a31df466a149f6e7692006c7ae398f4ce81cc56c9cbaa775b31130aa2f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16b46298780e33ce35de12137b9014e7485ee61cf47dd08419e29f95009e3f36fe6dcb5317503f6edf76e8edb1f67e216fcf7b05c14bfe08be8b4d0e9c237581
|
7
|
+
data.tar.gz: 96b2af6193b2659473240eb41be5de6cd1cd441bf15be385da48181a99177195211392c0c590c7a608089de06b58fe6d8cd933461847f507de2d9582a1455c8d
|
data/Gemfile
CHANGED
@@ -4,8 +4,12 @@ Encoding.default_internal = Encoding::UTF_8
|
|
4
4
|
source "https://rubygems.org"
|
5
5
|
git_source(:github) { |repo| "https://github.com/#{repo}" }
|
6
6
|
|
7
|
-
|
7
|
+
group :development, :test do
|
8
|
+
gem "rspec"
|
9
|
+
end
|
8
10
|
|
9
11
|
if File.exist? "Gemfile.devel"
|
10
12
|
eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
|
11
13
|
end
|
14
|
+
|
15
|
+
gemspec
|
data/lib/isodoc/itu/i18n-ar.yaml
CHANGED
data/lib/isodoc/itu/i18n-de.yaml
CHANGED
@@ -22,6 +22,7 @@ annex_subclause: Klausel
|
|
22
22
|
keywords: Schlüsselwörter
|
23
23
|
in: in
|
24
24
|
to: bis
|
25
|
+
nested_xref: "%2 in %1"
|
25
26
|
where: "wobei:"
|
26
27
|
where_one: "wobei"
|
27
28
|
blankclause: Diese Klausel ist absichtlich leer gelassen
|
@@ -52,6 +53,7 @@ annex_to_itu_ob: Anhang zum ITU Operational Bulletin
|
|
52
53
|
number_abbrev: Nr.
|
53
54
|
annex_to_itu_ob_abbrev: Anhang zum ITU OB %
|
54
55
|
international_telecommunication_union: Internationale Fernmeldeunion
|
56
|
+
ITU: ITU
|
55
57
|
position_on: (Position auf %)
|
56
58
|
revision_abbreviation: Rev.
|
57
59
|
tsb: TSB
|
data/lib/isodoc/itu/i18n-en.yaml
CHANGED
@@ -25,6 +25,7 @@ in: in
|
|
25
25
|
to: to
|
26
26
|
where: "where:"
|
27
27
|
where_one: "where"
|
28
|
+
nested_xref: "%2 in %1"
|
28
29
|
blankclause: This clause is intentionally left blank.
|
29
30
|
norm_with_refs_pref:
|
30
31
|
The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation.
|
@@ -53,6 +54,7 @@ annex_to_itu_ob: Annex to ITU Operational Bulletin
|
|
53
54
|
number_abbrev: No.
|
54
55
|
annex_to_itu_ob_abbrev: Annex to ITU OB %
|
55
56
|
international_telecommunication_union: International Telecommunication Union
|
57
|
+
ITU: ITU
|
56
58
|
position_on: (Position on %)
|
57
59
|
revision_abbreviation: Rev.
|
58
60
|
tsb: TSB
|
data/lib/isodoc/itu/i18n-es.yaml
CHANGED
@@ -23,6 +23,7 @@ annex_subclause: cláusula
|
|
23
23
|
keywords: Palabras clave
|
24
24
|
in: en
|
25
25
|
to: a
|
26
|
+
nested_xref: "%2 en %1"
|
26
27
|
where: "donde:"
|
27
28
|
where_one: "donde"
|
28
29
|
blankclause: Esta cláusula se deja en blanco intencionalmente.
|
@@ -53,6 +54,7 @@ annex_to_itu_ob: Anexo al Boletín de Explotación de la UIT
|
|
53
54
|
number_abbrev: N.°
|
54
55
|
annex_to_itu_ob_abbrev: Anexo al BE de la UIT %
|
55
56
|
international_telecommunication_union: Unión Internacional de Telecomunicaciones
|
57
|
+
ITU: UIT
|
56
58
|
position_on: (Posición en %)
|
57
59
|
revision_abbreviation: Rev.
|
58
60
|
tsb: TSB
|
data/lib/isodoc/itu/i18n-fr.yaml
CHANGED
@@ -23,6 +23,7 @@ annex_subclause: article
|
|
23
23
|
keywords: Mots clés
|
24
24
|
in: dans
|
25
25
|
to: à
|
26
|
+
nested_xref: "%2 dans %1"
|
26
27
|
where: "où:"
|
27
28
|
where_one: "où"
|
28
29
|
blankclause: Cette clause est laissée en blanc intentionnellement.
|
@@ -53,6 +54,7 @@ annex_to_itu_ob: Annexe au Bulletin d’exploitation de l’UIT
|
|
53
54
|
number_abbrev: Nº
|
54
55
|
annex_to_itu_ob_abbrev: Annexe au BE de l’UIT %
|
55
56
|
international_telecommunication_union: Union internationale des télécommunications
|
57
|
+
ITU: UIT
|
56
58
|
position_on: (Position sur %)
|
57
59
|
revision_abbreviation: Rev.
|
58
60
|
tsb: TSB
|
data/lib/isodoc/itu/i18n-ru.yaml
CHANGED
@@ -23,6 +23,7 @@ annex_subclause: пункт
|
|
23
23
|
keywords: Ключевые слова
|
24
24
|
in: в
|
25
25
|
to: до
|
26
|
+
nested_xref: "%2 в %1"
|
26
27
|
where: "где:"
|
27
28
|
where_one: "где"
|
28
29
|
blankclause: Этот пункт намеренно оставлен пустым.
|
@@ -53,6 +54,7 @@ annex_to_itu_ob: Приложение к Оперативному бюллете
|
|
53
54
|
number_abbrev: №.
|
54
55
|
annex_to_itu_ob_abbrev: Приложение к ОБ МСЭ %
|
55
56
|
international_telecommunication_union: Международный Союз Электросвязи
|
57
|
+
ITU: МСЭ
|
56
58
|
position_on: (Позиция по %)
|
57
59
|
revision_abbreviation: Ред.
|
58
60
|
tsb: БСЭ
|
data/lib/isodoc/itu/i18n.rb
CHANGED
@@ -1,22 +1,14 @@
|
|
1
1
|
module IsoDoc
|
2
2
|
module ITU
|
3
3
|
class I18n < IsoDoc::I18n
|
4
|
-
def
|
5
|
-
|
6
|
-
|
4
|
+
def load_file(fname)
|
5
|
+
f = File.join(File.dirname(__FILE__), fname)
|
6
|
+
File.exist?(f) ? YAML.load_file(f) : {}
|
7
7
|
end
|
8
8
|
|
9
9
|
def load_yaml1(lang, script)
|
10
|
-
y =
|
11
|
-
|
12
|
-
load_yaml2x(lang)
|
13
|
-
when "zh"
|
14
|
-
if script == "Hans" then load_yaml2x("zh-Hans")
|
15
|
-
else load_yaml2x("en")
|
16
|
-
end
|
17
|
-
else load_yaml2x("en")
|
18
|
-
end
|
19
|
-
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)
|
20
12
|
end
|
21
13
|
end
|
22
14
|
end
|
data/lib/isodoc/itu/xref.rb
CHANGED
@@ -52,12 +52,12 @@ module IsoDoc
|
|
52
52
|
"-#{(subfignum + 96).chr}"
|
53
53
|
end
|
54
54
|
|
55
|
-
def sequential_figure_body(
|
55
|
+
def sequential_figure_body(subfig, counter, elem, klass, container: false)
|
56
56
|
label = counter.print
|
57
|
-
label &&= label + subfigure_label(
|
58
|
-
@anchors[
|
59
|
-
label, nil, @labels[klass] || klass.capitalize,
|
60
|
-
|
57
|
+
label &&= label + subfigure_label(subfig)
|
58
|
+
@anchors[elem["id"]] = anchor_struct(
|
59
|
+
label, container ? elem : nil, @labels[klass] || klass.capitalize,
|
60
|
+
klass, elem["unnumbered"]
|
61
61
|
)
|
62
62
|
end
|
63
63
|
|
@@ -69,7 +69,7 @@ module IsoDoc
|
|
69
69
|
)
|
70
70
|
end
|
71
71
|
|
72
|
-
def sequential_formula_names(clause)
|
72
|
+
def sequential_formula_names(clause, container: false)
|
73
73
|
clause.first&.xpath(ns(middle_sections))&.each do |c|
|
74
74
|
if c["id"] && @anchors[c["id"]]
|
75
75
|
hierarchical_formula_names(c, @anchors[c["id"]][:label] ||
|
@@ -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>
|
data/lib/metanorma/itu/front.rb
CHANGED
@@ -75,7 +75,15 @@ module Metanorma
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def default_publisher
|
78
|
-
"
|
78
|
+
@i18n.get["ITU"] || @i18n.international_telecommunication_union
|
79
|
+
end
|
80
|
+
|
81
|
+
def org_abbrev
|
82
|
+
if @i18n.get["ITU"]
|
83
|
+
{ @i18n.international_telecommunication_union => @i18n.get["ITU"] }
|
84
|
+
else
|
85
|
+
{}
|
86
|
+
end
|
79
87
|
end
|
80
88
|
|
81
89
|
def metadata_committee(node, xml)
|
@@ -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>
|
data/metanorma-itu.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.require_paths = ["lib"]
|
26
26
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
27
27
|
|
28
|
-
spec.add_dependency "metanorma-standoc", "~> 2.
|
28
|
+
spec.add_dependency "metanorma-standoc", "~> 2.7.0"
|
29
29
|
spec.add_dependency "ruby-jing"
|
30
30
|
spec.add_dependency "twitter_cldr", ">= 3.0.0"
|
31
31
|
spec.add_dependency "tzinfo-data" # we need this for windows only
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-itu
|
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: exe
|
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-standoc
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.7.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.7.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ruby-jing
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|