alexdej / puzpy

Python library for reading and writing across lite crossword puzzle .puz files.
MIT License
112 stars 32 forks source link

Add support for reading the .txt format useful for authoring crosswords. #15

Open viresh-ratnakar opened 6 years ago

viresh-ratnakar commented 6 years ago

The .txt format (http://www.litsoft.com/across/docs/AcrossTextFormat.pdf) offers a convenient way to author a crossword puzzle using any text editor. With this commit, we can author a .txt file and convert it to the .puz format easily, like this: import puz p = puz.read('puzzle.txt') p.save('puzzle.puz')

louispotok commented 4 years ago

@viresh-ratnakar thank you for implementing this! @alexdej any objectio n to merging it?

If anyone else is interested, it looks like there is also a new "Across Puzzle V2" format. I used this commit on a file in that format, and it worked after the following changes: