Rabbit-Ruby

Build Status Gem Version

Another Zawgyi <=> Unicode Converter as a ruby gem. Written in Ruby.

About

Zawgyi to Unicode has been written in 2011. Now, unicode to zawgyi has been finished.

Motivation

When I was writting ZG2uni, Parabaik was not opensource. At that time, I need to use for MYSTERY ZILLION for converting the whole database to Unicode.

For Unicode to Zawgyi, Parabaik is under the ~~GPL license and cannot use in iOS app and Android App~~ LGPL. So, I decided to write new one with WTFPL license. This ruby gem is under MIT License.

I cannot promise , it's correct 100% after converting.

If you are not using in app or program and just for converting the text , please use Parabaik

Installation

Add this line to your application's Gemfile:

gem 'rabbit-mm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rabbit-mm

Usage

require 'rabbit-mm'

rabbit = Rabbit::Converter.new

rabbit.uni2zg("မင်္ဂလာပါ")  # returns zg strings "မဂၤလာပါ"

rabbit.zg2uni("မဂၤလာပါ")   # returns unicode strings "မင်္ဂလာပါ"

JRuby Support ?

Yes. Tested with jruby-1.7.20

Contributing

  1. Fork it ( https://github.com/Rabbit-Converter/Rabbit-Ruby )
  2. Create your feature branch (git checkout -b my-new-feature)
    • Install ruby with rvm, if you haven't.
    • Run bundle install
    • Add a test case.
    • Implement the code.
    • Make the tests pass.
    • You can run with rake test or just rake in the repo.
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

MIT