Skip to content

emsk/mruby-romajify

Repository files navigation

mruby-romajify

Build Status License

Japanese romanization library for mruby

This library is an mruby implementation of the romajify.

Installation

For Command Line Interface

Binary files for OS X and Linux (NOT for Windows) are provided.

  1. Download the zip file
  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:

conf.gem github: 'emsk/mruby-romajify'

Or add this line to your mrbgem.rake:

spec.add_dependency 'mruby-romajify'

Usage

For Command Line Interface

$ mruby-romajify hepburn すし
sushi

Run mruby-romajify help for more details.

For mruby Source Code

puts MrubyRomajify::Converter.hepburn('すし')

See romajify's README for more details.

License

MIT