Closed GoogleCodeExporter closed 9 years ago
Original comment by bo...@foxitsoftware.com
on 31 Jul 2014 at 6:26
Also happens on
http://www.nature.com/nature/journal/v512/n7514/pdf/nature13681.pdf
Coping fails on anything containing line-breaking character "-".
It is enough to select "-" or "h-" text from the end of the first line
(starting from "On 1 April 2014, ...") for copy/paste to stop working.
Happens on all platforms (tried Windows, Mac and ChromeOS).
Original comment by g...@chromium.org
on 3 Sep 2014 at 6:39
Original comment by jam@chromium.org
on 3 Sep 2014 at 8:38
Original comment by jun_f...@foxitsoftware.com
on 4 Sep 2014 at 1:14
The root cause is that the hyphen "-" is represented as a 16-bits hex value
"0xfffe" and returned to chrome with other characters. Seems that chrome
doesn't handle this special char ("0xfffe"). There are several possible
solutions to this case:
Solution 1: pdfium still returns "0xfffe" to indicate a hyphen somewhere.
Chrome will check and handle this special char. A hyphen can be shown or a new
line indicator or ignored by chrome. It depends on the behavior of chrome.
Solution 2: pdfium will omit the hyphen in the output string. In this way,
chrome never knows where the hyphen exists and loses the opportunity to handle
it.
Others: any other solutions.
Original comment by jun_f...@foxitsoftware.com
on 5 Sep 2014 at 5:22
We prefer solution 1 because the API function "PDFText_GetText" which is called
by chrome to get the selected text is a generally used API. If hyphens are
omitted in this API, the callers may not have chances to handle hyphens in
other scenarios.
@Gene and John,
Do you have your preferred solutions?
Original comment by jun_f...@foxitsoftware.com
on 5 Sep 2014 at 5:50
Thanks for investigating. I agree option 1 is better.
Original comment by jam@chromium.org
on 9 Sep 2014 at 9:14
Thanks for investigating. I agree option 1 is better.
Original comment by jam@chromium.org
on 9 Sep 2014 at 9:14
Original comment by jun_f...@foxitsoftware.com
on 9 Sep 2014 at 9:19
http://crbug.com/327349, http://crbug.com/328303, and http://crbug.com/307523
are likely all related.
Original comment by thestig@chromium.org
on 9 Sep 2014 at 10:08
Original comment by thestig@chromium.org
on 9 Sep 2014 at 10:15
Original comment by thestig@chromium.org
on 11 Sep 2014 at 11:15
Since the fix has to happen in chromium's src/pdf dir, marking this as a
duplicate.
Original comment by thestig@chromium.org
on 11 Sep 2014 at 11:16
Original issue reported on code.google.com by
jam@chromium.org
on 30 Jul 2014 at 4:09