Method: LatexToUnicode.translate_combining
- Defined in:
- lib/translate.rb
.translate_combining(text, type) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/translate.rb', line 44 def self.translate_combining(text, type) text + case type when :hat then '̂' # this is the unicode "combining circumflex" when :breve then '̆' when :grave then '̀' when :bar then '̄' when :check then '̌' when :acute then '́' when :tilde then '̃' when :vec then '⃗' when :dot then '̇' when :ddot then '̈' when :mathring then '̊' end end |