unicode text generator to make flip turned bold italic greek fraktur cursive script from ascii input
Project description
This script allows to convert ascii to unicode specials including bold italic greek fraktur script.
Examples:
unicoder bold foobar
unicoder ital foobar
unicoder boldital foobar
unicoder double foobar
unicoder mono foobar
unicoder sans foobar
unicoder greek foobar
unicoder greek FOOBAR
unicoder fraktur foobar
unicoder boldfraktur foobar
unicoder fract 15 1/4
unicoder 15 1/4 km/h
unicoder value 15 1/4 km/h
unicoder thin 15 1/4 km/h
unicoder nobr 15 1/4 km/h
unicoder power 15^3
unicoder index x_1
unicoder math X_1^3 +1/4
unicoder back answer
unicoder down answer
unicoder flip answer
This script helps to bold or slanted text to various social media platforms. The nobr thin fract parts are particularly useful for Wikipedia. The flip text (or turn text) allows to provide a pun on a question.
There are also shorthand scripts: uubold / uuital / uumath / uuflip
RESULT
Just for amusement, this is the result when running the commands shown above. Note that the bold and italic text snippets do not rely on <i> <b> <font> hints or some similar style markup, instead they use different codepoints from the Mathematical Alphanumeric Symbols unicode blocks. Likewise fraktur and greek and double stroke characters are used often in the field of mathematics. The sans and mono are rarely used however.
๐๐จ๐จ๐๐๐ซ
๐๐๐๐๐๐
๐๐๐๐๐๐
๐๐ ๐ ๐๐๐ฃ
๐๐๐๐๐๐
foobar
ฯฯฮฒฮฑฯ
ฮฆฮฉฮฮฮก
๐ฃ๐ฌ๐ฌ๐๐๐ฏ
๐๐๐๐๐๐
15ยผ
15ยผโฏkm/h
15ยผโฏkm/h
15โฏ1/4โฏkm/h
15โ1/4โkm/h
15ยณ
xโ
Xโยณโ+ยผ
rewsna
ษusสวษน
ษนวสsuษ
TESTSUITE
Yes, there is a testsuite with more than a hundred unittests for the functions. The module can also be imported as helper to other scripts.
For developers, please run "make tests" for the testsuite. Please do also run "make type" for mypy typehints checks and "make pep" for pep8 style checks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file text_unicoder-1.3.3501.tar.gz.
File metadata
- Download URL: text_unicoder-1.3.3501.tar.gz
- Upload date:
- Size: 32.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf0b7a33628559c65ce970f4019c225c2e3b5e7993e728389b08b419831e1a39
|
|
| MD5 |
4f932812a5b71359705c018d933127af
|
|
| BLAKE2b-256 |
eac527c7dd4f9ab476d18f4c87fe2d573348a1b057745370191e939320523c4c
|
File details
Details for the file text_unicoder-1.3.3501-py2.py3-none-any.whl.
File metadata
- Download URL: text_unicoder-1.3.3501-py2.py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bdf422265aef841861c91fe5cd894695cec864f8358d159af225128b2037c2a
|
|
| MD5 |
3ea4624db82465747faeed4d58f3713e
|
|
| BLAKE2b-256 |
c85e77382f2c8954c2bfecf3c49fbd7112ca42bcf02e62d9ac0771de508dc0d7
|