Skip to content

Convert japanese from itaiji(異体字) to seijitai(正字体) and also reverse convert.

License

Notifications You must be signed in to change notification settings

harumukanon/itaiji

 
 

Repository files navigation

itaiji

Build Status Code Climate Coverage Status

Convert japanese itaiji(異体字) to seijitai(正字体) and also reverse convert. Instration

Add this line to your application's Gemfile:

gem 'itaiji'

And then execute:

$ bundle

Or install it yourself as:

$ gem install itaiji

Usage

converter = Itaiji::Converter.new

converter.convert_seijitai('齊藤') # => '斉藤'
converter.convert_itaiji('斉藤')   # => '齊藤'

or

using Itaiji::Conversions

'齊藤'.to_seijitai # => '斉藤'
'斉藤'.to_itaiji   # => '齊藤'

(only ruby version >= 2.0.0)

Test

test command.

rake

Source

http://wwwap.hi.u-tokyo.ac.jp/ships/itaiji_list.jsp

Acknowledgement

Additions of characters made by harumukanon are partially based on The Definition Table for Kanji Unification Index developed by the National Institute of Informatics working together with Yasunori Wakayama of the Reitaku University Library.

About

Convert japanese from itaiji(異体字) to seijitai(正字体) and also reverse convert.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%