metanorma-ieee 1.3.0 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/html2doc/ieee/lists.rb +1 -1
  3. data/lib/html2doc/ieee/notes.rb +1 -1
  4. data/lib/html2doc/ieee.rb +1 -1
  5. data/lib/html2doc/ieee_wp/lists.rb +1 -1
  6. data/lib/html2doc/ieee_wp.rb +1 -1
  7. data/lib/isodoc/ieee/base_convert.rb +1 -1
  8. data/lib/isodoc/ieee/html/htmlstyle.css +4 -1
  9. data/lib/isodoc/ieee/html_convert.rb +1 -1
  10. data/lib/isodoc/ieee/i18n.rb +1 -1
  11. data/lib/isodoc/ieee/ieee.amendment.xsl +250 -35
  12. data/lib/isodoc/ieee/ieee.rb +1 -1
  13. data/lib/isodoc/ieee/ieee.standard.xsl +250 -35
  14. data/lib/isodoc/ieee/ieee_xml_convert.rb +2 -2
  15. data/lib/isodoc/ieee/init.rb +2 -2
  16. data/lib/isodoc/ieee/metadata.rb +1 -1
  17. data/lib/isodoc/ieee/pdf_convert.rb +1 -1
  18. data/lib/isodoc/ieee/presentation_bibdata.rb +1 -1
  19. data/lib/isodoc/ieee/presentation_ref.rb +7 -8
  20. data/lib/isodoc/ieee/presentation_terms.rb +1 -1
  21. data/lib/isodoc/ieee/presentation_xml_convert.rb +1 -1
  22. data/lib/isodoc/ieee/word_authority.rb +1 -1
  23. data/lib/isodoc/ieee/word_cleanup.rb +2 -2
  24. data/lib/isodoc/ieee/word_cleanup_blocks.rb +1 -1
  25. data/lib/isodoc/ieee/word_convert.rb +2 -2
  26. data/lib/isodoc/ieee/word_wp_cleanup.rb +2 -2
  27. data/lib/isodoc/ieee/word_wp_convert.rb +1 -1
  28. data/lib/isodoc/ieee/xref.rb +1 -1
  29. data/lib/isodoc/ieee.rb +1 -1
  30. data/lib/metanorma/ieee/basicdoc.rng +861 -481
  31. data/lib/metanorma/ieee/biblio-standoc.rng +100 -20
  32. data/lib/metanorma/ieee/biblio.rng +897 -333
  33. data/lib/metanorma/ieee/cleanup.rb +2 -2
  34. data/lib/metanorma/ieee/cleanup_ref.rb +2 -2
  35. data/lib/metanorma/ieee/converter.rb +7 -7
  36. data/lib/metanorma/ieee/front.rb +1 -1
  37. data/lib/metanorma/ieee/isodoc.rng +1031 -915
  38. data/lib/metanorma/ieee/processor.rb +7 -7
  39. data/lib/metanorma/ieee/relaton-ieee.rng +1 -0
  40. data/lib/metanorma/ieee/reqt.rng +94 -75
  41. data/lib/metanorma/ieee/term_lookup_cleanup.rb +1 -1
  42. data/lib/metanorma/ieee/validate.rb +4 -4
  43. data/lib/metanorma/ieee/validate_section.rb +1 -1
  44. data/lib/metanorma/ieee/validate_style.rb +1 -1
  45. data/lib/metanorma/ieee/version.rb +2 -2
  46. data/lib/metanorma/ieee.rb +1 -1
  47. data/lib/metanorma-ieee.rb +1 -1
  48. data/lib/relaton/render/general.rb +2 -2
  49. data/lib/relaton/render/parse.rb +1 -1
  50. data/metanorma-ieee.gemspec +1 -1
  51. metadata +2 -2
@@ -2,7 +2,7 @@ require_relative "cleanup_ref"
2
2
  require_relative "term_lookup_cleanup"
3
3
 
4
4
  module Metanorma
