Skip to main content

Unicode to ASCII transliteration

Project description

AnyAscii

Unicode to ASCII transliteration

Web Demo

Converts Unicode characters to their best ASCII representation

AnyAscii provides ASCII-only replacement strings for practically all Unicode characters. Text is converted character-by-character without considering the context. The mappings for each script are based on popular existing romanization systems. 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 and some known characters are replaced with an empty string and 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.3.3.tar.gz (264.7 kB view details)

Uploaded Source

Built Distribution

anyascii-0.3.3-py3-none-any.whl (345.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for anyascii-0.3.3.tar.gz
Algorithm Hash digest
SHA256 c94e9dd9d47b3d9494eca305fef9447d00b4bf1a32aff85aa746fa3ec7fb95c3
MD5 bffeffc7c24b534a38cbbe5a286eb11d
BLAKE2b-256 dbbaedebda727008390936da4a9bf677c19cd63b32d51e864656d2cbd1028e25

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for anyascii-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f5ab5e53c8781a36b5a40e1296a0eeda2f48c649ef10c3921c1381b1d00dee7a
MD5 7f7d8578f93bf85e266e0ebeb4576392
BLAKE2b-256 c276783b75a21ce3563b8709050de030ae253853b147bd52e141edc1025aa268

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page