MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   iRex (https://www.mobileread.com/forums/forumdisplay.php?f=99)
-   -   DjVu Plugin for DR1000 - version 0.2 (https://www.mobileread.com/forums/showthread.php?t=73790)

luite 02-14-2010 03:02 AM

DjVu Plugin for DR1000 - version 0.2
 
1 Attachment(s)
This is version 0.2 of the djvu plugin for the DR1000. It allows you to open DjVu files ( http://djvu.org/ ) using the same interface as the other file formats supported by the DR1000. It supports zooming, scribbles, bookmarks, text search etc.

I have opened a new thread because this version contains some important changes over 0.1.x.

Note: Only firmware version 1.7.1 is supported. UDS contains a bug that causes the djvu plugin to be unable to load files when the mobipocket plugin is installed. The installer will overwrite uds with a patched version. Only uds from firmware 1.7.1 is overwritten. (If you try to use it on a different firmware, you'll have to remove /usr/lib/uds/libuds-plugin-mobipocket.so manually or you'll get an error when opening djvu files)

Installation:
- Download the attached zip file
- Extract to the root of your SD card, overwriting existing files
- Execute "/Home/Documents/Programs/Install/Install DjVu Plugin" on your reader
- Wait for the device to reboot
(If you have already installed version 0.1.x, you don't need to remove it. The installer automatically restores the backup files and the mobipocket plugin)

Removal:
- Execute "/Home/Documents/Programs/Install/Remove DjVu Plugin" on your reader. This removes the plugin itself, the djvu file associations, and copies the original uds back.

Changed since 0.1.1:
- updated installation scripts, will not overwrite schema's anymore
- text search
- lookup word in dictionary
- table of contents
- support for rotated pages
- two-page split: if you have a document that contains two pages per scanned image, rename your file so that the file name ends in 2pg.djvu . The plugin will now display the left and right pages separately
- lots of smaller bug fixes

The following things are not yet supported:
- table of content items that don't link to a page number (but a image name, or file name instead)
- hyperlinks within a file

Thanks to:
- Gertjan for helping with the uds issues
- Mackx for the new installation scripts

Please report any issues, suggestions or requests.

RobbieClarken 02-14-2010 05:54 AM

Thanks luite, it is working really well!

Now dictionary look-up has been incorporated, this is the ideal DjVu reader. :happy2:

Jumpn Jack Flash 02-14-2010 10:11 AM

Are you going to attempt to port it to 3.0 (DR800) or wait till the 3.0 DR1000 firmware comes out?

luite 02-14-2010 10:22 AM

Quote:

Originally Posted by Jumpn Jack Flash (Post 788592)
Are you going to attempt to port it to 3.0 (DR800) or wait till the 3.0 DR1000 firmware comes out?

I'm not sure if it's actually useful for the DR800 now, because of the missing zoom features.

If there is interest, I'll certainly try to port it. Porting seems easy enough, the interfaces have changed only a little. I don't have a DR800, so I can only test it in the emulator, unfortunately (donations are welcome though :p ).

owl123 02-14-2010 05:04 PM

Thanks!

tjdean256 02-15-2010 11:26 AM

luite,

Nice job on the plugin. I installed the 0.2 version and converted some problem PDFs with any2djvu and it works very well. Thanks for opening a new door for the device and, for that matter, for me: I had no experience with DJVU files until I tried the plugin. The any2djvu discovery helped too.

td

owl123 02-15-2010 12:30 PM

2-page split is a great feature. I was wondering if it was possible to implement it in the PDF plugin?

luite 02-15-2010 01:32 PM

Quote:

Originally Posted by owl123 (Post 790052)
2-page split is a great feature. I was wondering if it was possible to implement it in the PDF plugin?

In theory, yes, with the current PDF plugin, but it would require quite a few changes. The problem is that IREX will switch to the Adobe PDF viewer in the next firmware version, the source code for this plugin is not available (at least not in the 3.0 source code for the DR800, that already uses the Adobe viewer). It's still possible to compile the old PDF plugin for the new firmware though, but you'd have to change the file extension for the files that you want to view with the old plugin. I'm not sure if it would be worth the trouble.

I'm also not very happy with the way the two page split mode is implemented. It's not a big deal to rename a file, but I'd rather have a button for it in the popup menu (or a sub-menu, so that we can have multiple split modes for two and three column pages for example). But I don't think the plugins are supposed to add buttons to the popup menu directly.

owl123 02-15-2010 01:54 PM

Quote:

Originally Posted by luite (Post 790124)
I'm also not very happy with the way the two page split mode is implemented. It's not a big deal to rename a file, but I'd rather have a button for it in the popup menu (or a sub-menu, so that we can have multiple split modes for two and three column pages for example). But I don't think the plugins are supposed to add buttons to the popup menu directly.

I'm pretty sure that each file extension can have its own set of icons in the toolbar at the bottom of the screen. Maybe we could make a use of it?

Thanks again! :-)

luite 02-15-2010 02:09 PM

Quote:

Originally Posted by owl123 (Post 790163)
I'm pretty sure that each file extension can have its own set of icons in the toolbar at the bottom of the screen. Maybe we could make a use of it?

The problem is that all icons are provided by UDS (universal document shell, the viewer application that provides the user interface for the documents), the plugins just tell UDS what types of features the document supports (through a set of standard interfaces defined by irex), so UDS can decide whether to enable the 'Fonts' or 'Writing' buttons for example.

Other applications, like the file/directory browser (ctb, content browser) do have a different set of icons.

If you know a (good) way to actually add new icons from a plugin, please let me know how :)

luite 02-20-2010 04:21 PM

I've been trying a few things to get extra buttons for djvu documents in the popup menu (1 page / 2 page toggle for now, but I'd like to add a few more options, like brightness/contrast, dithering on/off, show background or not).

Apparently it is possible to add buttons from the plugin to the popup menu (using eripc calls), but the events are then handled by uds itself, which of course doesn't know anything about the new buttons ( (ERROR)uds_view_reading.cpp:798,handle_command_eve nt() Unhandled command event: 1 ), so I'm not sure if it's possible to do anything useful with them.

tjdean256 03-07-2010 11:43 AM

Luite,

I have been making regular use of the plugin, and its has been working well. I have converted pdf files that were originally produced as image files. They now open quickly and are text searchable to boot.

Thanks again.

td

luite 03-27-2010 01:37 PM

Good to see that you like my plugin tjdean256 :) I use it myself for scanned files and converted PDF files that originally displayed extremely slowly (complex PDF files with lots of images, and some pdf files with bitmap fonts).

I have finally had a little time to work on the plugin again. I now have a working version on the DR800 emulator, updated to the new UDS interfaces. It's not really done yet (no installer), and I still need to do a little more testing. Text search works, but no zooming obviously, as the DR800 currently lacks that functionality.

Haqqax 05-20-2010 06:13 PM

Is it possible to download the DR800 version of the djvu plugin somewhere?
Maybe you can also post the sources/compilation instructions?
I hope that iRex will add suport for djvu in the firmware.

luite 05-21-2010 09:52 AM

The DR800 plugin is not yet available for download. The problem is that it doesn't work on the new beta firmware, and I can't fix it until irex releases the source code. Since many people probably already run the beta firmware, and the old firmware doesn't support zoom, I want to wait for the final release of the firmware. This way, the same plugin can (hopefully) be used on the DR1000.

Unfortunately, this release seems to take longer than expected. I run the beta firmware on my DR1000, but I'm thinking of downgrading to 1.7.1 if it takes much longer.


All times are GMT -4. The time now is 04:09 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.