Skip to content

Rabbit-Converter/Rabbit-Ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

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.
  1. Commit your changes (git commit -am 'Add some feature')
  2. Push to the branch (git push origin my-new-feature)
  3. Create a new Pull Request

License

MIT