05-10-2007, 06:26 PM | #1 |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
DJVU Viewer in Java on the iLiad
OK, all the iRex paging UI stuff is added in and working.
Next features to figure out how to handle are annotations and searching. With no TextArea the annotations weren't a slam dunk. I also need to figure out where to store the current page number. I'm thinking the .mbp files the Mobipocket Viewer is using. Next up, an installer. But tonight is my first wedding anniversary so it won't be tonight. |
05-11-2007, 02:32 AM | #2 |
Delphi-Guy
Posts: 285
Karma: 1151
Join Date: May 2006
Location: Berlin, Germany
Device: iLiad, Palm T3
|
.mbp files are simple RIFF files so handling should be easy. I just never tried to find where Mobipocket stores the current page number (they probably store the file position and guess at the page number).
|
Advert | |
|
05-11-2007, 03:22 AM | #3 | |
Addict
Posts: 285
Karma: 10
Join Date: Apr 2006
Location: Vancouver, Canada
Device: Proud Iliad owner
|
Quote:
Hey! Happy anniversary Scotty! |
|
05-11-2007, 04:22 AM | #4 |
Delphi-Guy
Posts: 285
Karma: 1151
Join Date: May 2006
Location: Berlin, Germany
Device: iLiad, Palm T3
|
The way he mentions "tonight" implies a happy marriage. :-)
|
05-11-2007, 04:26 AM | #5 |
Fully Converged
Posts: 18,170
Karma: 14021202
Join Date: Oct 2002
Location: Switzerland
Device: Too many to count here.
|
Yeah, have a great evening, Scotty!!
|
Advert | |
|
05-11-2007, 10:09 AM | #6 | |
Pac-Man caught my iLiad.
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
Quote:
It would be cool to have a djvu viewer again. |
|
05-11-2007, 10:40 AM | #7 | |
Groupie
Posts: 180
Karma: 66830
Join Date: Oct 2006
Device: IREX iLiad, Pocketbook Pro 903
|
Hurray!
Quote:
(I am married for almost 29 years. It keeps getting better each year for us. I wish the same for both of you!) I am happy you came back to developing for the iLiad again. |
|
05-11-2007, 11:12 AM | #8 |
fruminous edugeek
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
|
Another happy anniversary! My husband and I will celebrate our 20th this summer.
For later: will the annotations be attached to the "page" or to a location in the text, sort of like stickies? I'm wondering how resizing fonts or changing orientation would affect the annotations. |
05-11-2007, 01:12 PM | #9 |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Thank you everyone! We were kinda new to the whole anniversary thing but we had a good time!
For the non-Average Joe's out there, and you know whom you are, I attach the DJVU code. I've still got to craft the page save logic and an installer but you can get a peek now. The javadjvu.jar and djvu.sh from the zip need to be copied to /home/intent and then (carefully) apply these hacks to er_registry.txt. Code:
[USER_APPLICATIONS] uaIDList=SHELL;BROWSER;IPDF;APABIMOBI;IMAGEVIEWER;SETUP;PROFILES;EBA;MOBIPOCKET;DJVU [DJVU] category=viewer arguments=<FILENAME> exec=/home/intent/djvu.sh xResourceName=intent channel=15 extensions=djvu;DJVU [EXTENSION_INFO] djvu=/usr/share/contentlister/Icon_mobipocket.png DJVU=/usr/share/contentlister/Icon_mobipocket.png I learned alot porting this hopefully you all will too. Enjoy! |
12-16-2007, 10:18 PM | #10 |
Junior Member
Posts: 8
Karma: 10
Join Date: Dec 2007
Location: Babylon, NY
Device: iRex iLiad
|
For new firmware 2.11 (where er_registry.txt is replaced by /mnt/settings/registry/registry.xml) following additions to the registry.xml worked well for me (based on the er_registry.txt by scotty1024 and registry.xml advice from AdamB. on n00b thread):
Inserted within <applications> <application type="JAVADJVU"> <appCategory>viewer</appCategory> <execute>/home/intent/djvu.sh</execute> <argMask>_FILENAME_</argMask> <xResourceName>intent</xResourceName> <ipcChannel>15</ipcChannel> <supportFormat> <extName>djvu</extName> <extName>DJVU</extName> </supportFormat> <appIconPath/> </application> Inserted within <extensions> <extensionInfo> <associateApp>JAVADJVU</associateApp> <extName>djvu</extName> <extIcon>/usr/share/contentlister/Icon_mobipocket.png</extIcon> </extensionInfo> <extensionInfo> <associateApp>JAVADJVU</associateApp> <extName>DJVU</extName> <extIcon>/usr/share/contentlister/Icon_mobipocket.png</extIcon> </extensionInfo> Hope this helps n00bs like me ... (More gory details: using mrxvt [could have used emelfm too] copied registry.xml to /mnt/free/notes [or any other shared place], from there copied it to Linux PC [or Win, there notepad editor would do the work] after connecting iLiad to it via USB, edited it [using emacs, other text editors would do also] there and copied it back to iLiad notes folder. [Kept registry.xml.old just in case]. Within iLiad copied new registry.xml to /mnt/settings/registry again using mrxvt [emelfm can be used as well]. Rebooted iLiad. Happy reading DJVU textbooks now! Thanks to all who made this in the first place... |
03-16-2008, 11:05 AM | #11 |
Junior Member
Posts: 7
Karma: 10
Join Date: Mar 2008
Device: iRex iLiad v.2
|
DJVU Problem
This is something wonderful ,but only if it does . I have edit the registry.xml and copied djvu.sh with javadjvu.jar in /home/intent, but if I try just to open DJVU File - iLiad try to open it with Mobipocket and then happens nothing . iLiad show these files as Mobipocket, but can't open them . Please help me , I really need DJVU . Thanks
|
03-16-2008, 04:09 PM | #12 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
javadjvu is not compatible with FW2.12.
|
03-16-2008, 05:21 PM | #13 |
Junior Member
Posts: 7
Karma: 10
Join Date: Mar 2008
Device: iRex iLiad v.2
|
What can I do now? How can I read DJVU with 2.12
|
03-23-2008, 03:26 PM | #14 |
Connoisseur
Posts: 68
Karma: 855
Join Date: Jan 2007
Location: Netherlands
Device: iLiad
|
Here's a version that works on my iLiad with firmware 2.12.
Installation is the same as for the original version, i.e.: - unzip djvu-0.1a.zip - move javadjvu.jar and djvu.sh to /home/intent - update the registry as indicated in dusanmal's post This is my first attempt at programming for the iLiad, so I hope everything works OK. I just took Scotty's version and did some minor changes to make it work, but I haven't tested it extensively. |
03-23-2008, 03:38 PM | #15 |
Groupie
Posts: 180
Karma: 66830
Join Date: Oct 2006
Device: IREX iLiad, Pocketbook Pro 903
|
Install?
Can anybody make this an (automatic) install ?
Henk |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iLiad My djvu viewer | ericshliao | iRex Developer's Corner | 8 | 10-17-2010 08:28 AM |
Java Djvu viewer - need SDK/KDK | zetareticuli | Kindle Developer's Corner | 13 | 08-03-2010 01:02 PM |
iLiad has a djvu viewer for Chinese fiimware ? | laozhang | iRex Developer's Corner | 0 | 04-26-2010 08:56 PM |
iLiad CBZ Java Viewer for iLiad | scotty1024 | iRex Developer's Corner | 12 | 10-22-2008 09:10 AM |
iLiad DJVU viewer? | riccioberto | iRex Developer's Corner | 5 | 01-06-2008 10:23 AM |