metanorma-itu 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +0 -7
- data/.github/workflows/ubuntu.yml +2 -9
- data/.github/workflows/windows.yml +0 -8
- data/lib/asciidoctor/itu/biblio.rng +53 -26
- data/lib/asciidoctor/itu/cleanup.rb +2 -0
- data/lib/asciidoctor/itu/front.rb +22 -18
- data/lib/asciidoctor/itu/isodoc.rng +28 -1
- data/lib/isodoc/itu/base_convert.rb +3 -2
- data/lib/isodoc/itu/html/header.html +8 -8
- data/lib/isodoc/itu/html/html_itu_titlepage.html +2 -2
- data/lib/isodoc/itu/html/itu.scss +1 -1
- data/lib/isodoc/itu/html/scripts.html +4 -20
- data/lib/isodoc/itu/html/word_itu_titlepage.html +2 -2
- data/lib/isodoc/itu/itu.recommendation.xsl +3451 -0
- data/lib/isodoc/itu/itu.resolution.xsl +3451 -0
- data/lib/isodoc/itu/pdf_convert.rb +13 -47
- data/lib/isodoc/itu/terms.rb +3 -4
- data/lib/isodoc/itu/word_convert.rb +1 -1
- data/lib/isodoc/itu/xref.rb +2 -2
- data/lib/metanorma/itu/processor.rb +4 -0
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa11ca775d53301386b4213e8d168d31ffa66fdfc1e66ef1fa880bd45fc7d2d3
|
4
|
+
data.tar.gz: cffd94e8a380da22a7828480135ac09825ea90ba4f973cf518223dded868bae1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7ab3479fc531fb4860b2a58afb0e6cd968480a23297a8c783f848fbde8193605ef8aa2ac7d021791bae9128ad2509eb4caa9d1b410b54b4ed164077ff7e37be
|
7
|
+
data.tar.gz: 99d00b7dacc6e26078aac82809c3ac189f56ad4147c08af0f089e58d6e8306d532af346f6ba0c581b98d4cf78a1e3600e7345ffc3a68ab0705adb1c589b1ae1f
|
data/.github/workflows/macos.yml
CHANGED
@@ -26,13 +26,6 @@ jobs:
|
|
26
26
|
run: |
|
27
27
|
sudo gem install bundler --force
|
28
28
|
bundle install --jobs 4 --retry 3
|
29
|
-
- name: Use Node
|
30
|
-
uses: actions/setup-node@v1
|
31
|
-
with:
|
32
|
-
node-version: '8'
|
33
|
-
- name: Install Puppeteer
|
34
|
-
run: |
|
35
|
-
npm install -g puppeteer
|
36
29
|
- name: Run specs
|
37
30
|
run: |
|
38
31
|
bundle exec rake
|
@@ -26,18 +26,11 @@ jobs:
|
|
26
26
|
run: |
|
27
27
|
gem install bundler
|
28
28
|
bundle install --jobs 4 --retry 3
|
29
|
-
- name: Use Node
|
30
|
-
uses: actions/setup-node@v1
|
31
|
-
with:
|
32
|
-
node-version: '8'
|
33
|
-
- name: Install Puppeteer
|
34
|
-
run: |
|
35
|
-
npm install -g puppeteer
|
36
29
|
- name: Run specs
|
37
30
|
run: |
|
38
31
|
bundle exec rake
|
39
32
|
- name: Trigger dependent repositories
|
40
|
-
if: github.ref == 'refs/heads/master'
|
33
|
+
if: github.ref == 'refs/heads/master' && matrix.ruby == '2.6'
|
41
34
|
env:
|
42
35
|
GH_USERNAME: ${{ secrets.PAT_USERNAME }}
|
43
36
|
GH_ACCESS_TOKEN: ${{ secrets.PAT_TOKEN }}
|
@@ -46,5 +39,5 @@ jobs:
|
|
46
39
|
[[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
|
47
40
|
for repo in $DEPENDENT_REPOS
|
48
41
|
do
|
49
|
-
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY
|
42
|
+
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "{ \"ref\": \"${GITHUB_REF}\" }"
|
50
43
|
done
|
@@ -27,15 +27,7 @@ jobs:
|
|
27
27
|
run: |
|
28
28
|
gem install bundler
|
29
29
|
bundle config --local path vendor/bundle
|
30
|
-
bundle update
|
31
30
|
bundle install --jobs 4 --retry 3
|
32
|
-
- name: Use Node
|
33
|
-
uses: actions/setup-node@v1
|
34
|
-
with:
|
35
|
-
node-version: '8'
|
36
|
-
- name: Install Puppeteer
|
37
|
-
run: |
|
38
|
-
npm install -g puppeteer
|
39
31
|
- name: Run specs
|
40
32
|
run: |
|
41
33
|
bundle exec rake
|
@@ -767,6 +767,8 @@
|
|
767
767
|
<value>unchanged</value>
|
768
768
|
<value>circulated</value>
|
769
769
|
<value>adapted</value>
|
770
|
+
<value>vote-started</value>
|
771
|
+
<value>vote-ended</value>
|
770
772
|
</choice>
|
771
773
|
</define>
|
772
774
|
<define name="bdate">
|
@@ -1019,38 +1021,63 @@
|
|
1019
1021
|
</define>
|
1020
1022
|
<define name="DocRelationType">
|
1021
1023
|
<choice>
|
1022
|
-
<value>obsoletes</value>
|
1023
|
-
<value>obsoletedBy</value>
|
1024
|
-
<value>supersedes</value>
|
1025
|
-
<value>supersededBy</value>
|
1026
|
-
<value>updates</value>
|
1027
|
-
<value>updatedBy</value>
|
1028
|
-
<value>complements</value>
|
1029
|
-
<value>derivedFrom</value>
|
1030
|
-
<value>translatedFrom</value>
|
1031
|
-
<value>hasTranslation</value>
|
1032
|
-
<value>adoptedFrom</value>
|
1033
|
-
<value>equivalent</value>
|
1034
|
-
<value>identical</value>
|
1035
|
-
<value>nonequivalent</value>
|
1036
|
-
<value>includedIn</value>
|
1037
1024
|
<value>includes</value>
|
1038
|
-
<value>
|
1039
|
-
<value>instanceOf</value>
|
1040
|
-
<value>partOf</value>
|
1025
|
+
<value>includedIn</value>
|
1041
1026
|
<value>hasPart</value>
|
1042
|
-
<value>
|
1043
|
-
<value>draftOf</value>
|
1027
|
+
<value>partOf</value>
|
1044
1028
|
<value>merges</value>
|
1029
|
+
<value>mergedInto</value>
|
1045
1030
|
<value>splits</value>
|
1046
|
-
<value>
|
1047
|
-
<value>
|
1048
|
-
<value>
|
1049
|
-
<value>
|
1050
|
-
<value>
|
1051
|
-
<value>
|
1031
|
+
<value>splitInto</value>
|
1032
|
+
<value>instance</value>
|
1033
|
+
<value>hasInstance</value>
|
1034
|
+
<value>exemplarOf</value>
|
1035
|
+
<value>hasExemplar</value>
|
1036
|
+
<value>manifestationOf</value>
|
1037
|
+
<value>hasManifestation</value>
|
1038
|
+
<value>reproductionOf</value>
|
1039
|
+
<value>hasReproduction</value>
|
1040
|
+
<value>reprintOf</value>
|
1041
|
+
<value>hasReprint</value>
|
1042
|
+
<value>expressionOf</value>
|
1043
|
+
<value>hasExpression</value>
|
1044
|
+
<value>translatedFrom</value>
|
1045
|
+
<value>hasTranslation</value>
|
1046
|
+
<value>arrangementOf</value>
|
1047
|
+
<value>hasArrangement</value>
|
1048
|
+
<value>abridgementOf</value>
|
1049
|
+
<value>hasAbridgement</value>
|
1050
|
+
<value>annotationOf</value>
|
1051
|
+
<value>hasAnnotation</value>
|
1052
|
+
<value>draftOf</value>
|
1053
|
+
<value>hasDraft</value>
|
1054
|
+
<value>editionOf</value>
|
1055
|
+
<value>hasEdition</value>
|
1056
|
+
<value>updates</value>
|
1057
|
+
<value>updatedBy</value>
|
1058
|
+
<value>derivedFrom</value>
|
1059
|
+
<value>derives</value>
|
1052
1060
|
<value>describes</value>
|
1053
1061
|
<value>describedBy</value>
|
1062
|
+
<value>catalogues</value>
|
1063
|
+
<value>cataloguedBy</value>
|
1064
|
+
<value>hasSuccessor</value>
|
1065
|
+
<value>successorOf</value>
|
1066
|
+
<value>adaptedFrom</value>
|
1067
|
+
<value>hasAdaptation</value>
|
1068
|
+
<value>adoptedFrom</value>
|
1069
|
+
<value>adoptedAs</value>
|
1070
|
+
<value>reviewOf</value>
|
1071
|
+
<value>hasReview</value>
|
1072
|
+
<value>commentaryOf</value>
|
1073
|
+
<value>hasCommentary</value>
|
1074
|
+
<value>related</value>
|
1075
|
+
<value>complements</value>
|
1076
|
+
<value>complementOf</value>
|
1077
|
+
<value>obsoletes</value>
|
1078
|
+
<value>obsoletedBy</value>
|
1079
|
+
<value>cited</value>
|
1080
|
+
<value>isCitedIn</value>
|
1054
1081
|
</choice>
|
1055
1082
|
</define>
|
1056
1083
|
<define name="docrelation">
|
@@ -4,36 +4,38 @@ require "fileutils"
|
|
4
4
|
|
5
5
|
module Asciidoctor
|
6
6
|
module ITU
|
7
|
-
|
8
|
-
# A {Converter} implementation that generates RSD output, and a document
|
9
|
-
# schema encapsulation of the document for validation
|
10
|
-
#
|
11
7
|
class Converter < Standoc::Converter
|
12
8
|
def metadata_status(node, xml)
|
13
9
|
xml.status do |s|
|
14
10
|
s.stage (node.attributes.has_key?("draft") ? "draft" :
|
15
|
-
(node.attr("status") || node.attr("docstage") ||
|
11
|
+
(node.attr("status") || node.attr("docstage") ||
|
12
|
+
"published" ))
|
16
13
|
end
|
17
14
|
end
|
18
15
|
|
19
16
|
def title_english(node, xml)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
17
|
+
at = { language: "en", format: "text/plain", type: "main" }
|
18
|
+
a = node.attr("title") || node.attr("title-en")
|
19
|
+
xml.title **attr_code(at) do |t|
|
20
|
+
t << (Asciidoctor::Standoc::Utils::asciidoc_sub(a) || node.title)
|
21
|
+
end
|
22
|
+
if a = node.attr("annextitle") || node.attr("annextitle-en")
|
23
|
+
at[:type] = "annex"
|
24
|
+
xml.title **attr_code(at) do |t|
|
25
|
+
t << Asciidoctor::Standoc::Utils::asciidoc_sub(a)
|
27
26
|
end
|
28
27
|
end
|
29
28
|
end
|
30
29
|
|
31
30
|
def title_otherlangs(node, xml)
|
32
31
|
node.attributes.each do |k, v|
|
33
|
-
next unless /^(annex)?title-(?<
|
34
|
-
next if
|
35
|
-
|
36
|
-
|
32
|
+
next unless /^(annex)?title-(?<lang>.+)$/ =~ k
|
33
|
+
next if lang == "en"
|
34
|
+
type = /^annex/.match(k) ? "annex" : "main"
|
35
|
+
xml.title **attr_code(language: lang, format: "text/plain",
|
36
|
+
type: type) do |t|
|
37
|
+
t << v
|
38
|
+
end
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -89,11 +91,13 @@ module Asciidoctor
|
|
89
91
|
|
90
92
|
def metadata_committee2(node, g, suffix, prefix)
|
91
93
|
g.name node.attr("#{prefix}group#{suffix}")
|
92
|
-
|
94
|
+
node.attr("#{prefix}groupacronym#{suffix}") and
|
95
|
+
g.acronym node.attr("#{prefix}groupacronym#{suffix}")
|
93
96
|
if node.attr("#{prefix}groupyearstart#{suffix}")
|
94
97
|
g.period do |p|
|
95
98
|
p.start node.attr("#{prefix}groupyearstart#{suffix}")
|
96
|
-
|
99
|
+
node.attr("#{prefix}groupacronym#{suffix}") and
|
100
|
+
p.end node.attr("#{prefix}groupyearend#{suffix}")
|
97
101
|
end
|
98
102
|
end
|
99
103
|
end
|
@@ -303,8 +303,23 @@
|
|
303
303
|
<ref name="paragraph"/>
|
304
304
|
</element>
|
305
305
|
</define>
|
306
|
+
<define name="TextElement" combine="choice">
|
307
|
+
<ref name="concept"/>
|
308
|
+
</define>
|
306
309
|
</include>
|
307
310
|
<!-- end overrides -->
|
311
|
+
<define name="concept">
|
312
|
+
<element name="concept">
|
313
|
+
<optional>
|
314
|
+
<attribute name="term"/>
|
315
|
+
</optional>
|
316
|
+
<choice>
|
317
|
+
<ref name="eref"/>
|
318
|
+
<ref name="xref"/>
|
319
|
+
<ref name="termref"/>
|
320
|
+
</choice>
|
321
|
+
</element>
|
322
|
+
</define>
|
308
323
|
<define name="BasicBlock" combine="choice">
|
309
324
|
<choice>
|
310
325
|
<ref name="requirement"/>
|
@@ -911,7 +926,10 @@
|
|
911
926
|
</define>
|
912
927
|
<define name="origin">
|
913
928
|
<element name="origin">
|
914
|
-
<
|
929
|
+
<choice>
|
930
|
+
<ref name="erefType"/>
|
931
|
+
<ref name="termref"/>
|
932
|
+
</choice>
|
915
933
|
</element>
|
916
934
|
</define>
|
917
935
|
<define name="modification">
|
@@ -919,6 +937,15 @@
|
|
919
937
|
<ref name="paragraph"/>
|
920
938
|
</element>
|
921
939
|
</define>
|
940
|
+
<define name="termref">
|
941
|
+
<element name="termref">
|
942
|
+
<attribute name="base"/>
|
943
|
+
<attribute name="target"/>
|
944
|
+
<optional>
|
945
|
+
<text/>
|
946
|
+
</optional>
|
947
|
+
</element>
|
948
|
+
</define>
|
922
949
|
<define name="structuredidentifier">
|
923
950
|
<element name="structuredidentifier">
|
924
951
|
<optional>
|
@@ -101,8 +101,9 @@ module IsoDoc
|
|
101
101
|
def term_cleanup(docxml)
|
102
102
|
docxml.xpath("//p[@class = 'Terms']").each do |d|
|
103
103
|
h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
|
104
|
-
h2.
|
105
|
-
h2
|
104
|
+
d.children.first.previous = "<b>#{h2.children.to_xml}</b> "
|
105
|
+
d["id"] = h2["id"]
|
106
|
+
h2.remove
|
106
107
|
end
|
107
108
|
docxml.xpath("//p[@class = 'TermNum']").each do |d|
|
108
109
|
d1 = d.next_element and d1.name == "p" or next
|
@@ -116,7 +116,7 @@ style='mso-element:field-separator'></span></span><![endif]--><span lang=FR-CH
|
|
116
116
|
style='mso-ansi-language:FR-CH;font-weight:normal;mso-no-proof:yes'>ii</span><!--[if supportFields]><span
|
117
117
|
lang=EN-GB style='font-weight:normal'><span style='mso-element:field-end'></span></span><![endif]--><span
|
118
118
|
lang=FR-CH style='mso-ansi-language:FR-CH'><span style='mso-tab-count:1'> </span>Rec.
|
119
|
-
ITU‑{{ bureau }} {{
|
119
|
+
ITU‑{{ bureau }} {{ docnumeric }} ({{ pubdate_monthyear }})<o:p></o:p></span></p>
|
120
120
|
</div>
|
121
121
|
|
122
122
|
<div style='mso-element:footer' id=ef2l>
|
@@ -129,12 +129,12 @@ style='mso-element:field-separator'></span></span><![endif]--><span lang=FR-CH
|
|
129
129
|
style='mso-ansi-language:FR-CH;font-weight:normal;mso-no-proof:yes'>ii</span><!--[if supportFields]><span
|
130
130
|
lang=EN-GB style='font-weight:normal'><span style='mso-element:field-end'></span></span><![endif]--><span
|
131
131
|
lang=FR-CH style='mso-ansi-language:FR-CH'><span style='mso-tab-count:1'> </span>Rec.
|
132
|
-
ITU‑{{ bureau }} {{
|
132
|
+
ITU‑{{ bureau }} {{ docnumeric }} ({{ pubdate_monthyear }})<o:p></o:p></span></p>
|
133
133
|
</div>
|
134
134
|
|
135
135
|
<div style='mso-element:footer' id=f2>
|
136
136
|
<p class=FooterQP style='line-height:12.0pt'><span lang=EN-GB><span style='mso-tab-count:2'> </span>Rec.
|
137
|
-
ITU‑{{ bureau }} {{
|
137
|
+
ITU‑{{ bureau }} {{docnumeric}} ({{ pubdate_monthyear }})<span style='mso-tab-count:1'> </span></span><!--[if supportFields]><span
|
138
138
|
lang=EN-GB style='font-weight:normal'><span style='mso-element:field-begin'></span>
|
139
139
|
PAGE<span style='mso-spacerun:yes'> </span>\* MERGEFORMAT <span
|
140
140
|
style='mso-element:field-separator'></span></span><![endif]--><span lang=EN-GB
|
@@ -145,7 +145,7 @@ lang=EN-GB style='font-weight:normal'><o:p></o:p></span></p>
|
|
145
145
|
|
146
146
|
<div style='mso-element:footer' id=f2l>
|
147
147
|
<p class=FooterQPLandscape style='line-height:12.0pt'><span lang=EN-GB><span style='mso-tab-count:2'> </span>Rec.
|
148
|
-
ITU‑{{ bureau }} {{
|
148
|
+
ITU‑{{ bureau }} {{docnumeric}} ({{ pubdate_monthyear }})<span style='mso-tab-count:1'> </span></span><!--[if supportFields]><span
|
149
149
|
lang=EN-GB style='font-weight:normal'><span style='mso-element:field-begin'></span>
|
150
150
|
PAGE<span style='mso-spacerun:yes'> </span>\* MERGEFORMAT <span
|
151
151
|
style='mso-element:field-separator'></span></span><![endif]--><span lang=EN-GB
|
@@ -164,7 +164,7 @@ style='mso-element:field-separator'></span></span><![endif]--><span lang=FR-CH
|
|
164
164
|
style='mso-ansi-language:FR-CH;font-weight:normal;mso-no-proof:yes'>ii</span><!--[if supportFields]><span
|
165
165
|
lang=EN-GB style='font-weight:normal'><span style='mso-element:field-end'></span></span><![endif]--><span
|
166
166
|
lang=FR-CH style='mso-ansi-language:FR-CH'><span style='mso-tab-count:1'> </span>Rec.
|
167
|
-
ITU‑{{ bureau }} {{
|
167
|
+
ITU‑{{ bureau }} {{ docnumeric }} ({{ pubdate_monthyear }})<o:p></o:p></span></p>
|
168
168
|
</div>
|
169
169
|
|
170
170
|
<div style='mso-element:footer' id=ef3l>
|
@@ -177,12 +177,12 @@ style='mso-element:field-separator'></span></span><![endif]--><span lang=FR-CH
|
|
177
177
|
style='mso-ansi-language:FR-CH;font-weight:normal;mso-no-proof:yes'>ii</span><!--[if supportFields]><span
|
178
178
|
lang=EN-GB style='font-weight:normal'><span style='mso-element:field-end'></span></span><![endif]--><span
|
179
179
|
lang=FR-CH style='mso-ansi-language:FR-CH'><span style='mso-tab-count:1'> </span>Rec.
|
180
|
-
ITU‑{{ bureau }} {{
|
180
|
+
ITU‑{{ bureau }} {{ docnumeric }} ({{ pubdate_monthyear }})<o:p></o:p></span></p>
|
181
181
|
</div>
|
182
182
|
|
183
183
|
<div style='mso-element:footer' id=f3>
|
184
184
|
<p class=FooterQP style='line-height:12.0pt'><span lang=EN-GB><span style='mso-tab-count:2'> </span>Rec.
|
185
|
-
ITU‑{{ bureau }} {{
|
185
|
+
ITU‑{{ bureau }} {{docnumeric}} ({{ pubdate_monthyear }})<span style='mso-tab-count:1'> </span></span><!--[if supportFields]><span
|
186
186
|
lang=EN-GB style='font-weight:normal'><span style='mso-element:field-begin'></span>
|
187
187
|
PAGE<span style='mso-spacerun:yes'> </span>\* MERGEFORMAT <span
|
188
188
|
style='mso-element:field-separator'></span></span><![endif]--><span lang=EN-GB
|
@@ -193,7 +193,7 @@ lang=EN-GB style='font-weight:normal'><o:p></o:p></span></p>
|
|
193
193
|
|
194
194
|
<div style='mso-element:footer' id=f3l>
|
195
195
|
<p class=FooterQPLandscape style='line-height:12.0pt'><span lang=EN-GB><span style='mso-tab-count:2'> </span>Rec.
|
196
|
-
ITU‑{{ bureau }} {{
|
196
|
+
ITU‑{{ bureau }} {{docnumeric}} ({{ pubdate_monthyear }})<span style='mso-tab-count:1'> </span></span><!--[if supportFields]><span
|
197
197
|
lang=EN-GB style='font-weight:normal'><span style='mso-element:field-begin'></span>
|
198
198
|
PAGE<span style='mso-spacerun:yes'> </span>\* MERGEFORMAT <span
|
199
199
|
style='mso-element:field-separator'></span></span><![endif]--><span lang=EN-GB
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
<div class="doc-info-left">
|
28
28
|
<div class="doc-identifier">
|
29
|
-
{{
|
29
|
+
{{ docnumeric }}
|
30
30
|
{% if edition %} <div> Revision {{ edition }}</div> {% endif %}
|
31
31
|
<div> {{ draftinfo }}</div>
|
32
32
|
</div>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
<div>
|
74
74
|
<span class="doc-type">{% if stage == "Draft" %}Draft {% endif %}{{ doctype }}</span>
|
75
75
|
<span class="ITU-sector">ITU-{{ bureau }}</span>
|
76
|
-
<span class="doc-identifier">{{
|
76
|
+
<span class="doc-identifier">{{ docnumeric }}</span>
|
77
77
|
</div>
|
78
78
|
|
79
79
|
</div>
|
@@ -986,7 +986,7 @@ table.MsoTableGrid
|
|
986
986
|
font-size:10.0pt;
|
987
987
|
font-family:$bodyfont;}
|
988
988
|
div.formula, div.formula p
|
989
|
-
{tab-stops:
|
989
|
+
{tab-stops:center 241.0pt right 17.0cm;}
|
990
990
|
body
|
991
991
|
{tab-interval:36.0pt;}
|
992
992
|
.coverpage_docnumber
|
@@ -1,24 +1,8 @@
|
|
1
1
|
<script>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
'smoothScrolling': true, //enable or disable smooth scrolling on click
|
7
|
-
'prefix': 'toc', //prefix for anchor tags and class names
|
8
|
-
'onHighlight': function(el) {}, //called when a new section is highlighted
|
9
|
-
'highlightOnScroll': true, //add class to heading that is currently in focus
|
10
|
-
'highlightOffset': 100, //offset to trigger the next headline
|
11
|
-
'anchorName': function(i, heading, prefix) { //custom function for anchor name
|
12
|
-
return prefix+i;
|
13
|
-
},
|
14
|
-
'headerText': function(i, heading, $heading) { //custom function building the header-item text
|
15
|
-
return $heading.text();
|
16
|
-
},
|
17
|
-
'itemClass': function(i, heading, $heading, prefix) { // custom function for item class
|
18
|
-
return $heading[0].tagName.toLowerCase();
|
19
|
-
}
|
20
|
-
});
|
21
|
-
|
2
|
+
$("#toc").on('click', 'li', function(e) {
|
3
|
+
$(this).parent().find('li.toc-active').removeClass('toc-active');
|
4
|
+
$(this).addClass('toc-active');
|
5
|
+
});
|
22
6
|
</script>
|
23
7
|
|
24
8
|
<script>
|
@@ -89,7 +89,7 @@
|
|
89
89
|
<p class="MsoNormal" align="right" style='margin-top:12.0pt;text-align:right'><span
|
90
90
|
style='mso-bookmark:_Hlk526346232'><a name="dnume"><b style='mso-bidi-font-weight:
|
91
91
|
normal'><span lang="EN-US" style='font-size:30.0pt;mso-bidi-font-size:10.0pt;
|
92
|
-
font-family:"Arial",sans-serif;mso-ansi-language:EN-US'>{{
|
92
|
+
font-family:"Arial",sans-serif;mso-ansi-language:EN-US'>{{ docnumeric }}<o:p></o:p></span></b></a></span></p>
|
93
93
|
</td>
|
94
94
|
<span style='mso-bookmark:_Hlk526346232'><span style='mso-bookmark:dnume'></span></span>
|
95
95
|
</tr>
|
@@ -250,7 +250,7 @@
|
|
250
250
|
style='mso-bookmark:_Hlk526346232'><a name="dnum2e"></a><span lang="EN-US"
|
251
251
|
style='font-size:16.0pt;mso-bidi-font-size:10.0pt;font-family:"Arial",sans-serif;
|
252
252
|
mso-ansi-language:EN-US'>{% if stage == "Draft" %}Draft {% endif %}{{ doctype }}<span style='mso-spacerun:yes'>
|
253
|
-
</span>ITU‑{{ bureau }}<span style='mso-spacerun:yes'> </span>{{
|
253
|
+
</span>ITU‑{{ bureau }}<span style='mso-spacerun:yes'> </span>{{ docnumeric }}<o:p></o:p></span></span></p>
|
254
254
|
<span style='mso-bookmark:_Hlk526346232'></span>
|
255
255
|
<p class="MsoNormal" align="left" style='margin-top:3.0pt;text-align:left;
|
256
256
|
tab-stops:39.7pt 59.55pt 79.4pt 99.25pt right 17.0cm'><span style='mso-bookmark:
|