vtranslit
v4.4.1
Published
A transliterator between ITRANS and any Indic Script.
Downloads
25
Maintainers
Readme
vtranslit
A transliterator between ITRANS and any Indic Script.
Currently supports transliteration from ITRANS (Itrn) to:
It also supports transliteration from the above mentioned schemes to ITRANS.
This package is a library and is useful only for developers.
However, users can avail vTranslit's cli or web app.
Installation
> npm install vtranslit
Node usage
const { vTranslit } = require('vtranslit');
// install necessary schemes from npm (links given above)
const { vTranslitSchemeDeva } = require('vtranslit-scheme-deva');
const { vTranslitSchemeItrn } = require('vtranslit-scheme-itrn');
// add schemes to vTranslit
const vtranslit = vTranslit(
[
vTranslitSchemeDeva,
vTranslitSchemeItrn
]
);
// from ITRANS scheme to Devanagari scheme
const vtItrnToDeva = vtranslit.init('Itrn', 'Deva');
console.log(vtItrnToDeva('<stringToTransliterate>');
// from Devanagari scheme to ITRANS scheme
const vtDevaToItrn = vtranslit.init('Deva', 'Itrn');
console.log(vtDevaToItrn('<stringToTransliterate>');
The codes for scheme are based on the ISO 15924 (Codes for the representation of names of scripts), expect ITRANS which is given a similar code in accordance with the standards definition.