Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-19-2008, 10:24 PM   #1
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Java CBZViewer

Yes, scotty1024 had realease a djvu and cbz viewer half year ago. It is rather primitive. I think scotty1024 just wanted to demonstrate how easy to make Java app for iLiad. Based on his effort, I modified, almost rewrote the CBZViewer part.
I have tested it for several days and it worked just fine. So I decide to release it to you iLiad users, especially those comic fans.

Features:
1. Implements background drawing. When your are reading, the next page will be prepared in the background. You will experience fast page shift.
2. Splits a landscape image to two pages. Because many comic images contain two pages in an image file, the viewer will split a landscape image to two portrait pages.
3. Adds open next/previous volume function
4. User can tap screen to flip page or open next/prev volume.
5. Enables unzipping non-ascii encoded filename in zip file. If your image files are named or contained in directory that use non-ascii characters, default unzip api cannot deal with them. When it happens, the viewer will use "jazzlib" to unzip. Most non-English users should benefit from this function.
6. Directories in zip archive will be ignored, not treated as an ZipEntry. It will prevent from presenting a blank page in the start.
7. For images larger than iLiad sreen size, the viewer will reduce them to fit the screen, using an Area Averaging algorithm. It will provide good quality and not consume much system resource.

Install:
1. scotty1024's javadjvu must be installed first.
2. Download the attached two files, and remove the postfix ".zip". Copy "javadjvu.jar" and "jazzlib.jar" to /home/intent.
3. Edit "/home/intent/runmobi.sh", add "jazzlib.jar" to classpath. You should find a line contains several ".jar", just insert "jazzlib.jar" to it.

Usage:
1. You should be able to open cbz file from your ContentLister.
2. Flip pagebar to shift to next/prev page. Shifting several page in one flip is ripped.
3. At End Of Book, flip next page will open the next volume if it does exist in the same directory.
4. Tap Lower Left corner will shift to next page. Tap Lower Right corner will shift to previous page.
5. Tap Upper Left corner will open next volume. Tap Upper Right corner will open previous volume. The area above pen socket is disabled to prevent unwanted action when you insert the pen back to its socket.
5. If the app stops to respond, just push the button second from top left twice, you will go back to ContentLister.

Note:
1. The attached "javadjvu.jar" is based on scotty1024's version. I only replaced the part of cbzviewer. I put it altogether for users' convenience. The DJVU part is not affected.
2. For PNG image file, especially those of below 16 indexed colors, users may experience weird image quality. It's because the bug of JVM. You can complain to IREX, and push her to release a patch. I can't solve the problem in application level. Some third party PNG Java libs can solve the problem on PC. On iLiad, limited system resource prevents me from taking advantage of them.
3. If image size is too large, the viewer may have difficult opening it.
4. Though filename and directory name contained in zip archive can use non-ascii characters, the filename of cbz still have to use ascii characters. It's because the shell script can't transfer correct non-ascii filenmae to JVM. If I am wrong, please correct me.
5. scotty1024's cbzviewer provides save and load settings. I disabled it. Because I havn't decided on a proper way to do it.
6. This cbzviewer can be run on PC. Copy javadjvu.jar;irex.jar;kxml2-2.3.0.jar;MobipocketCoreReader.jar;jazzlib.jar and .cbz file to a directory. In command mode, type "java -classpath .\;javadjvu.jar;irex.jar;kxml2-2.3.0jar;MobipocketCoreReader.jar;jazzlib.jar com.scotty1024.iliadviewer.cbzviewer.CBZViewer yourcbzfile.cbz"
7. Not compatible with FW2.12.
Attached Files
File Type: zip javadjvu.jar.zip (133.3 KB, 438 views)
File Type: zip jazzlib.jar.zip (47.6 KB, 423 views)

Last edited by ericshliao; 02-06-2008 at 05:19 PM.
ericshliao is offline   Reply With Quote
Old 01-29-2008, 07:36 AM   #2
angels90
Junior Member
angels90 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2007
Device: Iliad
Thanks E, sounds pretty tasty.

An absolute noob question I'm afraid - how does one get to the /home/intent/ directory to copy the packages across and edit the sh ?
angels90 is offline   Reply With Quote
Advert
Old 01-29-2008, 09:52 AM   #3
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Use mrxvt or emelFM2 to copy file between internal and external memory. Make the required modification on your PC.
If you are are in-experienced with Linux, I would suggest making pretty study before you start fiddling with iLiad file system.
ericshliao is offline   Reply With Quote
Old 01-29-2008, 09:57 AM   #4
angels90
Junior Member
angels90 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2007
Device: Iliad
Thanks E, most kind.
angels90 is offline   Reply With Quote
Old 01-29-2008, 10:06 AM   #5
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Please make sure you have installed scotty1024's package and are able to view cbz/djvu file beforehand.
ericshliao is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java on iLiad makkus iRex 1 12-23-2008 10:58 AM
PRS-500 Java RSS2Book? sammykrupa Sony Reader Dev Corner 35 01-03-2007 02:15 PM
iLiad Get your Java VM for iLiad here scotty1024 iRex Developer's Corner 13 11-22-2006 12:22 PM
iLiad Java on the iLiad Gavrahil iRex Developer's Corner 20 07-22-2006 03:08 AM
[Apple]Java Embedding Plugin 0.9.2: Force java to run in browsers other than Safari Zire Lounge 4 05-24-2005 09:12 PM


All times are GMT -4. The time now is 03:34 PM.


MobileRead.com is a privately owned, operated and funded community.