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 314988 - Hebrew editing is completely broken
Hebrew editing is completely broken
Status: RESOLVED FIXED
Product: GtkHtml
Classification: Other
Component: Editing
3.11.x
Other Linux
: High major
: ---
Assigned To: gtkhtml-maintainers
Evolution QA team
: 311995 317483 325950 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-08-31 21:23 UTC by Yaron Tausky
Modified: 2006-09-28 16:31 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Bug screenshot (35.51 KB, image/png)
2005-09-15 00:01 UTC, Yaron Tausky
Details
Screenshot to depict RTL editing w.r.t. punctuation marks. (136.77 KB, image/png)
2005-09-15 04:33 UTC, Kaushal Kumar
Details
screenshot: works for me (37.89 KB, image/png)
2005-09-15 14:01 UTC, Mark Gordon
Details
Abiword: Correct text alignment. (FC5) (8.02 KB, image/png)
2006-08-17 09:33 UTC, Gilboa Davara
Details
Evolution: Incorrect text alignment. (17.10 KB, image/png)
2006-08-17 09:34 UTC, Gilboa Davara
Details

Description Yaron Tausky 2005-08-31 21:23:04 UTC
Distribution/Version: Gentoo

I can't really further describe this bug, since there's not even one bit that
DOES work. Currently, GtkHtml (and thus Evolution) is totally unusable for me
when I wish to write e-mails in Hebrew.
The expected behaviour is like that of the GtkTextView widget.
Comment 1 Mark Gordon 2005-08-31 22:50:13 UTC
I'm using 3.7.7, and it seems to be working for me as I'd expect, though I
recall seeing plenty of weird behavior in earlier versions.  Which version are
you using?
Comment 2 Yaron Tausky 2005-08-31 23:56:36 UTC
I'm using that exact version too, with Evolution 2.3.8.
The most simple example I can think of is this:
1. Compose a new message
2. Align the text to the right
3. Write a Hebrew word, followed by a comma or a full stop, etc.
The punctuation mark would appear on the right side of the word, even though it
should be on the left (as the name right-to-left suggests ;-).

I also tried to paste a Unicode RLM character in the beginning of a paragraph,
but that just brought up other bugs like the caret staying at the beginning of
the line even though I keep typing, some of them irreproducible (or at least I
couldn't figure how to reproduce them)...
Comment 3 Mark Gordon 2005-09-01 22:52:12 UTC
Dunno.  I'm seeing punctuation on the left.

For reference, I'm running SUSE Linux 10.0 Beta 4 using en_US.UTF-8 and
switching my keyboard layout through the keyboard indicator applet for testing
purposes.  I've never known how to touch type in Hebrew, and I don't have the
characters on this keyboard, so I'm using the phonetic layout.
Comment 4 André Klapper 2005-09-02 10:37:35 UTC
adding I18N keyword.
Comment 5 Yaron Tausky 2005-09-15 00:01:32 UTC
Created attachment 52249 [details]
Bug screenshot

I'm attaching a screenshot to make sure the problem is clear.
You can see the punctuation marks are positioned in the beginning of each
Hebrew line, instade of the end.
This screenshot was taken with Evolution 2.4.0 and libgtkhtml 3.8.0.
Comment 6 Kaushal Kumar 2005-09-15 04:33:36 UTC
Created attachment 52260 [details]
Screenshot to depict RTL editing w.r.t. punctuation marks.

I do not have Hebrew in the keyboard layouts available in my Keyboard Indicator
applet, so I added another RTL language Arabic.
I tried using the punctuation marks and I am attaching the screenshot here. I
am unable to simulate the bug, somehow.
Comment 7 Mark Gordon 2005-09-15 14:01:36 UTC
Created attachment 52277 [details]
screenshot: works for me

SUSE Linux 10.0, gtkhtml2-3.8.0-3, evolution-2.4.0-3

I tested with both non-HTML and HTML mail.  They both worked.  I'm using the
"Israel Phonetic" layout, since I don't know how to touch-type in Hebrew, and I
don't have Hebrew letters on my keyboard.
Comment 8 Yaron Tausky 2005-09-15 17:57:39 UTC
I filed a distro bug over at Gentoo's:
http://bugs.gentoo.org/show_bug.cgi?id=106031
Comment 9 Kaushal Kumar 2005-10-05 11:16:03 UTC
*** Bug 317483 has been marked as a duplicate of this bug. ***
Comment 10 Gilboa Davara 2005-10-05 14:34:31 UTC
I managed to reproduce this bug on:
Slackware 10.2 / Dropline Gnome 2.12 / Evolution 2.4 / Gtkhtml 3.8.
Fedora Core 4 / Gnome 2.10 / Evolution 2.2.3 / Gtkhtml 3.6.2.
Fedora Core 3 / Gnome 2.8 / Evolution 2.0.4-6 / Gtkhtml 3.3.2-3.

At least in the case of Slackware machine, it has the same versions as SUSE 10.0.
Different configurations?
Comment 11 Kaushal Kumar 2005-10-06 04:12:43 UTC
Gilboa: I presume you have tried with Hebrew as yet. Could you also please try
with a different RTL langauage like Arabic, just to be sure.
Comment 12 Gilboa Davara 2005-10-06 05:28:06 UTC
Kumar,

At least on my Slackware machine, Arabic seem to be working just fine. (All the
punctuation marks are added to the end of the line). 
I switched back to Hebrew and the problem returned.

BTW, When I switch from English to Arabic, the text alignment is automatically
switched to right-alignment.
When I do the same with Hebrew, I have to manually switch to right-alignment.
Is it possible that GtkHTML doesn't recognize Hebrew as RTL language? (and
therefore doesn't switch alignment and puts the punctuation marks on the wrong end?)
Comment 13 Kaushal Kumar 2005-10-06 07:48:06 UTC
Yes, looks like Hebrew specifically has problems and not all RTL editing.
Changing synopsis. Needs fixing.
Comment 14 dovix 2005-10-08 17:45:35 UTC
Same problem here, Mandriva Cooker with Evolution 2.4.1 and gtkhtml-3.8.

btw, gedit can demonstrate how this should work properly:

- when starting a paragraph with Hebrew letters, the text is automatically
aligned to the right
- punctuation marks show on the right place (i.e. on the left of the text).
Comment 15 Yaron Tausky 2005-12-23 22:41:18 UTC
I'm still experiencing this bug with Evolution 2.4.2.1 and GtkHtml 3.8.2.
Is there any progress dealing with it?
Comment 16 Mark Gordon 2006-01-03 22:18:30 UTC
I've never been able to reproduce the problem.  I don't have any non-SUSE distros handy currently.

Kaushal: are you able to reproduce the problem?
Comment 17 Kaushal Kumar 2006-01-04 06:56:10 UTC
Mark: I haven't tried editing Hebrew on my system. Nevertheless, there appears to be an issue with Hebrew (or RTL in general) editing since a large number of related bugs have been reported. On a side note, since I am not working in gtkhtml actively these days, I might not be able to fix this issue soonish. 
Comment 18 Mark Gordon 2006-01-04 16:58:54 UTC
I'm using evolution 2.4.1 and gtkhtml 3.8.2, and it's working fine for me (like I wrote in my screenshot, "kol b'seder").  Earlier versions (including those listed above under Fedora) were certainly broken (which may have prompted the "large number of related bugs" comment), but it was my understanding that there was work done to fix those problems, and I'm no longer able to reproduce the problems I used to have.

The current version has problems under Gentoo, Slackware, and Mandriva but works fine under SUSE.  I'm not sure what's different in SUSE.  I'm inclined to think that fixing this issue will require debugging the problem on one of the affected distributions, which is likely to delay a solution.
Comment 19 André Klapper 2006-01-30 23:31:09 UTC
also see bug 311995, bug 314988, bug 325950, bug 272237. duplicate triagers please go ahead. ;-)
Comment 20 Gilboa Davara 2006-03-03 09:56:33 UTC
Just tested FC5T3.
Same problem. -However-, in previous versions, the first line of text was aligned to the right (as it should) with all consequent lines aligned to the left; Under FC5T3, all lines, from the first, are aligned to the left. 

