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.2.tar.gz (214.1 kB view details)

Uploaded Source

Built Distribution

anyascii-0.3.2-py3-none-any.whl (289.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for anyascii-0.3.2.tar.gz
Algorithm Hash digest
SHA256 9d5d32ef844fe225b8bc7cba7f950534fae4da27a9bf3a6bea2cb0ea46ce4730
MD5 1e0d64856b5ccd4f2955341080e52ac1
BLAKE2b-256 9f5293b9ea99063f7cf37fb67f5e3f49480686cbe7f228c48b9d713326223b6e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for anyascii-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b3beef6fc43d9036d3b0529050b0c48bfad8bc960e9e562d7223cfb94fe45d4
MD5 306ab7723dfc6042288373998c600fa8
BLAKE2b-256 4f7ba9a747e0632271d855da379532b05a62c58e979813814a57fa3b3afeb3a4

See more details on using hashes here.

Supported by

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