Skip to main content

Unicode to ASCII transliteration

Project description

AnyAscii build

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.

Source Distribution

anyascii-0.2.0.tar.gz (212.1 kB view details)

Uploaded Source

Built Distribution

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

anyascii-0.2.0-py3-none-any.whl (283.8 kB view details)

Uploaded Python 3

File details

Details for the file anyascii-0.2.0.tar.gz.

File metadata

  • Download URL: anyascii-0.2.0.tar.gz
  • Upload date:
  • Size: 212.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.24.0

File hashes

Hashes for anyascii-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7036c5fdefa40fe9d73a6552ac4f2821916a2a29c1368925f0b7846e536bd2ac
MD5 a8cb0459bf980ca59d9757fd3f860818
BLAKE2b-256 c02e958eae3a67a21ab29cc11dc76e08f74c117d2e11362ca215c0c41b9e0ed3

See more details on using hashes here.

File details

Details for the file anyascii-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: anyascii-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 283.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.24.0

File hashes

Hashes for anyascii-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18a77d22da66f2b5e6951f7f365b543656f16c5d7c68f7c70055f030767df403
MD5 4df9aaad13379b0bda974efb76bef15a
BLAKE2b-256 a314666cd44bf53f36a961544af592cb5c5c800013f9c51a4745af8d7c17362a

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