Class: Deplate::Symbols::Utf8
- Inherits:
-
Deplate::Symbols
- Object
- Deplate::Symbols
- Deplate::Symbols::Utf8
- Defined in:
- lib/deplate/mod/symbols-utf-8.rb
Overview
symbols-sgml.rb @Author: Thomas Link (micathom AT gmail com) @Website: deplate.sf.net/ @License: GPL (see www.gnu.org/licenses/gpl.txt) @Created: 27-Aug-2004. @Revision: 0.40
Instance Method Summary collapse
- #doublequote_close(invoker) ⇒ Object
- #doublequote_open(invoker) ⇒ Object
-
#format_symbol(invoker, sym) ⇒ Object
def symbol_paragraph(invoker) %§ end.
- #nonbreakingspace(invoker) ⇒ Object
- #singlequote_close(invoker) ⇒ Object
- #singlequote_open(invoker) ⇒ Object
Instance Method Details
#doublequote_close(invoker) ⇒ Object
17 18 19 |
# File 'lib/deplate/mod/symbols-utf-8.rb', line 17 def doublequote_close(invoker) %{”} end |
#doublequote_open(invoker) ⇒ Object
13 14 15 |
# File 'lib/deplate/mod/symbols-utf-8.rb', line 13 def doublequote_open(invoker) %{“} end |
#format_symbol(invoker, sym) ⇒ Object
def symbol_paragraph(invoker)
%{§}
end
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/deplate/mod/symbols-utf-8.rb', line 37 def format_symbol(invoker, sym) case sym when "<-" return "←" when "->" return "→" when "<=", "<<<" return "◄" when "=>", ">>>" return "►" when "<->" return "↔" when "<=>" return "◄►" when "!=" return "≠" when "~~" return "≈" when "..." return "…" when "--" return "—" when "==" return "≡" when "+++", "###", "???", "!!!" p = @formatter.formatted_inline("para", @formatter.plain_text(sym)) m = @formatter.formatted_inline("sidebar", p) if defined?(invoker.epilogue) invoker.epilogue << m return "" else return m end # when "<~" # return "" # when "~>" # return "" # when "<~>" # return "" else super end end |
#nonbreakingspace(invoker) ⇒ Object
29 30 31 |
# File 'lib/deplate/mod/symbols-utf-8.rb', line 29 def nonbreakingspace(invoker) %{ } end |
#singlequote_close(invoker) ⇒ Object
25 26 27 |
# File 'lib/deplate/mod/symbols-utf-8.rb', line 25 def singlequote_close(invoker) %{’} end |
#singlequote_open(invoker) ⇒ Object
21 22 23 |
# File 'lib/deplate/mod/symbols-utf-8.rb', line 21 def singlequote_open(invoker) %{‘} end |