jpd236 / CrosswordScraper

Browser extension which downloads crosswords from crossword applets for offline solving.
Apache License 2.0
28 stars 1 forks source link

Across Lite can't handle long clues #25

Closed jpd236 closed 1 year ago

jpd236 commented 1 year ago

From some empirical testing, it looks like Across Lite crashes if any clue is longer than 505 characters, though other apps naturally work fine.

For better compatibility, we could truncate + ellipsize clues that are longer than this, and flag this in the unsupported features warning, when exporting to .puz. It may also make sense to have an option to turn this off, since not all apps have this problem; that said, I imagine if you're using an app other than Across Lite, I'd hope that it supports .jpz anyway, and the number of puzzles impacted by this should be relatively small (but non-zero).

Example, for testing: https://craftycrosswords.blogspot.com/2022/12/radicalized-by-apush.html (ref: 23-Across)

jpd236 commented 1 year ago

Fixed in https://github.com/jpd236/kotwords/commit/6f22ced28d2dddef6723c0a485c8cb4b563e417f