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

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 06-09-2010, 05:48 PM   #1
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
DR800/DR1000 Website archive browser (website in .ZIP file)

As you all probably know, the DR800, and the DR1000 with 2.0 firmware, have a fairly decent HTML browser based on WebKit. Unfortunately, storing whole websites on the reader is not really feasible, since they usually contain a large number of files, making the indexing phase of the boot process much slower.

As an alternative, I have built a modified browser, based on the irex one, that allows you to browse within a .ZIP file. The idea is that you first download the site (with wget or your favourite downloading tool), make a ZIP archive with the contents and copy that file to the reader.

When you open the ZIP file from the file browser, it will open the modified browser, which looks for a /index.htm or /index.html in the ZIP file. If such a file is found, it is shown like a regular website. Images, css files and all other pages are also loaded from the same ZIP file.

I currently have this working on the DR800 emulator, but I want to wait for the 2.0 sources to be released, to release the final version (if they don't release the sources soon, I'm a bit worried about the chapter 11 situation, I'll probably do a release based on the old sources).

I now have a few questions for you guys:
- Do you think this is useful?
- What extension would you want to be associated with the modified browser? using .ZIP means of course that all .ZIP files will be opened by this program
- Any other feature requests or suggestions?
luite is offline   Reply With Quote
Old 06-09-2010, 06:01 PM   #2
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
For the people who want to know how it works:
I have modified the browser to start an embedded web server. This web server is based on libmicrohttpd ( http://www.gnu.org/software/libmicrohttpd/ ), and automatically extracts each requested file from the zip file and delivers it to the browser. The unzip part uses minizip ( http://www.winimage.com/zLibDll/minizip.html ).

The URLs look like this: http://127.0.0.1:7766/media/mmcblk0p...LES/index.html

It would be fairly easy to modify the browser to show files from other kinds of archives (it requires modifying only one function). I've seen a few requests for an offline Wikipedia browser. Does anyone know a good archive format for Wikipedia?
luite is offline   Reply With Quote
 
Enthusiast
Old 06-10-2010, 02:37 AM   #3
owl123
Addict
owl123 doesn't litterowl123 doesn't litterowl123 doesn't litter
 
Posts: 233
Karma: 214
Join Date: Nov 2008
Device: iPad, Samsung Galaxy Note
That's definitely a useful piece of software. Thanks!
owl123 is offline   Reply With Quote
Old 06-10-2010, 03:19 AM   #4
Gertjan
IRX developer
Gertjan doesn't litterGertjan doesn't litterGertjan doesn't litter
 
Gertjan's Avatar
 
Posts: 158
Karma: 224
Join Date: Oct 2008
Device: Irex DR800S, DR1000S, iLiad
Its always nice to have choices, but DR800 (1.0/2.0) and DR1000 (2.0) already support MHT (MHTML) web archives natively.
Gertjan is offline   Reply With Quote
Old 06-10-2010, 03:42 AM   #5
Dellaster
本の虫
Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.
 
Dellaster's Avatar
 
Posts: 242
Karma: 344
Join Date: May 2008
Location: USA
Device: Kindle3, DXG, Fire ˇ iPad, iPod
Quote:
Originally Posted by luite View Post
I now have a few questions for you guys:
- Do you think this is useful?
I can see uses for it. There are quite a few online manuals that do not have any print or ebook versions. I wouldn't mind the ability to grab some of those with Backstreet Browser for nice e-ink reading or reference.
Quote:
Originally Posted by luite View Post
- What extension would you want to be associated with the modified browser? using .ZIP means of course that all .ZIP files will be opened by this program
Would .WEB conflict with anything? It would be hard to forget what kind of file that was.
Quote:
Originally Posted by luite View Post
- Any other feature requests or suggestions?
Resizing with resampling for image archives would be nice. Something like how Kolenka's CBZ Document Plugin does it. (Much better looking than the built-in shrink-to-fit software.)
Dellaster is offline   Reply With Quote
Old 06-10-2010, 03:46 AM   #6
Dellaster
本の虫
Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.
 
Dellaster's Avatar
 
Posts: 242
Karma: 344
Join Date: May 2008
Location: USA
Device: Kindle3, DXG, Fire ˇ iPad, iPod
Quote:
Originally Posted by Gertjan View Post
Its always nice to have choices, but DR800 (1.0/2.0) and DR1000 (2.0) already support MHT (MHTML) web archives natively.
I had no idea. Hm, interesting. Thanks for letting us know. And best wishes to you, Gertjan, during these trying times.
Dellaster is offline   Reply With Quote
Old 06-10-2010, 03:47 AM   #7
owl123
Addict
owl123 doesn't litterowl123 doesn't litterowl123 doesn't litter
 
Posts: 233
Karma: 214
Join Date: Nov 2008
Device: iPad, Samsung Galaxy Note
There are a lot of of ebooks and ezines that aren't in .mht but consist of hundreds of individual .html files.

Thanks, luite!
owl123 is offline   Reply With Quote
Old 06-10-2010, 05:22 AM   #8
repods
Addict
repods is on a distinguished road
 
Posts: 225
Karma: 72
Join Date: Jan 2010
Device: irex DR-800S, M92S
Quote:
Originally Posted by luite View Post
- Do you think this is useful?
- What extension would you want to be associated with the modified browser? using .ZIP means of course that all .ZIP files will be opened by this program
- Any other feature requests or suggestions?
well the main use which I think of is with chm ebooks..
as you know those books can not be read by dr800 or dr1000, but they can easily converted in html pages, they are an html pages archive essentially, so this can be an use of your program..

btw why don't you try to do directly a chm reader ?
repods is offline   Reply With Quote
Old 06-10-2010, 07:59 AM   #9
ThR
Tatütatuter
ThR could sell banana peel slippers to a Deveel.ThR could sell banana peel slippers to a Deveel.ThR could sell banana peel slippers to a Deveel.ThR could sell banana peel slippers to a Deveel.ThR could sell banana peel slippers to a Deveel.ThR could sell banana peel slippers to a Deveel.ThR could sell banana peel slippers to a Deveel.ThR could sell banana peel slippers to a Deveel.ThR could sell banana peel slippers to a Deveel.ThR could sell banana peel slippers to a Deveel.ThR could sell banana peel slippers to a Deveel.
 
ThR's Avatar
 
Posts: 389
Karma: 3148
Join Date: Oct 2008
Location: Germany, Baden, Karlsruhe
Device: PRS-950, DR1000S (sold), HX4700
An other possibilty is to save the "website" or the "html-ebook" as mht-file, e.g. with http://maf.mozdev.org/
ThR is offline   Reply With Quote
Old 06-10-2010, 02:31 PM   #10
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
Quote:
Originally Posted by Gertjan View Post
Its always nice to have choices, but DR800 (1.0/2.0) and DR1000 (2.0) already support MHT (MHTML) web archives natively.
Ah, I have to admit that I didn't know that, but I was under the impression that MHT files are used for a single page, while I intend to use this for complete sites (for example Doxygen or Javadoc documentation, which often consist of hundreds of html files).
luite is offline   Reply With Quote
Old 06-10-2010, 02:47 PM   #11
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
Quote:
Originally Posted by repods View Post
btw why don't you try to do directly a chm reader ?
I have to admit that it was only a very small modification of the erbrowser code, zip was just the easiest format to support. CHM is a good suggestion, and could be done with chm lib ( http://www.jedrea.com/chmlib/ ), but I'm not sure how much work it is to properly support the table of contents an index features of CHM files.

Quote:
Originally Posted by ThR View Post
An other possibilty is to save the "website" or the "html-ebook" as mht-file, e.g. with http://maf.mozdev.org/
Thanks for the suggestion. MAFF seems to be a ZIP archive, and it seems very easy to add support (the directory structure is slightly different).
luite is offline   Reply With Quote
Old 06-12-2010, 11:01 AM   #12
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 711
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, in love with iRex DR800S. Also a K4NT. Now a Kobo Aura
Quote:
Originally Posted by luite View Post
I have to admit that it was only a very small modification of the erbrowser code, zip was just the easiest format to support. CHM is a good suggestion, and could be done with chm lib ( http://www.jedrea.com/chmlib/ ), but I'm not sure how much work it is to properly support the table of contents an index features of CHM files.
You can use FBReader to read .chm files. It works ok if the files are not too big.
Iņigo is offline   Reply With Quote
Old 06-12-2010, 12:34 PM   #13
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
Quote:
Originally Posted by Iņigo View Post
You can use FBReader to read .chm files. It works ok if the files are not too big.
Ok, I don't think CHM support will be necessary then.

And as promised, now that the 2.0 source code is available, here's a preview of the zip browser. It should work on both the DR800S(G) and DR1000, with the 2.0 firmware. Installing associates .web and .zip files with the program. Keep in mind that zipbrowser looks for a file called index.html or index.htm in the root directory of the zip file. You can zip complete websites with multiple html files, images and other resources.

MAFF/maf files are not supported yet, but I plan to add support in the future (it requires parsing some rdf files).

Installation:
- Enable "Folder based navigation" in Advanced Settings
- Connect your device via USB
- Extract the zip file to the root of your device
- Disconnect USB
- Go to SD Card / Programs / Install, click on AssociateZipbrowser.desktop
- Wait for the device to reboot
Attached Files
File Type: zip Zipbrowser-0.1-preview.zip (152.1 KB, 155 views)
luite is offline   Reply With Quote
Old 06-12-2010, 11:16 PM   #14
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
Oops, I found a bug. The installation script incorrectly associated the djvu file format with zipbrowser if you had installed the preview of the djvu plugin for the new firmware ( http://www.mobileread.com/forums/sho...t=73790&page=2 ) before you installed zipbrowser. If you experience this problem, just reinstall the djvu plugin.

Here's an updated zipbrowser that fixes this.
Attached Files
File Type: zip Zipbrowser-0.1-preview2.zip (152.1 KB, 176 views)
luite is offline   Reply With Quote
Old 06-14-2010, 11:25 AM   #15
jsway
Junior Member
jsway began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Apr 2010
Device: dr1000s
Smile Thanks.

Quote:
Originally Posted by luite View Post
Oops, I found a bug. The installation script incorrectly associated the djvu file format with zipbrowser if you had installed the preview of the djvu plugin for the new firmware ( http://www.mobileread.com/forums/sho...t=73790&page=2 ) before you installed zipbrowser. If you experience this problem, just reinstall the djvu plugin.

Here's an updated zipbrowser that fixes this.
I just downloaded it. Thanks a lot!
jsway is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DR800 ANN: DR800+. Port of some DR1000 features to the DR800 Iņigo iRex 274 04-05-2013 02:24 PM
pulling an entire website into Calibre and generate an epub file using news function? N13L5 Calibre 2 10-06-2010 09:00 PM
Complex HTML archive (ZIP), how to convert Mixx Calibre 10 09-28-2010 12:29 PM
epub file website downloads stunev ePub 3 07-23-2010 12:44 PM
iRex DR1000 Software Development website vwinstead iRex 23 02-04-2009 12:21 PM


All times are GMT -4. The time now is 08:04 AM.


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