metanorma-itu 1.3.11 → 1.4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Rakefile +2 -2
- data/bin/rspec +1 -2
- data/lib/asciidoctor/itu/basicdoc.rng +21 -4
- data/lib/asciidoctor/itu/front.rb +5 -61
- data/lib/asciidoctor/itu/front_id.rb +67 -0
- data/lib/asciidoctor/itu/isodoc.rng +419 -77
- data/lib/asciidoctor/itu/itu.rng +3 -8
- data/lib/asciidoctor/itu/reqt.rng +23 -2
- data/lib/asciidoctor/itu/validate.rb +33 -31
- data/lib/asciidoctor/itu.rb +0 -1
- data/lib/isodoc/itu/base_convert.rb +5 -2
- data/lib/isodoc/itu/html/wordstyle.css +29 -8
- data/lib/isodoc/itu/html/wordstyle.scss +29 -8
- data/lib/isodoc/itu/i18n-ar.yaml +1 -0
- data/lib/isodoc/itu/i18n-de.yaml +1 -0
- data/lib/isodoc/itu/i18n-en.yaml +1 -0
- data/lib/isodoc/itu/i18n-es.yaml +1 -0
- data/lib/isodoc/itu/i18n-fr.yaml +1 -0
- data/lib/isodoc/itu/i18n-ru.yaml +1 -0
- data/lib/isodoc/itu/i18n-zh-Hans.yaml +1 -0
- data/lib/isodoc/itu/i18n.rb +1 -2
- data/lib/isodoc/itu/init.rb +1 -2
- data/lib/isodoc/itu/itu.implementers-guide.xsl +171 -11
- data/lib/isodoc/itu/itu.in-force.xsl +171 -11
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +171 -11
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +171 -11
- data/lib/isodoc/itu/itu.recommendation.xsl +171 -11
- data/lib/isodoc/itu/itu.resolution.xsl +171 -11
- data/lib/isodoc/itu/itu.service-publication.xsl +171 -11
- data/lib/isodoc/itu/itu.technical-paper.xsl +171 -11
- data/lib/isodoc/itu/itu.technical-report.xsl +171 -11
- data/lib/isodoc/itu/metadata.rb +3 -2
- data/lib/isodoc/itu/pdf_convert.rb +5 -4
- data/lib/isodoc/itu/terms.rb +9 -6
- data/lib/isodoc/itu.rb +0 -1
- data/lib/metanorma/itu/version.rb +1 -1
- data/metanorma-itu.gemspec +1 -2
- metadata +6 -19
data/lib/asciidoctor/itu/itu.rng
CHANGED
@@ -171,14 +171,9 @@
|
|
171
171
|
</optional>
|
172
172
|
<group>
|
173
173
|
<choice>
|
174
|
-
<
|
175
|
-
<
|
176
|
-
|
177
|
-
</zeroOrMore>
|
178
|
-
<zeroOrMore>
|
179
|
-
<ref name="note"/>
|
180
|
-
</zeroOrMore>
|
181
|
-
</group>
|
174
|
+
<zeroOrMore>
|
175
|
+
<ref name="BasicBlock"/>
|
176
|
+
</zeroOrMore>
|
182
177
|
<ref name="amend"/>
|
183
178
|
</choice>
|
184
179
|
<zeroOrMore>
|
@@ -58,6 +58,14 @@
|
|
58
58
|
<optional>
|
59
59
|
<attribute name="type"/>
|
60
60
|
</optional>
|
61
|
+
<optional>
|
62
|
+
<attribute name="tag"/>
|
63
|
+
</optional>
|
64
|
+
<optional>
|
65
|
+
<attribute name="multilingual-rendering">
|
66
|
+
<ref name="MultilingualRenderingType"/>
|
67
|
+
</attribute>
|
68
|
+
</optional>
|
61
69
|
<optional>
|
62
70
|
<ref name="reqtitle"/>
|
63
71
|
</optional>
|
@@ -101,7 +109,9 @@
|
|
101
109
|
</define>
|
102
110
|
<define name="label">
|
103
111
|
<element name="label">
|
104
|
-
<
|
112
|
+
<oneOrMore>
|
113
|
+
<ref name="TextElement"/>
|
114
|
+
</oneOrMore>
|
105
115
|
</element>
|
106
116
|
</define>
|
107
117
|
<define name="subject">
|
@@ -175,8 +185,19 @@
|
|
175
185
|
<data type="boolean"/>
|
176
186
|
</attribute>
|
177
187
|
</optional>
|
188
|
+
<optional>
|
189
|
+
<attribute name="tag"/>
|
190
|
+
</optional>
|
191
|
+
<optional>
|
192
|
+
<attribute name="multilingual-rendering">
|
193
|
+
<ref name="MultilingualRenderingType"/>
|
194
|
+
</attribute>
|
195
|
+
</optional>
|
178
196
|
<oneOrMore>
|
179
|
-
<
|
197
|
+
<choice>
|
198
|
+
<ref name="BasicBlock"/>
|
199
|
+
<ref name="component"/>
|
200
|
+
</choice>
|
180
201
|
</oneOrMore>
|
181
202
|
</define>
|
182
203
|
<define name="ObligationType">
|
@@ -8,18 +8,19 @@ module Asciidoctor
|
|
8
8
|
|
9
9
|
def doctype_validate(xmldoc)
|
10
10
|
doctype = xmldoc&.at("//bibdata/ext/doctype")&.text
|
11
|
-
%w(recommendation recommendation-supplement recommendation-amendment
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
%w(recommendation recommendation-supplement recommendation-amendment
|
12
|
+
recommendation-corrigendum recommendation-errata recommendation-annex
|
13
|
+
focus-group implementers-guide technical-paper technical-report
|
14
|
+
joint-itu-iso-iec service-publication).include? doctype or
|
15
|
+
@log.add("Document Attributes", nil,
|
16
|
+
"#{doctype} is not a recognised document type")
|
16
17
|
end
|
17
18
|
|
18
19
|
def stage_validate(xmldoc)
|
19
20
|
stage = xmldoc&.at("//bibdata/status/stage")&.text
|
20
|
-
%w(in-force superseded in-force-prepublished withdrawn
|
21
|
-
|
22
|
-
@log.add("Document Attributes", nil,
|
21
|
+
%w(in-force superseded in-force-prepublished withdrawn
|
22
|
+
draft).include? stage or
|
23
|
+
@log.add("Document Attributes", nil,
|
23
24
|
"#{stage} is not a recognised status")
|
24
25
|
end
|
25
26
|
|
@@ -40,12 +41,14 @@ module Asciidoctor
|
|
40
41
|
xmldoc.xpath("//bibdata/series/title").each do |s|
|
41
42
|
series = s.text.sub(/^[A-Z]: /, "")
|
42
43
|
t.downcase.include?(series.downcase) and
|
43
|
-
@log.add("Document Attributes", nil,
|
44
|
+
@log.add("Document Attributes", nil,
|
45
|
+
"Title includes series name #{series}")
|
44
46
|
end
|
45
47
|
end
|
46
48
|
|
47
49
|
def extract_text(node)
|
48
50
|
return "" if node.nil?
|
51
|
+
|
49
52
|
node1 = Nokogiri::XML.fragment(node.to_s)
|
50
53
|
node1.xpath("//link | //locality | //localityStack").each(&:remove)
|
51
54
|
ret = ""
|
@@ -58,7 +61,7 @@ module Asciidoctor
|
|
58
61
|
xmldoc.xpath("//preface/*").each do |c|
|
59
62
|
extract_text(c).split(/\.\s+/).each do |t|
|
60
63
|
/\b(shall|must)\b/i.match(t) and
|
61
|
-
@log.add("Style", c,
|
64
|
+
@log.add("Style", c,
|
62
65
|
"Requirement possibly in preface: #{t.strip}")
|
63
66
|
end
|
64
67
|
end
|
@@ -66,17 +69,17 @@ module Asciidoctor
|
|
66
69
|
|
67
70
|
# Editing Guidelines 9.4.3
|
68
71
|
# Supplanted by rendering
|
69
|
-
def numbers_validate(xmldoc)
|
70
|
-
end
|
72
|
+
def numbers_validate(xmldoc); end
|
71
73
|
|
72
|
-
def style_two_regex_not_prev(
|
74
|
+
def style_two_regex_not_prev(node, text, regex, regex_prev, warning)
|
73
75
|
return if text.nil?
|
76
|
+
|
74
77
|
arr = text.split(/\W+/)
|
75
78
|
arr.each_index do |i|
|
76
|
-
m =
|
77
|
-
m_prev = i.zero? ? nil :
|
79
|
+
m = regex.match arr[i]
|
80
|
+
m_prev = i.zero? ? nil : regex_prev.match(arr[i - 1])
|
78
81
|
if !m.nil? && m_prev.nil?
|
79
|
-
@log.add("Style",
|
82
|
+
@log.add("Style", node, "#{warning}: #{m[:num]}")
|
80
83
|
end
|
81
84
|
end
|
82
85
|
end
|
@@ -85,21 +88,19 @@ module Asciidoctor
|
|
85
88
|
s = xmldoc.at("//bibdata/ext/recommendationstatus/approvalstage") or
|
86
89
|
return
|
87
90
|
process = s["process"]
|
88
|
-
|
89
|
-
@log.add("Document Attributes", nil,
|
91
|
+
(process == "aap") && %w(determined in-force).include?(s.text) and
|
92
|
+
@log.add("Document Attributes", nil,
|
90
93
|
"Recommendation Status #{s.text} inconsistent with AAP")
|
91
|
-
|
92
|
-
|
93
|
-
@log.add("Document Attributes", nil,
|
94
|
+
(process == "tap") && !%w(determined in-force).include?(s.text) and
|
95
|
+
@log.add("Document Attributes", nil,
|
94
96
|
"Recommendation Status #{s.text} inconsistent with TAP")
|
95
|
-
end
|
96
97
|
end
|
97
98
|
|
98
99
|
def itu_identifier_validate(xmldoc)
|
99
|
-
|
100
|
+
xmldoc.xpath("//bibdata/docidentifier[@type = 'ITU']").each do |x|
|
100
101
|
/^ITU-[RTD] [AD-VX-Z]\.[0-9]+$/.match(x.text) or
|
101
102
|
@log.add("Style", nil, "#{x.text} does not match ITU document "\
|
102
|
-
|
103
|
+
"identifier conventions")
|
103
104
|
end
|
104
105
|
end
|
105
106
|
|
@@ -112,8 +113,9 @@ module Asciidoctor
|
|
112
113
|
def unnumbered_check(xmldoc)
|
113
114
|
doctype = xmldoc&.at("//bibdata/ext/doctype")&.text
|
114
115
|
xmldoc.xpath("//clause[@unnumbered = 'true']").each do |c|
|
115
|
-
next if doctype == "resolution"
|
116
|
+
next if (doctype == "resolution") && (c.parent.name == "sections") &&
|
116
117
|
!c.at("./preceding-sibling::clause")
|
118
|
+
|
117
119
|
@log.add("Style", c, "Unnumbered clause out of place")
|
118
120
|
end
|
119
121
|
end
|
@@ -128,18 +130,18 @@ module Asciidoctor
|
|
128
130
|
|
129
131
|
def termdef_style(xmldoc)
|
130
132
|
xmldoc.xpath("//term").each do |t|
|
131
|
-
para = t.at("./definition") || return
|
132
|
-
term = t.at("./preferred").text
|
133
|
+
para = t.at("./definition/verbaldefinition") || return
|
134
|
+
term = t.at("./preferred//name").text
|
133
135
|
termdef_warn(term, /^[A-Z][a-z]+/, t, term, "term is not lowercase")
|
134
|
-
termdef_warn(para.text, /^[a-z]/, t, term,
|
136
|
+
termdef_warn(para.text, /^[a-z]/, t, term,
|
135
137
|
"term definition does not start with capital")
|
136
|
-
termdef_warn(para.text, /[^.]$/, t, term,
|
138
|
+
termdef_warn(para.text, /[^.]$/, t, term,
|
137
139
|
"term definition does not end with period")
|
138
140
|
end
|
139
141
|
end
|
140
142
|
|
141
|
-
def termdef_warn(text,
|
142
|
-
|
143
|
+
def termdef_warn(text, regex, node, term, msg)
|
144
|
+
regex.match(text) && @log.add("Style", node, "#{term}: #{msg}")
|
143
145
|
end
|
144
146
|
end
|
145
147
|
end
|
data/lib/asciidoctor/itu.rb
CHANGED
@@ -9,7 +9,7 @@ module IsoDoc
|
|
9
9
|
module ITU
|
10
10
|
module BaseConvert
|
11
11
|
FRONT_CLAUSE = "//*[parent::preface]"\
|
12
|
-
|
12
|
+
"[not(local-name() = 'abstract')]".freeze
|
13
13
|
|
14
14
|
def preface(isoxml, out)
|
15
15
|
isoxml.xpath(ns(FRONT_CLAUSE)).each do |c|
|
@@ -124,7 +124,10 @@ module IsoDoc
|
|
124
124
|
|
125
125
|
def middle_title_recommendation(isoxml, out)
|
126
126
|
out.p(**{ class: "zzSTDTitle1" }) do |p|
|
127
|
-
|
127
|
+
type = @meta.get[:doctype]
|
128
|
+
@meta.get[:unpublished] && @meta.get[:draft_new_doctype] and
|
129
|
+
type = @meta.get[:draft_new_doctype]
|
130
|
+
id = @meta.get[:docnumber] and p << "#{type} #{id}"
|
128
131
|
end
|
129
132
|
out.p(**{ class: "zzSTDTitle2" }) do |p|
|
130
133
|
p << @meta.get[:doctitle]
|
@@ -170,6 +170,7 @@ p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxS
|
|
170
170
|
p.MsoCommentText, li.MsoCommentText, div.MsoCommentText {
|
171
171
|
mso-style-noshow: yes;
|
172
172
|
mso-style-unhide: no;
|
173
|
+
mso-style-name: "Comment Text";
|
173
174
|
mso-style-link: "Comment Text Char";
|
174
175
|
margin: 0cm;
|
175
176
|
margin-bottom: .0001pt;
|
@@ -212,6 +213,7 @@ p.MsoHeaderLandscape, li.MsoHeaderLandscape, div.MsoHeaderLandscape {
|
|
212
213
|
|
213
214
|
p.MsoFooter, li.MsoFooter, div.MsoFooter {
|
214
215
|
mso-style-unhide: no;
|
216
|
+
mso-style-name: "Footer";
|
215
217
|
margin: 0cm;
|
216
218
|
margin-bottom: .0001pt;
|
217
219
|
text-align: justify;
|
@@ -464,6 +466,7 @@ h1 {
|
|
464
466
|
mso-style-priority: 1;
|
465
467
|
mso-style-unhide: no;
|
466
468
|
mso-style-qformat: yes;
|
469
|
+
mso-style-name: "Heading 1";
|
467
470
|
mso-style-link: "Heading 1 Char";
|
468
471
|
mso-style-next: Normal;
|
469
472
|
margin-top: 18.0pt;
|
@@ -649,6 +652,7 @@ h2 {
|
|
649
652
|
mso-style-priority: 2;
|
650
653
|
mso-style-unhide: no;
|
651
654
|
mso-style-qformat: yes;
|
655
|
+
mso-style-name: "Heading 2";
|
652
656
|
mso-style-parent: "Heading 1";
|
653
657
|
mso-style-link: "Heading 2 Char";
|
654
658
|
mso-style-next: Normal;
|
@@ -680,7 +684,8 @@ h3 {
|
|
680
684
|
mso-style-priority: 3;
|
681
685
|
mso-style-unhide: no;
|
682
686
|
mso-style-qformat: yes;
|
683
|
-
mso-style-
|
687
|
+
mso-style-name: "Heading 3";
|
688
|
+
mso-style-parent: "Heading 2";
|
684
689
|
mso-style-link: "Heading 3 Char";
|
685
690
|
mso-style-next: Normal;
|
686
691
|
margin-top: 8.0pt;
|
@@ -709,6 +714,7 @@ h4 {
|
|
709
714
|
mso-style-priority: 4;
|
710
715
|
mso-style-unhide: no;
|
711
716
|
mso-style-qformat: yes;
|
717
|
+
mso-style-name: "Heading 4";
|
712
718
|
mso-style-parent: "Heading 3";
|
713
719
|
mso-style-link: "Heading 4 Char";
|
714
720
|
mso-style-next: Normal;
|
@@ -741,6 +747,7 @@ h5 {
|
|
741
747
|
mso-style-priority: 5;
|
742
748
|
mso-style-unhide: no;
|
743
749
|
mso-style-qformat: yes;
|
750
|
+
mso-style-name: "Heading 5";
|
744
751
|
mso-style-parent: "Heading 4";
|
745
752
|
mso-style-link: "Heading 5 Char";
|
746
753
|
mso-style-next: Normal;
|
@@ -773,6 +780,7 @@ h6 {
|
|
773
780
|
mso-style-priority: 6;
|
774
781
|
mso-style-unhide: no;
|
775
782
|
mso-style-qformat: yes;
|
783
|
+
mso-style-name: "Heading 6";
|
776
784
|
mso-style-parent: "Heading 5";
|
777
785
|
mso-style-link: "Heading 6 Char";
|
778
786
|
mso-style-next: Normal;
|
@@ -804,6 +812,7 @@ h6 {
|
|
804
812
|
p.MsoHeading7, li.MsoHeading7, div.MsoHeading7 {
|
805
813
|
mso-style-unhide: no;
|
806
814
|
mso-style-qformat: yes;
|
815
|
+
mso-style-name: "Heading 7";
|
807
816
|
mso-style-parent: "Heading 6";
|
808
817
|
mso-style-next: Normal;
|
809
818
|
margin-top: 8.0pt;
|
@@ -831,7 +840,8 @@ p.MsoHeading7, li.MsoHeading7, div.MsoHeading7 {
|
|
831
840
|
p.MsoHeading8, li.MsoHeading8, div.MsoHeading8 {
|
832
841
|
mso-style-unhide: no;
|
833
842
|
mso-style-qformat: yes;
|
834
|
-
mso-style-
|
843
|
+
mso-style-name: "Heading 8";
|
844
|
+
mso-style-parent: "Heading 7";
|
835
845
|
mso-style-next: Normal;
|
836
846
|
margin-top: 8.0pt;
|
837
847
|
margin-right: 0cm;
|
@@ -858,8 +868,9 @@ p.MsoHeading8, li.MsoHeading8, div.MsoHeading8 {
|
|
858
868
|
p.MsoHeading9, li.MsoHeading9, div.MsoHeading9 {
|
859
869
|
mso-style-unhide: no;
|
860
870
|
mso-style-qformat: yes;
|
861
|
-
mso-style-
|
862
|
-
mso-style-
|
871
|
+
mso-style-name: "Heading 9";
|
872
|
+
mso-style-parent: "Heading 8";
|
873
|
+
mso-style-next: Normal;
|
863
874
|
margin-top: 8.0pt;
|
864
875
|
margin-right: 0cm;
|
865
876
|
margin-bottom: 6pt;
|
@@ -947,6 +958,7 @@ p.MsoIndex3, li.MsoIndex3, div.MsoIndex3 {
|
|
947
958
|
|
948
959
|
p.MsoToc1, li.MsoToc1, div.MsoToc1 {
|
949
960
|
mso-style-priority: 39;
|
961
|
+
mso-style-name: "TOC 1";
|
950
962
|
mso-style-unhide: no;
|
951
963
|
margin-top: 6.0pt;
|
952
964
|
margin-right: 42.55pt;
|
@@ -972,6 +984,7 @@ p.MsoToc2, li.MsoToc2, div.MsoToc2 {
|
|
972
984
|
mso-style-noshow: yes;
|
973
985
|
mso-style-priority: 39;
|
974
986
|
mso-style-unhide: no;
|
987
|
+
mso-style-name: "TOC 2";
|
975
988
|
mso-style-parent: "TOC 1";
|
976
989
|
mso-style-next: Normal;
|
977
990
|
margin-top: 4.0pt;
|
@@ -998,6 +1011,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3 {
|
|
998
1011
|
mso-style-noshow: yes;
|
999
1012
|
mso-style-priority: 39;
|
1000
1013
|
mso-style-unhide: no;
|
1014
|
+
mso-style-name: "TOC 3";
|
1001
1015
|
mso-style-parent: "TOC 2";
|
1002
1016
|
mso-style-next: Normal;
|
1003
1017
|
margin-top: 4.0pt;
|
@@ -1023,6 +1037,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3 {
|
|
1023
1037
|
p.MsoToc4, li.MsoToc4, div.MsoToc4 {
|
1024
1038
|
mso-style-noshow: yes;
|
1025
1039
|
mso-style-unhide: no;
|
1040
|
+
mso-style-name: "TOC 4";
|
1026
1041
|
mso-style-parent: "TOC 3";
|
1027
1042
|
margin-top: 4.0pt;
|
1028
1043
|
margin-right: 42.55pt;
|
@@ -1047,6 +1062,7 @@ p.MsoToc4, li.MsoToc4, div.MsoToc4 {
|
|
1047
1062
|
p.MsoToc5, li.MsoToc5, div.MsoToc5 {
|
1048
1063
|
mso-style-noshow: yes;
|
1049
1064
|
mso-style-unhide: no;
|
1065
|
+
mso-style-name: "TOC 5";
|
1050
1066
|
mso-style-parent: "TOC 4";
|
1051
1067
|
margin-top: 4.0pt;
|
1052
1068
|
margin-right: 42.55pt;
|
@@ -1071,7 +1087,8 @@ p.MsoToc5, li.MsoToc5, div.MsoToc5 {
|
|
1071
1087
|
p.MsoToc6, li.MsoToc6, div.MsoToc6 {
|
1072
1088
|
mso-style-noshow: yes;
|
1073
1089
|
mso-style-unhide: no;
|
1074
|
-
mso-style-
|
1090
|
+
mso-style-name: "TOC 6";
|
1091
|
+
mso-style-parent: "TOC 5";
|
1075
1092
|
margin-top: 4.0pt;
|
1076
1093
|
margin-right: 42.55pt;
|
1077
1094
|
margin-bottom: 0cm;
|
@@ -1095,7 +1112,8 @@ p.MsoToc6, li.MsoToc6, div.MsoToc6 {
|
|
1095
1112
|
p.MsoToc7, li.MsoToc7, div.MsoToc7 {
|
1096
1113
|
mso-style-noshow: yes;
|
1097
1114
|
mso-style-unhide: no;
|
1098
|
-
mso-style-
|
1115
|
+
mso-style-name: "TOC 7";
|
1116
|
+
mso-style-parent: "TOC 6";
|
1099
1117
|
margin-top: 4.0pt;
|
1100
1118
|
margin-right: 42.55pt;
|
1101
1119
|
margin-bottom: 0cm;
|
@@ -1119,7 +1137,8 @@ p.MsoToc7, li.MsoToc7, div.MsoToc7 {
|
|
1119
1137
|
p.MsoToc8, li.MsoToc8, div.MsoToc8 {
|
1120
1138
|
mso-style-noshow: yes;
|
1121
1139
|
mso-style-unhide: no;
|
1122
|
-
mso-style-
|
1140
|
+
mso-style-name: "TOC 8";
|
1141
|
+
mso-style-parent: "TOC 7";
|
1123
1142
|
margin-top: 4.0pt;
|
1124
1143
|
margin-right: 42.55pt;
|
1125
1144
|
margin-bottom: 0cm;
|
@@ -1143,7 +1162,8 @@ p.MsoToc8, li.MsoToc8, div.MsoToc8 {
|
|
1143
1162
|
p.MsoToc9, li.MsoToc9, div.MsoToc9 {
|
1144
1163
|
mso-style-noshow: yes;
|
1145
1164
|
mso-style-unhide: no;
|
1146
|
-
mso-style-
|
1165
|
+
mso-style-name: "TOC 9";
|
1166
|
+
mso-style-parent: "TOC 8";
|
1147
1167
|
margin-top: 4.0pt;
|
1148
1168
|
margin-right: 42.55pt;
|
1149
1169
|
margin-bottom: 0cm;
|
@@ -1167,6 +1187,7 @@ p.MsoToc9, li.MsoToc9, div.MsoToc9 {
|
|
1167
1187
|
span.MsoFootnoteReference {
|
1168
1188
|
mso-style-noshow: yes;
|
1169
1189
|
mso-style-unhide: no;
|
1190
|
+
mso-style-name: "Footnote Reference";
|
1170
1191
|
mso-ansi-font-size: 9.0pt;
|
1171
1192
|
position: relative;
|
1172
1193
|
top: -3.0pt;
|
@@ -156,6 +156,7 @@ p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxS
|
|
156
156
|
p.MsoCommentText, li.MsoCommentText, div.MsoCommentText
|
157
157
|
{mso-style-noshow:yes;
|
158
158
|
mso-style-unhide:no;
|
159
|
+
mso-style-name:"Comment Text";
|
159
160
|
mso-style-link:"Comment Text Char";
|
160
161
|
margin:0cm;
|
161
162
|
margin-bottom:.0001pt;
|
@@ -195,6 +196,7 @@ p.MsoHeaderLandscape, li.MsoHeaderLandscape, div.MsoHeaderLandscape
|
|
195
196
|
mso-fareast-language:EN-US;}
|
196
197
|
p.MsoFooter, li.MsoFooter, div.MsoFooter
|
197
198
|
{mso-style-unhide:no;
|
199
|
+
mso-style-name:"Footer";
|
198
200
|
margin:0cm;
|
199
201
|
margin-bottom:.0001pt;
|
200
202
|
text-align:justify;
|
@@ -432,6 +434,7 @@ h1
|
|
432
434
|
{mso-style-priority:1;
|
433
435
|
mso-style-unhide:no;
|
434
436
|
mso-style-qformat:yes;
|
437
|
+
mso-style-name:"Heading 1";
|
435
438
|
mso-style-link:"Heading 1 Char";
|
436
439
|
mso-style-next:Normal;
|
437
440
|
margin-top:18.0pt;
|
@@ -613,6 +616,7 @@ h2
|
|
613
616
|
{mso-style-priority:2;
|
614
617
|
mso-style-unhide:no;
|
615
618
|
mso-style-qformat:yes;
|
619
|
+
mso-style-name:"Heading 2";
|
616
620
|
mso-style-parent:"Heading 1";
|
617
621
|
mso-style-link:"Heading 2 Char";
|
618
622
|
mso-style-next:Normal;
|
@@ -643,7 +647,8 @@ h3
|
|
643
647
|
{mso-style-priority:3;
|
644
648
|
mso-style-unhide:no;
|
645
649
|
mso-style-qformat:yes;
|
646
|
-
mso-style-
|
650
|
+
mso-style-name:"Heading 3";
|
651
|
+
mso-style-parent:"Heading 2";
|
647
652
|
mso-style-link:"Heading 3 Char";
|
648
653
|
mso-style-next:Normal;
|
649
654
|
margin-top:8.0pt;
|
@@ -671,6 +676,7 @@ h4
|
|
671
676
|
{mso-style-priority:4;
|
672
677
|
mso-style-unhide:no;
|
673
678
|
mso-style-qformat:yes;
|
679
|
+
mso-style-name:"Heading 4";
|
674
680
|
mso-style-parent:"Heading 3";
|
675
681
|
mso-style-link:"Heading 4 Char";
|
676
682
|
mso-style-next:Normal;
|
@@ -702,6 +708,7 @@ h5
|
|
702
708
|
{mso-style-priority:5;
|
703
709
|
mso-style-unhide:no;
|
704
710
|
mso-style-qformat:yes;
|
711
|
+
mso-style-name:"Heading 5";
|
705
712
|
mso-style-parent:"Heading 4";
|
706
713
|
mso-style-link:"Heading 5 Char";
|
707
714
|
mso-style-next:Normal;
|
@@ -733,6 +740,7 @@ h6
|
|
733
740
|
{mso-style-priority:6;
|
734
741
|
mso-style-unhide:no;
|
735
742
|
mso-style-qformat:yes;
|
743
|
+
mso-style-name:"Heading 6";
|
736
744
|
mso-style-parent:"Heading 5";
|
737
745
|
mso-style-link:"Heading 6 Char";
|
738
746
|
mso-style-next:Normal;
|
@@ -763,6 +771,7 @@ h6
|
|
763
771
|
p.MsoHeading7, li.MsoHeading7, div.MsoHeading7
|
764
772
|
{mso-style-unhide:no;
|
765
773
|
mso-style-qformat:yes;
|
774
|
+
mso-style-name:"Heading 7";
|
766
775
|
mso-style-parent:"Heading 6";
|
767
776
|
mso-style-next:Normal;
|
768
777
|
margin-top:8.0pt;
|
@@ -789,7 +798,8 @@ p.MsoHeading7, li.MsoHeading7, div.MsoHeading7
|
|
789
798
|
p.MsoHeading8, li.MsoHeading8, div.MsoHeading8
|
790
799
|
{mso-style-unhide:no;
|
791
800
|
mso-style-qformat:yes;
|
792
|
-
mso-style-
|
801
|
+
mso-style-name:"Heading 8";
|
802
|
+
mso-style-parent:"Heading 7";
|
793
803
|
mso-style-next:Normal;
|
794
804
|
margin-top:8.0pt;
|
795
805
|
margin-right:0cm;
|
@@ -815,8 +825,9 @@ p.MsoHeading8, li.MsoHeading8, div.MsoHeading8
|
|
815
825
|
p.MsoHeading9, li.MsoHeading9, div.MsoHeading9
|
816
826
|
{mso-style-unhide:no;
|
817
827
|
mso-style-qformat:yes;
|
818
|
-
mso-style-
|
819
|
-
mso-style-
|
828
|
+
mso-style-name:"Heading 9";
|
829
|
+
mso-style-parent:"Heading 8";
|
830
|
+
mso-style-next:Normal;
|
820
831
|
margin-top:8.0pt;
|
821
832
|
margin-right:0cm;
|
822
833
|
margin-bottom:6pt;
|
@@ -900,6 +911,7 @@ p.MsoIndex3, li.MsoIndex3, div.MsoIndex3
|
|
900
911
|
mso-fareast-language:EN-US;}
|
901
912
|
p.MsoToc1, li.MsoToc1, div.MsoToc1
|
902
913
|
{mso-style-priority:39;
|
914
|
+
mso-style-name:"TOC 1";
|
903
915
|
mso-style-unhide:no;
|
904
916
|
margin-top:6.0pt;
|
905
917
|
margin-right:42.55pt;
|
@@ -923,6 +935,7 @@ p.MsoToc2, li.MsoToc2, div.MsoToc2
|
|
923
935
|
{mso-style-noshow:yes;
|
924
936
|
mso-style-priority:39;
|
925
937
|
mso-style-unhide:no;
|
938
|
+
mso-style-name:"TOC 2";
|
926
939
|
mso-style-parent:"TOC 1";
|
927
940
|
mso-style-next:Normal;
|
928
941
|
margin-top:4.0pt;
|
@@ -947,6 +960,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3
|
|
947
960
|
{mso-style-noshow:yes;
|
948
961
|
mso-style-priority:39;
|
949
962
|
mso-style-unhide:no;
|
963
|
+
mso-style-name:"TOC 3";
|
950
964
|
mso-style-parent:"TOC 2";
|
951
965
|
mso-style-next:Normal;
|
952
966
|
margin-top:4.0pt;
|
@@ -970,6 +984,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3
|
|
970
984
|
p.MsoToc4, li.MsoToc4, div.MsoToc4
|
971
985
|
{mso-style-noshow:yes;
|
972
986
|
mso-style-unhide:no;
|
987
|
+
mso-style-name:"TOC 4";
|
973
988
|
mso-style-parent:"TOC 3";
|
974
989
|
margin-top:4.0pt;
|
975
990
|
margin-right:42.55pt;
|
@@ -992,6 +1007,7 @@ p.MsoToc4, li.MsoToc4, div.MsoToc4
|
|
992
1007
|
p.MsoToc5, li.MsoToc5, div.MsoToc5
|
993
1008
|
{mso-style-noshow:yes;
|
994
1009
|
mso-style-unhide:no;
|
1010
|
+
mso-style-name:"TOC 5";
|
995
1011
|
mso-style-parent:"TOC 4";
|
996
1012
|
margin-top:4.0pt;
|
997
1013
|
margin-right:42.55pt;
|
@@ -1014,7 +1030,8 @@ p.MsoToc5, li.MsoToc5, div.MsoToc5
|
|
1014
1030
|
p.MsoToc6, li.MsoToc6, div.MsoToc6
|
1015
1031
|
{mso-style-noshow:yes;
|
1016
1032
|
mso-style-unhide:no;
|
1017
|
-
mso-style-
|
1033
|
+
mso-style-name:"TOC 6";
|
1034
|
+
mso-style-parent:"TOC 5";
|
1018
1035
|
margin-top:4.0pt;
|
1019
1036
|
margin-right:42.55pt;
|
1020
1037
|
margin-bottom:0cm;
|
@@ -1036,7 +1053,8 @@ p.MsoToc6, li.MsoToc6, div.MsoToc6
|
|
1036
1053
|
p.MsoToc7, li.MsoToc7, div.MsoToc7
|
1037
1054
|
{mso-style-noshow:yes;
|
1038
1055
|
mso-style-unhide:no;
|
1039
|
-
mso-style-
|
1056
|
+
mso-style-name:"TOC 7";
|
1057
|
+
mso-style-parent:"TOC 6";
|
1040
1058
|
margin-top:4.0pt;
|
1041
1059
|
margin-right:42.55pt;
|
1042
1060
|
margin-bottom:0cm;
|
@@ -1058,7 +1076,8 @@ p.MsoToc7, li.MsoToc7, div.MsoToc7
|
|
1058
1076
|
p.MsoToc8, li.MsoToc8, div.MsoToc8
|
1059
1077
|
{mso-style-noshow:yes;
|
1060
1078
|
mso-style-unhide:no;
|
1061
|
-
mso-style-
|
1079
|
+
mso-style-name:"TOC 8";
|
1080
|
+
mso-style-parent:"TOC 7";
|
1062
1081
|
margin-top:4.0pt;
|
1063
1082
|
margin-right:42.55pt;
|
1064
1083
|
margin-bottom:0cm;
|
@@ -1080,7 +1099,8 @@ p.MsoToc8, li.MsoToc8, div.MsoToc8
|
|
1080
1099
|
p.MsoToc9, li.MsoToc9, div.MsoToc9
|
1081
1100
|
{mso-style-noshow:yes;
|
1082
1101
|
mso-style-unhide:no;
|
1083
|
-
mso-style-
|
1102
|
+
mso-style-name:"TOC 9";
|
1103
|
+
mso-style-parent:"TOC 8";
|
1084
1104
|
margin-top:4.0pt;
|
1085
1105
|
margin-right:42.55pt;
|
1086
1106
|
margin-bottom:0cm;
|
@@ -1102,6 +1122,7 @@ p.MsoToc9, li.MsoToc9, div.MsoToc9
|
|
1102
1122
|
span.MsoFootnoteReference
|
1103
1123
|
{mso-style-noshow:yes;
|
1104
1124
|
mso-style-unhide:no;
|
1125
|
+
mso-style-name:"Footnote Reference";
|
1105
1126
|
mso-ansi-font-size:9.0pt;
|
1106
1127
|
position:relative;
|
1107
1128
|
top:-3.0pt;
|
data/lib/isodoc/itu/i18n-ar.yaml
CHANGED
data/lib/isodoc/itu/i18n-de.yaml
CHANGED
@@ -58,6 +58,7 @@ tsb_full: Büro für Telekommunikations-<br/>Standardisierung<br/>der ITU
|
|
58
58
|
br_full: Büro für Funkkommunikation<br/>der ITU
|
59
59
|
bdt_full: Büro für Entwicklungen<br/>in der Telekommunikation<br/>der ITU
|
60
60
|
prepub: Vorveröffentlichte Version
|
61
|
+
draft_new: Entwurf neuen %
|
61
62
|
doctype_dict:
|
62
63
|
resolution: Auflösung
|
63
64
|
recommendation: Empfehlung
|
data/lib/isodoc/itu/i18n-en.yaml
CHANGED
@@ -59,6 +59,7 @@ tsb_full: Telecommunication<br/>Standardization Bureau<br/>of ITU
|
|
59
59
|
br_full: Radiocommunication Bureau<br/>of ITU
|
60
60
|
bdt_full: Telecommunication<br/>Development Bureau<br/>of ITU
|
61
61
|
prepub: Prepublished version
|
62
|
+
draft_new: Draft new %
|
62
63
|
doctype_dict:
|
63
64
|
resolution: Resolution
|
64
65
|
recommendation: Recommendation
|
data/lib/isodoc/itu/i18n-es.yaml
CHANGED
@@ -59,6 +59,7 @@ tsb_full: <br/>Oficina de Normalización<br/>de las Telecomunicaciones de la UIT
|
|
59
59
|
br_full: Oficina de Radiocomunicaciones<br/>de la UIT
|
60
60
|
bdt_full: <br/>Oficina de Desarrollo<br/>de las Telecomunicaciones de la UIT
|
61
61
|
prepub: Versión prepublicada
|
62
|
+
draft_new: Borrador de nueva %
|
62
63
|
doctype_dict:
|
63
64
|
resolution: Resolución
|
64
65
|
recommendation: Recomendación
|
data/lib/isodoc/itu/i18n-fr.yaml
CHANGED
@@ -59,6 +59,7 @@ tsb_full: Bureau de la normalisation<br/>des télécommunications<br/>de l’UIT
|
|
59
59
|
br_full: Bureau des radiocommunications<br/>de l’UIT
|
60
60
|
bdt_full: Bureau de développement<br/>des télécommunications<br/>de l’UIT
|
61
61
|
prepub: Version pré-publiée
|
62
|
+
draft_new: Projet de nouvelle %
|
62
63
|
doctype_dict:
|
63
64
|
resolution: Résolution
|
64
65
|
recommendation: Recommandation
|
data/lib/isodoc/itu/i18n-ru.yaml
CHANGED
@@ -59,6 +59,7 @@ tsb_full: Бюро стандартизации электросвязи<br/>М
|
|
59
59
|
br_full: Бюро радиосвязи<br/>МСЭ
|
60
60
|
bdt_full: Бюро развития электросвязи<br/>МСЭ
|
61
61
|
prepub: Предварительно опубликованная версия
|
62
|
+
draft_new: Проект новой %
|
62
63
|
doctype_dict:
|
63
64
|
resolution: Резолюция
|
64
65
|
recommendation: Рекомендация
|
data/lib/isodoc/itu/i18n.rb
CHANGED
data/lib/isodoc/itu/init.rb
CHANGED
@@ -10,7 +10,7 @@ module IsoDoc
|
|
10
10
|
@meta = Metadata.new(lang, script, i18n)
|
11
11
|
end
|
12
12
|
|
13
|
-
def xref_init(lang, script,
|
13
|
+
def xref_init(lang, script, _klass, i18n, options)
|
14
14
|
html = HtmlConvert.new(language: lang, script: script)
|
15
15
|
options = options.merge(hierarchical_assets: @hierarchical_assets)
|
16
16
|
@xrefs = Xref.new(lang, script, html, i18n, options)
|
@@ -26,4 +26,3 @@ module IsoDoc
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
29
|
-
|