Closed ilfirin-ms closed 1 year ago
This duplicates the functionality of print_ascii
minus the padding.
>>> qr = QRCode()
>>> qr.print_ascii()
█▀▀▀▀▀█ ▀▀▄█ █▀▀▀▀▀█
█ ███ █ █▀▀ ▀ █ ███ █
█ ▀▀▀ █ ██▄▄▀ █ ▀▀▀ █
▀▀▀▀▀▀▀ █▄▀ ▀ ▀▀▀▀▀▀▀
▀ ▀█▀█▀▄ ▀██▄▄█▀▀█▀▄
▄▄▄ ▀██▀▄▄█▄█▀ ▄ ▄
▀ ▀ ▀▀▀ █▄█ █ █ █
█▀▀▀▀▀█ ▄██▀ ▀ ▄█▀█▀█
█ ███ █ █▀██▄█▄ ▀█▀▀▀
█ ▀▀▀ █ ▀ ▄█▄█▀ ▄
▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀
>>> print(qr.make_unicode())
█▀▀▀▀▀█ ▀▀▄█ █▀▀▀▀▀█
█ ███ █ █▀▀ ▀ █ ███ █
█ ▀▀▀ █ ██▄▄▀ █ ▀▀▀ █
▀▀▀▀▀▀▀ █▄▀ ▀ ▀▀▀▀▀▀▀
▀ ▀█▀█▀▄ ▀██▄▄█▀▀█▀▄
▄▄▄ ▀██▀▄▄█▄█▀ ▄ ▄
▀ ▀ ▀▀▀ █▄█ █ █ █
█▀▀▀▀▀█ ▄██▀ ▀ ▄█▀█▀█
█ ███ █ █▀██▄█▄ ▀█▀▀▀
█ ▀▀▀ █ ▀ ▄█▄█▀ ▄
▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀
Code duplication should be avoided. Other than that, having this function could be nice IMHO, but I'm not the maintainer.
Possibility to output text string, which could be included in text documents or spreadsheets. Border handling removed, it is on document design to make sufficient border.