02-03-2010, 12:22 PM | #16 |
Addict
Posts: 234
Karma: 214
Join Date: Nov 2008
Device: Galaxy Note 3, Galaxy NotePro 12.2, InkBook
|
|
02-03-2010, 12:32 PM | #17 | |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
Maybe iRex can also publish the code for the PC companion application, and add a framework for merging annotations so new mergers could easily be added by the user community. |
|
Advert | |
|
02-03-2010, 01:32 PM | #18 | |
Connoisseur
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
|
Quote:
I don't do anything with those annotations at the moment, so unless djvulibre automatically renders the borders, this kind of annotations will not show up in the viewer. Does anyone know if any of the common djvu viewers for the pc show these annotations? Last edited by luite; 02-03-2010 at 01:36 PM. |
|
02-03-2010, 03:29 PM | #19 |
Zealot
Posts: 138
Karma: 70
Join Date: Jan 2009
Location: Louisiana
Device: irex dr1000s; Pocket edge
|
Mackx's port of Xournal to the DR1000 allows merging scribbles to PDF now.
td |
02-03-2010, 03:57 PM | #20 |
Connoisseur
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
|
I have tested a few viewers and found out that both WinDjView 1.0.3 and DjView 4.6 support line annotations. The UDS plugin does not show them (yet?).
If you want to experiment with annotations, try this: djvused myfile.djvu -e 'output-all' > annotations.dsed open annotations.dsed, if you have a hidden text layer, you will see things like: select 'pagename.djvu' ... set-txt ... . Choose your favourite page and add the following lines below the line "select 'pagename.djvu'": set-ant (maparea "" "" (line 400 400 800 800)) . now run: djvused myfile.djvu -f annotations.dsed -s and view your file in DjView 4.6 Last edited by luite; 02-03-2010 at 04:20 PM. Reason: oops, WinDjView does support line annotations |
Advert | |
|
02-03-2010, 05:33 PM | #21 | |
Addict
Posts: 234
Karma: 214
Join Date: Nov 2008
Device: Galaxy Note 3, Galaxy NotePro 12.2, InkBook
|
Quote:
Maybe the mobipocket plugin returns "The book is corrupted error" because the dictionary function can't recognize the djvu format. |
|
02-03-2010, 07:54 PM | #22 | |
Connoisseur
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
|
Quote:
I did some digging around in the uds executable (source code not available, unfortunately), and it seems to have a hardcoded map of extensions and plugins ( uds::PluginMgr::initialize_ext_table ). The method uds::PluginMgr::create_document first calls uds::PluginMgr::get_plugin_path to check this map for one of the hardcoded extensions. Unknown extensions are handled by loading all plugins and checking them to see if the format is supported. There may be something that goes wrong there. |
|
02-04-2010, 02:54 AM | #23 |
Addict
Posts: 234
Karma: 214
Join Date: Nov 2008
Device: Galaxy Note 3, Galaxy NotePro 12.2, InkBook
|
Is there a plugin for HTML or TXT that you could rename? Both of these formats aren't really usable with the native reader.
|
02-04-2010, 03:02 AM | #24 | |
ex-IRX developer
Posts: 158
Karma: 224
Join Date: Oct 2008
Device: Irex DR800S, DR1000S, iLiad
|
Quote:
You might be able to work around it by renaming the Mobipocket plugin so it is probed _after_ the DJVU plugin. In that case, opening Mobipocket files will take a bit longer as UDS has to check all plugins first. |
|
02-04-2010, 03:48 AM | #25 |
Connoisseur
Posts: 56
Karma: 22
Join Date: Oct 2008
Location: Würzburg, Germany
Device: iRex DR1000S
|
Since the scribbles are most likely stored in the same formalt as for PDF files, it should be really easy to use my PDF scribble merger for rendering them on a blank page. The rest is a matter of GhostScript, ImageMagick and djvulibre. This could be slow, but should be straightforward.
|
02-04-2010, 07:55 AM | #26 | |
Connoisseur
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
|
Quote:
|
|
02-04-2010, 08:34 AM | #27 |
Connoisseur
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
|
Ok, I have found something. If you change the first 'if(x)' to 'if(!x)' in the loop after the load_all_plugins call in uds::PluginMgr::create_document you can load all files (tested mobipocket, pdf, djvu) correctly. (I don't have the source code, so it might look a little different of course )
I'm not sure if this is the real problem or that it's just a coincidence that this change just makes it work. Last edited by luite; 02-04-2010 at 08:40 AM. |
02-05-2010, 04:55 PM | #28 |
Connoisseur
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
|
I have tested the plugin for a few more days on my reader and haven't encountered any problems. I'd like to make a 0.2.0 update with a new installation method (no more schema overwriting) and that doesn't require removal of mobipocket support, but I need to know a few things for that. I hope someone (from irex?) can answer them:
- Is the fix I found for UDS 'correct' (see previous post, it's about uds in firmware version 1.7.1)? Or is there a better way to make it work? - I noticed that the virtual machine does not load the content browser when uds is removed. If something goes wrong overwriting uds or other system files, is there still a way for end users to recover their firmware, without sending in the device? after the basics are in place, the plugin could be improved/extended: - support for table of contents, hyperlinks, text search - better image rendering (libdjvulibre does a very simple bilinear resample to rescale the high resolution bitonal (black/white) images to a relatively low resolution screen size grayscale image, which makes the images slighly blurry. this could be improved, but obviously shouldn't take too much time. does anyone know a suitable algorithm that preserve edge sharpness but don't destroy readability of small characters?) any other requests/suggestions? |
02-06-2010, 05:49 AM | #29 | ||
ex-IRX developer
Posts: 158
Karma: 224
Join Date: Oct 2008
Device: Irex DR800S, DR1000S, iLiad
|
Quote:
Quote:
|
||
02-06-2010, 07:43 AM | #30 | ||
Connoisseur
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
|
Thanks for the reply
Quote:
Quote:
By the way, I saw that the DR800's plugin interfaces have been (slightly) changed, will the new DR1000 firmware also use the new interfaces? |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DjVu Plugin for DR1000 - version 0.2 | luite | iRex | 30 | 10-18-2010 03:49 PM |
Beta testers wanted | mtravellerh | PocketBook | 47 | 09-15-2010 04:22 PM |
Wanted: DjVu Plugin for DR800 | martienne | iRex | 14 | 06-07-2010 05:57 PM |
Beta testers wanted: MobileRead goes Unicode | Alexander Turcic | Announcements | 0 | 08-12-2009 10:28 AM |