https://github.com/emsk/mruby-romajify
Japanese romanization library for mruby
https://github.com/emsk/mruby-romajify
cli japanese mruby romaji ruby
Last synced: 8 months ago
JSON representation
Japanese romanization library for mruby
- Host: GitHub
- URL: https://github.com/emsk/mruby-romajify
- Owner: emsk
- License: mit
- Created: 2016-08-15T07:01:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-23T14:43:37.000Z (over 9 years ago)
- Last Synced: 2025-03-12T12:42:32.802Z (about 1 year ago)
- Topics: cli, japanese, mruby, romaji, ruby
- Language: Ruby
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mruby-romajify
[](https://travis-ci.org/emsk/mruby-romajify)
[](LICENSE)
Japanese romanization library for mruby
*This library is an mruby implementation of the [romajify](https://github.com/emsk/romajify).*
## Installation
### For Command Line Interface
Binary files for OS X and Linux (NOT for Windows) are provided.
1. [Download the zip file](../../releases)
2. Extract it
3. Put the binary file to the directory you want
4. Add the directory to the PATH environment variable
### For mruby Source Code
Add this line to your *build_config.rb*:
```ruby
conf.gem github: 'emsk/mruby-romajify'
```
Or add this line to your *mrbgem.rake*:
```ruby
spec.add_dependency 'mruby-romajify'
```
## Usage
### For Command Line Interface
```sh
$ mruby-romajify hepburn すし
sushi
```
Run `mruby-romajify help` for more details.
### For mruby Source Code
```ruby
puts MrubyRomajify::Converter.hepburn('すし')
```
See [romajify's README](https://github.com/emsk/romajify) for more details.
## License
[MIT](LICENSE)