P2O2 WWW - Polish Chars in X Window AppsCreated - Apr 31, 2007 | Modified - Sep 20, 2007 P2O2 WWW Homepage -> Polish in NetBSD -> Polish Characters in X Window Apps Setting Demands
Setting Polish CharsetISO8859-2When using Bash shell all language settings should be done in ${HOME}/.profile file. Terminals can be set via ${HOME}/.Xdefaults. ${HOME}/.profile
# LANG is unset!
#
# export LANG=pl_PL.ISO8859-2
export LC_CTYPE=pl_PL.ISO8859-2
export CHARSET=ISO8859-2
export LC_ALL=""
Additional settings in .profile
# PATH to program binaries on NetBSD FTP
#
PKG_PATH=ftp://ftp.netbsd.org/pub/pkgsrc/packages-2007Q1/NetBSD-3.1/i386/All
export PKG_PATH
# Sylpheed demanded it
#
export G_FILENAME_ENCODING=@locale
# gqview cried for it
#
export G_BROKEN_FILENAMES=1
${HOME}/.Xdefaults
XTerm*font: -misc-fixed-medium-r-normal-*-12-*-*-*-*-*-iso8859-2
XTerm*scrollBar: true
XTerm*saveLines: 1024
UTF-8${HOME}/.profile
export LC_CTYPE=en_US.UTF-8
export LANG=pl_PL.UTF-8
export LC_ALL=""
Setting X Window SystemPolish Programmer/etc/XF86Config
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbKeyboard" "pc104"
Option "XkbLayout" "pl"
EndSection
Polish Typist/etc/XF86Config
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbKeyboard" "pc104"
Option "XkbLayout" "pl2"
# Option "XkbVariant" "qwertz"
EndSection
/usr/X11R6/lib/X11/xkb/symbols/pc/pl2
(...)
key <BKSL> { [ oacute, zacute, dead_grave, dead_breve ] };
key <AB03> { [ c, C, cent, copyright ] };
This line MUST be added after key <AB03>(...):
----------------------------------------------
key <AB10> { [ minus, underscore, notsign, notsign ] };
(...)
|
|
Przemysław Pawełczyk - Cracow, Poland [Static website generated with Rexx scripts in NetBSD]