JSPM

  • Created
  • Published
  • Downloads 69
  • Score
    100M100P100Q76531F
  • License MIT

Knayi Myanmar languages script library for Nodejs

Package Exports

  • knayi-myscript

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (knayi-myscript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Knayi Myanmar Script

Knayi is Standalone Myanmar Languages JavaScript Library, which can use for building Myanmar Unicode standard web in user friendly. Script include Font Detector, Font Converter, Syllable Break Points.

Nodejs

npm install knayi-myscript

Font Convert

aSync version

var knayi = require("knayi-myscript");
//@param {fontname-to-convert} default: "unicode5";

knayi([String]).fontConvert([to], function(edited_content, old_content){
  console.log(edited_content);
  
  // this.syllbreak can use for add break point to edited content
  var edited = this.syllbreak();
  console.log(edited);
});

Sync version

var knayi = require("knayi-myscript");
var edited = knayi([String]).fontConvertSync([to]);

FontType

knayi([String]).getFontType();

Syllbreak

// Direct syllbrak
knayi([String]).syllbreak([language]);