this repository is for npmjs kwztr package.
kwztr is a module to transliterate indian languages.
- assαmi
- bengαli/banglα
- oriyα/odiα
- тelugu
- тamil
- malayαlam
- kannadα
- marαthi
- guzrαтi
- ɦinԃi
- punzαbi/gurmukhi
- sanskriт
- sinɦalα
this module to be used in the webextension:
source code eksecution phlo
- package.json -> main is called/run : ("main": "kwztr.js" , kwztr.js)
- class kwztr
- transliterate(input_str,a2b=u2i)
- transliterate_dom_node(node_arg, a2b=u2i)
- untransliterate_dom_node()
ztr_direction_const values can be :
- u2i for unicode indian/sinhalα scripts to ińglish31 : 26a-z + 5ADHTN/αԃɦтń
ascii510 : american standard code for information interchange decimal digits : 0 1 2 3 4 5 6 7 8 9 5+5=10
hscii810 : heksadesiml standard kode for informesn interchenz heksadesiml dizits : 0 1 2 3 4 5 6 7 8 9 Y J Q W P F 8+8=10=wnti=4*4=solɦ=ekti 4 finger maтhs
steps to clone , build , test & publish
- git clone ... # this repozitri
- change source(do not change version in package.json, npm version command in next step vill change version no) if needed
- test : kwztr/test $node script.js
if tests passed then only : git commit & publish
git add . ; git commit -am "some comments" ; git push
npm version patch
- npm login
- npm publish
steps to use library
- define ascii or hscii or code mapping as in example zabc.js in this repository.
- it is to define a dictionary with keys as :
`
js
- import library as in your js file:
`
js
import kwztr from 'kwztr';
const unicode_str = 'हिन्दी विकिपीडिया' ;
let t = new kwztr();
let ing31str = t.transliterate(unicode_str,"u2i");