Kannada ASCII ↔ Unicode converter (basic mapping-based)
Project description
Kannada ASCII ↔ Unicode Converter
A lightweight Python library to convert Kannada text between ASCII-based legacy encodings and modern Unicode.
This package is useful when working with:
- Legacy Kannada ASCII fonts and data
- Unicode migration projects
- Text processing and validation
Project Status
This is version 0.1.x and uses a mapping-based approach.
- Basic conversions work correctly
- Complex conjunct handling and full round-trip accuracy are still under improvement
- API is stable and mappings will improve over time
Installation
pip install kannada-ascii-unicode
Quick Start
from kannada_converter import ascii_to_unicode, unicode_to_ascii
ASCII to Unicode Conversion
Convert legacy ASCII-encoded Kannada text into Unicode.
from kannada_converter import ascii_to_unicode
text_ascii = "kannaDa"
text_unicode = ascii_to_unicode.convert(text_ascii)
print(text_unicode)
Output:
ಕನ್ನಡ
Unicode to ASCII Conversion
Convert Unicode Kannada text back to ASCII encoding.
from kannada_converter import unicode_to_ascii
text_unicode = "ಕನ್ನಡ"
text_ascii = unicode_to_ascii.convert(text_unicode)
print(text_ascii)
Output:
kannaDa
Sentence Conversion Example
from kannada_converter import ascii_to_unicode
sentence = "namma kannaDa bhaashe"
result = ascii_to_unicode.convert(sentence)
print(result)
Round-trip Behavior
ascii_text = "kannaDa bhaashe"
unicode_text = ascii_to_unicode.convert(ascii_text)
back_to_ascii = unicode_to_ascii.convert(unicode_text)
print(back_to_ascii)
Due to the current mapping-based approach, round-trip results may not be identical in all cases. This will improve in future versions.
How It Works
- Uses JSON-based character mappings
- Applies longest-key-first replacement
- No external dependencies
- Fast and lightweight
Supported Python Versions
- Python 3.8 and above
- Works on Windows, Linux, and macOS
Roadmap
Planned improvements include:
- Better conjunct handling
- Improved round-trip accuracy
- Optional command-line interface
- Font-specific mapping profiles
License
MIT License
Author
Ravikumar Pawar
GitHub: https://github.com/kagapa-blr
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kannada_ascii_unicode-0.1.1.tar.gz.
File metadata
- Download URL: kannada_ascii_unicode-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
586dd59befb3968018c0f3b12c365d255dc4c94aefb0f24ddba05f6051cc1f05
|
|
| MD5 |
6961259875bbdfbcc7e6cafdb41ac78e
|
|
| BLAKE2b-256 |
ba4d865f4c2e3e35cdfd2cbf8541f53f09a36d34bc3eaf6fbce79453dfa2e7db
|
Provenance
The following attestation bundles were made for kannada_ascii_unicode-0.1.1.tar.gz:
Publisher:
python-publish.yml on kagapa-blr/py-kannada-ascii-unicode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kannada_ascii_unicode-0.1.1.tar.gz -
Subject digest:
586dd59befb3968018c0f3b12c365d255dc4c94aefb0f24ddba05f6051cc1f05 - Sigstore transparency entry: 928208438
- Sigstore integration time:
-
Permalink:
kagapa-blr/py-kannada-ascii-unicode@56d0a4d78e02ecc89f0ce36583a06bbde47fc204 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kagapa-blr
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@56d0a4d78e02ecc89f0ce36583a06bbde47fc204 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kannada_ascii_unicode-0.1.1-py3-none-any.whl.
File metadata
- Download URL: kannada_ascii_unicode-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7a5cceb388c779b52ba6bdee0881393bfabb8ffc6f63e422c3d9afb66c92c51
|
|
| MD5 |
732fc8459c1a46f1c7765c31369bf0f4
|
|
| BLAKE2b-256 |
d99befa2c32805f1d922595a618c18f7421886fa4f4805a173edb91e22a98255
|
Provenance
The following attestation bundles were made for kannada_ascii_unicode-0.1.1-py3-none-any.whl:
Publisher:
python-publish.yml on kagapa-blr/py-kannada-ascii-unicode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kannada_ascii_unicode-0.1.1-py3-none-any.whl -
Subject digest:
f7a5cceb388c779b52ba6bdee0881393bfabb8ffc6f63e422c3d9afb66c92c51 - Sigstore transparency entry: 928208439
- Sigstore integration time:
-
Permalink:
kagapa-blr/py-kannada-ascii-unicode@56d0a4d78e02ecc89f0ce36583a06bbde47fc204 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kagapa-blr
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@56d0a4d78e02ecc89f0ce36583a06bbde47fc204 -
Trigger Event:
push
-
Statement type: