I just made a new Python module and CLI tool called fancify-text for transforming text into fancy unicode representations:
$ fancify-bold "hello world"
π΅π²πΉπΉπΌ ππΌπΏπΉπ±
$ fancify-bolditalics "hello world"
πππ‘π‘π€ π¬π€π§π‘π
$ fancify-upsidedown "hello world"
plΙΉoΚ ollΗΙ₯
Iβm hoping to use it in an automatic tool for turning blog posts into twitter threads that Iβm working on.
I stole the code
I canβt say I wrote it - I basically stole it from @Secret-chest, and repackaged their code. They did all the hard work of finding the appropriate unicode characters was done by them.
I donβt know if they mind. Thereβs no license on the code so Iβm treating it as public domain, but I contacted them to ask if they want control of the module. Theyβre welcome to it if they want.
I just made it into a class, wrote a lot of boilerplate code around it for different function names and CLI entrypoints. And now you can use it.
Try it out
On the command-line:
$ pip3 install fancify-text
$ fancify-script "hello world"
π½ππππ
ππ
πππΉ
Or in Python:
In [1]: from fancify_text import blue
In [2]: print(blue("hello world"))
π πͺ π± π± π΄ πΌ π΄ π· π± π©