sanskrit-transcoder
Javascript port of the PHP/Python implementation of sanskrit transcoding.
This module provides a single method to transcode a string to and from a number of transliteration schemes:
itrans
- Indian languages TRANSliteration (ITRANS)hk
- Harvard-Kyoto (or Kyoto-Harvard)roman
- Romanized Sanskrit Transliteration (IAST)deva
- Devanagari (Unicode)wx
- WX notation
Usage
npm install --save sanskrit-transcoder
Basic Example
const sanskritTranscoder = let transcodedtranscoded = // ज्ञानtranscoded = // jñānatranscoded = // jYAnatranscoded = // ज्ञान
API
sourceString
, sourceScheme
, targetScheme
)
sanskritTranscoder(sourceString
- the string to transcode which should be in thesourceScheme
sourceScheme
- the transcoding scheme that yoursourceString
is in.targetScheme
- the transcoding scheme you want your output to be.
License
GPL License
Copyright 2020, Arjun Mehta