sioyek-python-extensions icon indicating copy to clipboard operation
sioyek-python-extensions copied to clipboard

[Bug] _embed_annotations

Open Elaws opened this issue 3 years ago • 5 comments

Bug description

When using _embed_annotations command, Sioyek embeds more than what was previously highlighted, or embeds improperly.

Steps to reproduce

Bug example 1 :

  1. In tutorial.pdf, highlight the word "Use" line 3 (in "Use the arrow keys for navigation").
  2. Use the _embed_annotations command.

Result :

image

Bug example 2 :

  1. In tutorial.pdf, highlight the "to fit the document" line 9 (in "Press F9 to fit the document to screen").
  2. Use the _embed_annotations command.

Result :

image

Expected results

In example 1, only the word "Use" line 3 should be highlighted. In example 2, "to fit the document" line 9 should be embedded (it is not embedded, but "to fit the document" line 8 is embedded).

Environment

Windows 11 Sioyek - Commit https://github.com/ahrm/sioyek/commit/caf5569ae896d1d945ec891dddbd48732a5be475

Elaws avatar Nov 20 '22 14:11 Elaws

Should be fixed in the latest version.

ahrm avatar Nov 21 '22 19:11 ahrm

Thanks a lot !

Elaws avatar Nov 21 '22 21:11 Elaws

I am having a similar issue to this one. Using the python command described in the README.md generates embedded highlights above the sioyek highlights.

Here's a picture of python command, _embed_annotations.

image

Here is the one using the embed_annotations command which is probably built-in to sioyek, I am not sure.

image

Here one may obtain the open-access pdf file for testing purposes.

gokberkgunes avatar Jun 06 '23 09:06 gokberkgunes

The problem was that the page's mediabox origin was not (0, 0) for some reason. The issue should be fixed in ea161c485f4b7f8d4662ddbc333c5d5f33034ab8.

ahrm avatar Jun 06 '23 13:06 ahrm

Same here. Multiple highlights added, wrong places, deleting highlights is impossible.

naquad avatar Sep 24 '24 07:09 naquad