RTL in gtkdialog..

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
hannysabbagh
Posts: 17
Joined: Sun 14 Apr 2013, 10:34

RTL in gtkdialog..

#1 Post by hannysabbagh »

Hello.

i have gtkdialog 0.8.3 installed, i want to know if gtkdialog can display the text from right to left?? because this is very important in some languages like Arabic..?

thanks.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

RTL in gtkdialog..

#2 Post by L18L »

The surest and probably the quickest way to find out is to try. Let us know what you find out. :idea:
BDX wrote:Puppy linux fact:Life is experiments......Download and try,Don't search and cry.
quoted from The beginning of Arabic translation :lol:

hannysabbagh
Posts: 17
Joined: Sun 14 Apr 2013, 10:34

#3 Post by hannysabbagh »

Well , i already did and i discoverd that it can't :lol:
So here i want to ask if anybody can display the text in Gtkdialog boxes using RTL? :)
thanks

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#4 Post by L18L »

my console wrote:# gtkdialog --version
gtkdialog version 0.8.3 release (C) 2003-2007 Laszlo Pere, 2011-2012 Thunor
Built with additional support for: Glade.
#
Let us hope forum member thunor will jump in.

Or you jump to Gtkdialog Development
Post here any bugs you know of or feature requests.

hannysabbagh
Posts: 17
Joined: Sun 14 Apr 2013, 10:34

#5 Post by hannysabbagh »

i think i am going to jump there :D
thanks :lol:

User avatar
thunor
Posts: 350
Joined: Thu 14 Oct 2010, 15:24
Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings
Contact:

#6 Post by thunor »

Surely right-to-left is managed by GTK and the user's locale!?

I'm guessing that if your locale is right-to-left then the GTK libraries will render the text according to the locale in just the same way that "3.14" in Britain becomes "3,14" in Europe.

I have noticed that there are RTL versions of some stock icons so I'm pretty sure GTK manages it -- I can't find any properties to set.

Check your locale.

Regards,
Thunor

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#7 Post by 01micko »

That was pretty much why we created gtkdialog-splash.. for RTL support (and some other special UTF.8 chars that yaf-splash couldn't handle, sorry a bit of a history lesson).

See here

Iguleder may have more info, he's very knowledgeable.

HTH
Puppy Linux Blog - contact me for access

hannysabbagh
Posts: 17
Joined: Sun 14 Apr 2013, 10:34

#8 Post by hannysabbagh »

Ok , you are right in saying that it is GTK is the responsible about RTL or LTR, the problem that i discovered is that if i changed my locale to English then it will display RTL, and if i changed it to Arabic it will display it LTR !! it is reversed here!

i tried to install Elementary OS to check from the problem, this bug is only in my system not in the other ones.

so do you know how to change GTK displaying settings even if i use an LTR or RTL text?
Thanks.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#9 Post by Karl Godt »

Changing the locale can screw things a bit .
The old chooselocale script uses localedef binary . That is a funny thing, that does

Code: Select all

localedef --force -v --no-archive -f ISO-8859-16 -i zu_ZA zu_ZA.ISO-8859-16 2>/root/zu_ZA.ISO-8859-16.force.errs
create a /usr/lib/locale/zu_ZU.iso885916 folder
but if there is an '@' then it becomes
/usr/lib/locale/wa_BE@euro.ISO-8859-15
for example .

Also make sure that

Code: Select all

locale
locale -a
grep 'LANG' /etc/profile
output is correct ,
Since /etc/profile is sourced by .bashrc , locale changes might mismatch in console and X apps, as long as X is not restarted .

Post Reply