Skip to main content

Unicode to ASCII transliteration

Project description

AnyAscii build pypi

Unicode to ASCII transliteration

Web Demo

Converts Unicode text to a reasonable representation using only ASCII.

For most characters in Unicode, AnyAscii provides an ASCII-only replacement string. Text is converted character-by-character without considering the context. The mappings for each script are based on popular existing romanization schemes. Symbolic characters are converted based on their meaning or appearance. All ASCII characters in the input are left unchanged, every other character is replaced with printable ASCII characters. Unknown characters are removed.

from anyascii import anyascii

s = anyascii('άνθρωποι')
assert s == 'anthropoi'

Python 3.3+ compatible

pip install anyascii

FULL README

Project details


Download files

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

Files for anyascii, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size anyascii-0.1.7-py3-none-any.whl (260.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size anyascii-0.1.7.tar.gz (194.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page