Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

text_unicoder-1.3.3495.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

text_unicoder-1.3.3495-py2.py3-none-any.whl (35.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file text_unicoder-1.3.3495.tar.gz.

File metadata

  • Download URL: text_unicoder-1.3.3495.tar.gz
  • Upload date:
  • Size: 30.9 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

Hashes for text_unicoder-1.3.3495.tar.gz
Algorithm Hash digest
SHA256 ec76930df5c2e2a3c7bd7aab13d473ec5f3175601c781cff8f956e0718d4a802
MD5 1b83d0bfc8e93a8e8d4cc0e04e31b4d4
BLAKE2b-256 77f3283a162d2115ec52c3fc51e0819475557af0435789f0a0869aa2cde46ab0

See more details on using hashes here.

File details

Details for the file text_unicoder-1.3.3495-py2.py3-none-any.whl.

File metadata

  • Download URL: text_unicoder-1.3.3495-py2.py3-none-any.whl
  • Upload date:
  • Size: 35.4 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

Hashes for text_unicoder-1.3.3495-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1cc148bc68c70f07cfaeb65460b5f4ddcedcbd7ef9b3c06fe32bac3d5f7b680c
MD5 46a183eb5a031fe7f4ad280014217ede
BLAKE2b-256 7a722db9171efef0bd6d1f743388c86108e7f2e5393482422cd43b1d0ea34eff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page