Project

pangrid

0.0
A long-lived project that still receives updates
A crossword file format converter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 3.0
 Project Readme
A tool to convert between crossword file formats.

Examples:

# Run from the command line
$ pangrid -f across-lite-binary -t text -i sample.puz -o sample.txt

# Add clues from a text file, e.g. to a grid from qxw, which has no clues
$ pangrid -f qxw -t across-lite-binary -i grid.qxw -c clues.txt -o puzzle.puz

# List available plugins, and which features (such as bars) each supports
$ pangrid -l


Options:
    -f, --from=FORMAT                Format to convert from
    -t, --to=FORMAT                  Format to convert to
    -i, --in=FILE                    Input file
    -o, --out=FILE                   Output file
    -c, --clues=FILE                 Add clues from a text file (see below)
    -l, --list                       List available format plugins
    -v, --version                    Print version and exit
    -h, --help                       Show this message


Clues file format (-c):

  Across

  7 Wonderful view of canal, including outer banks (8)
  9 Bleed badly after hack's first cut with saw (6)

  Down

  1 Power to limit a settlement (8)

Every clue starts with its number, which is used to match it to the grid, so
the clues can be in any order. Numbers may be decorated ("7.", "**7.**",
"7)"). Blank lines and lines starting with # are ignored. The clue numbers
must match the grid exactly; missing or extra clues are reported as an error.
The clues replace any that were already in the input file.


Features:

Not every format can represent everything a crossword can contain, such as
bars, circled or coloured squares, or clue explanations and hints. If the
input uses a feature the output format does not support, pangrid prints a
warning and converts the rest of the crossword. Run pangrid -l to see which
plugins support which features.