Get png images for words
The textrain module can be run as follows
textrain word1 word2 ... wordnwhich generates one png file for each word.
First, ensure that you have the required tools
pdftotextpdflatexpdftoppmpdfcrop
which on Ubuntu can be obtained by running
sudo apt install texlive-latex-base texlive-extra-utils poppler-utils
Then install textrain with Pip:
pip install git+https://github.com/pgdr/textrain
Running
textrain kristian flikka lolgenerates three images:
kristian-1.pngflikka-1.pnglol-1.png
Generating a pangram:
textrain the quick brown fox jumps over the lazy dog
To generate all the letters in the alphabet, you might have to do a silly hack.
The command textrain a b c d e will unfortunately interpret "abcde" as the
only word, instead of three 1-letter words. This can be circumvented by running
textrain omg a b c d e ...


