Open auntiviris opened 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!
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.
Created a puzzle of my own using Crossword Hobbyist. Imported it into DFAC and discovered special characters don't translate well. Example 1