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 345618 - Text is wrong aligned in mail body in Evolution for arabic locales
Text is wrong aligned in mail body in Evolution for arabic locales
Product: GtkHtml
Classification: Other
Component: Rendering
Other All
: Normal normal
: ---
Assigned To: gtkhtml-maintainers
Evolution QA team
Depends on:
Reported: 2006-06-22 03:39 UTC by Xiurong Simon Zheng
Modified: 2006-07-27 05:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14

Message-bad (69.46 KB, image/png)
2006-06-22 03:43 UTC, Xiurong Simon Zheng
Message-good (44.81 KB, image/png)
2006-06-22 03:44 UTC, Xiurong Simon Zheng
Patch (1.80 KB, patch)
2006-06-22 03:47 UTC, Xiurong Simon Zheng
reviewed Details | Review

Description Xiurong Simon Zheng 2006-06-22 03:39:40 UTC
Please describe the problem:
RTL language text isn't aligned to right.

Steps to reproduce:
1) login in arabic locale (e.g.: ar_SA.UTF-8)
2) invoke Evolution
3) create new mail
4) try to input arabic characters 

Actual results:
Text is aligned to left.

Expected results:
Since arbic is RTL language, it should be aligned to right

Does this happen every time?

Other information:
Comment 1 Xiurong Simon Zheng 2006-06-22 03:43:44 UTC
Created attachment 67823 [details]

Actual result.
Comment 2 Xiurong Simon Zheng 2006-06-22 03:44:33 UTC
Created attachment 67824 [details]

Expected result.
Comment 3 Xiurong Simon Zheng 2006-06-22 03:47:20 UTC
Created attachment 67825 [details] [review]

Post the patch made by Nancy.
Comment 4 Xiurong Simon Zheng 2006-07-10 08:33:25 UTC
Harish/Srag, could you possibly review this patch? Thanks.
Comment 5 Harish Krishnaswamy 2006-07-22 11:43:27 UTC
Simon : Without knowing more, I was wondering if it is just an alignment problem. Changing the alignments from L to R gives the same effect as the i missing something ?
Comment 6 Harry Lu 2006-07-22 14:54:19 UTC
Harish, for the aligment, I think Simon means not only the text should be aligned to left, but also the text order.  As I know, in Arabic language, if you input "ABCD" for example, it will appear as "DCBA" the cursor will be before "D". 

So the text order is the big problem. Simon, can you confirm this patch will fix both the aligment and order problem?
Comment 7 Xiurong Simon Zheng 2006-07-24 07:37:15 UTC
Harish/Harry, Arabic is a RTL language. RTL points not only characters order but also text aligment. Currently, characters order works fine by using Pango. However, aligment isn't correct. Aligment should be completed automatically like application gedit, and it shouldn't be done by users. In other word, right aligment is the default behaviour for RTL language. So we should move the focus to end of line when detecting RTL language.
Comment 8 Xiurong Simon Zheng 2006-07-27 05:00:43 UTC
As Veerapuram approved this patch in bug 342659, committed it to CVS HEAD.