[Poppler-bugs] [Bug 6923] characters change when selecting text

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 16 16:22:45 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=6923

--- Comment #17 from Jose Aliste <jose.aliste at gmail.com> 2011-02-16 16:22:44 PST ---
Thanks for the regression. The problem here is that "bold:" has two fonts since
"bold" is italicised and  ":" not, so before the patch, "bold:" is a TextWord
and pdftotext get the text right, but drawing the selection is bad since the
selected ":"  would be drawn italicised. After the patch, "bold:" gets splitted
up into "bold" and ":" so it gets drawn correctly when selected, but you have
the regression you pointed out. So, I believe I am stuck with this choice: 

a). I could either allow more than one font on a TextWord, and adapt the code
that draws the TextWord to use that fact, so the  selected ":" does not get
transform to a italicised ":" when drawing it. 

b) or I could fix the TextDumper to be aware of the fact in some cases there is
no space between two TextWord. 

c) Do you have another way? 

I think I want to take approach a) even if it could more complicated, but
approach b) seems that it could break more things that it would fix... thinking
that when doing selection by words would not work at all. What do you think?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list