Re: [zathura] Howto read ePub, and file-issue

2016-10-22 Thread Matthew Parnell
https://git.pwmt.org/pwmt/zathura-epub.git

On Oct 7, 2016 11:52 AM,  wrote:

> Hi, two issues:
>
> 1) I'm trying to read .epub files with Zathura on Trisquel GNU/Linux [1]
> (100% Free/Libre distro endorsed by the FSF [2] and Ubuntu-based), but I'm
> not sure which would be the best way to do it.
>
> These are the available zathura packages from terminal:
>
> $ apt-cache search zathura
> zathura-cb - comic book archive support for zathura
> zathura-dev - development files for zathura plugins
> zathura-djvu - DjVu support for zathura
> zathura-ps - PostScript support for zathura
> zathura - Visor PDF con una interfaz minimalista
>
> Any tips?
>
> 2) I have a pdf that evince (another pdf reader) opens perfectly, but
> zathura fails to open. I'm adding it attached, but let me know if its
> preferable to send it in some other way (so someone can check if the
> problem is just mine or a file-zathura compatibility issue).
>
> Thanks a lot and best regards!
>
> [1] https://trisquel.info/
> [2] https://www.gnu.org/distros/free-distros.en.html
> ___
> zathura mailing list
> zathura@lists.pwmt.org
> https://lists.pwmt.org/mailman/listinfo/zathura
>
>
___
zathura mailing list
zathura@lists.pwmt.org
https://lists.pwmt.org/mailman/listinfo/zathura


Re: [zathura] Howto read ePub, and file-issue

2016-10-08 Thread Leonardo Taccari
Hello!

riveraval...@openmailbox.org writes:
> [...] 
> 1) I'm trying to read .epub files with Zathura on Trisquel GNU/Linux [1] 
> (100% Free/Libre distro endorsed by the FSF [2] and Ubuntu-based), but 
> I'm not sure which would be the best way to do it.
> 
> These are the available zathura packages from terminal:
> 
> $ apt-cache search zathura
> zathura-cb - comic book archive support for zathura
> zathura-dev - development files for zathura plugins
> zathura-djvu - DjVu support for zathura
> zathura-ps - PostScript support for zathura
> zathura - Visor PDF con una interfaz minimalista
> 
> Any tips?
>
According to that list it seems that `zathura' package in Trisquel
also include the PDF plugin (that uses Poppler). zathura-pdf-poppler
only supports PDF while zathura-pdf-mupdf (that uses MuPDF) supports
both PDF and ePub.
Probably zathura-pdf-mupdf at the moment is just not packaged for
Trisquel but should not be difficult to package it! (better to
contact zathura and/or mupdf maintainers of Trisquel regarding
that)

> 
> 2) I have a pdf that evince (another pdf reader) opens perfectly, but 
> zathura fails to open. I'm adding it attached, but let me know if its 
> preferable to send it in some other way (so someone can check if the 
> problem is just mine or a file-zathura compatibility issue).
> 
> Thanks a lot and best regards!
> 
This is because the PDF doesn't looks like a PDF to libmagic(3), i.e.:

 $ file --mime-type Humor\ e\ irreverencia\ \(Reinaldo\ Arenas,\ Encuentro\ 
No.\ 19,\ invierno\ 2000-2001\)\ \[inA©dito\].pdf
 Humor e irreverencia (Reinaldo Arenas, Encuentro No. 19, invierno 2000-2001) 
[inA©dito].pdf: application/octet-stream

...you can get rid of the first 128 bytes so it will look like a PDF:

 $ tail -c $(expr $(wc -c < Humor\ e\ irreverencia\ \(Reinaldo\ Arenas,\ 
Encuentro\ No.\ 19,\ invierno\ 2000-2001\)\ \[inA©dito\].pdf) - 128) Humor\ e\ 
irreverencia\ \(Reinaldo\ Arenas,\ Encuentro\ No.\ 19,\ invierno\ 2000-2001\)\ 
\[inA©dito\].pdf > humor-e-irreverencia-arenas.pdf
 $ file --mime-type humor-e-irreverencia-arenas.pdf
 humor-e-irreverencia-arenas.pdf: application/pdf
___
zathura mailing list
zathura@lists.pwmt.org
https://lists.pwmt.org/mailman/listinfo/zathura