Skip to content

pgdr/textrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textrain

Get png images for words

The textrain module can be run as follows

textrain word1 word2 ... wordn

which generates one png file for each word.

Install

First, ensure that you have the required tools

  • pdftotext
  • pdflatex
  • pdftoppm
  • pdfcrop

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

Example

Running

textrain kristian flikka lol

generates three images:

  • kristian-1.png
  • flikka-1.png
  • lol-1.png

kristian-1 flikka-1 lol-1

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 ...

About

Generate LaTex document and get pngs for each word

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors