Class: IsoDoc::Ribose::PresentationXMLConvert
- Inherits:
-
Generic::PresentationXMLConvert
- Object
- Generic::PresentationXMLConvert
- IsoDoc::Ribose::PresentationXMLConvert
show all
- Includes:
- Init
- Defined in:
- lib/isodoc/ribose/presentation_xml_convert.rb
Instance Method Summary
collapse
Methods included from Init
#i18n_init, #metadata_init, #xref_init
Instance Method Details
#annex1(elem) ⇒ Object
8
9
10
11
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 8
def annex1(elem)
lbl = @xrefs.anchor(elem["id"], :label)
prefix_name(elem, "<br/><br/>", lbl, "title")
end
|
#middle_title(docxml) ⇒ Object
13
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 13
def middle_title(docxml); end
|
#preface_rearrange(doc) ⇒ Object
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 23
def preface_rearrange(doc)
preface_move(doc.at(ns("//preface/abstract")),
%w(foreword executivesummary introduction clause acknowledgements), doc)
preface_move(doc.at(ns("//preface/foreword")),
%w(executivesummary introduction clause acknowledgements), doc)
preface_move(doc.at(ns("//preface/executivesummary")),
%w(introduction clause acknowledgements), doc)
preface_move(doc.at(ns("//preface/introduction")),
%w(clause acknowledgements), doc)
preface_move(doc.at(ns("//preface/acknowledgements")),
%w(), doc)
end
|
#termsource1(elem) ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 15
def termsource1(elem)
mod = elem.at(ns("./modification")) and
termsource_modification(mod)
elem.children = l10n("<strong>#{@i18n.source}:</strong> " \
"#{to_xml(elem.children).strip}")
elem&.next_element&.name == "termsource" and elem.next = "; "
end
|