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?

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/39890

Title:
  characters change when selecting text

To manage notifications about this bug go to:
https://bugs.launchpad.net/poppler/+bug/39890/+subscriptions

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to