Sha256: 8c5ff969490f27ec5c3ed6d2a53ea2e9d0c9d9cc5885801a5b7e6a24232db35d

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

# itaiji

[![Build Status](https://travis-ci.org/camelmasa/itaiji.png)](https://travis-ci.org/camelmasa/itaiji)
[![Code Climate](https://codeclimate.com/github/camelmasa/itaiji.png)](https://codeclimate.com/github/camelmasa/itaiji)
[![Test Coverage](https://codeclimate.com/github/camelmasa/itaiji/badges/coverage.svg)](https://codeclimate.com/github/camelmasa/itaiji)
[![Dependency Status](https://gemnasium.com/camelmasa/itaiji.svg)](https://gemnasium.com/camelmasa/itaiji)

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

## 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.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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
itaiji-1.0.0 README.md
itaiji-0.3.1 README.md