Class: CiteProc::Ruby::Formats::Adoc

Inherits:
Format
  • Object
show all
Defined in:
lib/citeproc/ruby/formats/adoc.rb

Instance Method Summary collapse

Instance Method Details

#apply_font_styleObject



7
8
9
# File 'lib/citeproc/ruby/formats/adoc.rb', line 7

def apply_font_style
  output.replace "_#{output}_" if options[:'font-style'] == "italic"
end

#apply_font_weightObject

TODO def apply_font_variant

output.replace "*#{output}*" if options[:'font-variant'] == 'small-caps'

end



16
17
18
# File 'lib/citeproc/ruby/formats/adoc.rb', line 16

def apply_font_weight
  output.replace "*#{output}*" if options[:'font-weight'] == "bold"
end

#apply_suffixObject



30
31
32
33
# File 'lib/citeproc/ruby/formats/adoc.rb', line 30

def apply_suffix
  options[:suffix] += " " if aligned_first_field?
  super
end

#apply_vertical_alignObject

TODO def apply_text_decoration

output.replace "*#{output}*" if options[:'text-decoration'] == 'underline'

end



25
26
27
28
# 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