pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
1.88k stars 129 forks source link

Special characters in table of contents #364

Open sebastinas opened 1 year ago

sebastinas commented 1 year ago

On GitLab by @castilma on Dec 15, 2022, 12:40


I have a (latex-created) pdf with table of contents, and one entry contains an apostrophe. In zathuras TOC it is replaced by &apos;. I created a pdf with libreoffice, with a section name containing an apostrophe and ampersand. The apostrophe is this time shown correctly, but the ampersand is replaced by &amp;. The same with < and >.

Zathura should not replace these characters by their html escape sequences.

zathura_contents

zathuratest.odt

zathuratest.pdf

EDIT: I'm using version.

zathura 0.5.1
girara 0.3.7 (runtime: 0.3.7)
(plugin) cb (0.1.10) (/usr/lib/zathura/libcb.so)
(plugin) pdf-poppler (0.3.0) (/usr/lib/zathura/libpdf-poppler.so)
(plugin) djvu (0.2.9) (/usr/lib/zathura/libdjvu.so)
(plugin) ps (0.2.7) (/usr/lib/zathura/libps.so)
sebastinas commented 1 year ago

On GitLab by @valoq on Jan 1, 2023, 02:34


The test file shows the content correctly for me in both the poppler and mupdf backend (and looking the same in firefox with pdfjs)

Tested with: zathura 0.5.2 girara 0.3.8 zathura-pdf-mupdf 0.4.0 zathura-pdf-poppler 0.3.1

@castilma Could you tell us the output of zathura --version and perhaps test it with the current release? Thank you

sebastinas commented 1 year ago

On GitLab by @castilma on Jan 1, 2023, 18:35


Sorry I wasted your time. I added the version info.

It's the newest version artixlinux ships. I'll try to update again in the next days.

sebastinas commented 1 year ago

On GitLab by @vejkse on Mar 23, 2023, 13:31


I observe the same problem with Poppler:

zathura 0.5.2
girara 0.4.0 (runtime: 0.4.0)
(plugin) pdf-poppler (0.3.1) (/usr/lib/zathura/libpdf-poppler.so)
(plugin) cb (0.1.10) (/usr/lib/zathura/libcb.so)
(plugin) djvu (0.2.9) (/usr/lib/zathura/libdjvu.so)
(plugin) ps (0.2.7) (/usr/lib/zathura/libps.so)

but not with MuPDF:

zathura 0.5.2
girara 0.4.0 (runtime: 0.4.0)
(plugin) cb (0.1.10) (/usr/lib/zathura/libcb.so)
(plugin) djvu (0.2.9) (/usr/lib/zathura/libdjvu.so)
(plugin) pdf-mupdf (0.4.0) (/usr/lib/zathura/libpdf-mupdf.so)
(plugin) ps (0.2.7) (/usr/lib/zathura/libps.so)

This is not new, there is already an almost 4-year-old open issue for the Poppler plugin: #1. May be it reemerged now because people started using Poppler instead of MuPDF due to the issue with jumping from the outline to the end of the file? (I did…)