Bug 614824

Summary: Evince doesn't highlight properly
Product: Red Hat Enterprise Linux 6 Reporter: Lubos Kocman <lkocman>
Component: popplerAssignee: Marek Kašík <mkasik>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.0CC: jkoten, mhatina, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: poppler-0.12.4-7.el6 Doc Type: Bug Fix
Doc Text:
Cause: Highlighting document by clicking and dragging mouse over multiple lines in direction "From bottom to top". Consequence: Parts of lines that are being highlighted disappear. Fix: Selection of TextLine doesn't take y-coordinates of the selection rectangle into account once we decide to select the line. Result: The bug doesn’t present anymore.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-10 20:48:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1271696    
Attachments:
Description Flags
problematic document none

Description Lubos Kocman 2010-07-15 10:51:50 UTC
Created attachment 432033 [details]
problematic document

Description of problem:

If you'll open an PDF file containing some specific Czech characters like š,ě,č,ř,ž and you'll highlight the text, then you'll see that some specific characters are not visible anymore.

Also if you'll highlight document by clicking and draging mouse over multiple lines in direction "Frmm bottom to top" some part of lines will disappear while being highlighted.

Version-Release number of selected component (if applicable):

evince-2.28.2-13.el6.x86_64
poppler-0.12.4-3.el6.x86_6

How reproducible:


Steps to Reproduce:
1. Open attached pdf document
2. highlight first paragraph multiple times in a different direction
3. highlight multiple paragraph by clicking + draging from bottom to top
  
Actual results:

some characters and part of lines are invisible while being higlighted

Expected results:

every character should be visible as while not being highlighted


Additional info:

Comment 2 RHEL Program Management 2010-07-15 14:27:24 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release. It has
been denied for the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 3 RHEL Program Management 2011-01-07 15:47:00 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 4 Lubos Kocman 2011-05-03 09:53:03 UTC
Is anybody going to do something about this? I have found also another issue in highlighting. So seems like that this topic is very problematic.

Comment 7 RHEL Program Management 2011-07-06 00:21:50 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 9 Suzanne Logcher 2012-02-14 23:00:35 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 10 Marek Kašík 2014-12-10 13:43:00 UTC
These are actually 2 bugs.

The first one is that selection of TextLine shouldn't take y coordinates of the selection rectangle into account once we decide to select the line. We can fix this since the patch is quite simple (see http://cgit.freedesktop.org/poppler/poppler/commit/?id=5056e33e01ce0f7db1a5401b7b38d30e84eedf69).

The second one is that each TextWord has only one font set which means that if a TextWord contains a character which needs different font then the character is drawn by wrong font which usually doesn't have a glyph for the character resulting in empty space.
This is not possible to fix without API change since the API of TextWord is public (see http://cgit.freedesktop.org/poppler/poppler/commit/?id=f3a1b765bd6a58d327a80feedbe30e1c0792076e).

I'm giving devel_ack+ to the first problem. We can not fix the second one because of the API change.

Comment 17 errata-xmlrpc 2016-05-10 20:48:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0799.html