Project

mmfont

0.01
No commit activity in last 3 years
No release in over 3 years
Myanmar font toolkit in Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 10.0

Runtime

 Project Readme

Mmfont

Build Status Gem Version Dependency Status Inline docs

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

  1. Fork it ( https://github.com/yelinaung/mmfont )
  2. Create your feature branch (git checkout -b my-new-feature)
  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