lib/ting/tones/marks.rb in ting-0.2.1 vs lib/ting/tones/marks.rb in ting-0.3.0
- old
+ new
@@ -1,5 +1,7 @@
+# coding: utf-8
+
module Ting
module Tones
class Marks < Tone
class <<self
@@ -9,13 +11,17 @@
syll + GLYPHS[normalize(tone) % 5]
end
def peek_tone(syll)
case syll
- when /ˊ/ : 2
- when /ˇ/ : 3
- when /ˋ/ : 4
- when /˙/ : NEUTRAL_TONE
+ when /ˊ/
+ 2
+ when /ˇ/
+ 3
+ when /ˋ/
+ 4
+ when /˙/
+ NEUTRAL_TONE
else
1
end
end