Versions:
$ rpm -qa | egrep -e "gtkhtml|evolution"  | sort
evolution-2.5.92-1
evolution-data-server-1.5.92-1
evolution-webcal-2.4.1-3.2
gnome-python2-gtkhtml2-2.13.3-3.2
gtkhtml2-2.6.3-1.2.1
gtkhtml3-3.9.91-1

Comment 21 Yair Hershkovitz 2006-03-25 23:53:51 UTC
*** Bug 311995 has been marked as a duplicate of this bug. ***
Comment 22 Kjartan Maraas 2006-04-24 12:33:13 UTC
*** Bug 325950 has been marked as a duplicate of this bug. ***
Comment 23 Yaron Tausky 2006-07-09 00:25:27 UTC
This bug is still alive and kicking, and is CRITICAL for Hebrew speakers.
Comment 24 Shoshannah Forbes 2006-08-17 08:18:20 UTC
Can someone give a better isolation of this bug?
I fail to see it happen on Ubuntu (both ppc and x86) with libgtkhtml3.6-18.

Perhaps some other config issue is affecting this?
Comment 25 Gilboa Davara 2006-08-17 09:33:18 UTC
Created attachment 71076 [details]
Abiword: Correct text alignment. (FC5)
Comment 26 Gilboa Davara 2006-08-17 09:34:06 UTC
Created attachment 71077 [details]
Evolution: Incorrect text alignment.
Comment 27 Gilboa Davara 2006-08-17 09:42:32 UTC
As you see, under Abiword the exclamation mark ends the sentence while under evolution it gets glued to beginning of the sentence.
More-ever, from time to time, gtkhtml completely loses its Bidi support, switching to LTR mode completely putting each new Hebrew character to the right of the previous Hebrew character. (Instead of the left switching back to LTR)

Comment 28 Yaron Tausky 2006-09-13 11:40:30 UTC
Well, it seems that as of evo 2.8 this bug is fixed (in Gentoo, at least). However, due to the confusion and different behaviour in different distro, I think we should ask for verification from other posters in this bug before closing it.
Comment 29 Gilboa Davara 2006-09-13 11:52:44 UTC
I'll download and test and Fedora Core 6 Test 3 and test it there.
Hopefully (knock wood) this bug was indeed fixed in v2.8.
Comment 30 Yair Hershkovitz 2006-09-23 08:22:50 UTC
Verified that this bug is fixed on Mandriva Cooker with Evolution 2.8
Comment 31 Gilboa Davara 2006-09-28 15:29:51 UTC
Yey!

Bug indeed seems to be fixed in Fedora Rawhide (Post FC6/Test3)

$ rpm -qa | egrep -r 'gtkhtml|evolution' | sort
evolution-2.8.0-6.fc6.i386
evolution-data-server-1.8.0-10.fc6.i386
evolution-data-server-devel-1.8.0-10.fc6.i386
evolution-sharp-0.11.1-10.fc6.i386
evolution-webcal-2.7.1-6.i386
gnome-python2-gtkhtml2-2.14.2-2.fc6.i386
gtkhtml2-2.11.0-3.i386
gtkhtml3-3.12.0-1.fc6.i386

Thanks!
- Gilboa
Comment 32 Yaron Tausky 2006-09-28 16:31:27 UTC
Well, it seems safe to close this bug. Thanks, everyone! :-)