LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ISO-8859-2 in xserver (I'm not a newbie) (https://www.linuxquestions.org/questions/linux-software-2/iso-8859-2-in-xserver-im-not-a-newbie-564949/)

ruppertus 06-27-2007 05:59 PM

[solved] ISO-8859-2 in xserver
 
I know that problem of fonts' encoding can be found everywhere but I still can't find the right solution. I've even solved it twice but I don't remember how... :(

Firstable I use Debian Sid/unstable and I don't use either KDE nor GNOME. My default window manager is fluxbox.

I configured my ISO-8859-2 fonts on my console properly:
I installed the following packages: locales (pl_PL) and fonty

I've installed xorg, biznet xfonts (iso-8859-2), msttcorefonts, ttf-dejavu packages
I set up the xorg then:

xorg.conf

Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection


Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "pl"
EndSection

I've add these lines to .bash_profile:
export LANG=pl_PL
export LC_CTYPE=pl_PL
export LC_MESSAGES=pl_PL
export LC_ALL=pl_PL

When I check the installed fonts in xfontsel:
xfontsel -sample "some special polish letters" &
I see a window with correct letters

The problem is that in some packeges like:
opera, openoffice, psi, etc. I can use Polish (iso-8859-2) letters and in others like mplayer, fluxbox menu, etc. I can't.

I know that there has to be a way to configure the right encodings globaly for all users and all aplications because I have another computer with Debian sid as well and I didn't have to configure each application seperatly.

Anyone can halp me please?

maroonbaboon 06-29-2007 05:07 AM

Have you looked at the Debian documentation on locales?

ruppertus 02-07-2008 07:29 AM

Quote:

Originally Posted by maroonbaboon (Post 2804481)
Have you looked at the Debian documentation on locales?

The solution was that I haven't checked /etc/environment
there has to be a line:
Code:

LANG="pl_PL"


All times are GMT -5. The time now is 11:29 AM.