You are not logged in.

#1 2005-04-07 19:53:38

Net@Worm
Member
From: Moscow, Russia
Registered: 2004-05-02
Posts: 214

localization: utf8

I know, it qustion is strange for this forum, becouse its about russian locale, but i think its common to all cyrillic locales. I try to switch to utf8 locale and all is ok, except gtk1 programs. I use gnome, so gtk1 config file placed in ~/.gtkrc.mine. Using xfontsel i put this lines to .gtkrc.mine file:

{
   fontset="-*-terminus-*-*-*-*-*-*-*-*-*-*-iso10646-1, *-r-*"
}
widget_class "*" style "user-font"

Terminus font has the russian letters, and it should work, but dont. Russian letters in gtk1 applications looks bad, they big and ugly. Pls help if you can.

Offline

#2 2005-04-07 20:20:35

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: localization: utf8

GTK1 doesn't support UTF as far as I know, nor localization. Better to listen to someone with more experience with GTK1 and localization, I'm not sure.

Offline

#3 2005-04-09 01:58:28

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: localization: utf8

From what I found from some google searches, you're not alone in this problem.
I did however find one sort of promissing looking howto for mandrake that you might want to read over and experiment with a bit. http://www.linuxcompatible.org/thread27498-1.html
Play around with that and let me know.


The suggestion box only accepts patches.

Offline

#4 2005-04-10 01:32:03

Net@Worm
Member
From: Moscow, Russia
Registered: 2004-05-02
Posts: 214

Re: localization: utf8

Thnx for help, but this how-to dont work for me sad. I found in google that it maybe because of new fontconfig. And i decided that i will not switch to utf8 locale because console too dont have good support for this locale(and some programs like links).

Offline

#5 2006-03-03 14:06:40

oliv
Member
Registered: 2005-04-17
Posts: 58

Re: localization: utf8

Sorry to put this thread up.

I find also some problems with gtk1 apps (for instance xmms) :
I use the locale fr_FR.utf8 but I get incorect accents characters in the xmms menu.

I found a fix filling my ~/.gtkrc file with

style "user-font"
{
    fontset="-misc-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1"
}
widget_class "*" style "user-font"

But I think it shall be something managed by default (gtk).

Finally I found that there isn't any .utf8 file in /etc/gtk/gtkrc.utf-8

I tried to create the file, but no changes...
Has someone a fix for this problem ? Can this lack of gtkrc.utf-8 file be considered as a bug ?

EDIT: Finnaly I found a fix. I have to use a more locale-specific filename : /etc/gtk/gtkrc.fr_FR.utf8

style "gtk-default" {
       fontset = "-*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1"
}
class "GtkWidget" style "gtk-default"

Now it works.

Offline

#6 2006-05-09 11:59:05

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: localization: utf8

Try xlib-locale-ru-ru-utf8 from AUR. This should solve problems with GTK1 programs.


to live is to die

Offline

Board footer

Powered by FluxBB