1

I am looking for an offline software that can do the transliteration from Roman script to Devanagari Script. Is there anything available like this?

2
1

You can use the java module sanscript.java.

Quote from the ReadMe

By default, Sanscript supports the following Brahmic schemes:

  • bengali
  • devanagari
  • gujarati
  • gurmukhi
  • kannada
  • malayalam
  • oriya
  • tamil
  • telugu

and the following Roman schemes:

  • hk (Harvard-Kyoto)
  • iast (International Alphabet of Sanskrit Transliteration)
  • itrans (ITRANS)
  • itrans_dravidian (ITRANS with support for Dravidian short "e" and "o")
  • kolkata (National Library at Kolkata)
  • slp1 (Sanskrit Library Phonetic Basic)
  • velthuis (Velthuis)
  • wx (WX)

When Sanscript sees the token ##, it toggles the transliteration state:

  • Sanscript.t('ga##Na##pa##te', 'hk', 'devanagari'); // गNaपte
  • Sanscript.t('ध##र्म##क्षेत्रे', 'devanagari', 'hk'); // dhaर्मkSetre

When Sanscript sees the token \, it disables transliteration on the character that immediately follows. \ is used for ITRANS compatibility; we recommend always using ## instead.

  • Sanscript.t('a \a', 'itrans', 'devanagari'); // अ a
  • Sanscript.t('\##aham', 'itrans', 'devanagari'); // ##अहम्
3
  • I want to use it for the transliteration of file names present in the folder. So, this scheme wont work there since the filenames doesnt contains ##. – Rohan May 12 '15 at 4:01
  • @Rohan Please note that the ## or \ is to force not transliterating specific parts of the string. So this will work just fine. You will just need to read up a little on how to write some java code to get it to take in a path and then get the file names, transliterate them and write them out. – Steve Barnes May 12 '15 at 5:27
  • sanscript.java seems to be javascript library not java & javascript doesnt have the capability to access system files. – Rohan May 12 '15 at 5:48
1

There is Lingua-Deva which is a perl language transliteration library available from GitHub.

Usage example:

use Lingua::Deva;
my $d = Lingua::Deva->new();
say $d->to_latin('आसीद्राजा');
say $d->to_deva('Nalo nāma');
2
  • I did also find a python library referenced but the links were broken. – Steve Barnes May 11 '15 at 19:33
  • 1
    Thanks for reply. Is it suitable for transliteration of all the filenames present in the folder ? – Rohan May 12 '15 at 4:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.