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.1.tar.gz (212.7 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.1-py3-none-any.whl (287.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for anyascii-0.3.1.tar.gz
Algorithm Hash digest
SHA256 dedf57728206e286c91eed7c759505a5e45c8cd01367dd40c2f7248bb15c11f6
MD5 ff77f01a1e72992d4cc9121bd26071cc
BLAKE2b-256 fce7b652df00af4f769c1beb753d6dbf80cc8f396d6d579c4a537335b7d9ba80

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for anyascii-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8707d3185017435933360462a65e2c70a4818490745804f38a5ca55e59eb56a0
MD5 bf390fe79118dd2b006e353a6781dca6
BLAKE2b-256 39f67c1e3a2a54f18b67c5bd092c25ac7327083d4b3b15731b98a9c193df2db9

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