Thread: iLiad Java Viewer Booster Pack
View Single Post
Old 05-14-2007, 01:25 AM   #1
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
Lightbulb Java Viewer Booster Pack

I've combined the DJVU and CBZ viewers into a single JAR and added a new launcher that sits in front of the Mobipocket, DJVU and CBZ viewers.

The launcher figures out which viewer to use and starts that viewer.

This has a couple useful benefits. iRex still plays favorites about which viewers get their launched documents stored in Recent Documents. By intercepting the launch in this fashion CBZ and DJVU documents now get recorded in Recent Documents.

The sed scripts I need to write to install this for Average Joe's get easier to write, but I'm still waiting until tomorrow when my mind will be less sleepy. Don't write brickable sed scripts when you're sleepy.

I also discovered the obvious: contentLister hides .mbp files. So even though I'm not using .mbp file format, I call my file .mbp.

The DJVU and CBZ viewers now save the last "page" position and recover it the next time you open the document in that .mbp file.

I'm attaching source and binaries for the non-Average Joe's to kick around whilst I sleep. The javadjvu.jar is in the build directory, yes, it got smaller. I turned off compilation for all the stuff that doesn't currently work on the iLiad.

Put the build/javadjvu.jar from the tar in /home/intent.

Change this line in /home/intent/runmobi.sh

Code:
    JVMARGS="-classpath javadjvu.jar;MobipocketCoreReader.jar;kxml2-2.3.0.jar;irex.jar com.scotty1024.iliadviewer.Viewer {ROOTDIR/$1}"
The update the extensions in er_registry.txt by removing any previous entries for DJVU and CBZ viewers and then update the entry for MOBIPOCKET to add the new file extensions.

Code:
[MOBIPOCKET]
category=viewer
arguments=<FILENAME>
exec=/home/intent/runmobi.sh
xResourceName=intent
channel=15
extensions=prc;PRC;pdb;PDB;mobi;MOBI;cbz;CBZ;cbr;CBR;djvu;DJVU;rtf;RTF
I'm going ahead and claiming rtf and cbr at this point.

Enjoy!
Attached Files
File Type: bz2 iliadviwers-0.1.tar.bz2 (333.6 KB, 890 views)
scotty1024 is offline   Reply With Quote