virama-js
v1.0.6
Published
Another default myanmar font detector and Zawgyi <=> Unicode Converter for nodejs.
Downloads
11
Maintainers
Readme
Virama-JS (ဝိရာမ)
Myanmar font (browser default font) detector and Zawgyi <=> Unicode Converter for nodejs.
About
Converter functions are come from Rabbit-Converter.
Installation
Install using npm:
npm install virama-js --save
Using CDN:
<script src="https://unpkg.com/[email protected]/dist/virama.min.js"></script>
Usage
var Virama = require("virama-js");
Virama.textToWrite("ပြည်ထောင်စုဖောင့်");
// Output4ZawgyiUser: ပွညျထောငျစုဖောငျ့
// Output4UniUser: ပြည်ထောင်စုဖောင့်
Virama.textToWrite("ျပည္ေထာင္စုေဖာင့္");
// Output4ZawgyiUser: ပြည်ထောင်စုဖောင့်
// Output4UniUser: ျပည္ေထာင္စုေဖာင့္
Virama.textToRead("ပြည်ထောင်စုဖောင့်");
// Output4ZawgyiUser: ျပည္ေထာင္စုေဖာင့္
// Output4UniUser: ပြည်ထောင်စုဖောင့်
Virama.zg2uni("ျပည္ေထာင္စုေဖာင့္");
// Output: ပြည်ထောင်စုဖောင့်
Virama.uni2zg("ပြည်ထောင်စုဖောင့်");
// Output: ျပည္ေထာင္စုေဖာင့္
Virama.getBrowserFont();
// Output4ZawgyiUser: zawgyi
// Output4UniUser: uni
Virama.isUnicodeUser();
// Output4ZawgyiUser: false
// Output4UniUser: true
Change Log
v1.0.4
- used
typescript
- changed
Virama.
write()
toVirama.
textToWrite()
- changed
Virama.
read()
toVirama.
textToRead()
Contributing
- Fork it ( https://github.com/thixpin/Virama-JS )
- 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