38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
Metadata-Version: 2.1
|
|
Name: anyascii
|
|
Version: 0.3.2
|
|
Summary: Unicode to ASCII transliteration
|
|
Keywords: unicode,ascii,transliteration,utf8,romanization,slug,emoji,unidecode,normalization
|
|
Author-email: Hunter WB <hunter@hunterwb.com>
|
|
Requires-Python: >=3.3
|
|
Description-Content-Type: text/markdown
|
|
Classifier: License :: OSI Approved :: ISC License (ISCL)
|
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
Classifier: Topic :: Text Processing :: General
|
|
Classifier: Topic :: Text Processing :: Linguistic
|
|
Project-URL: homepage, https://github.com/anyascii/anyascii
|
|
|
|
# AnyAscii
|
|
|
|
Unicode to ASCII transliteration
|
|
|
|
[**Web Demo**](https://anyascii.com)
|
|
|
|
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.
|
|
|
|
```python
|
|
from anyascii import anyascii
|
|
|
|
s = anyascii('άνθρωποι')
|
|
assert s == 'anthropoi'
|
|
```
|
|
|
|
Python 3.3+ compatible
|
|
|
|
`pip install anyascii`
|
|
|
|
[**FULL README**](https://github.com/anyascii/anyascii)
|
|
|