Quote:
Originally Posted by luite
Hmm, that is a problem. I'll look into this, possibly the next update.
It is a problem on both the actual device and the emulator. Opening a djvu file results in an error message: "'filename.djvu' cannot be opened"
Looking at the debug output of the emulator, these are the relevant error messages:
(ERROR)uds_plugin_manager.cpp:150,get_plugin_path( ) No matched plugin for .djvu
com.mobipocket.common.library.reader.InvalidBookEx ception: Corrupted
at com.mobipocket.common.library.reader.BookItem.<ini t>(libuds-plugin-mobipocket.so)
(ERROR)../plugin_impl/reader_impl.cpp:2302,get_error_code() This book is corrupted.
(ERROR)uds_doc_manager.cpp:149,open_document() Error opening document for /media/mmcblk0p1/test.djvu
After the first error, the plugin is queried (through IPluginLibrary) to check whether the document is supported. Even though the plugin tells UDS that the file is supported if its extension is .djvu or .djv, it still queries the mobipocket plugin afterwards.
I'm not sure what goes wrong, as both UDS and the mobipocket plugin are closed source. Perhaps I didn't implement some interface correctly.
|
I'm not into debugging or programming at all but maybe the mobipocket plugin is queried because both ebook formats supported natively by UDS (.mobi
and .pdf) work with mobipocket dictionaries.
Maybe the mobipocket plugin returns "The book is corrupted error" because the dictionary function can't recognize the djvu format.