Skip to main content

A package to convert Indic script characters to iithlp format.

Project description

iithlp

iithlp is a Python package that converts text from various Indic scripts (Devanagari, Tamil, Telugu, Malayalam) into the iithlp Romanized format. This tool is designed for linguistic research, transliteration tasks, and script processing workflows.

Features

  • Supports Devanagari, Tamil, Telugu, and Malayalam scripts.
  • Converts characters based on a predefined mapping to iithlp format.
  • Provides both Python API and Command-Line Interface (CLI) for easy usage.
  • Handles unmapped characters gracefully by passing them through unchanged.

Installation

You can install iithlp directly from PyPI:

pip install iithlp

Alternatively, if you are developing or testing locally:

git clone https://github.com/yourusername/iithlp.git
cd iithlp
pip install .

Usage

1. Using as a Python Library

You can import and use iithlp in your Python scripts.

from iithlp.converter import convert_to_iithlp

# Example for Tamil text
tamil_text = "அஆஇஈ"
converted_text = convert_to_iithlp(tamil_text, 'tamil')
print(converted_text)  # Output: aAiI

2. Using from the Command Line

After installation, you can use the iithlp command from your terminal:

iithlp "அஆஇஈ" tamil

Expected Output:

aAiI

CLI Arguments:

  • text: The input text you want to convert.
  • script: The script of the input text. Supported values are: devanagari, tamil, telugu, malayalam.

Supported Scripts & Examples

Script Example Input iithlp Output
Devanagari अआइई (अआइई) aAiI
Tamil அஆஇஈ (அஆஇஈ) aAiI
Telugu అఆఇఈ (అఆఇఈ) aAiI
Malayalam അആഇഈ (അആഇഈ) aAiI

Development

If you'd like to contribute or modify the package:

  1. Clone the repository:

    git clone https://github.com/yourusername/iithlp.git
    cd iithlp
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Run tests:

    pytest
    

License

This project is licensed under the MIT License. See the LICENSE file for more details.


Acknowledgements

This tool was developed to support transliteration and linguistic research efforts, making it easier to work with Indic scripts in a standardized Romanized format.

Special thanks to the Department of Heritage Science and Technology (HST) at IIT Hyderabad (IITH) for their support and guidance.


Team

This project was created and maintained by the IITH HST Department team in collaboration with contributors from the open-source community.


Contact

For questions, issues, or contributions, feel free to open an issue on GitHub or contact Ramanan Sivasubramanian at ramanan93@gmail.com, ht23mtech15007@iith.ac.in.

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

iithlp-0.1.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iithlp-0.1.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file iithlp-0.1.3.tar.gz.

File metadata

  • Download URL: iithlp-0.1.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for iithlp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 51c506584d1d7b918c26a79256404947ca6121d793d478163d06a55a1e702655
MD5 ee0c9266bce77daa4a2c02df795580e6
BLAKE2b-256 4252cf60c0cfe5fa3c26d2331943bfaed2689b1ef02284d890c0a3d47de3b52d

See more details on using hashes here.

File details

Details for the file iithlp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: iithlp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for iithlp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 11db85f19e2cc62b99304fda897278960ea66fc958cfe97965932724ce602e2f
MD5 72b458bc31451dce1a4950b7d7a8b7ac
BLAKE2b-256 81c4d9fd5bb26727cba91a481d3779f6120eb2c3aebf0ad508e85e19dbfb2289

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