Romajic
Automatic romaji spelling checker for programmer.
Installation
Add this line to your application's Gemfile:
gem 'romajic'
And then execute:
$ bundle
Or install it yourself as:
$ gem install romajic
Usage
Give hiragana text:
$ romajic search すし
SUSI -> sushi @ /usr/local/src/Example.java:5
sushiya -> sushi @ /usr/local/src/example.txt:2
Give romaji text:
$ romajic search sushi
SUSI -> sushi @ /usr/local/src/Example.java:5
sushiya -> sushi @ /usr/local/src/example.txt:2
Command Options
| Option | Description |
|---|---|
-e/--exclude-word |
Word to exclude. |
-c/--config |
Path of configuration file. |
-d/--dir |
Path of target directory. |
-E/--extensions |
Comma-separated target extensions. |
-D/--distance |
Levenshtein distance. |
-C/--converter |
Romaji converter, such as hepburn, modified_hepburn, traditional_hepburn, nihon, or kunrei. |
Contributing
- Fork it ( https://github.com/emsk/romajic/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request