After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 326083 - Text selection is broken in RTL scripts
Text selection is broken in RTL scripts
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: general
2.27.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks: Hebrew
 
 
Reported: 2006-01-07 09:54 UTC by Yaron Tausky
Modified: 2013-07-04 03:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A PDF suffering from this bug (112.57 KB, application/pdf)
2006-01-07 11:35 UTC, Yaron Tausky
Details
Screenshot- the selection of the same text in OpenOffice (currect) and Envice (incorrect) (324.46 KB, image/png)
2006-08-17 08:32 UTC, Shoshannah Forbes
Details

Description Yaron Tausky 2006-01-07 09:54:58 UTC
When I try to select text written in an RTL script (Hebrew, in my case) the selection algorithm treats it like LTR text. This means that if I start a selection in the midlle of a line in an RTL paragraph and move the cursor to the middle of the next line, the selection spans to the right on the first line and from the left up to the cursor in the next line. This is okay for LTR, but in RTL scripts it should work exactly the opposite. The expected behaviour is just like the GtkTextView widget's.
Comment 1 Nickolay V. Shmyrev 2006-01-07 10:38:39 UTC
Can you please attach or give a link on test document?
Comment 2 Yaron Tausky 2006-01-07 11:35:38 UTC
Created attachment 56914 [details]
A PDF suffering from this bug

You can clearly see the problem in this file.
Comment 3 Nickolay V. Shmyrev 2006-01-08 11:16:34 UTC
I can't reproduce this bug with recent cvs. Can you try poppler 0.4.3 and check again?
Comment 4 Yaron Tausky 2006-02-02 21:29:08 UTC
I'm still experiencing this bug in poppler-0.5.0.
Comment 5 Shoshannah Forbes 2006-08-17 08:26:50 UTC
PDF stores Hebrew internally as visual Hebrew (LTR), so Envice will have to detect Hebrew text and work around this.
It seems like Envice Evince 0.5.2 Using poppler 0.5.1 (splash) correctly reverses Hebrew when pasting to gedit, but does not do the selection properly (like Yaron noted).

Comment 6 Shoshannah Forbes 2006-08-17 08:32:15 UTC
Created attachment 71074 [details]
Screenshot- the selection of the same text in OpenOffice (currect) and Envice (incorrect)

In the attached screenshot, you can see the exat same text in OpenOffice.org and in Envice. The text was selected using the same mouse movment. Notice the diference in selections- in OpenOffice it is correct (RTL), in Envice it's incorrect (LTR).
Comment 7 Emmanuel Fleury 2009-08-04 13:56:51 UTC
How comes this bug is still tagged 'unconfirmed' ?
I still notice it on 2.27.4.
Comment 8 Germán Poo-Caamaño 2013-07-04 03:05:29 UTC
Thanks for taking the time to report this bug. However, this problem is in poppler.  You can follow the bug report in https://bugs.freedesktop.org/show_bug.cgi?id=66568

For more information, see
https://live.gnome.org/Evince/PopplerBugs#poppler