Skip to content

karmapa/checkTibetan_for_ketaka

Repository files navigation

checkTibetan_1.0.2

Build Status

Only show coordinate and syllable length for tagging

Input content ,and output will show array of coordinates like : [ 401, 3, 'ཤཱམ' ].

It means the wrong syllable starts at position 401 ,syllable length is 3 ,and the syllable is 'ཤཱམ'

Data is imported from tibetan-spellchecker.

Usage

// main.js
var fs = require("fs");
var content = fs.readFileSync("./spellchecktest.xml", "utf8");
var checkSyllables = require("check-tibetan").checkSyllables;

var out = checkSyllables(content); 
/*out
[ [ 87, 5, 'ཀྲྀརྞ' ],
  [ 93, 3, 'པཅི' ],
  [ 105, 3, 'ཙཱབ' ],
  [ 224, 8, 'པའིཉམངོན' ] ]
*/

About

Only show coordinate and syllable length for tagging

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •