vedang / pdf-tools

Emacs support library for PDF files.
https://pdftools.wiki
GNU General Public License v3.0
590 stars 83 forks source link

text selection is incorrect when close to some math symbols #237

Open Rehan-MALAK opened 10 months ago

Rehan-MALAK commented 10 months ago

Describe the bug

text selection is incorrect when close to some math symbols

Steps to Reproduce the behaviour

  1. Download https://webusers.imj-prg.fr/~pierre.schapira/LectNotes/CatShv.pdf
  2. Go to page 31
  3. Impossible to select the word "coproduct" in the Definition 2.1.1 ii) when the mouse is over the word 'coproduct' (it is possible by selecting on the next line, on the 'or' word)

pdfview

What is the expected behaviour?

  1. open https://webusers.imj-prg.fr/~pierre.schapira/LectNotes/CatShv.pdf- directly in Firefox or Okular
  2. Go to page 31
  3. select the word "coproduct" in the Definition 2.1.1 ii)

Firefox :

firefox

Okular :

okular

Note that Evince is also not nice :

evince

Desktop

Your pdf-tools install

Additional context

Screenshots taken with

emacs -Q and then in Eval minibuffer

(require 'package)
(package-initialize)
(use-package pdf-tools)
(pdf-loader-install)
aikrahguzar commented 10 months ago

This looks like an issue with poppler since evince is also affected.

Rehan-MALAK commented 10 months ago

Thanks @aikrahguzar

I adapted the issue description and forwarded it to https://gitlab.freedesktop.org/poppler/poppler/-/issues/1435

Rehan-MALAK commented 9 months ago

More precisely, it could be an issue with poppler-glib since okular is not affected and the poppler-glib-demo is.