downforacross / downforacross.com

Web frontend for downforacross.com -- continuation of stevenhao/crosswordsio
https://downforacrosscom.downforacross1.now.sh
MIT License
229 stars 90 forks source link

Special Characters / American Non-Comforming Syntax Broken #159

Open auntiviris opened 3 years ago

auntiviris commented 3 years ago

Created a puzzle of my own using Crossword Hobbyist. Imported it into DFAC and discovered special characters don't translate well. Example 1

stevenhao commented 3 years ago

yeah, this is a kind of tricky issue. I'm using the puz file format (see https://code.google.com/archive/p/puz/wikis/FileFormat.wiki), which encodes strings (incl. clues) as latin alphabet characters (https://en.wikipedia.org/wiki/ISO/IEC_8859-1).

Do you happen to know how crossword hobbyist encodes non-latin alphabet characters? If you have an example .puz file to share, that would be helpful!

stevenhao commented 3 years ago

String decoding logic here: https://github.com/downforacross/puzjs/blob/master/src/puz.js#L402 -- I believe it's feasible to adapt this to extend to, e.g., unicode. But I'd have to do more research as I'm not an expert in text encodings.