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.2.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.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iithlp-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 353977832f6d2bc6110d792f31b5bf90af8a0278be98cf08dba685d5b968bc4f
MD5 a4eea291ba365be8a4769a09b56a32bb
BLAKE2b-256 918ac15fe119ad5b6882d9650ebcc41f7f1e09db63d92614c301a1e483bc0139

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iithlp-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 02de12b9cd3767641cadeba24c1fb9a23bbae26edd6d07a2006aa3fe280e3dce
MD5 13a8b46f34297bfbe7be62fefc004a36
BLAKE2b-256 67176f2b464415eab6a12b553e34787d7c0d0a36a02e38a55b8ccb26b2969c2e

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