lib/ununiga/jaso_splitter.rb in ununiga-1.0.5 vs lib/ununiga/jaso_splitter.rb in ununiga-1.1.0
- old
+ new
@@ -15,10 +15,10 @@
# splitter2.extract_jongsung # => nil
# splitter2.split # => ['ㄱ', 'ㅏ', nil]
#
class JasoSplitter
CHOSUNGS = %w(ㄱ ㄲ ㄴ ㄷ ㄸ ㄹ ㅁ ㅂ ㅃ ㅅ ㅆ ㅇ ㅈ ㅉ ㅊ ㅋ ㅌ ㅍ ㅎ).freeze
- JUNGSUNGS = %w(ㅏ ㅐ ㅑ ㅒ ㅓ ㅔ ㅕ ㅖ ㅗ ㅘ ㅛ ㅙ ㅚ ㅜ ㅝ ㅞ ㅟ ㅠ ㅡ ㅢ ㅣ).freeze
+ JUNGSUNGS = %w(ㅏ ㅐ ㅑ ㅒ ㅓ ㅔ ㅕ ㅖ ㅗ ㅘ ㅙ ㅚ ㅛ ㅜ ㅝ ㅞ ㅟ ㅠ ㅡ ㅢ ㅣ).freeze
JONGSUNGS = %w(ㄱ ㄲ ㄳ ㄴ ㄵ ㄶ ㄷ ㄹ ㄺ ㄻ ㄼ ㄽ ㄾ ㄿ ㅀ ㅁ ㅂ ㅄ ㅅ ㅆ ㅇ ㅈ ㅊ ㅋ ㅌ ㅍ ㅎ).unshift(nil).freeze
KR_RANGE = ('가'.unpack('U')[0]..'힣'.unpack('U')[0]).freeze
KR_OFFSET = KR_RANGE.first.freeze
attr_reader :kr_char