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.
- checksums.yaml +4 -4
- data/lib/html2doc/ieee/lists.rb +1 -1
- data/lib/html2doc/ieee/notes.rb +1 -1
- data/lib/html2doc/ieee.rb +1 -1
- data/lib/html2doc/ieee_wp/lists.rb +1 -1
- data/lib/html2doc/ieee_wp.rb +1 -1
- data/lib/isodoc/ieee/base_convert.rb +1 -1
- data/lib/isodoc/ieee/html/htmlstyle.css +4 -1
- data/lib/isodoc/ieee/html_convert.rb +1 -1
- data/lib/isodoc/ieee/i18n.rb +1 -1
- data/lib/isodoc/ieee/ieee.amendment.xsl +250 -35
- data/lib/isodoc/ieee/ieee.rb +1 -1
- data/lib/isodoc/ieee/ieee.standard.xsl +250 -35
- data/lib/isodoc/ieee/ieee_xml_convert.rb +2 -2
- data/lib/isodoc/ieee/init.rb +2 -2
- data/lib/isodoc/ieee/metadata.rb +1 -1
- data/lib/isodoc/ieee/pdf_convert.rb +1 -1
- data/lib/isodoc/ieee/presentation_bibdata.rb +1 -1
- data/lib/isodoc/ieee/presentation_ref.rb +7 -8
- data/lib/isodoc/ieee/presentation_terms.rb +1 -1
- data/lib/isodoc/ieee/presentation_xml_convert.rb +1 -1
- data/lib/isodoc/ieee/word_authority.rb +1 -1
- data/lib/isodoc/ieee/word_cleanup.rb +2 -2
- data/lib/isodoc/ieee/word_cleanup_blocks.rb +1 -1
- data/lib/isodoc/ieee/word_convert.rb +2 -2
- data/lib/isodoc/ieee/word_wp_cleanup.rb +2 -2
- data/lib/isodoc/ieee/word_wp_convert.rb +1 -1
- data/lib/isodoc/ieee/xref.rb +1 -1
- data/lib/isodoc/ieee.rb +1 -1
- data/lib/metanorma/ieee/basicdoc.rng +861 -481
- data/lib/metanorma/ieee/biblio-standoc.rng +100 -20
- data/lib/metanorma/ieee/biblio.rng +897 -333
- data/lib/metanorma/ieee/cleanup.rb +2 -2
- data/lib/metanorma/ieee/cleanup_ref.rb +2 -2
- data/lib/metanorma/ieee/converter.rb +7 -7
- data/lib/metanorma/ieee/front.rb +1 -1
- data/lib/metanorma/ieee/isodoc.rng +1031 -915
- data/lib/metanorma/ieee/processor.rb +7 -7
- data/lib/metanorma/ieee/relaton-ieee.rng +1 -0
- data/lib/metanorma/ieee/reqt.rng +94 -75
- data/lib/metanorma/ieee/term_lookup_cleanup.rb +1 -1
- data/lib/metanorma/ieee/validate.rb +4 -4
- data/lib/metanorma/ieee/validate_section.rb +1 -1
- data/lib/metanorma/ieee/validate_style.rb +1 -1
- data/lib/metanorma/ieee/version.rb +2 -2
- data/lib/metanorma/ieee.rb +1 -1
- data/lib/metanorma-ieee.rb +1 -1
- data/lib/relaton/render/general.rb +2 -2
- data/lib/relaton/render/parse.rb +1 -1
- data/metanorma-ieee.gemspec +1 -1
- 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
|
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::
|
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
|
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::
|
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
|
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::
|
84
|
+
IsoDoc::Ieee::PresentationXMLConvert
|
85
85
|
.new(html_extract_attributes(node)
|
86
|
-
.merge(output_formats: ::Metanorma::
|
86
|
+
.merge(output_formats: ::Metanorma::Ieee::Processor.new.output_formats))
|
87
87
|
end
|
88
88
|
|
89
89
|
def html_converter(node)
|
90
|
-
IsoDoc::
|
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::
|
96
|
+
IsoDoc::Ieee::PdfConvert.new(pdf_extract_attributes(node))
|
97
97
|
end
|
98
98
|
|
99
99
|
def doc_converter(node)
|
100
|
-
IsoDoc::
|
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::
|
106
|
+
IsoDoc::Iso::IeeeXMLConvert.new(html_extract_attributes(node))
|
107
107
|
end
|
108
108
|
end
|
109
109
|
end
|