Twitter Haiku is a set of small scripts that produce a pdf with haikus from Twitter. It pulls 50 recent tweets marked with the hashtag #haiku, discards the ones that don't look like haikus and prettifies the rest. It also discards duplicates (usually retweets). Tweet manipulation is handled by ruby while LuaTeX and ConTeXt take care of the typesetting and pdf generation.
Running the scripts
There are Rake tasks that take care of fetching the twitter feed, normalizing it, building the pdf file and running the tests. Ruby and Rake are required to run the tasks.
The following tasks are available:
rake build # Build the pdf file rake clean # Remove generated pdf and temporary files rake fetch # Fetch a fresh twitter feed rake prepare # Rewrite the twitter feed by normalizing tweets rake test # Run tests
To get a fresh pdf file from scratch:
If ruby and rake are not available it is still possible to generate the pdf file manually:
$ context haiku.tex
Depending on the availability or lack of packages for your platform of choice it may not be the easiest task. Contextgarden might be a good start.