05-14-2007, 01:25 AM | #1 |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
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}" 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 Enjoy! |
05-14-2007, 02:26 AM | #2 |
No es el toro que piensas
Posts: 44
Karma: 10
Join Date: Mar 2007
Device: iRex iliad
|
Awesome!! Congratulations Scotty1024. This is great news to start the week. I'm going to download the package and try things out.
Great stuff. |
Advert | |
|
05-14-2007, 12:03 PM | #3 |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
Does the launcher look at er_registry.txt, or does it associate the filetypes with applications internally? I'm wondering because I'd like to default HTML, TXT, and some other types to fbreader.
|
05-14-2007, 12:46 PM | #4 |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Average Joe Installer is here
Here is the Average Joe installer!
Extract ZIP file onto an MMC/CF/USB device or onto your iLiad's internal memory. You will should now be able to find an entry saying "Install Mobipocket Viewer Booster Pack." Click on it, lights blink and the entry changes to read "Remove Mobipocket Viewer Booster Pack." You will need to reboot to associate the new file types with the booster pack viewers. Enjoy! |
05-14-2007, 12:53 PM | #5 |
Connoisseur
Posts: 86
Karma: 10
Join Date: Dec 2006
Device: Iliad
|
So this must be for me, thanks a lot, i´m enjoying a lot my Iliad and that´s thanks to all the developers (i don´t want to name them since i sure will forget someone) that make this "programs" available for Average Joes like me.
Thanks again Scotty. Jose |
Advert | |
|
05-14-2007, 12:58 PM | #6 | |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Quote:
One thing to be aware of, the registry upgrades can make multiple copies of the FBREADER section in your er_registry.txt file. You may need to remove duplicates and then set the extensions you want bound to fbreader. |
|
05-14-2007, 05:33 PM | #7 |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
Ok, thanks!
|
05-15-2007, 03:08 AM | #8 |
iLiad fan
Posts: 210
Karma: 3864
Join Date: Oct 2006
Device: iRex iLiad
|
Hi Scotty, although I don't have time to do any real programming on the iLiad right now I decided to take a look at the source code - but the project failed to open. Which version of Netbeans and Java do you use, and do you have any special modules/configuration/something?
|
05-15-2007, 03:34 AM | #9 | |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Quote:
I use the JDK 1.5.0_07 supplied by Apple Inc. I use the build.sh with GNU bash, version 2.05b.0(1)-release (powerpc-apple-darwin8.0) in Terminal, both supplied by Apple Inc. I'm a "Command Line" kinda guy. |
|
05-15-2007, 05:09 AM | #10 | |
iLiad fan
Posts: 210
Karma: 3864
Join Date: Oct 2006
Device: iRex iLiad
|
Quote:
|
|
05-15-2007, 08:42 AM | #11 |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
I use Ant myself but in this case the Lizard Tech project's build.sh makes it easier for Unix based casual developers: no IDE to install, not ant to get working.
If you are using a Mac all the developers tools needed are pre-installed by Apple. |
05-16-2007, 05:07 PM | #12 |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Does anyone want DJVU/CBZ zoom or would you rather have a Java web browser/PDF viewer & annotation tool first?
|
05-16-2007, 05:24 PM | #13 |
Junior Member
Posts: 8
Karma: 10
Join Date: Apr 2007
Device: iliad/palm TX
|
pdf viewer with search / jump to page would be nice
Are there Java-based pdf vieuwers out there? I really miss the search function. A textfield to enter a string or page number would be sufficient as for a GUI.
I was astonished about the speed with which you,scotty, ported the viewers to Java. [edit] This could be a starting point? http://www.jpedal.org/viewer.php Last edited by azerty; 05-16-2007 at 05:32 PM. |
05-16-2007, 05:47 PM | #14 |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
Being able to annotate on non-PDF documents (and search PDF docs) would be very nice.
|
05-16-2007, 06:06 PM | #15 | |
Groupie
Posts: 180
Karma: 66830
Join Date: Oct 2006
Device: IREX iLiad, Pocketbook Pro 903
|
Quote:
Here is one with search function to look at (commercial) http://www.icesoft.com/products/demos_icepdf.html |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Java Djvu viewer - need SDK/KDK | zetareticuli | Kindle Developer's Corner | 13 | 08-03-2010 01:02 PM |
iLiad DJVU Viewer in Java on the iLiad | scotty1024 | iRex Developer's Corner | 61 | 07-14-2010 10:36 PM |
iLiad CBZ Java Viewer for iLiad | scotty1024 | iRex Developer's Corner | 12 | 10-22-2008 09:10 AM |
iLiad Java Powerpoint Viewer - Tonic Point | daemon1 | iRex Developer's Corner | 1 | 01-02-2008 03:59 AM |
iLiad Light weight AWT widget Booster Pack | scotty1024 | iRex Developer's Corner | 15 | 05-25-2007 02:11 PM |