metanorma-itu 1.1.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/itu/cleanup.rb +67 -34
- data/lib/asciidoctor/itu/converter.rb +27 -47
- data/lib/asciidoctor/itu/isodoc.rng +12 -6
- data/lib/asciidoctor/itu/validate.rb +22 -11
- data/lib/isodoc/itu/base_convert.rb +32 -83
- data/lib/isodoc/itu/html_convert.rb +8 -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 +1342 -1934
- data/lib/isodoc/itu/itu.recommendation.xsl +1342 -1934
- data/lib/isodoc/itu/itu.resolution.xsl +1342 -1934
- 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 +25 -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 +2 -2
- metadata +8 -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,8 +26,8 @@ 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
33
|
spec.add_development_dependency "sassc", "2.4.0"
|
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.0
|
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-07-
|
11
|
+
date: 2020-07-29 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
|
@@ -264,7 +264,6 @@ files:
|
|
264
264
|
- lib/asciidoctor/itu/cleanup.rb
|
265
265
|
- lib/asciidoctor/itu/converter.rb
|
266
266
|
- lib/asciidoctor/itu/front.rb
|
267
|
-
- lib/asciidoctor/itu/i18n-en.yaml
|
268
267
|
- lib/asciidoctor/itu/isodoc.rng
|
269
268
|
- lib/asciidoctor/itu/itu.rng
|
270
269
|
- lib/asciidoctor/itu/macros.rb
|
@@ -292,6 +291,8 @@ files:
|
|
292
291
|
- lib/isodoc/itu/html/wordstyle.scss
|
293
292
|
- lib/isodoc/itu/html_convert.rb
|
294
293
|
- lib/isodoc/itu/i18n-en.yaml
|
294
|
+
- lib/isodoc/itu/i18n.rb
|
295
|
+
- lib/isodoc/itu/init.rb
|
295
296
|
- lib/isodoc/itu/itu.recommendation-annex.xsl
|
296
297
|
- lib/isodoc/itu/itu.recommendation.xsl
|
297
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.
|