Unfancy text
This program converts "fancy text", that is, text written with an alternative set of Latin characters, such as mathematical alphabet to plain Latin characters.
Usage
Use as commandline interface:
$ python unfancy.py
Press Ctrl+C or Ctrl+D to exit
𝐓𝐡𝐞 𝐪𝐮𝐢𝐜𝐤 𝐛𝐫𝐨𝐰𝐧 𝐟𝐨𝐱 𝐣𝐮𝐦𝐩𝐬 𝐨𝐯𝐞𝐫 𝐭𝐡𝐞 𝐥𝐚𝐳𝐲 𝐝𝐨𝐠
Fancy type: mathematical bold
The quick brown fox jumps over the lazy dog
Use as a library
from unfancy import create_multi_alphabet_map, translate_text
alphabet_map = create_multi_alphabet_map()
# alphabet_map parameter is optional,
# but it is recommended to create it separately to avoid repetition
fancy_text = "𝐓𝐡𝐞 𝐪𝐮𝐢𝐜𝐤 𝐛𝐫𝐨𝐰𝐧 𝐟𝐨𝐱 𝐣𝐮𝐦𝐩𝐬 𝐨𝐯𝐞𝐫 𝐭𝐡𝐞 𝐥𝐚𝐳𝐲 𝐝𝐨𝐠"
unfancy_text, label = translate_text(fancy_text, alphabet_map)
To do
- Support Greek mathematical alphabets
- Allow select specific character sets to make translation
- Package the thing
Metadata
Release files for unfancy 1.0
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 | |
|---|---|---|---|---|
| unfancy-1.0.tar.gz | 11.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unfancy-1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 15.7 kB
Release files / unfancy-1.0.tar.gz
| Download URL | unfancy-1.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
934c1f3396aa97d4d122a134c520df64b0957158d0b1d6a9be74bd550e3778f3
|
|
BLAKE2b-256 checksum How to use checksums |
e10955ca85e7dd01b015e94f82ff6bff2304060cf1d5cc43f5724dc95d604b49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|
Release files / unfancy-1.0-py2.py3-none-any.whl
| Download URL | unfancy-1.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
96621ff34d363d7755089553ae933488df2fb64fba980003985ce3efa39d9e50
|
|
BLAKE2b-256 checksum How to use checksums |
f689a390544f17467bae5c754c931d9eadf42c90cf117d2201e1bfb6a12e5f86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|
Security for unfancy 1.0
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.