Project

itaiji

0.02
No commit activity in last 3 years
No release in over 3 years
Convert japanese itaiji(異体字) to seijitai(正字体).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8
~> 12.1
~> 3.7
 Project Readme

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