Convert among Devanagari transliteration systems
Convert among common Devanagari transliteration systems. The following codecs are currently implemented.
The best method to install is via
pip3 install devtrans
Clone the GitLab repository to install from the source.
As a script
transliterate -d dev -e iast -i input_file -o outputfile
-dDecoder system code (defaults to
-eEncoder system code (defaults to
-iInput file (defaults to
-oOutput file (defaults to
See help for more details
As a module
Import the module.
Call any codec function with appropriate input text
target = devtrans.wx2iast('xevanAgarI')
Devanagari encoders can have an optional boolean argument. If
True, which is default, the encoder transliterates digits to Devanagari digits. If
False, it leaves digits as it is.
target = devtrans.wx2dev('BagavaxgIwA 18.78', False)
It has primarily been developed for personal use as a tea-time activity. Some of my colleagues and I are using it since 2015 for general texts from classical literature. I have been tweaking and making modifications whenever we found an issue. However, the transliterators are not tested exhaustively or thoroughly with various kinds of texts.
Majority of the transliteration schemes are case-sensitive. Currently, encoder/decoder for case-insensitve schemes works with lowercase characers only.
Many schemes use punctuation characters to represent letters which are represented using alphabets in another scheme. This makes punctuated text to be poorly transliterated. No character-escape mechanism is used.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size devtrans-3.0-py3-none-any.whl (7.0 kB)||File type Wheel||Python version py3||Upload date||Hashes View|