{"id":27,"date":"2011-05-26T00:24:24","date_gmt":"2011-05-26T00:24:24","guid":{"rendered":"http:\/\/alexboisvert.com\/musings\/?p=27"},"modified":"2011-05-26T00:24:24","modified_gmt":"2011-05-26T00:24:24","slug":"making-jpz-puzzles","status":"publish","type":"post","link":"https:\/\/alexboisvert.com\/musings\/2011\/05\/26\/making-jpz-puzzles\/","title":{"rendered":"Making JPZ puzzles"},"content":{"rendered":"<p>So a while back I made a crossword for Brendan Quigley&#8217;s site.  <a href=\"http:\/\/www.brendanemmettquigley.com\/2011\/05\/guest-crossword-by-alex-boisvert.html\">You can check it out here.<\/a>  If you haven&#8217;t done it, go ahead.  I&#8217;ll wait.  Listen to some defective turrets while you solve.<br \/>\n<center><br \/>\n<iframe loading=\"lazy\" width=\"425\" height=\"349\" src=\"http:\/\/www.youtube.com\/embed\/ssU3exbUGL8\" frameborder=\"0\" allowfullscreen><\/iframe><br \/>\n<\/center><br \/>\nOkay, now you might have solved on paper, but you probably shouldn&#8217;t have.  Ooh, should have warned you about that ahead of time.  Um, the point is: how did I make the .jpz file?  If I had Crossword Compiler, it probably would have been easy, but I don&#8217;t.  So if you&#8217;re interested in how to make these things, come along!<\/p>\n<p><!--more--><\/p>\n<p><b>Step 1<\/b>: Make a .puz file of your crossword.  Most everyone can do this, so I won&#8217;t say much here.  If your puzzle is like mine, it won&#8217;t work as a .puz file, but at least you can get the letters and black squares in the right places.<\/p>\n<p><b>Step 2<\/b>: Open your .puz file in <a href=\"http:\/\/crosswordsolver.info\/\">Crossword Solver<\/a> and then go to File -> Save As -> *.xml puzzle files.  This will create a .jpz for you.  So you&#8217;re done, right?  Um, no.<\/p>\n<p><b>Step 3<\/b>: Open the resulting .jpz file in a text editor.  I like <a href=\"http:\/\/notepad-plus-plus.org\/\">Notepad++<\/a> for Windows or <a href=\"http:\/\/www.barebones.com\/products\/textwrangler\/\">TextWrangler<\/a> for Mac.<\/p>\n<p><b>Step 4<\/b>: Okay, let&#8217;s change the numbering scheme first.  That&#8217;s probably the easiest thing to do.  Look for a line in your file that looks something like<br \/>\n[xml]<br \/>\n<cell solution=\"R\" x=\"4\" number=\"4\" y=\"1\"><br \/>\n<\/cell><br \/>\n[\/xml]<br \/>\nThis says that the fourth (x=4) square in the first row (y=1) has the number 4.  If you want to change it, just change that number to whatever you want.  You&#8217;ll then need to change the number of the corresponding clue(s), which appear in the file as follows:<br \/>\n[xml]<br \/>\n<clue number=\"4\" word=\"52\"><br \/>\n  <span>Bawdy<\/span><br \/>\n<\/clue><br \/>\n[\/xml]<\/p>\n<p><b>Step 5<\/b>: All right, after changing all of those, you&#8217;ve got a new numbering scheme.  But my .jpz file had a few extra bits as well.  First, you&#8217;ll notice that some of the entries in the grid go through walls.  You can make words go however you want by changing the part that looks like this:<br \/>\n[xml]<br \/>\n<word id=\"7\"><br \/>\n  <cells x=\"10\" y=\"2\"><\/cells><br \/>\n  <cells x=\"11\" y=\"2\"><\/cells><br \/>\n  <cells x=\"12\" y=\"2\"><\/cells><br \/>\n  <cells x=\"13\" y=\"2\"><\/cells><br \/>\n  <cells x=\"14\" y=\"2\"><\/cells><br \/>\n  <cells x=\"15\" y=\"2\"><\/cells><br \/>\n<\/word><br \/>\n[\/xml]<br \/>\nThis is pretty self-explanatory, right?  This defines the word with the given ID.  Tell it what cells you want it to comprise and you&#8217;re set.<\/p>\n<p><b>Step 6<\/b>: Oh, wait, there&#8217;s more!  What if you want a letter (or number) in the upper right corner of a cell?  That&#8217;s easy.  Just change a cell description to<br \/>\n[xml]<br \/>\n<cell solution=\"E\" x=\"1\" top-right-number=\"B\" y=\"13\"><br \/>\n<\/cell><br \/>\n[\/xml]<\/p>\n<p><b>Step 7<\/b>: What, there&#8217;s more?  Yes!  Notice that my .jpz has background images!  How the heck do you make those?  Why, MS Paint, of course!  Although you can use something more sophisticated if you want.  Make some sort of square image (I think mine were 100&#215;100).  Then &#8211; convert them into Base64 format (what?).  A simple web search <a href=\"http:\/\/www.motobit.com\/util\/base64-decoder-encoder.asp\">led me to this page<\/a> which allows you to upload a file and gives you an intimidating-looking string in return.  Then just take that string and shove it into a cell like so:<br \/>\n[xml]<br \/>\n<cell solution=\"E\" x=\"1\" top-right-number=\"B\" y=\"13\"><br \/>\n  <background-picture format=\"PNG\" rebus=\"false\"><br \/>\n    <encoded-image><br \/>\niVBORw0KGgoAAAANSUhEUgAAAGQAAABlCAIAAAA03NGmAAAAAXNSR0IArs4c6QAAAARnQU1BAACx<br \/>\njwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAT0SURBVHhe7V1NSFRRFH7vjYVBkIsgyYVRkGGg<br \/>\nRkRJNNWiImKSIBJcJC0qiKBoYZuYyKBFi4gWQUFCQYQRuCuinVFEYGSQFCG0EQwKXARJOmNnfOOb<br \/>\nO+\/vnnPngb1z5q1E733zzve+891zzj3XsZ3rcxbxal5t3Trg9I0U3Xk39juXdzvEe6RyuImR07+t<br \/>\nO+8XPHOFIAX2xoJVAcRPhHdT5b9taLJTSRKjh44FC4HDQDdikNGT\/YeTnKZG86fKZ52z200c2fwj<br \/>\nl3UmgGVIDYDpalYQUiXN+j4TrUyB19i1roxsY4OV3yMLKZ3AV4OlajnQCgIIaReNHR9\/lGgItBro<br \/>\npk3kAavW5oqTeg4rk1YYN\/TLv1haYcCqciBX1wWqlYuCjc8Nh3JOf6fWbXmoU7gVBOOFI0VjlpYz<br \/>\n4J5DucyhTYZRrvb+yz6AwCzts0I14tyLct1GOziNAwyrDmk0tfZnNqw67GqxL+wMmcu7CEFYDTFv<br \/>\npnClATMspWOS1Cz2hcAkweppY7sOuq6QmMBLSIOiwYIMWkeUnjbHi6ogZGWfBkWDpUMKqNTfYX39<br \/>\nVRbr3nbdhJSquvLYyayGwKmpi5zXQYRmobkgpBaYwGoIezyhASoa6tQMrBUsUXs8NYElbY8nABZh<br \/>\nY8wC72MfLqgaEQALHQBsWWtL2zo0d8MHOQfcUNSlgIXmFAAEPVlQpRGFVHVuiFOrfa322OmMnJ6s<br \/>\nWM2KZQv43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RU5ErkJggg==<br \/>\n    <\/encoded-image><br \/>\n  <\/background-picture><br \/>\n<\/cell><br \/>\n[\/xml]<\/p>\n<p>Okay, these are a few tips and tricks you can use to make crazy, customized .jpz files.  Is it easy?  No.  But I think the end result can be worth it if you have some sort of insane puzzle you want to share with the world.  Happy puzzling!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So a while back I made a crossword for Brendan Quigley&#8217;s site. You can check it out here. If you haven&#8217;t done it, go ahead. I&#8217;ll wait. Listen to some defective turrets while you solve. Okay, now you might have &hellip; <a href=\"https:\/\/alexboisvert.com\/musings\/2011\/05\/26\/making-jpz-puzzles\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-coding","category-puzzles"],"_links":{"self":[{"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":17,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":44,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/posts\/27\/revisions\/44"}],"wp:attachment":[{"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}