Skip to main content

Convert ASCII alphanumeric text to a random style using Unicode character normalization.

Project description

Text Styler

Convert ASCII alphanumeric text to a random style using Unicode character normalization.

This script uses the Mathematical Alphanumeric Symbols from the Unicode database to find a stylish looking replacement for each input character.

CLI Usage

Usage: python text_styler.py "<text>"

$ python text_styler.py "Hello World"
๐–ง๐–พ๐”ฉ๐–‘๐•  ๐‘Š๐™ค๐’“๐’๐˜ฅ

$ python text_styler.py "Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991"
๐–ฏ๐‘ฆ๐“‰๐™๐—ผ๐—ป ๐š’๐˜ด ๐š๐™ฃ ๐˜ช๐—ป๐’•๐•–๐˜ณ๐™ฅ๐‘Ÿ๐—ฒ๐™ฉ๐™š๐‘‘, ๐’‰๐–Ž๐•˜๐—ต-๐”ฉ๐™š๐’—๐’†๐”ฉ, ๐“ฐ๐”ข๐™ฃ๐•–๐”ฏ๐™–๐˜ญ-๐—‰๐–š๐‘Ÿ๐š™๐‘œ๐’”๐”ข ๐•ก๐ซ๐—ผ๐’ˆ๐“‡๐•’๐–’๐‘š๐”ฆ๐–“๐”ค ๐”ฉ๐˜ข๐–“๐–Œ๐“Š๐’‚๐™œ๐—ฒ. ๐‘ช๐—ฟ๐“ฎ๐”ž๐‘ก๐šŽ๐ ๐•“๐–ž ๐บ๐–š๐ข๐–‰๐”ฌ ๐—๐–บ๐”ซ ๐“ก๐‘œ๐‘ ๐ฌ๐šž๐’Ž ๐’ถ๐˜ฏ๐“ญ ๐’‡๐˜ช๐“‡๐”ฐ๐˜ต ๐•ฃ๐—ฒ๐ฅ๐™š๐™–๐™จ๐™š๐”ก ๐“ฒ๐˜ฏ ๐Ÿ๐Ÿต๐Ÿซ๐Ÿ™

Library Usage

>>> from text_styler import TextStyler

>>> styler = TextStyler()
>>> converted = styler.convert("Hello World!")

>>> print(converted)
๐–ง๐–พ๐”ฉ๐–‘๐•  ๐‘Š๐™ค๐’“๐’๐˜ฅ

Notes

Only supported with Python3.

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

unicode_text_styler-1.0.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Supported by

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