Giter VIP home page Giter VIP logo

hangeul_comp's Introduction

NOTE

이 gem을 사용하시는 것보다 ruby의 String 객체에 있는 유니코드 정규화 에 관련된 메서드(String.unicode_normalize )를 사용하는 것을 추천해드립니다.

It's more recommended to use Unicode Normalization method(String.unicode_normalize ) instead of using this gem.

"한글".ko_decompose == "한글".unicode_normalize(:nfd) # true

hangeul_comp

Hangeul(한글) composer/decomposer gem.

한글 유니코드 완성형 문자를 조합형으로, 조합형 문자를 완성형으로 변환할 수 있도록 해주는 gem입니다.

Ruby Gem for composing Hangeul(한글) combinative character to completive one, and decomposing Hangeul completive character to combinative one.

Installing

$ gem install hangeul_comp

you can also clone this repository and build gemspec & install!

$ git clone git://github.com/devleoper/hangeul_comp.git
$ cd hangeul_comp
$ gem build hangeul_comp.gemspec && gem install hangeul_comp.gem

, or add a line to your Gemfile and run the command bundle install

gem 'hangeul_comp', :git => 'git://github.com/devleoper/hangeul_comp.git'

Usage

require 'hangeul_comp'

puts "꺄아".ko_decompose # => \u1101\u1163\u110b\u1161
puts "\u1102\u1163\u11bc".ko_compose # => 냥

hangeul_comp's People

Contributors

yosangwon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.