XReader 1.4.4 issues with selecting text in tables in PDFs
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 283
- Forks
- 82
- PR merge metrics
- No merged PRs in 30d
Description
* Xreader 1.4.4 (xreader --version)
* Distribution - Mint 17.2 Mate 32b Live-DVD
Issue
Selecting text with XReader in tables in PDFs, like the attached TV-1209-05h_FX-8-10h_Sam_OtA.pdf, works weird and often unpredictable.
Instead of highlighting the text in one block like expected, XReader selects a whole row or part of it or jumps someplace to the next row.
TV-Schedule-PDF generated by: tvlistings.zap2it.com/tvlistings/ZCGrid.do → Print → Save File
(To create TV-Schedule like the attached one, one needs to sign up and customize the schedule.)
Steps to reproduce
-
Open attached TV-1209-05h_FX-8-10h_Sam_OtA.pdf in XReader 1.4.4
-
Go to Ch35/FX at 8AM and try to select the text block for "Rise of the Guardians (2012)"
-
XReader won't select anything in this block, but instead starts highlighting text in the row below (Ch36/Freeform, or was it Ch27/A&E?).
-
Try selecting text from any other program block and be amazed by the unpredictable, yet mostly unwanted results ;-)
Expected behaviour
This is how the selection for "Rise of the Guardians (2012)" on Ch35/FX at 8AM should look like:

Other information
- Starting to select text on Ch36/FX at 7:30h "How I Met Your Mother" all the way down to Ch27/A&E at 8AM selects text from random blocks and completely leaves out others, including the wanted "Rise of the Guardians (2012)":

- Trying to select text for "Rudolph and Frosty's Christmas in July (1980)" on Ch36/Freeform at 6AM includes text from the blocks left and right to it:

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the problem with the attached TV-1209-05h_FX-8-10h_Sam_OtA.pdf in XReader 1.4.4, following the selection steps for the listed program blocks. Then trace the text-selection behavior responsible for table-like PDF layouts and compare it with the expected screenshot. Done means selecting each program block highlights the intended text without jumping to adjacent rows or columns.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100