This is a direct port of Rabbit-Ruby gem to crystal language. Basically, it provides a converter class that lets you convert between unicode and zawgyi (two conflicting fonts in Myanmar).
Add this to your application's shard.yml
:
dependencies:
rabbit-crystal:
github: dreamingblackcat/rabbit-crystal
require 'rabbit'
rabbit = Rabbit::Converter.new
rabbit.uni2zg("မင်္ဂလာပါ") # returns zg strings "မဂၤလာပါ"
rabbit.zg2uni("မဂၤလာပါ") # returns unicode strings "မင်္ဂလာပါ"
- Fork it (https://github.com/your-github-user/rabbit-crystal/fork)
- 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
- dreamingblackcat dreamingblackcat - creator, maintainer
As this is a direct port, the credit all goes to the original creator of Rabbit Converter and the creator of Rabbit-Ruby gem.
MIT