Crosswords
Crossword generator tool
Features
- Generates a crossword puzzle that contains as many given words as possible
- Fills up empty space with words from a dictionary
Prerequisites
- Clean
- LaTeX
- The crossword LaTeX package for
cwpuzzle.dtx
- A dictionary for your language (one word per line, for Dutch you can have a look at OpenTaal)
Installation
$ clm -I $CLEAN_HOME/lib/ArgEnv -I $CLEAN_HOME/lib/MersenneTwister -b -h 100M Crosswords -o cwgen
Usage example
Words are read from stdin, ended with an empty line or EOF
, and of course
from the dictionary installed. The example above was created with the words
newspaper
, crossword
, english
and puzzling
.
$ ./cwgen [dictionary.txt] < words.txt > cw-gen.tex
$ pdflatex cw.tex
Remove \PuzzleSolution[true]
from cw.tex
to not show the solution in the
result.
Author & License
Copyright © 2016 Camil Staps. Licensed under MIT, See the
LICENSE
file for details.
Acknowledgements
dict/wordsEn.txt
: compiled from SIL International (only words with 3-10 characters were kept)