lib/sawarineko/converter.rb
def convert_hangul(ch)
      if @encoding == Encoding::EUC_KR && !CONVERTIBLE_EUC_KR.include?(ch.ord)
        return ch
      end
      (ch.encode(Encoding::UTF_8).ord + 56).chr(Encoding::UTF_8)
        .encode(@encoding)
    end
# Convert a hangul character to Sawarineko.
#
# ch - A hangul character to convert.
#
# Returns the converted character.
Convert a hangul character to Sawarineko.
ch - A hangul character to convert.

Returns the converted character.
Convert a hangul character to Sawarineko . ch - A hangul character to convert . Returns the converted character .
def convert_hangul(ch)
      if @encoding == Encoding::EUC_KR && !CONVERTIBLE_EUC_KR.include?(ch.ord)
        return ch
      end
      (ch.encode(Encoding::UTF_8).ord + 56).chr(Encoding::UTF_8)
        .encode(@encoding)
    end
def convert_hangul ( ch ) if @encoding == Encoding :: EUC_KR && ! CONVERTIBLE_EUC_KR . include? ( ch . ord ) return ch end ( ch . encode ( Encoding :: UTF_8 ) . ord + 56 ) . chr ( Encoding :: UTF_8 ) . encode ( @encoding ) end
Convert a hangul character to Sawarineko.
Convert a hangul character to Sawarineko .
ch