How embarressing! My apologies for the error and distraction! I relied on the user report without digging further. The sample DJVU file they provided, and claimed came from that link, is completely bogus when examined.
Wikipedia sample DJVU file cannot be decoded
I'm using DjVuLibre 3.5.28 in my Windows Explorer plugin DarkThumbs (https://github.com/fire-eggs/DarkThumbs). It's working pretty well for me, but a user reported that the sample DJVU file from Wikipedia cannot be handled. Here is the link: https://commons.m.wikimedia.org/wiki/File:Example.djvu DjView 4.12 reports "IFFByteStream not ready for reading chunk".
Alas, not quite. There is a change to an "Imagemagick policy" which I needed to apply. In /etc/ImageMagick-6 there is a file called policy.xml. In there, I had to comment out this line (shown commented out): <!-- <policy domain="path" rights="none" pattern="@*"/> --> To do this requires sudo. Frankly the script seems awfully fragile / finicky and difficult to customize and debug.
OK, got it working. The problem is the font pre-selected by the script, "Verdana-Italic", is not installed. (to see the list of installed fonts, do 'convert -list font'). I changed the file IMMODE.CONF to changes these lines: FONT_HEADERFILE="Ubuntu-Italic" FONT_OUTFILE="Verdana" FONT_ALARMFILE="Ubuntu-Italic" After that, all is well.
Excellent! Certainly seems to work, at least for that .MAP file! Much appreciated! Trying to move forward with CivOne, your disassembly code and other articles in CivFanatics have proven to be indispensible [not to mention jCivEd!]! My thanks for your efforts!
Consistent exception trying to decode specific MAP file