5
- module IEEE
5
+ module Ieee
6
6
  class Converter < Standoc::Converter
7
7
  def initial_boilerplate(xml, isodoc)
8
8
  intro_boilerplate(xml, isodoc)
@@ -130,7 +130,7 @@ module Metanorma
130
130
  def term_defs_boilerplate_cont(src, term, isodoc); end
131
131
 
132
132
  def termlookup_cleanup(xmldoc)
133
- Metanorma::IEEE::TermLookupCleanup.new(xmldoc, @log).call
133
+ Metanorma::Ieee::TermLookupCleanup.new(xmldoc, @log).call
134
134
  end
135
135
 
136
136
  def boilerplate_isodoc(xmldoc)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
- module IEEE
2
+ module Ieee
3
3
  class Converter < Standoc::Converter
4
4
  BIBLIO =
5
5
  "//bibliography/references[@normative = 'false'][not(@hidden)] | " \
@@ -20,7 +20,7 @@ module Metanorma
20
20
  end
21
21
 
22
22
  def sort_biblio(bib)
23
- @i = IsoDoc::IEEE::PresentationXMLConvert
23
+ @i = IsoDoc::Ieee::PresentationXMLConvert
24
24
  .new({ lang: @lang, script: @script, locale: @locale })
25
25
  @i.i18n_init(@lang, @script, @locale)
26
26
  sort_keys = bib.each_with_object({}) do |b, m|
@@ -7,7 +7,7 @@ require_relative "cleanup"
7
7
  require_relative "validate"
8
8
 
9
9
  module Metanorma
10
- module IEEE
10
+ module Ieee
11
11
  class Converter < Standoc::Converter
12
12
  XML_ROOT_TAG = "ieee-standard".freeze
13
13
  XML_NAMESPACE = "https://www.metanorma.org/ns/ieee".freeze
@@ -81,29 +81,29 @@ module Metanorma
81
81
  end
82
82
 
83
83
  def presentation_xml_converter(node)
84
- IsoDoc::IEEE::PresentationXMLConvert
84
+ IsoDoc::Ieee::PresentationXMLConvert
85
85
  .new(html_extract_attributes(node)
86
- .merge(output_formats: ::Metanorma::IEEE::Processor.new.output_formats))
86
+ .merge(output_formats: ::Metanorma::Ieee::Processor.new.output_formats))
87
87
  end
88
88
 
89
89
  def html_converter(node)
90
- IsoDoc::IEEE::HtmlConvert.new(html_extract_attributes(node))
90
+ IsoDoc::Ieee::HtmlConvert.new(html_extract_attributes(node))
91
91
  end
92
92
 
93
93
  def pdf_converter(node)
94
94
  return nil if node.attr("no-pdf")
95
95
 
96
- IsoDoc::IEEE::PdfConvert.new(pdf_extract_attributes(node))
96
+ IsoDoc::Ieee::PdfConvert.new(pdf_extract_attributes(node))
97
97
  end
98
98
 
99
99
  def doc_converter(node)
100
- IsoDoc::IEEE::WordConvert.new(doc_extract_attributes(node))
100
+ IsoDoc::Ieee::WordConvert.new(doc_extract_attributes(node))
101
101
  end
102
102
 
103
103
  def ieee_xml_converter(node)
104
104
  return nil if node.attr("no-pdf")
105
105
 
106
- IsoDoc::Iso::IEEEXMLConvert.new(html_extract_attributes(node))
106
+ IsoDoc::Iso::IeeeXMLConvert.new(html_extract_attributes(node))
107
107
  end
108
108
  end
109
109
  end
@@ -2,7 +2,7 @@ require "isoics"
2
2
  require "pubid-ieee"
3
3
 
4
4
  module Metanorma
5
- module IEEE
5
+ module Ieee
6
6
  class Converter < Standoc::Converter
7
7
  def metadata_committee(node, xml)
8
8
  metadata_committee_prep(node) or return