[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 304562] Viewing djvu files inside rekonq [with solution]
From:       Leon Bottou <leon () bottou ! org>
Date:       2012-08-12 18:27:27
Message-ID: bug-304562-17878-rdfwZ3q3sv () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=304562

--- Comment #5 from Leon Bottou <leon@bottou.org> ---
Hello Andrea,

Attachment 73123 illustrates how okularpart appears inside rekonq when viewing
a djvu file under kubuntu 12.04. It is not very eventful, as you can see. Note
that the okular part is displayed correctly as soon as you resize the rekonq
window. But where are the menus?  How do I select text in the djvu document? 
Even when it works, the functionality is incomplete.

Also, viewing djvu files inside a browser is expected to obey various
pseudo-cgi options to control what is shown. For instance, clicking on 
<http://leon.bottou.org/publications/djvu/jmlr-2011.djvu?djvuopts&page=4&zoom=133>
is expected to show page 4 with a 133% zoom factor. There are quite a lot of
these options (see http://djvu.sourceforge.net/doc/man/djview4.html). The most
important is certainly the "page=xxxx" option. Many sites do not work right
without this.

Also there are djvu documents that do not come as a single file but as a
collection of files that are loaded on demand by the djvu viewer. This allows
random access in large documents.Attachment 73123 shows how okularpart looks
like when you click on
<http://leon.bottou.org/cgi/djvuserve/publications/djvu/jmlr-2011.djvu/index.djvu>,
after suitably resizing the window to get out of the "black" state.

Please do not misread me. Okular is fine as a standalone app to view djvu files
stored on your hard disk.  But it does not implement all the things that DjVu
does to help viewing documents online (the above, plus progressive rendering,
caching and prefetching.) 

But even there, I would say that okular is a reasonable default when the djview
plugin is not installed. But what is an unsuspecting user to do when
encountering one of these sites?  We cannot even tell the user to install the
djvu plugin because the part takes precedence over the plugins.  You'd think it
is enough to raise the position of the "Netscape Plugin" line in the file
association tab.  But no, this increases the priority of the nsviewpluginpart
that comes with konqueror and does not work well in rekonq either (it works
inside konqueror.)

It took me a couple hours to realize that the plugin support of rekonq is
working very well, and that the only problem was to make sure it would not
attempt to load a part when I want the plugin. I wanted to draw the attention
of the rekonq people about this simple fact.

Thanks.

 - L.

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic