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.py bold foobar
unicoder.py ital foobar
unicoder.py boldital foobar
unicoder.py double foobar
unicoder.py mono foobar
unicoder.py sans foobar
unicoder.py greek foobar
unicoder.py greek FOOBAR
unicoder.py fraktur foobar
unicoder.py boldfraktur foobar
unicoder.py fract 15 1/4
unicoder.py 15 1/4 km/h
unicoder.py value 15 1/4 km/h
unicoder.py thin 15 1/4 km/h
unicoder.py nobr 15 1/4 km/h
unicoder.py power 15^3
unicoder.py index x_1
unicoder.py math X_1^3 +1/4
unicoder.py back answer
unicoder.py down answer
unicoder.py 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.
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โ
ฮโยณโ+ยผ
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
File details
Details for the file text_unicoder-1.2.3152.tar.gz
.
File metadata
- Download URL: text_unicoder-1.2.3152.tar.gz
- Upload date:
- Size: 24.5 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 | ba1bc1f6b45aef4ea2f5e65ab4bf45e0a09e66cb9f280c4f3c52aafb7f010a12 |
|
MD5 | 9ee52701a27130ac568076790f20f4d5 |
|
BLAKE2b-256 | 1ae0acd3e3015e7a094d4eeb9b33304c9dae3938c2125dcb883c4e25a0482f75 |