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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isodoc/itu/base_convert.rb +1 -1
  3. data/lib/isodoc/itu/cleanup.rb +1 -1
  4. data/lib/isodoc/itu/html/_coverpage.css +3 -0
  5. data/lib/isodoc/itu/html/htmlstyle.css +6 -0
  6. data/lib/isodoc/itu/html_convert.rb +1 -1
  7. data/lib/isodoc/itu/i18n.rb +1 -1
  8. data/lib/isodoc/itu/init.rb +2 -2
  9. data/lib/isodoc/itu/itu.implementers-guide.xsl +179 -21
  10. data/lib/isodoc/itu/itu.in-force.xsl +179 -21
  11. data/lib/isodoc/itu/itu.recommendation-annex.xsl +179 -21
  12. data/lib/isodoc/itu/itu.recommendation-supplement.xsl +179 -21
  13. data/lib/isodoc/itu/itu.recommendation.xsl +179 -21
  14. data/lib/isodoc/itu/itu.resolution.xsl +179 -21
  15. data/lib/isodoc/itu/itu.service-publication.xsl +179 -21
  16. data/lib/isodoc/itu/itu.technical-paper.xsl +179 -21
  17. data/lib/isodoc/itu/itu.technical-report.xsl +179 -21
  18. data/lib/isodoc/itu/metadata.rb +2 -2
  19. data/lib/isodoc/itu/metadata_date.rb +1 -1
  20. data/lib/isodoc/itu/pdf_convert.rb +1 -1
  21. data/lib/isodoc/itu/presentation_bibdata.rb +1 -1
  22. data/lib/isodoc/itu/presentation_contribution.rb +1 -1
  23. data/lib/isodoc/itu/presentation_preface.rb +1 -1
  24. data/lib/isodoc/itu/presentation_ref.rb +1 -1
  25. data/lib/isodoc/itu/presentation_xml_convert.rb +1 -1
  26. data/lib/isodoc/itu/ref.rb +1 -1
  27. data/lib/isodoc/itu/terms.rb +1 -1
  28. data/lib/isodoc/itu/word_cleanup.rb +1 -1
  29. data/lib/isodoc/itu/word_convert.rb +1 -1
  30. data/lib/isodoc/itu/xref.rb +2 -2
  31. data/lib/isodoc/itu/xref_section.rb +1 -1
  32. data/lib/isodoc/itu.rb +1 -1
  33. data/lib/metanorma/itu/biblio-standoc.rng +13 -0
  34. data/lib/metanorma/itu/biblio.rng +19 -12
  35. data/lib/metanorma/itu/cleanup.rb +1 -1
  36. data/lib/metanorma/itu/cleanup_section.rb +1 -1
  37. data/lib/metanorma/itu/converter.rb +6 -6
  38. data/lib/metanorma/itu/front.rb +2 -1
  39. data/lib/metanorma/itu/front_id.rb +1 -1
  40. data/lib/metanorma/itu/processor.rb +6 -6
  41. data/lib/metanorma/itu/relaton-itu.rng +1 -0
  42. data/lib/metanorma/itu/validate.rb +1 -1
  43. data/lib/metanorma/itu/version.rb +2 -2
  44. data/lib/metanorma/itu.rb +1 -1
  45. data/lib/metanorma-itu.rb +1 -1
  46. data/lib/relaton/render/general.rb +2 -2
  47. data/lib/relaton/render/parse.rb +1 -1
  48. data/metanorma-itu.gemspec +1 -1
  49. metadata +2 -2
@@ -7,7 +7,7 @@ require_relative "./validate"
7
7
  require_relative "./cleanup"
8
8
 
9
9
  module Metanorma
