Package Exports
- kwztr
- kwztr/kwztr.js
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 (kwztr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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][code_map_sheet] as in example zabc.js in this repository.
- it is to define a dictionary with keys as :
1. 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");
[code_map_sheet]: https://docs.google.com/spreadsheets/d/e/2PACX-1vRYY_On0oQlYqCH8KrAuNy9nxnUKRx9dG6UvjoZjbP1ZVeXX6VcHl-sU2yg9jbAFszCcNZ5STK47_rz/pubhtml