Mmfont
A simple gem which converts zawgyi1 <=> unicode strings. It uses the rules from paytan and basically, the ruby converter. It's written with TDD. Special thanks to @steveklabnik for his tutorials How I Start Ruby.
Installation
Add this line to your application's Gemfile:
gem 'mmfont'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mmfont
Usage
require 'mmfont'
mmfont = Mmfont::Converter.new
mmfont.uni512zg1("မင်္ဂလာပါ") # returns zg strings "မဂၤလာပါ"
mmfont.zg12uni51("မဂၤလာပါ") # returns unicode strings "မင်္ဂလာပါ"
Is it fast ?
I am not sure. But of course, Ruby is basically slow, regardless of implementations, compared to Nodejs, Go, Rust etc. Some benchmarks, maybe ?
TODO
Write TESTS!
Contributing
- Fork it ( https://github.com/yelinaung/mmfont )
- 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
License
MIT