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
#annex_delim(_elem) ⇒ Object
8
9
10
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 8
def annex_delim(_elem)
"<br/><br/>"
end
|
#clausex(docxml) ⇒ Object
34
35
36
37
38
39
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 34
def clausex(docxml)
super
docxml.xpath(ns("//appendix")).each do |x|
clause1(x)
end
end
|
#designation_boldface(desgn) ⇒ Object
18
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 18
def designation_boldface(desgn); end
|
#middle_title(docxml) ⇒ Object
12
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 12
def middle_title(docxml); end
|
#ol_label_template(_elem) ⇒ Object
45
46
47
48
49
50
51
52
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 45
def ol_label_template(_elem)
super
.merge({
alphabet: %{%<span class="fmt-label-delim">.</span>},
arabic: %{%<span class="fmt-label-delim">.</span>},
roman: %{%<span class="fmt-label-delim">.</span>},
})
end
|
#preface_rearrange(doc) ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 20
def preface_rearrange(doc)
preface_move(doc.xpath(ns("//preface/abstract")),
%w(foreword executivesummary introduction clause acknowledgements), doc)
preface_move(doc.xpath(ns("//preface/foreword")),
%w(executivesummary introduction clause acknowledgements), doc)
preface_move(doc.xpath(ns("//preface/executivesummary")),
%w(introduction clause acknowledgements), doc)
preface_move(doc.xpath(ns("//preface/introduction")),
%w(clause acknowledgements), doc)
preface_move(doc.xpath(ns("//preface/acknowledgements")),
%w(), doc)
end
|
#termsource_label(elem, sources) ⇒ Object
14
15
16
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 14
def termsource_label(elem, sources)
elem.replace(l10n("<strong>#{@i18n.source}</strong>: #{sources}"))
end
|
#ul_label_list(_elem) ⇒ Object
41
42
43
|
# File 'lib/isodoc/ribose/presentation_xml_convert.rb', line 41
def ul_label_list(_elem)
%w(o — •)
end
|