riverrun / genxword

Crossword generator written in Python.
GNU General Public License v3.0
162 stars 40 forks source link

Export grid along with clue list to a pdf #1

Closed firecat53 closed 12 years ago

firecat53 commented 12 years ago

It would be really cool if you could add a feature to combine the grid and the clues (without the word bank) and export them to a PDF!

Thanks! Scott

riverrun commented 12 years ago

Thanks for the feedback. It's interesting to see how other people use, or would like to use, the software. I'll look into exporting to a PDF and see if I can come up with something that looks OK. Dave

firecat53 commented 12 years ago

Happy to test for you! We occasionally use crosswords at work (fire dept) to review our streets and address knowledge, so having an easy way to generate and distribute (thus my request) a crossword based on a file of clues and answers would be perfect!

riverrun commented 12 years ago

I've added very basic pdf export to the develop branch. There's no second page or menu item yet, but they should be ready in a couple of days' time. Just run the program as normal and two pdfs (one empty grid and one key) will be saved in your working directory. As a matter of interest, how many words do you normally use in a crossword?

riverrun commented 12 years ago

Now added second page support. For a crossword with 20 words or less, everything should fit on one page. For bigger crosswords, a second page will be created.

riverrun commented 12 years ago

A few more changes: the inputfile option is now required (so instead of typing 'genxword -i filename', just type 'genxword filename'). There is a multi-option menu, and you can save the pdfs in US letter size as well (A4 is the default). For crosswords less than 80 words big, the pdfs seem OK, but I haven't tried printing them out yet. Please let me know if it looks OK when it's printed. Dave

firecat53 commented 12 years ago

Perfect!! Prints beautifully...I just tested it on your sample file (31 words, I believe). I don't think the crosswords we've used have been much bigger than that, anyways. Works for me! The only change I might suggest is adding in the menu options as command line switches (like --type pdf --size letter, or --type svg) which would bypass the menu if given. I'm thinking automation...drop the text file in a directory and have it automatically processed with a cronjob, which would also email (separately...that shouldn't be part of your script!) the result to me at work :)

Scott

riverrun commented 12 years ago

Great! I've just merged the changes into the master branch, and I'll look into the idea of having an automation option. Dave