10
- module ITU
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::ITU::PresentationXMLConvert
143
+ IsoDoc::Itu::PresentationXMLConvert
144
144
  .new(html_extract_attributes(node)
145
- .merge(output_formats: ::Metanorma::ITU::Processor.new
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::ITU::HtmlConvert.new(html_extract_attributes(node))
150
+ IsoDoc::Itu::HtmlConvert.new(html_extract_attributes(node))
151
151
  end
152
152
 
153
153
  def pdf_converter(node)
154
- IsoDoc::ITU::PdfConvert.new(pdf_extract_attributes(node))
154
+ IsoDoc::Itu::PdfConvert.new(pdf_extract_attributes(node))
155
155
  end
156
156
 
157
157
  def doc_converter(node)
158
- IsoDoc::ITU::WordConvert.new(doc_extract_attributes(node))
158
+ IsoDoc::Itu::WordConvert.new(doc_extract_attributes(node))
159
159
  end
160
160
  end
161
161
  end
@@ -2,7 +2,7 @@ require "fileutils"
2
2
  require_relative "./front_id"
3
3
 
4
4
  module Metanorma
5
- module ITU
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,5 +1,5 @@
1
1
  module Metanorma
2
- module ITU
2
+ module Itu
3
3
  class Converter < Standoc::Converter
4
4
  def metadata_id(node, xml)
5
5
  provisional_id(node, xml)
@@ -1,7 +1,7 @@
1
1
  require "metanorma/processor"
2
2
 
3
3
  module Metanorma
4
- module ITU
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::ITU #{Metanorma::ITU::VERSION}"
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::ITU::HtmlConvert.new(options).convert(inname, isodoc_node,
40
+ IsoDoc::Itu::HtmlConvert.new(options).convert(inname, isodoc_node,
41
41
  nil, outname)
42
42
  when :doc
43
- IsoDoc::ITU::WordConvert.new(options).convert(inname, isodoc_node,
43
+ IsoDoc::Itu::WordConvert.new(options).convert(inname, isodoc_node,
44
44
  nil, outname)
45
45
  when :pdf
46
- IsoDoc::ITU::PdfConvert.new(options).convert(inname, isodoc_node,
46
+ IsoDoc::Itu::PdfConvert.new(options).convert(inname, isodoc_node,
47
47
  nil, outname)
48
48
  when :presentation
49
- IsoDoc::ITU::PresentationXMLConvert.new(options).convert(
49
+ IsoDoc::Itu::PresentationXMLConvert.new(options).convert(
50
50
  inname, isodoc_node, nil, outname)
51
51
  else
52
52
  super
@@ -70,6 +70,7 @@
70
70
  <optional>
71
71
  <ref name="docsubtype"/>
72
72
  </optional>
73
+ <ref name="flavor"/>
73
74
  <oneOrMore>
74
75
  <ref name="editorialgroup"/>
75
76
  </oneOrMore>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
- module ITU
2
+ module Itu
3
3
  class Converter < Standoc::Converter
4
4
  def bibdata_validate(doc)
5
5
  doctype_validate(doc)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
- module ITU
3
- VERSION = "2.5.3".freeze
2
+ module Itu
3
+ VERSION = "2.5.5".freeze
4
4
  end
5
5
  end
data/lib/metanorma/itu.rb CHANGED
@@ -3,7 +3,7 @@ require "metanorma/itu/processor"
3
3
  require "metanorma/itu/converter"
4
4
 
5
5
  module Metanorma
6
- module ITU
6
+ module Itu
7
7
  ORGANIZATION_NAME_SHORT = "ITU"
8
8
  ORGANIZATION_NAME_LONG = "International Telecommunication Union"
9
9
  end
data/lib/metanorma-itu.rb CHANGED
@@ -4,5 +4,5 @@ require "isodoc/itu"
4
4
  require "metanorma"
5
5
 
6
6
  if defined? Metanorma::Registry
7
- Metanorma::Registry.instance.register(Metanorma::ITU::Processor)
7
+ Metanorma::Registry.instance.register(Metanorma::Itu::Processor)
8
8
  end
@@ -3,7 +3,7 @@ require_relative "parse"
3
3
 
4
4
  module Relaton
5
5
  module Render
6
- module ITU
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::ITU::Parse
14
+ @parseklass = Relaton::Render::Itu::Parse
15
15
  end
16
16
  end
17
17
  end
@@ -1,6 +1,6 @@
1
1
  module Relaton
2
2
  module Render
3
- module ITU
3
+ module Itu
4
4
  class Parse < ::Relaton::Render::Parse
5
5
  end
6
6
  end
@@ -4,7 +4,7 @@ require "metanorma/itu/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "metanorma-itu"
7
- spec.version = Metanorma::ITU::VERSION
7
+ spec.version = Metanorma::Itu::VERSION
8
8
  spec.authors = ["Ribose Inc."]
9
9
  spec.email = ["open.source@ribose.com"]
10
10
 
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.3
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-09-16 00:00:00.000000000 Z
11
+ date: 2024-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc