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 details)

Uploaded Source

File details

Details for the file unicode_text_styler-1.0.0.tar.gz.

File metadata

  • Download URL: unicode_text_styler-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for unicode_text_styler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ffecc31b77943ab3f9868ba178efcbfeede6a91ebf4d368b15c74c8ed7572755
MD5 a820f3fd465e6aea4f5903e6126b4402
BLAKE2b-256 4ab12242c6a4192523e3768b818897ace816d13651ed228b5a8d99ef6c8a4832

See more details on using hashes here.

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