A Cards Against Humanity fan made expansion and card generator.
Cards can be generated in either 2in by 3in cards at 12 cards per 8.5x11in sheet or 2x2in cards with 20 cards per sheet.
- xsltproc (xslt processor)
- Apache FOP (for XSL-FO processing)
- bourne compatible shell script (bash, dash, zsh)
- make
- ghostscript to optimize PDF files
Note
xsltproc is used instead of fop's builtin xslt processor because I couldn't get xinclude to work with fop.
- Download or clone the repository
- cd into that directory
- Run make to create 2x3 cards in cards-2x3.pdf or make 2x2 to output 2x2 in cards to cards-2x2.pdf
You can run cards.sh manually instead of through make to change the output pdf and input cards xml file and which transformation (2x2 or 2x3) to use.
To add new cards create a new cards-name of set.xml, optionally add that file name to cards.xml in an xinclude (similar to the others in that file. run cards.sh or make to produce a new PDF.
vanilla.sh contains code to extract the text from the CardsAgainstHumanity.pdf with OCR. This file segments the cards into seperate bitmaps (1 per file) then runs OCR on each file. This file will remain undocumented except internally unless there is demand.
- Create XML schema to validate cards
- Createa GUI or maybe a web front-end to add new cards