View Full Version : iLiad CBZ Java Viewer for iLiad


scotty1024
05-11-2007, 04:20 PM
I took the previous test case and buffed it up into a full fledged viewer.

Yeah, needs a background thread to fill a cache, but what do you want for something buffed up over lunch? :)

Copy CBZViewer.jar and cbz.sh from the zip to your /home/intent then edit er_registry.txt with the following:


[USER_APPLICATIONS]
uaIDList=SHELL;BROWSER;IPDF;APABIMOBI;IMAGEVIEWER; SETUP;PROFILES;EBA;MOBIPOCKET;DJVU;CBZ
[CBZ]
category=viewer
arguments=<FILENAME>
exec=/home/intent/cbz.sh
xResourceName=intent
channel=15
extensions=cbz;CBZ
[EXTENSION_INFO]
bz=/usr/share/contentlister/Icon_mobipocket.png
CBZ=/usr/share/contentlister/Icon_mobipocket.png


Enjoy!

Adam B.
05-11-2007, 04:29 PM
I've made an unrar binary for the iLiad. With that, would CBR support be possible as well?

scotty1024
05-11-2007, 06:01 PM
I don't know, what do you mean by an "unrar binary"? If you mean an unrar JAR then yes, I could whip that into CBZViewer and rename it. Or you could post a CBRViewer! :)

Right now my weekend goals are to combine DJVU and CBZ into one viewer with a combined file format for saving the page number into.

My current thinking is to use the Sony Reader's <cache xmlns="http://www.kinoma.com/FskCache/1"> for the file. That way when I port things like my existing RTF reader and a Java PDB viewer I'll also have a place to stash the page break data.

nekokami
05-11-2007, 07:56 PM
You are so cool. :)

Now I just need to get me some cbz files....

Adam B.
05-11-2007, 11:34 PM
I don't know, what do you mean by an "unrar binary"? If you mean an unrar JAR then yes

No, it's the compiled arm executable. You'd need to make some external calls to unrar the file before loading it into your viewer.

scotty1024
05-12-2007, 01:40 AM
I discovered that some CBZ files don't internally store the files in order in the ZIP archive. Very strange if you ask me... so I've added code to sort the names so the pages will be presented in the correct order even when they aren't stored in sequence.

scotty1024
05-12-2007, 01:43 AM
No, it's the compiled arm executable. You'd need to make some external calls to unrar the file before loading it into your viewer.

I'm pretty sure I can do it all in Java, thanks anyway.

narve
05-14-2007, 03:15 AM
No, it's the compiled arm executable. You'd need to make some external calls to unrar the file before loading it into your viewer.
I'd like to have the unrar binary! I often download files directly into the iliad using wget (I hate cables), and it is irritating to have to first download it to my desktop computer and then unrar it and then transfer it.

And a better unzip (that actually works) would be nice to. Perhaps 7-zip can be compiled for ARM? Or p7zip, which is a port of the command-line 7-zip for Linux/Unix?

dedo
05-14-2007, 04:02 AM
I'd like to have the unrar binary! I often download files directly into the iliad using wget (I hate cables), and it is irritating to have to first download it to my desktop computer and then unrar it and then transfer it.

And a better unzip (that actually works) would be nice to. Perhaps 7-zip can be compiled for ARM? Or p7zip, which is a port of the command-line 7-zip for Linux/Unix?
"UnRAR for Familiar Linux" avaible from http://www.rarlab.com/rar_add.htm should work

narve
05-14-2007, 05:20 AM
"UnRAR for Familiar Linux" avaible from http://www.rarlab.com/rar_add.htm should work
cool, thx

mill0r
05-16-2007, 05:52 AM
I am not much of developer, but managed to do the steps described but alas no join .. the icon of a cbz file is still an X like with unsupported formats and opening the file gives a short led flash and nothing ... :-(

scotty1024
05-16-2007, 08:39 AM
@mill0r I'd suggest using the Booster Pack version, it has the CBZViewer and it comes with an installer.

Azayzel
10-22-2008, 09:10 AM
Not meaning to resurrect a dead thread, but I was curious if RAR support was ever added to the CBZ viewer? If not, then maybe the unrar binary can still be used along with a script that renames CBR's to RAR, unrar's them to their own folders, and then deletes the original file. That way CBR's could be viewed like a photo album.

Just checking, thanks!