Skip to content

Instantly share code, notes, and snippets.

@codingisacopingstrategy
Created May 27, 2010 00:27
Show Gist options
  • Save codingisacopingstrategy/415259 to your computer and use it in GitHub Desktop.
Save codingisacopingstrategy/415259 to your computer and use it in GitHub Desktop.
# OSP workshop please make me design 2010-05-26
#
# presupposes installation of enscript (sudo apt-get install enscript)
# and podofo (built from source)
# actually, superimpose.plan was also edited
# I will make a line for that. And make annotation.
#
git clone http://github.com/aleray/PleaseMakeMeDesign.git
cd PleaseMakeMeDesign
mkdir wip
cd wip
cat ../texts/awkward_gestures.mkd | tr n | tr -d [:punct:] | tr [:upper:] [:lower:] | sort | uniq > word_list_1.txt
cat ../texts/design\ tools\ for\ designers.mkd | tr " " "\n" | tr -d [:punct:] | tr [:upper:] [:lower:] | sort | uniq > word_list_2.txt
comm word_list_1.txt word_list_2.txt | grep -A 15 'edit' | enscript -f Helvetica@40 -B -p myfiles.ps
comm word_list_1.txt word_list_2.txt | grep -A 15 'edit' | enscript -B -p myfiles2.ps
ps2pdf myfiles.ps myfiles.pdf; ps2pdf myfiles2.ps myfiles2.pdf
echo -e "myfiles.pdf\nmyfiles2.pdf" > pdfs.txt
podofoimpose pdfs.txt outputpdf.pdf ../scripts/superimpose.plan lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment