Skip to main content

Transliterate to and from Indian languages. Currently supported Dravida languages - ಕతెമத.

Project description

Tools to transliterate from and detransliterate to Dravidian languages (Kannada, Malayalam, Tamil, and Telugu).

Sub-Modules

transliterate

Contains the function transliterate. Given a file (text or pickle) and the script, this function transliterates from the provided script and saves it in the specified file.

detransliterate

Contains the function detransliterate. Given a file (text or pickle) and the script, this function detransliterates to the required script and saves it in the specified file.

Classes

Transliterator

Defines the class Transliterator, which transliterates TaKaMaTe into Latin.

DeTransliterator

Defines the class DeTransliterator, which detransliterates TaKaMaTe from Latin.

Quick Start

import indic_translit as translit
from translit.Transliterator import Transliterator
from translit.DeTransliterator import DeTransliterator

transliterator = Transliterator("Telugu")
text = u'ప్రియాంక విప్పారిత నేత్రాలతో త్రినాధ్ కేసే మౌనంగా చూస్తుండి పోయింది.'
trans_text = transliterator.transliterate(text)
print(trans_text)
# priyāṁka vippārita nētrālatō trinādh kēsē maunaṁgā cūstuṁḍi pōyiṁdi.

detransliterator = DeTransliterator("Telugu")
re_text = detransliterator.detransliterate(trans_text)
print(re_text)
# ప్రియాంక విప్పారిత నేత్రాలతో త్రినాధ్ కేసే మౌనంగా చూస్తుండి పోయింది.

Known Issues

  1. The (de)transliterations output for Malayalam are not one-to-one due to different representations for the same sound, such as ൿ and ക്, ർ and റ്, ൻ and ന്. Feedback is sought for the correctness of the current state and what needs to be done to make them correct. There are no known issues for the remaining languages. The community is encouraged to report more issues.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

indic-translit-0.1.3.1.tar.gz (39.5 kB view details)

Uploaded Source

File details

Details for the file indic-translit-0.1.3.1.tar.gz.

File metadata

  • Download URL: indic-translit-0.1.3.1.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for indic-translit-0.1.3.1.tar.gz
Algorithm Hash digest
SHA256 814a98427cbc9f8d1baeae2a82bb64226a1e7200b141f5e1a48d3d606a8b2a16
MD5 9980411f97872b8da5acb9ac43349d71
BLAKE2b-256 8ce2226667144b321200eaed4c68edeeca42c856253f6fcf8ca74813a7a76205

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page