Class: CiteProc::Ruby::Formats::Adoc
- Inherits:
-
Format
- Object
- Format
- CiteProc::Ruby::Formats::Adoc
- Defined in:
- lib/citeproc/ruby/formats/adoc.rb
Instance Method Summary collapse
- #apply_font_style ⇒ Object
-
#apply_font_weight ⇒ Object
TODO def apply_font_variant output.replace “*#output*” if options == ‘small-caps’ end.
- #apply_suffix ⇒ Object
-
#apply_vertical_align ⇒ Object
TODO def apply_text_decoration output.replace “*#output*” if options == ‘underline’ end.
Instance Method Details
#apply_font_style ⇒ Object
7 8 9 |
# File 'lib/citeproc/ruby/formats/adoc.rb', line 7 def apply_font_style output.replace "_#{output}_" if [:'font-style'] == "italic" end |
#apply_font_weight ⇒ Object
TODO def apply_font_variant
output.replace "*#{output}*" if [:'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 [:'font-weight'] == "bold" end |
#apply_suffix ⇒ Object
30 31 32 33 |
# File 'lib/citeproc/ruby/formats/adoc.rb', line 30 def apply_suffix [:suffix] += " " if aligned_first_field? super end |
#apply_vertical_align ⇒ Object
TODO def apply_text_decoration
output.replace "*#{output}*" if [:'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 [:"vertical-align"] == "sup" output.replace "~#{output}~" if [:"vertical-align"] == "sub" end |