Skip to main content

Unicode to ASCII transliteration

Project description

AnyAscii build

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.0.tar.gz (210.0 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.3.0-py3-none-any.whl (284.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for anyascii-0.3.0.tar.gz
Algorithm Hash digest
SHA256 24f27431fb64c6c93a33125fb66f8cba007a5262bc1faabeafeda5f4bb70b593
MD5 47bfb123d466377e6f36a71ef33ec13c
BLAKE2b-256 cea7d5897cc5bcc3dd8c1a64acb84ef886169d009961ee5f2928092d5be36b63

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for anyascii-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68f6917fe5b22caf7dde8551b838e5e17d5e3c96c55734485699bd03ad92237f
MD5 70cb9d8a62e0b1ca8383c92e94883323
BLAKE2b-256 6d7b19437c9a5bd16e1bb3a5bf43f7655e341882befceae0122e43c8e2c21e1e

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