Skip to main content

Unicode to ASCII transliteration

Project description

AnyAscii build pypi

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.1.7.tar.gz (194.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.1.7-py3-none-any.whl (260.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for anyascii-0.1.7.tar.gz
Algorithm Hash digest
SHA256 d0eb076933a9eaf1138cb365a5e2e35360ffbbf3200bf33419aaa17d5f8599f5
MD5 a74799b7b0b3575e7c35b363ffea989a
BLAKE2b-256 ccbe31492eeb326e41527f8a1c5fdf80fb9502f431ab7fc50c9788a5f07ca2be

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for anyascii-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f100a4f716867bcf0a3b05d8a183dd122fc1d55304a10127bee256e602452d61
MD5 b00e955c2d80ae18cbaa50ff21a0be3c
BLAKE2b-256 09c761370d9e3c349478e89a5554c1e5d9658e1e3116cc4f2528f568909ebdf1

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