Use deasciiify to translate ASCII text into readable non-ASCII text. It was created for the purpose of test data generation to detect unicode bugs and to use as a fake language on a webpage to simulate how foreign languages can break webpage layouts and whatnot. The output is deterministic to make automated testing easier.
Installation
$ pip install deasciiify
Usage
>>> from deasciiify import deasciiify
>>> print(deasciiify('The quick brown fox jumps over the lazy dog.'))
Ṱḥẹ ʠǚîĉʞ ɓṙōẇṇ ᶂø× ǰúṁᶈș óʋᶒṝ ᵵĥĕ ȴạᵶý ḍọḡ.
>>> # elongate by 50%
>>> print(deasciiify('The quick brown fox jumps over the lazy dog.',
... elongate=0.5))
𝕋ȟẹ ʠůḭċḱ ᵬṙồẁñ ḟḟᶂᵮợẋᶍ ǰưḿṁᵱṣᵴṣ ǫṽếṛᵳ ṭħȇ ɫäǎąẩžɀẓẑẕᶎᶎẓẓỹÿŷӮ ḋöᵷ.
>>> # elongate by 100 characters
>>> print(deasciiify('The quick brown fox jumps over the lazy dog.',
... elongate=100))
Ʈɦẻ ʠűȋḉƙḱᶄḵḳķʞǩƙḱᶄḵḳ ƀᶉŏẁἦ ƒḟḟᶂḟƒởᶍ×ẍẋᶍ ĵứȗửǔǚṷȕǜûủũṳṹữụṻưṃɱḿṁḿɱḿṁᶈşᵴșŝș
ȫṽḙɽᵳɾŕŕŗȓṙɼᵳȑᵳɽȓȑᶉᵳᶉ ƭẖė ℓἂậẳẩầạẳἇầǡᶏạᶏƶžźƶȥᶎẑᵶżȥᶎẑᶎγƴẏӲӰýỳŷẏγẏỳ ᶑốǥ.
>>> # preserve HTML, entities, and gettext params
>>> print(deasciiify(
... 'The <em>quick</em> <strong style="color:brown;">brown</strong> '
... 'fox %(verb)s over the “lazy” %s.'))
Ṯȟè <em>ʠúᶖćḵ</em> <strong style="color:brown;">ḃᵲóẅἢ</strong> ḟọẍ %(verb)s
ȏʋềŕ ṱȟḝ “ḽӓżӮ” %s.
Metadata
Release files for deasciiify 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deasciiify-0.0.2.tar.gz | 6.8 kB | Without provenance | Details for deasciiify-0.0.2.tar.gz |
Release files / deasciiify-0.0.2.tar.gz
| Download URL | deasciiify-0.0.2.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aabd37eb9e4537b7ecf7ba143d3251992a0cf9d890381c811656d484462315a5
|
|
BLAKE2b-256 checksum How to use checksums |
6fd9818b5ab48b90baa81883257055fd929e3768103b0522745b99c3b3e271dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Security for deasciiify 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.