class CiteProc::Ruby::Formats::Adoc
Public Instance Methods
apply_font_style()
click to toggle source
# File lib/citeproc/ruby/formats/adoc.rb, line 7 def apply_font_style output.replace "_#{output}_" if options[:'font-style'] == "italic" end
apply_font_weight()
click to toggle source
TODO def apply_font_variant
output.replace "*#{output}*" if options[:'font-variant'] == 'small-caps'
end
# File lib/citeproc/ruby/formats/adoc.rb, line 16 def apply_font_weight output.replace "*#{output}*" if options[:'font-weight'] == "bold" end
apply_suffix()
click to toggle source
Calls superclass method
# File lib/citeproc/ruby/formats/adoc.rb, line 30 def apply_suffix options[:suffix] += " " if aligned_first_field? super end
apply_vertical_align()
click to toggle source
TODO def apply_text_decoration
output.replace "*#{output}*" if options[:'text-decoration'] == 'underline'
end
# File lib/citeproc/ruby/formats/adoc.rb, line 25 def apply_vertical_align output.replace "^#{output}^" if options[:"vertical-align"] == "sup" output.replace "~#{output}~" if options[:"vertical-align"] == "sub" end
Private Instance Methods
aligned_first_accessible?()
click to toggle source
# File lib/citeproc/ruby/formats/adoc.rb, line 42 def aligned_first_accessible? !(node.root.is_a? CSL::Locale) && node.root.bibliography["second-field-align"] end
aligned_first_field?()
click to toggle source
# File lib/citeproc/ruby/formats/adoc.rb, line 37 def aligned_first_field? return node.root.bibliography.layout.children.first == node if aligned_first_accessible? false end