bbeck / puzzles-with-chat

Web frontend and Twitch bot for solving puzzles collaboratively with chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disambiguate between shaded cells and cells with circles

bbeck opened this issue · comments

Now that crosswords are rendered with SVG it should be possible to draw a circle in cells instead of just shading them in. There are some crosswords that have both circles and shaded cells (2016-05-09), so disambiguating and supporting both would be beneficial.

The JSON format categories everything in the circles property but also has a shadecircles property to let you know if you should annotate the cells as shaded or circled. It doesn't seem to support both simultaneously.

The XPF format has a Shades element that tells which cells should be shaded and also what color each should be shaded with as well as a Circles element that shows which cells should have circles drawn in them. For a few puzzles that I've seen that have both circles and shaded cells (2016-05-09, 2018-03-29) they seem to always favor the shaded cells and don't include the circles section in the file.

The PUZ format has an extension (GEXT) for circled cells (0x80), but doesn't seem to have a way to indicate that a cell is shaded.