11-15-2009, 11:44 AM | #1 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
DjVu viewer with full zoom and panning around the page
I have written a DjVu viewer for Hanlin V3 (aka "BeBook 1" or "Pixelar" or "Lbook V3" depending on where you live). I called it libdjvu to match the name of the plugin "libdjvu.so". It is written in C and uses GPL'd djvulibre library.
The main features are: arbitrary level zoom (down to microscopic level, so you can examine individual dust specks present while the book was scanned and panning the view window around the page. Note that this means that not only all scanned books (literally _millions_ of them!) are now available for reading on Hanlin V3 but also any "nasty" PDF (i.e. those which can't be handled by Adobe reader properly) can be very easily converted to DjVu (via pdftoppm, cjb2 and djvm) and handled by this viewer. The source code (GPL) and both the arm and i386 binaries are here: http://www.bibles.org.uk/libdjvu-1.1.tar.gz but most of you are probably more interested in a ready-made firmware image containing it. So here it is as well (based on the latest lbook one but you can easily set the language to English if you don't like Russian as default): http://www.bibles.org.uk/hanlin-v3-firmware.zip To use it just open any .djvu file as usual and use the following keys: ZOOM IN/OUT: Volume '+'/'-' keys There are menu options for increasing/decreasing the zoom step. ZOOM RESET TO DEFAULT (i.e. FIT WIDTH): Long press volume '+' key PAN AROUND THE PAGE: Next/Prev buttons (on the left side) for vertical and long presses of these for horizontal movement. There are menu options for increasing/decreasing the horizontal and vertical movement steps. ROTATE: Long press 'OK' to toggle between Landscape and Portrait modes. Note that rotating resets the zoom level to default zoom state. TOGGLE BETWEEN COLOUR AND B&W MODES: Long press volume '-' key. (colour mode is important for many Google Books and archive.org djvu files because they sometimes split the text between different layers. I personally always convert important stuff to pure bitonal format but not everyone is willing to spend time or knows how to do it, so I implemented this toggle). Try "About..." menu option to see various bits of info, current zoom level, step values, current rendering mode etc. Comments, bugreports etc etc => tigran@bibles.org.uk. Last edited by tigran; 11-15-2009 at 11:46 AM. |
11-15-2009, 11:37 PM | #2 |
Researcher and Consultant
Posts: 210
Karma: 364
Join Date: Nov 2008
Location: Bangkok, THAILAND
Device: MACBOOKPRO17" HP2400TX SONYUX27
|
Very nice library...
I will try it. |
Advert | |
|
11-16-2009, 03:29 PM | #3 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
I fixed a couple of bugs pointed out by folks at the-ebook.org and uploaded the current stable version to the following location:
http://www.bibles.org.uk/libdjvu Note that I have now started adding some advanced features and optimizations so it will be a long while (more than two days before I make the next version available, i.e. call it "stable". Last edited by tigran; 11-17-2009 at 04:22 PM. |
11-18-2009, 09:58 AM | #4 |
Member
Posts: 10
Karma: 10
Join Date: Oct 2009
Location: Madrid, Spain
Device: Hanlin V3
|
I find your work very interesting and useful. Have you thought of integrating it with OpenInkpot? That would be a good marriage.
|
11-18-2009, 10:38 AM | #5 |
Wizard
Posts: 2,045
Karma: 13579113
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
|
|
Advert | |
|
11-19-2009, 09:52 AM | #6 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
Thank you, I will consider it. But first I need to complete the current version and make sure it is as efficient and stable as possible.
|
11-19-2009, 10:52 PM | #7 |
Member
Posts: 24
Karma: 10
Join Date: Aug 2009
Device: none
|
|
11-21-2009, 08:00 AM | #8 |
Member
Posts: 17
Karma: 14
Join Date: Nov 2007
Device: HANLIN V3
|
djvu
This might be the best news for people likeme who have lots of badly scanned pdf books and would like to use hanlin to read them , if only they knew how.
|
11-23-2009, 05:29 AM | #9 |
Member
Posts: 10
Karma: 10
Join Date: Oct 2009
Location: Madrid, Spain
Device: Hanlin V3
|
Tigran, I wonder what firmware version from which manufacturer have you used in the integrated version you have for download. And related to it, I'd like to know if it would be difficult to integrate the library with newer firmwares. If I were to do it myself with my preferred firmware, would I have to recompile the firmware? How would I do it?
|
11-23-2009, 02:20 PM | #10 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
I have just released the final stable version 1.3 of libdjvu:
http://www.bibles.org.uk/libdjvu/ As for the base firmware --- I used the latest lbook.ua one plus I made some modifications to speed up startup, speed up update (removed unused programs, e.g. screen calibration is not needed for Hanlin V3 which has no touchscreen), fixed some spelling/grammar errors in both English and Russia menus etc etc. If you want to use libdjvu.so in another firmware you have to copy arm-lib/libdjvu.so to wherever the libraries are stored in your version. In mine it is in /usr/lib of rootfs cramfs image. Also, to be on the safe side, copy the libdjvulibre* files (and symlinks) from my image as these I compiled myself and tested whereas some others may or may not work with my libdjvu.so. Last edited by tigran; 11-23-2009 at 02:23 PM. |
11-30-2009, 08:21 AM | #11 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
I released the version 1.6 which has Spanish localization plus some more optimizations and an extra feature (you have to turn it on via menu option) to show previous window position via horizontal line --- this helps the eye to quickly locate the next line to read when panning the window vertically.
|
11-30-2009, 09:31 AM | #12 |
Member
Posts: 10
Karma: 10
Join Date: Oct 2009
Location: Madrid, Spain
Device: Hanlin V3
|
Wow, I'd just downloaded v1.5 a couple of hours ago! Keep up the good work!
|
12-05-2009, 02:37 PM | #13 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
|
12-06-2009, 06:22 PM | #14 |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2009
Device: Hanlin V3
|
Is it possible to have your viewer as separate thing running from SD card, instead of reflashing the device?
|
12-07-2009, 10:17 AM | #15 | |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
Quote:
Today I have released libdjvu 1.8 which has support for multicolumn mode of window movements. This is useful for reading books typeset in two (or more) columns, e.g. encyclopedias. |
|
|
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 |
iLiad DJVU Viewer in Java on the iLiad | scotty1024 | iRex Developer's Corner | 61 | 07-14-2010 10:36 PM |
iLiad has a djvu viewer for Chinese fiimware ? | laozhang | iRex Developer's Corner | 0 | 04-26-2010 08:56 PM |
Full-Screen Panning Picture bug on Kindle 2 | forkyfork | Amazon Kindle | 5 | 05-21-2009 04:27 PM |
iLiad DJVU viewer? | riccioberto | iRex Developer's Corner | 5 | 01-06-2008 10:23 AM |