Discussion:
[zathura] Howto read ePub, and file-issue
r***@openmailbox.org
2016-10-06 19:27:48 UTC
Permalink
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
Leonardo Taccari
2016-10-08 12:54:53 UTC
Permalink
Hello!
Post by r***@openmailbox.org
[...]
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.
$ 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)
Post by r***@openmailbox.org
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
Matthew Parnell
2016-10-07 15:57:44 UTC
Permalink
https://git.pwmt.org/pwmt/zathura-epub.git
Post by r***@openmailbox.org
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.
$ 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
https://lists.pwmt.org/mailman/listinfo/zathura
Loading...