metanorma-itu 1.1.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -0
- data/lib/asciidoctor/itu/cleanup.rb +69 -39
- data/lib/asciidoctor/itu/converter.rb +36 -46
- data/lib/asciidoctor/itu/front.rb +2 -31
- data/lib/asciidoctor/itu/isodoc.rng +16 -7
- data/lib/asciidoctor/itu/validate.rb +22 -11
- data/lib/isodoc/itu/base_convert.rb +33 -83
- data/lib/isodoc/itu/html/_coverpage.css +349 -0
- data/lib/isodoc/itu/html/_coverpage.scss +2 -0
- data/lib/isodoc/itu/html/htmlstyle.css +1159 -0
- data/lib/isodoc/itu/html/itu.css +1138 -0
- data/lib/isodoc/itu/html/itu.scss +0 -1
- data/lib/isodoc/itu/html/wordstyle.css +1808 -0
- data/lib/isodoc/itu/html/wordstyle.scss +0 -1
- data/lib/isodoc/itu/html_convert.rb +9 -4
- data/lib/isodoc/itu/i18n-en.yaml +25 -0
- data/lib/isodoc/itu/i18n.rb +14 -0
- data/lib/isodoc/itu/init.rb +29 -0
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +1603 -1914
- data/lib/isodoc/itu/itu.recommendation.xsl +1603 -1914
- data/lib/isodoc/itu/itu.resolution.xsl +1603 -1914
- data/lib/isodoc/itu/metadata.rb +8 -5
- data/lib/isodoc/itu/pdf_convert.rb +0 -1
- data/lib/isodoc/itu/presentation_xml_convert.rb +46 -1
- data/lib/isodoc/itu/ref.rb +10 -9
- data/lib/isodoc/itu/terms.rb +10 -19
- data/lib/isodoc/itu/word_convert.rb +26 -14
- data/lib/isodoc/itu/xref.rb +43 -30
- data/lib/metanorma/itu/processor.rb +8 -4
- data/lib/metanorma/itu/version.rb +1 -1
- data/metanorma-itu.gemspec +3 -2
- metadata +26 -7
- data/lib/asciidoctor/itu/i18n-en.yaml +0 -16
@@ -33,13 +33,17 @@ module Metanorma
|
|
33
33
|
def output(isodoc_node, inname, outname, format, options={})
|
34
34
|
case format
|
35
35
|
when :html
|
36
|
-
IsoDoc::ITU::HtmlConvert.new(options).convert(inname, isodoc_node,
|
36
|
+
IsoDoc::ITU::HtmlConvert.new(options).convert(inname, isodoc_node,
|
37
|
+
nil, outname)
|
37
38
|
when :doc
|
38
|
-
IsoDoc::ITU::WordConvert.new(options).convert(inname, isodoc_node,
|
39
|
+
IsoDoc::ITU::WordConvert.new(options).convert(inname, isodoc_node,
|
40
|
+
nil, outname)
|
39
41
|
when :pdf
|
40
|
-
IsoDoc::ITU::PdfConvert.new(options).convert(inname, isodoc_node,
|
42
|
+
IsoDoc::ITU::PdfConvert.new(options).convert(inname, isodoc_node,
|
43
|
+
nil, outname)
|
41
44
|
when :presentation
|
42
|
-
IsoDoc::ITU::PresentationXMLConvert.new(options).convert(
|
45
|
+
IsoDoc::ITU::PresentationXMLConvert.new(options).convert(
|
46
|
+
inname, isodoc_node, nil, outname)
|
43
47
|
else
|
44
48
|
super
|
45
49
|
end
|
data/metanorma-itu.gemspec
CHANGED
@@ -26,10 +26,11 @@ Gem::Specification.new do |spec|
|
|
26
26
|
|
27
27
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
28
28
|
spec.add_dependency "ruby-jing"
|
29
|
-
spec.add_dependency "metanorma-standoc", "~> 1.
|
30
|
-
spec.add_dependency "isodoc", "~> 1.
|
29
|
+
spec.add_dependency "metanorma-standoc", "~> 1.5.0"
|
30
|
+
spec.add_dependency "isodoc", "~> 1.2.0"
|
31
31
|
|
32
32
|
spec.add_development_dependency "byebug", "~> 9.1"
|
33
|
+
spec.add_development_dependency "sassc", "2.4.0"
|
33
34
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
34
35
|
spec.add_development_dependency "guard", "~> 2.14"
|
35
36
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
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: 1.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.5.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.5.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: isodoc
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.2.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
68
|
+
version: 1.2.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: byebug
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '9.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sassc
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.4.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.4.0
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: equivalent-xml
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -250,7 +264,6 @@ files:
|
|
250
264
|
- lib/asciidoctor/itu/cleanup.rb
|
251
265
|
- lib/asciidoctor/itu/converter.rb
|
252
266
|
- lib/asciidoctor/itu/front.rb
|
253
|
-
- lib/asciidoctor/itu/i18n-en.yaml
|
254
267
|
- lib/asciidoctor/itu/isodoc.rng
|
255
268
|
- lib/asciidoctor/itu/itu.rng
|
256
269
|
- lib/asciidoctor/itu/macros.rb
|
@@ -260,20 +273,26 @@ files:
|
|
260
273
|
- lib/isodoc/itu/base_convert.rb
|
261
274
|
- lib/isodoc/itu/html/International_Telecommunication_Union_Logo.svg
|
262
275
|
- lib/isodoc/itu/html/Logo_ITU.jpg
|
276
|
+
- lib/isodoc/itu/html/_coverpage.css
|
263
277
|
- lib/isodoc/itu/html/_coverpage.scss
|
264
278
|
- lib/isodoc/itu/html/header.html
|
265
279
|
- lib/isodoc/itu/html/html_itu_intro.html
|
266
280
|
- lib/isodoc/itu/html/html_itu_titlepage.html
|
281
|
+
- lib/isodoc/itu/html/htmlstyle.css
|
267
282
|
- lib/isodoc/itu/html/htmlstyle.scss
|
268
283
|
- lib/isodoc/itu/html/itu-document-comb.png
|
284
|
+
- lib/isodoc/itu/html/itu.css
|
269
285
|
- lib/isodoc/itu/html/itu.scss
|
270
286
|
- lib/isodoc/itu/html/logo.png
|
271
287
|
- lib/isodoc/itu/html/scripts.html
|
272
288
|
- lib/isodoc/itu/html/word_itu_intro.html
|
273
289
|
- lib/isodoc/itu/html/word_itu_titlepage.html
|
290
|
+
- lib/isodoc/itu/html/wordstyle.css
|
274
291
|
- lib/isodoc/itu/html/wordstyle.scss
|
275
292
|
- lib/isodoc/itu/html_convert.rb
|
276
293
|
- lib/isodoc/itu/i18n-en.yaml
|
294
|
+
- lib/isodoc/itu/i18n.rb
|
295
|
+
- lib/isodoc/itu/init.rb
|
277
296
|
- lib/isodoc/itu/itu.recommendation-annex.xsl
|
278
297
|
- lib/isodoc/itu/itu.recommendation.xsl
|
279
298
|
- lib/isodoc/itu/itu.resolution.xsl
|
@@ -1,16 +0,0 @@
|
|
1
|
-
norm_with_refs_pref:
|
2
|
-
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.
|
3
|
-
term_def_boilerplate:
|
4
|
-
"This Recommendation defines the following terms:"
|
5
|
-
internal_terms_boilerplate:
|
6
|
-
"This Recommendation defines the following terms:"
|
7
|
-
external_terms_boilerplate:
|
8
|
-
"This Recommendation uses the following terms defined elsewhere:"
|
9
|
-
no_terms_boilerplate:
|
10
|
-
None.
|
11
|
-
symbols_boilerplate:
|
12
|
-
"This Recommendation uses the following abbreviations and acronyms:"
|
13
|
-
norm_empty_pref:
|
14
|
-
None.
|
15
|
-
clause_empty:
|
16
|
-
None.
|