Register    Login    Forum    Search    FAQ

Board index » Island of Lost Puzzles




Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Mon May 02, 2011 7:17 pm 
Offline

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


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Tue May 03, 2011 1:05 pm 
Offline

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.


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Thu May 05, 2011 4:16 pm 
Offline

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


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Fri May 13, 2011 10:26 am 
 
I found it wouldn't convert the cs110402.jpz puzzle available on this site:

http://www.crosswordfiend.com/forum/download/file.php?id=432

I am using WinXP SP3 and Java 6 update 24.


Top 
  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Fri May 13, 2011 10:31 am 
Offline

Joined: Wed Apr 27, 2011 4:05 pm
Posts: 11
Lanulos wrote:
I found it wouldn't convert the cs110402.jpz puzzle available on this site:

http://www.crosswordfiend.com/forum/download/file.php?id=432

I am using WinXP SP3 and Java 6 update 24.


For whatever reason, the puzzles posted here get corrupted when they have accented characters. Your best bet is to get the puzzles from the source, i.e. http://www.washingtonpost.com/r/Washing ... YYMMDD.jpz . Unfortunately, that one is too old to be in the archive, so I think you're out of luck.


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Fri May 13, 2011 11:26 am 
Offline

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.


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Fri May 13, 2011 12:12 pm 
Offline

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.


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Fri May 13, 2011 3:22 pm 
Offline

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.


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post 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 209 times

Attachment:
File comment: converted .puz
cs110402a.puz [1.94 KiB]
Downloaded 219 times


Top 
  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Fri May 13, 2011 7:53 pm 
Offline

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.


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Sat May 14, 2011 2:16 pm 
Offline

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.


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Sun May 15, 2011 3:14 am 
Offline

Joined: Mon Oct 20, 2008 4:09 pm
Posts: 449
This is awesome JP! Are you also Papa John?

Popeye


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Mon May 30, 2011 8:32 am 
Offline

Joined: Wed Nov 12, 2008 7:49 pm
Posts: 736
Never mind. Newer version fixed.

BTW, the problem is with fancy (paired) double-quotes. Rather than converting to plain quotes, they generate garbage. Minor problem compared to not coverting, of course.

This puzzle generates an Unable to Convert.

http://www.washingtonpost.com/r/WashingtonPost/Content/Puzzles/Daily/cs110606.jpz


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Fri Jun 10, 2011 2:09 am 
Offline

Joined: Wed Nov 12, 2008 7:49 pm
Posts: 736
Here's another that won't convert. I think I'm using the latest version.
http://www.washingtonpost.com/r/WashingtonPost/Content/Puzzles/Daily/cs110616.jpz


Top 
 Profile  
 
 Post subject: Re: JPZ to PUZ Converter
 Post Posted: Fri Jun 10, 2011 7:31 am 
Offline

Joined: Wed Apr 27, 2011 4:05 pm
Posts: 11
Martin wrote:
Here's another that won't convert. I think I'm using the latest version.
http://www.washingtonpost.com/r/WashingtonPost/Content/Puzzles/Daily/cs110616.jpz


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.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2, 3  Next

Board index » Island of Lost Puzzles


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: