mrichards42 / xword

Cross-platform crossword solving
https://mrichards42.github.io/xword/
GNU General Public License v3.0
42 stars 13 forks source link

Barred iPuz files not rendering properly #174

Closed boisvert42 closed 2 years ago

boisvert42 commented 2 years ago

Some barred iPuz files (e.g https://crosswordnexus.com/downloads/barred_test.ipuz) do not render properly in XWord. It should display as here: https://crosswordnexus.com/solve/index.html?file=/downloads/barred_test.ipuz but in XWord the bars are not respected. XWord needs to know where the words start and end for barred crosswords, as that logic is needed to properly render this puzzle and others like it.

mrichards42 commented 2 years ago

Ah, so the bars display, but the navigation is messed up because XWord can't figure out that the word is supposed to end at the bar? IIRC we've only actually tested bars in jpz files that have hard-coded "words", so it sounds like we need to have the auto-generated words algorithm handle bars in addition to black squares.

boisvert42 commented 2 years ago

Yes, that's what I ended up doing and it worked fine.