lib/gimchi/pronouncer.rb in gimchi-0.1.8 vs lib/gimchi/pronouncer.rb in gimchi-0.1.9

- old
+ new

@@ -15,11 +15,11 @@ def pronounce! str, options = {} @sequence = @pconfig['transformation']['sequence for ' + (options[:pronounce_each_char] ? '1' : '2')] - options[:except] # Dissecting - @chars = @korean.dissect str + @chars = @korean.convert str @orig_chars = @chars.dup # Padding @chars.each { |c| pad c } @@ -297,10 +297,10 @@ '피읖' => '피읍', '히읗' => '히읏'} word = @kc.to_s + @next_kc.to_s if map.keys.include? word - new_char = @korean.dissect(map[word].scan(/./mu)[1])[0] + new_char = @korean.kchar(map[word].scan(/./mu)[1]) @next_kc.chosung = new_char.chosung @next_kc.jongsung = new_char.jongsung true end