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 608082 - Arabic text is misplaced in bubbles (RTL)
Arabic text is misplaced in bubbles (RTL)
Status: RESOLVED FIXED
Product: notification-daemon
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: William Jon McCann
Depends on:
Blocks:
 
 
Reported: 2010-01-25 21:13 UTC by William Jon McCann
Modified: 2010-04-02 23:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
arabic testcase (2.67 KB, patch)
2010-01-25 21:13 UTC, William Jon McCann
none Details | Review
possible fix (1.00 KB, patch)
2010-02-08 21:13 UTC, William Jon McCann
none Details | Review

Description William Jon McCann 2010-01-25 21:13:50 UTC
Created attachment 152259 [details] [review]
arabic testcase

from http://trac.galago-project.org/ticket/130

"I use libnotify for an application to deliver those yellow information balloons. When using Arabic locale for the application, the text is misplaced, it is sent outside the balloon, so only some of it appears if the text is long enough. If it is not, it does not appear at all, and all I see is an empty balloon.

Start applications with Arabic locale with: LANG=ar <program>

(the application is Minbar, sources here: http://cvs.arabeyes.org/viewcvs/projects/itl/programs/minbar/)

Screenshot: http://files.djihed.com/misc/notify-ar-error.png

The text starts from the right, it is cut and only the last few characters appear.

Arabic is a right-to-left language.


04/18/07 09:11:05: Modified by djihed

libnotify-dev version 0.4.2
04/18/07 13:40:39: Modified by chipx86

Thanks for the bug report. We'll get this fixed, though there's a few things that would help.

First, can you try changing the theme in gconf (/apps/notification-daemon/theme) to "standard" and see if this still happens?

Second, if you could actually write a very small test case for libnotify (libnotify/tests/ has existing test cases to base it off of) that includes Arabic text and fails with it, that would help, because I could then ensure that this doesn't happen in the future.
04/20/07 19:37:15: Modified by djihed

    * cc set to djihed@gmail.com.

Same bug with standard theme.

Wrote a test case for Arabic. The result is that the first word from the right (first word in arabic, since it is rtl) is always chopped off on each line.

Attaching test case in a minute
04/20/07 19:38:03: Modified by djihed

    * attachment libnotify-arabic-testcase.diff added.

Must save as UTF-8, Arabic characters in source code.
04/20/07 20:13:23: Modified by djihed

Where does it render the widgets in source code?
04/20/07 22:22:47: Modified by djihed

I had a look at notification-damon/src/themes/standard/theme.c The body is displayed in body_label, and I could not see why it is chopping text.

For the record, I reproduce this with: (kill running notification-daemon) LANG=ar notification-daemon libnotify/tests/test-arabic libnotify/tests/test-basic

See where the text is being placed, arabic's right is being chopped, and basic's body is getting pushed to the left.
08/25/07 19:18:04: Modified by chipx86

Is this still a problem in libnotify and notification-daemon SVN? I can't reproduce it now.
01/12/08 05:51:02: Modified by djihed

    * severity changed from normal to major.

This is sadly, still a problem with the current libnotify.

With the default theme.

This is pretty bad and serious for RTL languages, imagine sometimes having a notification popup with no text because the text has been sent for off the balloon.
12/31/08 16:26:37: Modified by alsadi

brother djihed it look good on both nodoka and standard themes see ojuba2 screenshots http://www.linuxac.org/forum/showthread.php?t=18204

those screenshots were taken after a fix to place the side stripe correctly here is the nodoka one https://bugzilla.redhat.com/show_bug.cgi?id=475381

and here is the standard one http://trac.galago-project.org/ticket/173
"
Comment 1 William Jon McCann 2010-02-08 21:13:22 UTC
Created attachment 153293 [details] [review]
possible fix

Original from http://trac.galago-project.org/ticket/173
Comment 2 William Jon McCann 2010-04-02 23:35:27 UTC
I've applied a fix for the stripe position to master.