Skip to main content

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

kannada_ascii_unicode-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

kannada_ascii_unicode-0.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for kannada_ascii_unicode-0.1.1.tar.gz
Algorithm Hash digest
SHA256 586dd59befb3968018c0f3b12c365d255dc4c94aefb0f24ddba05f6051cc1f05
MD5 6961259875bbdfbcc7e6cafdb41ac78e
BLAKE2b-256 ba4d865f4c2e3e35cdfd2cbf8541f53f09a36d34bc3eaf6fbce79453dfa2e7db

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kannada_ascii_unicode-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kannada_ascii_unicode-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7a5cceb388c779b52ba6bdee0881393bfabb8ffc6f63e422c3d9afb66c92c51
MD5 732fc8459c1a46f1c7765c31369bf0f4
BLAKE2b-256 d99befa2c32805f1d922595a618c18f7421886fa4f4805a173edb91e22a98255

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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