metanorma-itu 2.5.3 → 2.5.5
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 +1 -1
- data/lib/isodoc/itu/cleanup.rb +1 -1
- data/lib/isodoc/itu/html/_coverpage.css +3 -0
- data/lib/isodoc/itu/html/htmlstyle.css +6 -0
- data/lib/isodoc/itu/html_convert.rb +1 -1
- data/lib/isodoc/itu/i18n.rb +1 -1
- data/lib/isodoc/itu/init.rb +2 -2
- data/lib/isodoc/itu/itu.implementers-guide.xsl +179 -21
- data/lib/isodoc/itu/itu.in-force.xsl +179 -21
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +179 -21
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +179 -21
- data/lib/isodoc/itu/itu.recommendation.xsl +179 -21
- data/lib/isodoc/itu/itu.resolution.xsl +179 -21
- data/lib/isodoc/itu/itu.service-publication.xsl +179 -21
- data/lib/isodoc/itu/itu.technical-paper.xsl +179 -21
- data/lib/isodoc/itu/itu.technical-report.xsl +179 -21
- data/lib/isodoc/itu/metadata.rb +2 -2
- data/lib/isodoc/itu/metadata_date.rb +1 -1
- data/lib/isodoc/itu/pdf_convert.rb +1 -1
- data/lib/isodoc/itu/presentation_bibdata.rb +1 -1
- data/lib/isodoc/itu/presentation_contribution.rb +1 -1
- data/lib/isodoc/itu/presentation_preface.rb +1 -1
- data/lib/isodoc/itu/presentation_ref.rb +1 -1
- data/lib/isodoc/itu/presentation_xml_convert.rb +1 -1
- data/lib/isodoc/itu/ref.rb +1 -1
- data/lib/isodoc/itu/terms.rb +1 -1
- data/lib/isodoc/itu/word_cleanup.rb +1 -1
- data/lib/isodoc/itu/word_convert.rb +1 -1
- data/lib/isodoc/itu/xref.rb +2 -2
- data/lib/isodoc/itu/xref_section.rb +1 -1
- data/lib/isodoc/itu.rb +1 -1
- data/lib/metanorma/itu/biblio-standoc.rng +13 -0
- data/lib/metanorma/itu/biblio.rng +19 -12
- data/lib/metanorma/itu/cleanup.rb +1 -1
- data/lib/metanorma/itu/cleanup_section.rb +1 -1
- data/lib/metanorma/itu/converter.rb +6 -6
- data/lib/metanorma/itu/front.rb +2 -1
- data/lib/metanorma/itu/front_id.rb +1 -1
- data/lib/metanorma/itu/processor.rb +6 -6
- data/lib/metanorma/itu/relaton-itu.rng +1 -0
- data/lib/metanorma/itu/validate.rb +1 -1
- data/lib/metanorma/itu/version.rb +2 -2
- data/lib/metanorma/itu.rb +1 -1
- data/lib/metanorma-itu.rb +1 -1
- data/lib/relaton/render/general.rb +2 -2
- data/lib/relaton/render/parse.rb +1 -1
- data/metanorma-itu.gemspec +1 -1
- metadata +2 -2
@@ -7,7 +7,7 @@ require_relative "./validate"
|
|
7
7
|
require_relative "./cleanup"
|
8
8
|
|
9
9
|
module Metanorma
|
10
|
-
module
|
10
|
+
module Itu
|
11
11
|
class Converter < Standoc::Converter
|
12
12
|
XML_ROOT_TAG = "itu-standard".freeze
|
13
13
|
XML_NAMESPACE = "https://www.metanorma.org/ns/itu".freeze
|
@@ -140,22 +140,22 @@ module Metanorma
|
|
140
140
|
end
|
141
141
|
|
142
142
|
def presentation_xml_converter(node)
|
143
|
-
IsoDoc::
|
143
|
+
IsoDoc::Itu::PresentationXMLConvert
|
144
144
|
.new(html_extract_attributes(node)
|
145
|
-
.merge(output_formats: ::Metanorma::
|
145
|
+
.merge(output_formats: ::Metanorma::Itu::Processor.new
|
146
146
|
.output_formats))
|
147
147
|
end
|
148
148
|
|
149
149
|
def html_converter(node)
|
150
|
-
IsoDoc::
|
150
|
+
IsoDoc::Itu::HtmlConvert.new(html_extract_attributes(node))
|
151
151
|
end
|
152
152
|
|
153
153
|
def pdf_converter(node)
|
154
|
-
IsoDoc::
|
154
|
+
IsoDoc::Itu::PdfConvert.new(pdf_extract_attributes(node))
|
155
155
|
end
|
156
156
|
|
157
157
|
def doc_converter(node)
|
158
|
-
IsoDoc::
|
158
|
+
IsoDoc::Itu::WordConvert.new(doc_extract_attributes(node))
|
159
159
|
end
|
160
160
|
end
|
161
161
|
end
|
data/lib/metanorma/itu/front.rb
CHANGED
@@ -2,7 +2,7 @@ require "fileutils"
|
|
2
2
|
require_relative "./front_id"
|
3
3
|
|
4
4
|
module Metanorma
|
5
|
-
module
|
5
|
+
module Itu
|
6
6
|
class Converter < Standoc::Converter
|
7
7
|
def metadata_status(node, xml)
|
8
8
|
stage = node.attr("status") || node.attr("docstage") || "published"
|
@@ -228,6 +228,7 @@ module Metanorma
|
|
228
228
|
def metadata_ext(node, xml)
|
229
229
|
metadata_doctype(node, xml)
|
230
230
|
metadata_subdoctype(node, xml)
|
231
|
+
metadata_flavor(node, xml)
|
231
232
|
metadata_committee(node, xml)
|
232
233
|
metadata_ics(node, xml)
|
233
234
|
metadata_recommendationstatus(node, xml)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "metanorma/processor"
|
2
2
|
|
3
3
|
module Metanorma
|
4
|
-
module
|
4
|
+
module Itu
|
5
5
|
class Processor < Metanorma::Processor
|
6
6
|
|
7
7
|
def initialize
|
@@ -30,23 +30,23 @@ module Metanorma
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def version
|
33
|
-
"Metanorma::
|
33
|
+
"Metanorma::Itu #{Metanorma::Itu::VERSION}"
|
34
34
|
end
|
35
35
|
|
36
36
|
def output(isodoc_node, inname, outname, format, options={})
|
37
37
|
options_preprocess(options)
|
38
38
|
case format
|
39
39
|
when :html
|
40
|
-
IsoDoc::
|
40
|
+
IsoDoc::Itu::HtmlConvert.new(options).convert(inname, isodoc_node,
|
41
41
|
nil, outname)
|
42
42
|
when :doc
|
43
|
-
IsoDoc::
|
43
|
+
IsoDoc::Itu::WordConvert.new(options).convert(inname, isodoc_node,
|
44
44
|
nil, outname)
|
45
45
|
when :pdf
|
46
|
-
IsoDoc::
|
46
|
+
IsoDoc::Itu::PdfConvert.new(options).convert(inname, isodoc_node,
|
47
47
|
nil, outname)
|
48
48
|
when :presentation
|
49
|
-
IsoDoc::
|
49
|
+
IsoDoc::Itu::PresentationXMLConvert.new(options).convert(
|
50
50
|
inname, isodoc_node, nil, outname)
|
51
51
|
else
|
52
52
|
super
|
data/lib/metanorma/itu.rb
CHANGED
data/lib/metanorma-itu.rb
CHANGED
@@ -3,7 +3,7 @@ require_relative "parse"
|
|
3
3
|
|
4
4
|
module Relaton
|
5
5
|
module Render
|
6
|
-
module
|
6
|
+
module Itu
|
7
7
|
class General < ::Relaton::Render::IsoDoc::General
|
8
8
|
def config_loc
|
9
9
|
YAML.load_file(File.join(File.dirname(__FILE__), "config.yml"))
|
@@ -11,7 +11,7 @@ module Relaton
|
|
11
11
|
|
12
12
|
def klass_initialize(_options)
|
13
13
|
super
|
14
|
-
@parseklass = Relaton::Render::
|
14
|
+
@parseklass = Relaton::Render::Itu::Parse
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
data/lib/relaton/render/parse.rb
CHANGED
data/metanorma-itu.gemspec
CHANGED
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: 2.5.
|
4
|
+
version: 2.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|