Variables in the index URL field

Issue #246 closed
jsbien created an issue

I would be happy to use something like "$tom1" instead of e.g.

http://korpusy.klf.uw.edu.pl/djvus/linde-t/01/index.djvu

This would allow easily switch between a remote site and a local copy etc.

Comments (11)

  1. Michał Rudolf repo owner

    How should it work? What will be the source of variations and where they will be used? Is this for index URL? Or what?

  2. jsbien reporter

    Yes, it's for index URK. The idea is that the master index whould not have the full address, but something like $tom1/index.djvu?djvuopts&page=131&zoom=width&showposition=0.649,0.721&highlight=3000,1747,183,76.

    By default it should be expanded to https://djvu.szukajwslownikach.uw.edu.pl/linde-t/01/index.djvu?djvuopts&page=131&zoom=width&showposition=0.649,0.721&highlight=3000,1747,183,76, but the user should be allowed to overwrite the default and get something like file:///usr/share/Linde/Linde2wyd/01/index.djvu?djvuopts&page=131&zoom=width&showposition=0.649,0.721&highlight=3000,1747,183,76.

  3. Michał Rudolf repo owner

    Tested on

    http://poliqarp.wbl.klf.uw.edu.pl/extra/linde=http://djvu.szukajwslownikach.uw.edu.pl/linde
    
  4. jsbien reporter
    • changed status to open
    http://korpusy.klf.uw.edu.pl/djvus/linde-t/01/=file:///home/jsbien/cachedLinde/1/
    

    gives

    QDjVuDocument::setUrl: cannot create
    QDjVuDocument::setFileName: cannot read file
    
  5. Log in to comment