On Sun, 18 Oct 2020 21:10:41 +0100 "Barak A. Pearlmutter"
<ba...@pearlmutter.net> wrote:
> Good idea.
>
> There's a way to get some URLs sent to external programs, like magnet:
> links to transmission, or some files to evince. In Firefox it's
> Settings > General > Applications. Should be able to key off mime
> types I think, although I don't see djvu files there.
>
>
Yeah but you can add to that list from the ui. You have to write a
mozilla or chrome extension which is an art that requires a lot of study
(more than I have time for). In addition it would be good to start
djview with the URL before getting the data. This would allow djview to
handle all the communication with the server, which is useful for
indexed multipage documents. Djview already does that : just pass a URL
instead of a filename.
Alternatively you could even have djview decode the data and returns a
bitmap for mozilla/chrome to display. Essentially this means using a
small native server that decodes the data quickly, talking to this
server with websockets, and implementing the djvu plugin UI in javascript.
But first one has to spend a couple months learning all this extension
programming business and make it work across browsers...
- Leon