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
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 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffecc31b77943ab3f9868ba178efcbfeede6a91ebf4d368b15c74c8ed7572755 |
|
MD5 | a820f3fd465e6aea4f5903e6126b4402 |
|
BLAKE2b-256 | 4ab12242c6a4192523e3768b818897ace816d13651ed228b5a8d99ef6c8a4832 |