fancy name, QL-570 text formater
inkscape | ||
.gitignore | ||
README.md | ||
text_to_image.sh | ||
thermatext.py |
thermatext
fancy name, QL-570 text formater
TODO
- use as printer
- works, but cant detect the length of text, will output a set (page?) length
- fix missing font defentions
- fail to take into account letter width
- telegram bot (!)
CLI
sudo brother_ql -b pyusb --model QL-570 -p usb://0x04f9:0x2028/000M12345678 print -l 62 logo.png
python
python tries to detect letter width and maximise it to fit the label printer constraints (62mm width)
python thermatext.py "label to print"
inkscape
inskcape user extension path
/home/${USER}/.config/inkscape/extensions
symbolic link the dir fro here to the inkscape extension
ln -s /home/${USER}/yair/thermatext/inkscape /home/${USER}/.config/inkscape/extensions/thermatext
then check
find ~/.config/inkscape/ -type l
takes from the inkscape-silhouette extension, as in, how to install.
$ git clone https://github.com/fablabnbg/inkscape-silhouette
Cloning into 'inkscape-silhouette'...
remote: Enumerating objects: 2764, done.
remote: Counting objects: 100% (795/795), done.
remote: Compressing objects: 100% (364/364), done.
remote: Total 2764 (delta 483), reused 657 (delta 416), pack-reused 1969
Receiving objects: 100% (2764/2764), 8.53 MiB | 3.64 MiB/s, done.
Resolving deltas: 100% (1786/1786), done.
$ cd inkscape-silhouette/
$ make install-local
mkdir -p locale
mkdir -p /home/devdesk/.config/inkscape/extensions
cp -r silhouette /home/devdesk/.config/inkscape/extensions
install -m 755 *silhouette*.py /home/devdesk/.config/inkscape/extensions
install -m 644 *.inx /home/devdesk/.config/inkscape/extensions
cp -r locale /home/devdesk/.config/inkscape/extensions
mkdir -p /home/devdesk/.config/inkscape/templates
install -m 644 templates/*.svg /home/devdesk/.config/inkscape/templates