Menu

#319 Obsolete section in the README file

djview
closed
nobody
None
5
2020-09-20
2020-06-02
Janusz
No
I mean "1.2 - USING DJVIEW4 AS A PLUGIN". Perhaps it coud be replaced by an explanation, why there is no djview4-based extension to the present day browsers. I am not aware of any explanation, although "Viewer Extension for Google Chrome" (https://www.cuminas.jp/en/products/google-chrome-extension) shows that this is at least theoretically possible,

BTW, my confusion which resulted in #318 was caused by an attempt to circumvent the problem by pasting into djview4 the URL provided by our server.

Related

Bugs: #319

Discussion

  • Leon Bottou

    Leon Bottou - 2020-06-02

    You're right.

    README

    1.2 - USING DJVIEW4 AS A PLUGIN
    -------------------------------
    
    WARNING: USING DJVIEW AS A PLUGIN IN 2020 IS VERY DIFFICULT BECAUSE POPULAR BROWSERS EITHER DO NOT SUPPORT NETSCAPE PLUGINS (CHROME), OR REMOVED SUPPORT FOR NETSCAPE PLUGINS OTHER THAN FLASH (FIREFOX). We regret this decision because djview/nsdejavu is a perfect example of very well behaved plugin that would have been easy to support.
    

    man nsdejavu

    NSDEJAVU(1)
    
    NAME
           nsdejavu - DjVu browser plugin
    
    SYNOPSIS
           /usr/lib/mozilla/plugins/nsdejavu.so
    
    CURRENT BROWSER SUPPORT
           Using  nsdejavu  as  a plugin in 2020 is very difficult because popular browsers either do not support netscape plugins  (chrome),  or removed support  for  netscape  plugins  other than flash (firefox). We regret this decision because djview/nsdejavu is a perfect example of very well behaved  plugin  that  used to work reliably with a variety of browsers and would have been easy to support.
    
    DESCRIPTION
           The shared library nsdejavu.so uses the Netscape browser plugin API to ...
    
     
  • Leon Bottou

    Leon Bottou - 2020-06-02
    • status: open --> closed
     
  • Leon Bottou

    Leon Bottou - 2020-06-02

    To investigate: maybe your sever should not percent-escape the cgi argument question mark ?

     
  • Janusz

    Janusz - 2020-06-03

    Thanks for the suggestion, but the server is practically orphaned. After a routine system upgrade of the server our djview4poliqarp, which is also practically orphaned, stopped working, and pasting URLs to djview seems the only way.
    I still don't understand why there is no DjVu viewer compatible with "Browser Extensions API" (I guess this is the correct name). Nobody needs it except me??? Would it be difficult to program? What qualification should the programmer have? How time-cosuming it can be? I can try looking for volunteers among Computer Science students, but need to know more about the task. I can also try to look for a grant which would be willing to pay for it, but again I need a cost estimation.

     
  • Janusz

    Janusz - 2020-06-03

    Or is there still a browser (for Linux at least) still supporting NSAPI?

     
    • Leon Bottou

      Leon Bottou - 2020-06-03

      Besides a couple specialty browsers, you can use the gnome browser
      (gnome web, or epiphany-browser).

      On 6/3/20 1:52 AM, Janusz wrote:

      Or is there still a browser (for Linux at least) still supporting NSAPI?


      [bugs:#319] https://sourceforge.net/p/djvu/bugs/319/ Obsolete
      section in the README file

      Status: closed
      Group: djview
      Created: Tue Jun 02, 2020 05:18 AM UTC by Janusz
      Last Updated: Wed Jun 03, 2020 05:51 AM UTC
      Owner: nobody

      I mean "1.2 - USING DJVIEW4 AS A PLUGIN".Perhaps it coud be replaced by an explanation,why there is no djview4-based extension to the present day browsers.I am not aware of any explanation,although "Viewer Extension for Google Chrome" (https://www.cuminas.jp/en/products/google-chrome-extension) shows that this is at least theoretically possible,

      BTW, my confusion which resulted in #318 was caused by an attempt to
      circumvent the problem by pasting into djview4 the URL provided by our
      server
      https://ispan.waw.pl/journals/index.php/cs-ec/article/view/cs.2014.008.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/djvu/bugs/319/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #319

  • Janusz

    Janusz - 2020-06-03

    Looks like at least on Debian there is quite a mess.
    1. Although various sources claim gnome web is a default browser for Gnome, on a fresh install of Debian buster I had to install it by hand.
    2. The djview-plugin package install iceweasel as a dependency. However when I start iceweasel I get just Firefox.
    3. Last but not least, despite installing djview-plugin, epiphany-browser behaves just as Firefox, i.e. downloads the index file instead of opening it with djview.

     
    • Leon Bottou

      Leon Bottou - 2020-06-04

      I am using Ubuntu 18.04 here, and epiphany-browser works quite well with
      nsdejavu (including indexed djvu documents).

      I notice geometry issue with the <embed> tag, that I will try to solve.

      • Leon

      On 6/3/20 10:12 AM, Janusz wrote:

      Looks like at least on Debian there is quite a mess.
      1. Although various sources claim gnome web is a default browser for
      Gnome, on a fresh install of Debian buster I had to install it by hand.
      2. The djview-plugin package install iceweasel as a dependency.
      However when I start iceweasel I get just Firefox.
      3. Last but not least, despite installing djview-plugin,
      epiphany-browser behaves just as Firefox, i.e. downloads the index
      file instead of opening it with djview.


      [bugs:#319] https://sourceforge.net/p/djvu/bugs/319/ Obsolete
      section in the README file

      Status: closed
      Group: djview
      Created: Tue Jun 02, 2020 05:18 AM UTC by Janusz
      Last Updated: Wed Jun 03, 2020 05:52 AM UTC
      Owner: nobody

      I mean "1.2 - USING DJVIEW4 AS A PLUGIN".Perhaps it coud be replaced by an explanation,why there is no djview4-based extension to the present day browsers.I am not aware of any explanation,although "Viewer Extension for Google Chrome" (https://www.cuminas.jp/en/products/google-chrome-extension) shows that this is at least theoretically possible,

      BTW, my confusion which resulted in #318 was caused by an attempt to
      circumvent the problem by pasting into djview4 the URL provided by our
      server
      https://ispan.waw.pl/journals/index.php/cs-ec/article/view/cs.2014.008.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/djvu/bugs/319/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #319

      • Leon Bottou

        Leon Bottou - 2020-06-04

        Try url  "about:plugins" in epiphany to get the list of recognized plugins.

        Sometimes the evince plugin that competes for djvu documents.

        About modern web extensions. They're all javascript. We tried compiling
        djvu to javascript but the performance is horrible.

        • L

        On 6/3/20 8:23 PM, Leon Bottou wrote:

        I am using Ubuntu 18.04 here, and epiphany-browser works quite well with
        nsdejavu (including indexed djvu documents).

        I notice geometry issue with the <embed> tag, that I will try to solve.

        • Leon

        On 6/3/20 10:12 AM, Janusz wrote:

        Looks like at least on Debian there is quite a mess.
        1. Although various sources claim gnome web is a default browser for
        Gnome, on a fresh install of Debian buster I had to install it by
        hand.
        2. The djview-plugin package install iceweasel as a dependency.
        However when I start iceweasel I get just Firefox.
        3. Last but not least, despite installing djview-plugin,
        epiphany-browser behaves just as Firefox, i.e. downloads the index
        file instead of opening it with djview.
        
        ------------------------------------------------------------------------
        
        /[bugs:#319] <https://sourceforge.net/p/djvu/bugs/319/>
        https://sourceforge.net/p/djvu/bugs/319/ Obsolete
        section in the README file/
        
        /Status:/ closed
        /Group:/ djview
        /Created:/ Tue Jun 02, 2020 05:18 AM UTC by Janusz
        /Last Updated:/ Wed Jun 03, 2020 05:52 AM UTC
        /Owner:/ nobody
        
        I mean "1.2 - USING DJVIEW4 AS A PLUGIN".Perhaps it coud be
        replaced by an explanation,why there is no djview4-based extension
        to the present day browsers.I am not aware of any
        explanation,although "Viewer Extension for Google Chrome"
        (https://www.cuminas.jp/en/products/google-chrome-extension) shows
        that this is at least theoretically possible,
        
        BTW, my confusion which resulted in #318 was caused by an attempt to
        circumvent the problem by pasting into djview4 the URL provided by
        our
        server
        https://ispan.waw.pl/journals/index.php/cs-ec/article/view/cs.2014.008.
        
        ------------------------------------------------------------------------
        
        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/djvu/bugs/319/
        
        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/
        

        [bugs:#319] https://sourceforge.net/p/djvu/bugs/319/ Obsolete
        section in the README file

        Status: closed
        Group: djview
        Created: Tue Jun 02, 2020 05:18 AM UTC by Janusz
        Last Updated: Wed Jun 03, 2020 02:12 PM UTC
        Owner: nobody

        I mean "1.2 - USING DJVIEW4 AS A PLUGIN".Perhaps it coud be replaced by an explanation,why there is no djview4-based extension to the present day browsers.I am not aware of any explanation,although "Viewer Extension for Google Chrome" (https://www.cuminas.jp/en/products/google-chrome-extension) shows that this is at least theoretically possible,

        BTW, my confusion which resulted in #318 was caused by an attempt to
        circumvent the problem by pasting into djview4 the URL provided by our
        server
        https://ispan.waw.pl/journals/index.php/cs-ec/article/view/cs.2014.008.


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/djvu/bugs/319/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #319

      • Janusz

        Janusz - 2020-06-04

        On Thu, Jun 04 2020 at 0:23 +00, Leon Bottou wrote:

        I am using Ubuntu 18.04 here, and epiphany-browser works quite well with
        nsdejavu (including indexed djvu documents).

        That's a good news but see below.

        [...]

        On Thu, Jun 04 2020 at 0:36 +00, Leon Bottou wrote:

        Try url "about:plugins" in epiphany to get the list of recognized plugins.

        Sometimes the evince plugin that competes for djvu documents.

        I've created VBox virtual machines with Ubuntu 18.04 and 19.10. In both
        of them the plugin is not recognized by epiphany-browser ("about:plugins"
        produces an empty window, the index file is downloaded, not opened).

        What do you suggest?

        About modern web extensions. They're all javascript. We tried compiling
        djvu to javascript but the performance is horrible.

        I have some additional questions, but I will return to them later.

        JSB

         
        • Leon Bottou

          Leon Bottou - 2020-06-04

          See https://mail.gnome.org/archives/epiphany-list/2018-March/msg00002.html

          This one is gone too...

          • Leon

          On 6/4/20 5:15 AM, Janusz wrote:

          On Thu, Jun 04 2020 at 0:23 +00, Leon Bottou wrote:

          I am using Ubuntu 18.04 here, and epiphany-browser works quite
          well with
          nsdejavu (including indexed djvu documents).
          

          That's a good news but see below.

          [...]

          On Thu, Jun 04 2020 at 0:36 +00, Leon Bottou wrote:

          Try url "about:plugins" in epiphany to get the list of recognized
          plugins.
          
          Sometimes the evince plugin that competes for djvu documents.
          

          I've created VBox virtual machines with Ubuntu 18.04 and 19.10. In both
          of them the plugin is not recognized by epiphany-browser ("about:plugins"
          produces an empty window, the index file is downloaded, not opened).

          What do you suggest?

          About modern web extensions. They're all javascript. We tried
          compiling
          djvu to javascript but the performance is horrible.
          

          I have some additional questions, but I will return to them later.

          JSB


          [bugs:#319] https://sourceforge.net/p/djvu/bugs/319/ Obsolete
          section in the README file

          Status: closed
          Group: djview
          Created: Tue Jun 02, 2020 05:18 AM UTC by Janusz
          Last Updated: Wed Jun 03, 2020 02:12 PM UTC
          Owner: nobody

          I mean "1.2 - USING DJVIEW4 AS A PLUGIN".Perhaps it coud be replaced by an explanation,why there is no djview4-based extension to the present day browsers.I am not aware of any explanation,although "Viewer Extension for Google Chrome" (https://www.cuminas.jp/en/products/google-chrome-extension) shows that this is at least theoretically possible,

          BTW, my confusion which resulted in #318 was caused by an attempt to
          circumvent the problem by pasting into djview4 the URL provided by our
          server
          https://ispan.waw.pl/journals/index.php/cs-ec/article/view/cs.2014.008.


          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/djvu/bugs/319/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/

           

          Related

          Bugs: #319

          • Janusz

            Janusz - 2020-06-04

            On Thu, Jun 04 2020 at 11:33 +00, Leon Bottou wrote:

            See https://mail.gnome.org/archives/epiphany-list/2018-March/msg00002.html

            This one is gone too...

            Are you aware of any other?

            [...]

            About modern web extensions. They're all javascript. We tried
            compiling djvu to javascript but the performance is horrible.

            I have some additional questions, but I will return to them later.

            Cuminas' DjVu Viewer Extension for Google Chrome is/was also Javascript? It
            doesn't seems to work now but it's interesting as a possible proof of
            feasibility.

            Tools like https://webassembly.org/ are in any way relevant to the
            problem?

            Last but not least:

            I don't care about opening a DjVu document in a browser windows. I want
            to have it open in djview.

            I think the problem can be solved in many ways. For example, a
            javascript extension can put the address of the index file to the
            clipboard and a simple extension to djview can make it open the document
            taking the address directly from the clipboard.

            A more sophisticated approach is an extension which starts a new
            instance of djview with an appropriate address as the argument. Would
            such extension be considered the brach of security by the present day
            standards?

            --
            ,
            Janusz S. Bien
            emeryt (emeritus)
            https://sites.google.com/view/jsbien

             
            • Leon Bottou

              Leon Bottou - 2020-06-04

              The wikipedia page https://en.wikipedia.org/wiki/NPAPI has a list.

              Also, in epiphany, the removal is very superficial. They no longer pass
              the flag to webkit and they no longer do plenty of crufty things for
              serving specific plugins such as the gnome-evince plugins.  The most
              likely to work is waterfox, which is basically a frozen firefox. I had
              no success with konqueror5.

              • Leon

              On 6/4/20 8:20 AM, Janusz S. Bień wrote:

              On Thu, Jun 04 2020 at 11:33 +00, Leon Bottou wrote:

              See https://mail.gnome.org/archives/epiphany-list/2018-March/msg00002.html

              This one is gone too...
              Are you aware of any other?

              [...]

              About modern web extensions. They're all javascript. We tried
              compiling djvu to javascript but the performance is horrible.

              I have some additional questions, but I will return to them later.
              Cuminas' DjVu Viewer Extension for Google Chrome is/was also Javascript? It
              doesn't seems to work now but it's interesting as a possible proof of
              feasibility.

              Tools like https://webassembly.org/ are in any way relevant to the
              problem?

              Last but not least:

              I don't care about opening a DjVu document in a browser windows. I want
              to have it open in djview.

              I think the problem can be solved in many ways. For example, a
              javascript extension can put the address of the index file to the
              clipboard and a simple extension to djview can make it open the document
              taking the address directly from the clipboard.

              A more sophisticated approach is an extension which starts a new
              instance of djview with an appropriate address as the argument. Would
              such extension be considered the brach of security by the present day
              standards?

               
              • Janusz

                Janusz - 2020-06-04

                On Thu, Jun 04 2020 at 12:33 +00, Leon Bottou wrote:

                [...]

                The most likely to work is waterfox, which is basically a frozen
                firefox. I had no success with konqueror5.

                I've downloaded waterfox, but I'm confused how to configure it.

                If you have success with it, please describe the procedure e.g. in
                README.

                 
  • Janusz

    Janusz - 2020-07-21

    You said "We tried compiling djvu to javascript but the performance is horrible." I vaguely remember the saying (probably from "Psychology of prograaming") that every working program is faster than a non-working one. I would like to add that it is also faster from a non-exiting one. I understand the preformance was unacceptable in comparison with the NSAPI plugin but perhaps it is sufficient to download an unbudled document, which now for many users is prohibitively difficult?

     
    • Leon Bottou

      Leon Bottou - 2020-07-21

      I was looking for the person who recompiled libdjvu with emscripten and found a new one: https://djvu.js.org/

      This one is still a bit sluggish, but much better overall…

      Leon

      From: Janusz jsbien@users.sourceforge.net
      Reply-To: "[djvu:bugs]" 319@bugs.djvu.p.re.sourceforge.net
      Date: Tuesday, July 21, 2020 at 11:20 AM
      To: "[djvu:bugs]" 319@bugs.djvu.p.re.sourceforge.net
      Subject: [djvu:bugs] #319 Obsolete section in the README file

      You said "We tried compiling djvu to javascript but the performance is horrible." I vaguely remember the saying (probably from "Psychology of prograaming") that every working program is faster than a non-working one. I would like to add that it is also faster from a non-exiting one. I understand the preformance was unacceptable in comparison with the NSAPI plugin but perhaps it is sufficient to download an unbudled document, which now for many users is prohibitively difficult?

      [bugs:#319] Obsolete section in the README file

      Status: closed
      Group: djview
      Created: Tue Jun 02, 2020 05:18 AM UTC by Janusz
      Last Updated: Wed Jun 03, 2020 02:12 PM UTC
      Owner: nobody

      I mean "1.2 - USING DJVIEW4 AS A PLUGIN". Perhaps it coud be replaced by an explanation, why there is no djview4-based extension to the present day browsers. I am not aware of any explanation, although "Viewer Extension for Google Chrome" (https://www.cuminas.jp/en/products/google-chrome-extension) shows that this is at least theoretically possible,
      BTW, my confusion which resulted in #318 was caused by an attempt to circumvent the problem by pasting into djview4 the URL provided by our server.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/djvu/bugs/319/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #319

  • Janusz

    Janusz - 2020-07-21

    Thanks for the link! It's (yet?) unsuitable for our search engine (https://github.com/RussCoder/djvujs/issues/26) but it is a step forward. Still no easy way to download an ubundled documents like the dictionaries at https://djvu.szukajwslownikach.uw.edu.pl.

     

    Last edit: Janusz 2020-07-22
  • kjd

    kjd - 2020-09-20

    Just a comment that SumatraPDF (using similar djvu code) had an old npapi browser plugin which was last time tested against "last known man standing" Waterfox CLASSIC" 64bit cross platform browser worked with djvu most recently tesed on windows in 2020.05 portable see https://forum.sumatrapdfreader.org/t/browser-npapi-plugin-current-suggestions/1370

    https://www.waterfox.net/download/

    for 32bit the last known contender was Seamonkey Version 2.49.5 from 2019 (~= Firefox 52 ESR)

     

Log in to post a comment.