metanorma-itu 2.5.8 → 2.5.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/itu/base_convert.rb +10 -8
- data/lib/isodoc/itu/i18n-ar.yaml +2 -2
- data/lib/isodoc/itu/i18n-de.yaml +2 -2
- data/lib/isodoc/itu/i18n-en.yaml +2 -2
- data/lib/isodoc/itu/i18n-es.yaml +2 -2
- data/lib/isodoc/itu/i18n-fr.yaml +2 -2
- data/lib/isodoc/itu/i18n-ru.yaml +2 -2
- data/lib/isodoc/itu/i18n-zh-Hans.yaml +2 -2
- data/lib/isodoc/itu/init.rb +2 -2
- data/lib/isodoc/itu/itu.implementers-guide.xsl +482 -149
- data/lib/isodoc/itu/itu.in-force.xsl +482 -149
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +482 -149
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +482 -149
- data/lib/isodoc/itu/itu.recommendation.xsl +482 -149
- data/lib/isodoc/itu/itu.resolution.xsl +482 -149
- data/lib/isodoc/itu/itu.service-publication.xsl +482 -149
- data/lib/isodoc/itu/itu.technical-paper.xsl +482 -149
- data/lib/isodoc/itu/itu.technical-report.xsl +482 -149
- data/lib/isodoc/itu/presentation_contribution.rb +1 -0
- data/lib/isodoc/itu/presentation_preface.rb +2 -1
- data/lib/isodoc/itu/presentation_xml_convert.rb +30 -8
- data/lib/isodoc/itu/ref.rb +1 -1
- data/lib/isodoc/itu/terms.rb +3 -3
- data/lib/isodoc/itu/word_convert.rb +4 -4
- data/lib/isodoc/itu/xref.rb +47 -11
- data/lib/isodoc/itu/xref_section.rb +42 -20
- data/lib/metanorma/itu/biblio.rng +13 -1
- data/lib/metanorma/itu/isodoc.rng +6 -6
- 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: 07febc1da79ed58da9a7ec29a626c5612d5a54da9e77003b7adf70531f9738ca
|
4
|
+
data.tar.gz: 760aa9b1e6bbf86f9ec4f127519ba5d9a6493020ef5ee281c8010a5d57607136
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d3e2e0eef213be48fb71f1bb4f0582b4cabcc95a770ef2fd7cdf4d5f8f7b5fb1e3155acea1d2c256b5ecc500919fd4927bf5c1b3829cb340ea6972a964f31b0
|
7
|
+
data.tar.gz: fd6cc9a7c452b97962bd84797e3394c3211c27d49cc5220e755bda5ebf2fc229e1c25b9a497fbdc86fb1a356a6cd3d5ff2349df968075df94889f27f06938aa5
|
@@ -12,10 +12,10 @@ module IsoDoc
|
|
12
12
|
"[not(local-name() = 'abstract')]".freeze
|
13
13
|
|
14
14
|
def introduction(clause, out)
|
15
|
-
title = clause.at(ns("./title"))
|
15
|
+
title = clause.at(ns("./fmt-title"))
|
16
16
|
out.div **attr_code(clause_attrs(clause)) do |s|
|
17
17
|
clause_name(clause, title, s, class: "IntroTitle")
|
18
|
-
clause.elements.reject { |c1| c1.name == "title" }.each do |c1|
|
18
|
+
clause.elements.reject { |c1| c1.name == "fmt-title" }.each do |c1|
|
19
19
|
parse(c1, s)
|
20
20
|
end
|
21
21
|
end
|
@@ -65,9 +65,9 @@ module IsoDoc
|
|
65
65
|
@meta.get[:doctype_original] == "recommendation-annex" or
|
66
66
|
page_break(out)
|
67
67
|
out.div **attr_code(id: node["id"], class: "Section3") do |s|
|
68
|
-
annex_name(node, nil, s) unless node.at(ns("./title"))
|
68
|
+
annex_name(node, nil, s) unless node.at(ns("./fmt-title"))
|
69
69
|
node.elements.each do |c1|
|
70
|
-
if c1.name == "title" then annex_name(node, c1, s)
|
70
|
+
if c1.name == "fmt-title" then annex_name(node, c1, s)
|
71
71
|
else
|
72
72
|
parse(c1, s)
|
73
73
|
end
|
@@ -82,7 +82,8 @@ module IsoDoc
|
|
82
82
|
super
|
83
83
|
end
|
84
84
|
|
85
|
-
|
85
|
+
# TODO kill
|
86
|
+
def note_p_parsex(node, div)
|
86
87
|
name = node.at(ns("./name"))&.remove
|
87
88
|
div.p do |p|
|
88
89
|
name and p.span class: "note_label" do |s|
|
@@ -93,7 +94,8 @@ module IsoDoc
|
|
93
94
|
node.element_children[1..-1].each { |n| parse(n, div) }
|
94
95
|
end
|
95
96
|
|
96
|
-
|
97
|
+
# TODO kill
|
98
|
+
def note_parse1x(node, div)
|
97
99
|
name = node.at(ns("./name"))&.remove
|
98
100
|
div.p do |p|
|
99
101
|
name and p.span class: "note_label" do |s|
|
@@ -119,7 +121,7 @@ module IsoDoc
|
|
119
121
|
def clause(clause, out)
|
120
122
|
out.div **attr_code(clause_attrs(clause)) do |s|
|
121
123
|
clause.elements.each do |c1|
|
122
|
-
if c1.name == "title" then clause_name(clause, c1, s, nil)
|
124
|
+
if c1.name == "fmt-title" then clause_name(clause, c1, s, nil)
|
123
125
|
else
|
124
126
|
parse(c1, s)
|
125
127
|
end
|
@@ -136,7 +138,7 @@ module IsoDoc
|
|
136
138
|
def dl1(dlist)
|
137
139
|
ret = dl2tbody(dlist)
|
138
140
|
n = dlist.at(ns("./colgroup")) and ret = "#{n.remove.to_xml}#{ret}"
|
139
|
-
n = dlist.at(ns("./name")) and ret = "#{n.remove.to_xml}#{ret}"
|
141
|
+
n = dlist.at(ns("./fmt-name")) and ret = "#{n.remove.to_xml}#{ret}"
|
140
142
|
dlist.name = "table"
|
141
143
|
dlist["class"] = "dl"
|
142
144
|
dlist.children.first.previous = ret
|
data/lib/isodoc/itu/i18n-ar.yaml
CHANGED
@@ -10,7 +10,7 @@ termsdef: مصطلحات معرفة
|
|
10
10
|
termsdefsymbolsabbrev: تعريف
|
11
11
|
termsdefsymbols: تعريف
|
12
12
|
termsdefabbrev: تعريف
|
13
|
-
termnote:
|
13
|
+
termnote: <span class='fmt-element-name'>ﻡﻼﺤﻇﺓ</span> %
|
14
14
|
normref: المراجع المعيارية
|
15
15
|
symbolsabbrev: اختصار
|
16
16
|
abbrev: اختصار
|
@@ -31,7 +31,7 @@ annex_subclause: فقرة
|
|
31
31
|
keywords: الكلمات الدالة
|
32
32
|
in: في
|
33
33
|
to: إلى
|
34
|
-
nested_xref: "%2
|
34
|
+
nested_xref: "%2 <conn>ﻒﻳ</conn> %1"
|
35
35
|
where: ":حيث,"
|
36
36
|
where_one: "حيث,"
|
37
37
|
blankclause: تم ترك هذا الشرط فارغًا عمدًا
|
data/lib/isodoc/itu/i18n-de.yaml
CHANGED
@@ -10,7 +10,7 @@ termsdef: Definitionen
|
|
10
10
|
termsdefsymbolsabbrev: Definitionen
|
11
11
|
termsdefsymbols: Definitionen
|
12
12
|
termsdefabbrev: Definitionen
|
13
|
-
termnote: HINWEIS %
|
13
|
+
termnote: <span class='fmt-element-name'>HINWEIS</span> %
|
14
14
|
normref: Referenzen
|
15
15
|
symbolsabbrev: Abkürzungen und Akronyme
|
16
16
|
abbrev: Abkürzungen und Akronyme
|
@@ -30,7 +30,7 @@ annex_subclause: Klausel
|
|
30
30
|
keywords: Schlüsselwörter
|
31
31
|
in: in
|
32
32
|
to: bis
|
33
|
-
nested_xref: "%2 in %1"
|
33
|
+
nested_xref: "%2 <conn>in</conn> %1"
|
34
34
|
where: "wobei:"
|
35
35
|
where_one: "wobei"
|
36
36
|
blankclause: Diese Klausel ist absichtlich leer gelassen
|
data/lib/isodoc/itu/i18n-en.yaml
CHANGED
@@ -10,7 +10,7 @@ termsdef: Definitions
|
|
10
10
|
termsdefsymbolsabbrev: Definitions
|
11
11
|
termsdefsymbols: Definitions
|
12
12
|
termsdefabbrev: Definitions
|
13
|
-
termnote: NOTE %
|
13
|
+
termnote: <span class='fmt-element-name'>NOTE</span> %
|
14
14
|
normref: References
|
15
15
|
symbolsabbrev: Abbreviations and acronyms
|
16
16
|
abbrev: Abbreviations and acronyms
|
@@ -33,7 +33,7 @@ in: in
|
|
33
33
|
to: to
|
34
34
|
where: "where:"
|
35
35
|
where_one: "where"
|
36
|
-
nested_xref: "%2 in %1"
|
36
|
+
nested_xref: "%2 <conn>in</conn> %1"
|
37
37
|
blankclause: This clause is intentionally left blank.
|
38
38
|
norm_with_refs_pref:
|
39
39
|
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.
|
data/lib/isodoc/itu/i18n-es.yaml
CHANGED
@@ -10,7 +10,7 @@ termsdef: Definiciones
|
|
10
10
|
termsdefsymbolsabbrev: Definiciones
|
11
11
|
termsdefsymbols: Definiciones
|
12
12
|
termsdefabbrev: Definiciones
|
13
|
-
termnote: NOTA %
|
13
|
+
termnote: <span class='fmt-element-name'>NOTA</span> %
|
14
14
|
normref: Referencias
|
15
15
|
symbolsabbrev: Abreviaciones y acrónimos
|
16
16
|
abbrev: Abreviaciones y acrónimos
|
@@ -31,7 +31,7 @@ annex_subclause: cláusula
|
|
31
31
|
keywords: Palabras clave
|
32
32
|
in: en
|
33
33
|
to: a
|
34
|
-
nested_xref: "%2 en %1"
|
34
|
+
nested_xref: "%2 <conn>en</conn> %1"
|
35
35
|
where: "donde:"
|
36
36
|
where_one: "donde"
|
37
37
|
blankclause: Esta cláusula se deja en blanco intencionalmente.
|
data/lib/isodoc/itu/i18n-fr.yaml
CHANGED
@@ -10,7 +10,7 @@ termsdef: Définitions
|
|
10
10
|
termsdefsymbolsabbrev: Définitions
|
11
11
|
termsdefsymbols: Définitions
|
12
12
|
termsdefabbrev: Définitions
|
13
|
-
termnote: NOTE %
|
13
|
+
termnote: <span class='fmt-element-name'>NOTE</span> %
|
14
14
|
normref: Références
|
15
15
|
symbolsabbrev: Abréviations et acronymes
|
16
16
|
abbrev: Abréviations et acronymes
|
@@ -31,7 +31,7 @@ annex_subclause: article
|
|
31
31
|
keywords: Mots clés
|
32
32
|
in: dans
|
33
33
|
to: à
|
34
|
-
nested_xref: "%2 dans %1"
|
34
|
+
nested_xref: "%2 <conn>dans</conn> %1"
|
35
35
|
where: "où:"
|
36
36
|
where_one: "où"
|
37
37
|
blankclause: Cette clause est laissée en blanc intentionnellement.
|
data/lib/isodoc/itu/i18n-ru.yaml
CHANGED
@@ -10,7 +10,7 @@ termsdef: Определения
|
|
10
10
|
termsdefsymbolsabbrev: Определения
|
11
11
|
termsdefsymbols: Определения
|
12
12
|
termsdefabbrev: Определения
|
13
|
-
termnote:
|
13
|
+
termnote: <span class='fmt-element-name'>ПРИМЕЧАНИЕ</span> %
|
14
14
|
normref: Ссылки
|
15
15
|
symbolsabbrev: Сокращения и акронимы
|
16
16
|
abbrev: Сокращения и акронимы
|
@@ -31,7 +31,7 @@ annex_subclause: пункт
|
|
31
31
|
keywords: Ключевые слова
|
32
32
|
in: в
|
33
33
|
to: до
|
34
|
-
nested_xref: "%2
|
34
|
+
nested_xref: "%2 <conn>в</conn> %1"
|
35
35
|
where: "где:"
|
36
36
|
where_one: "где"
|
37
37
|
blankclause: Этот пункт намеренно оставлен пустым.
|
@@ -10,7 +10,7 @@ termsdef: 定义
|
|
10
10
|
termsdefsymbolsabbrev: 定义
|
11
11
|
termsdefsymbols: 定义
|
12
12
|
termsdefabbrev: 定义
|
13
|
-
termnote:
|
13
|
+
termnote: <span class='fmt-element-name'>注</span>%
|
14
14
|
normref: 规范性参考文献
|
15
15
|
symbolsabbrev: 缩略语与缩写
|
16
16
|
abbrev: 缩略语与缩写
|
@@ -31,7 +31,7 @@ annex_subclause: 条款
|
|
31
31
|
keywords: 关键词
|
32
32
|
in: 中的
|
33
33
|
to: 至
|
34
|
-
nested_xref: "%1
|
34
|
+
nested_xref: "%1<conn>中的</conn>%2"
|
35
35
|
where: 式中:
|
36
36
|
where_one: 式中
|
37
37
|
blankclause: This clause is intentionally left blank.
|
data/lib/isodoc/itu/init.rb
CHANGED
@@ -22,8 +22,8 @@ module IsoDoc
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def bibrenderer(options = {})
|
25
|
-
::Relaton::Render::Itu::General.new(options
|
26
|
-
|
25
|
+
::Relaton::Render::Itu::General.new(options
|
26
|
+
.merge(language: @lang, i18nhash: @i18n.get))
|
27
27
|
end
|
28
28
|
|
29
29
|
def fileloc(loc)
|