| Author |
Message |
|
ArtShapiro
|
Posted: Mon May 02, 2011 7:17 pm |
|
Joined: Wed Nov 05, 2008 2:42 pm Posts: 12 Location: Lake Forest, CA
|
jpdavidson wrote: I've updated the app to save the last selected location - let me know if it doesn't work for you on Windows.. Works like a champ - thanks! That will really enhance the user-friendliness. I guess the only thing that I can say right now, and it's hardly a show-stopper: It opens that location in the "list" view. My folder has several years worth of puzzles, just because...well, just because. So my normal process is to change the look to "details" view, click the "date modified" column to sort by date, and then I'll find the puzzle as probably the top-most entry, or certainly quite close to the top, no matter what its name. So in my ideal world, it would retain that view and sorting. I don't know if that excites you, or if it's even feasible, but that would be the proverbial icing on the cake. Art
|
|
 |
|
 |
|
joecab
|
Posted: Tue May 03, 2011 1:05 pm |
|
Joined: Sat Sep 20, 2008 5:03 pm Posts: 3 Location: Boston MA
|
jpdavidson wrote: For Mac users having trouble with the .jar file, I've also posted a regular Mac App in the original post. Try unzipping and running that instead. That works great. Thanks very much for all your work JP.
|
|
 |
|
 |
|
janie
|
Posted: Thu May 05, 2011 4:16 pm |
|
Joined: Sat Sep 20, 2008 9:59 pm Posts: 325 Location: nyc
|
|
what joe said!
way cool.
;-)
_________________ one of the many here "...bedazzled by language and addicted to [what] cyril connolly called 'unbreakable toys for the mind.'" alastair reid
|
|
 |
|
 |
|
Lanulos
|
Posted: Fri May 13, 2011 10:26 am |
|
|
|
|
 |
|
 |
|
jpdavidson
|
Posted: Fri May 13, 2011 10:31 am |
|
Joined: Wed Apr 27, 2011 4:05 pm Posts: 11
|
|
 |
|
 |
|
joon
|
Posted: Fri May 13, 2011 11:26 am |
|
Joined: Sat Sep 20, 2008 4:49 pm Posts: 273 Location: somerville, ma
|
|
it's a question of encodings. the .puz format wants iso-8859-1, but the .jpz tends to be in utf8. there's presumably an easy fix, but i'm too lazy to trawl through the source code to figure out what it is. also, i haven't used java in a good ten years, and presumably you could determine as easily as i how java handles text encodings.
|
|
 |
|
 |
|
jpdavidson
|
Posted: Fri May 13, 2011 12:12 pm |
|
Joined: Wed Apr 27, 2011 4:05 pm Posts: 11
|
joon wrote: it's a question of encodings. the .puz format wants iso-8859-1, but the .jpz tends to be in utf8. there's presumably an easy fix, but i'm too lazy to trawl through the source code to figure out what it is. also, i haven't used java in a good ten years, and presumably you could determine as easily as i how java handles text encodings. It is a question of encodings, but I don't think it's that simple. The jpz file posted above (as well as the one with the same problem on the first page) causes this error: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence. In plainer English, it means that the jpz isn't valid UTF-8, so it doesn't know what to do with it. For the other puzzle, when I got a copy from the Washington Post instead of on here, there was no such corruption. So something is happening to the puzzles posted here that makes them invalid, and I'm not sure what, which makes it hard to know how to fix.
|
|
 |
|
 |
|
Alex
|
Posted: Fri May 13, 2011 3:22 pm |
|
Joined: Sun Sep 21, 2008 11:33 am Posts: 49 Location: Los Angeles
|
|
The JPZs aren't utf-8 -- they're iso-8859-1. Generally XML parsers require utf-8. So it (probably) needs to be converted from iso to utf for reading, then back to iso for writing.
|
|
 |
|
 |
|
Lanulos
|
Posted: Fri May 13, 2011 6:31 pm |
|
|
|
I figured out a workaround: I loaded it into Crossword Solver and then resaved it. Then jpz2puz was able to convert it: Attachment:
File comment: resaved .jpz
cs110402a.jpz [27.01 KiB]
Downloaded 111 times
Attachment:
File comment: converted .puz
cs110402a.puz [1.94 KiB]
Downloaded 116 times
|
|
 |
|
 |
|
jpdavidson
|
Posted: Fri May 13, 2011 7:53 pm |
|
Joined: Wed Apr 27, 2011 4:05 pm Posts: 11
|
Alex wrote: The JPZs aren't utf-8 -- they're iso-8859-1. Generally XML parsers require utf-8. So it (probably) needs to be converted from iso to utf for reading, then back to iso for writing. Thanks for the tip - seems to work. OP updated with the fix.
|
|
 |
|
 |
|
joon
|
Posted: Sat May 14, 2011 2:16 pm |
|
Joined: Sat Sep 20, 2008 4:49 pm Posts: 273 Location: somerville, ma
|
|
ah, very good. any time i don't want to learn something i need to know about encoding, i make alex learn it instead.
|
|
 |
|
 |
|
Popeye
|
Posted: Sun May 15, 2011 3:14 am |
|
Joined: Mon Oct 20, 2008 4:09 pm Posts: 449
|
|
This is awesome JP! Are you also Papa John?
Popeye
|
|
 |
|
 |
|
Martin
|
Posted: Mon May 30, 2011 8:32 am |
|
Joined: Wed Nov 12, 2008 7:49 pm Posts: 736
|
|
 |
|
 |
|
Martin
|
Posted: Fri Jun 10, 2011 2:09 am |
|
Joined: Wed Nov 12, 2008 7:49 pm Posts: 736
|
|
 |
|
 |
|
jpdavidson
|
Posted: Fri Jun 10, 2011 7:31 am |
|
Joined: Wed Apr 27, 2011 4:05 pm Posts: 11
|
Martin wrote: Thanks for the report - see updated version in OP, which fixes the "%" from that puzzle, the fancy quotes from the 06/06 puzzle (by replacing with regular quotes, the simplest fix), as well as the "+" sign disappearing.
|
|
 |
|
 |
|