Skip to content

Convert japanese from itaiji(異体字) to seijitai(正字体).

License

Notifications You must be signed in to change notification settings

camelmasa/itaiji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

33902e9 · Oct 5, 2024
Sep 8, 2019
Jul 9, 2017
Jan 8, 2018
Oct 3, 2024
Oct 3, 2024
Feb 20, 2016
Jun 30, 2014
Sep 8, 2019
Jun 30, 2014
Sep 8, 2019
Jan 7, 2017
Oct 22, 2017

Repository files navigation

itaiji

Build Status

Convert japanese itaiji(異体字) to seijitai(正字体).

Installation

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.seijitai('齊藤') # => '斉藤'
converter.itaiji('斉藤')   # => '齊藤'

or

using Itaiji::Conversions

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

(only ruby version >= 2.0.0)

Commands

Test command.

rake

Fetch source file command.

bin/fetch

Benchmark command.

bin/benchmark

Source

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