Problems using a second text encoding in X
My computer is running Debian (Sarge) and XFce4 (built from the
tarball). There are no Sid packages, no experimental packages, no
Woody backports installed. My native language is English (US), but I
want to be able to read and write in Russian using koi8-r encoding. I
was able to do this in 2002 when I was running Woody, but my procedure
doesn't work in Sarge and I don't know why.
The following is my procedure. Following that is a copy of
/etc/X11/XF86Config-4. Please review and let me know if you see a
problem. All help is greatly appreciated.
- Harold
##############################
# Configuration Procedure.
##############################
***** Step 1: Install koi8-r fonts *****
apt-get install xfonts-cyrillic
I then used gtkfontsel to verify that koi8r-encoded fonts are
available.
***** Step 2: Build locale *****
/etc/locale.gen initially contained one line; I added the second line.
en_US ISO-8859-1
ru_RU KOI8-R
After adding the second line, I ran the executable "locale-gen," which
successfully generated the locales files.
***** Step 3: Modify the Bash environment *****
I added the following line to /etc/profile:
export LC_CTYPE=ru_RU.KOI8-R
Then, as root, I sourced the file.
. /etc/profile
***** Step 4: Modify /etc/X11/XF86Config-4 *****
I added the bottom two lines to the "InputDevice" section
Section "InputDevice"
Identifier "Default Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "Xkblayout" "ru"
Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll"
EndSection
At this point a year ago, pressing the <shift-ctrl> key combination
toggled the keyboard between the encodings, and the scroll LED was lit
when the Russian layout was active. Pressing <shift-ctrl> now does
nothing. ?!?!?!?!
##############################
# XFree86 configuration for version XFree86 4.2.1
##############################
Section "Files"
FontPath "unix/:7100"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/TrueType"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/75dpi"
FontPath "/usr/share/fonts/truetype"
FontPath "/usr/share/fonts/truetype/openoffice"
EndSection
Section "ServerFlags"
EndSection
Section "Module"
Load "ddc"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "pex5"
Load "record"
Load "xie"
Load "bitmap"
Load "freetype"
Load "speedo"
Load "type1"
Load "vbe"
Load "int10"
EndSection
Section "InputDevice"
Identifier "Default Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "Xkblayout" "ru"
Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll"
EndSection
Section "InputDevice"
Identifier "Default Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "Device"
Identifier "Selected Driver"
Driver "ati"
EndSection
Section "Monitor"
VendorName "Optiquest"
ModelName "Optiquest Q71-5"
Identifier "Optiquest Q71-5"
HorizSync 30-70
VertRefresh 50-120
# 640x480, 60.0Hz; hfreq=31.469000, vfreq=59.939999
ModeLine "640x480" 25.17 640 648 744 784 480 482 484 509 -hsync -vsync
# 640x480, 72.0Hz; hfreq=37.861000, vfreq=72.808998
ModeLine "640x480" 31.50 640 656 696 816 480 481 484 504 -hsync -vsync
# 640x480, 75.0Hz; hfreq=37.500000, vfreq=75.000000
ModeLine "640x480" 31.50 640 656 720 840 480 481 484 500 -hsync -vsync
# 640x480, 85.0Hz; hfreq=43.269001, vfreq=85.008003
ModeLine "640x480" 36.00 640 696 752 832 480 481 484 509 -hsync -vsync
# 800x600, 56.0Hz; hfreq=35.155998, vfreq=56.250000
ModeLine "800x600" 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync
# 800x600, 60.0Hz; hfreq=37.879002, vfreq=60.317001
ModeLine "800x600" 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync
# 800x600, 75.0Hz; hfreq=46.875000, vfreq=75.000000
ModeLine "800x600" 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync
# 800x600, 85.0Hz; hfreq=53.674000, vfreq=85.060997
ModeLine "800x600" 56.25 800 832 896 1048 600 601 604 631 +hsync +vsync
# 1024x768, 60.0Hz; hfreq=48.362999, vfreq=60.004002
ModeLine "1024x768" 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
# 1024x768, 70.0Hz; hfreq=56.476002, vfreq=70.069000
ModeLine "1024x768" 75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
# 1024x768, 75.0Hz; hfreq=60.022999, vfreq=75.028999
ModeLine "1024x768" 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
# 1024x768, 85.0Hz; hfreq=68.677002, vfreq=84.997002
ModeLine "1024x768" 94.50 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
# 1152x864, 75.0Hz; hfreq=67.500000, vfreq=75.000000
ModeLine "1152x864" 108.00 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
# 1280x1024, 75.0Hz; hfreq=79.975998, vfreq=75.025002
ModeLine "1280x1024" 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
Option "DPMS"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Selected Driver"
Monitor "Optiquest Q71-5"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Default Keyboard"
InputDevice "Default Mouse"
EndSection
Section "DRI"
Mode 0666
EndSection
##############################
# End of XFree86 configuration
##############################
Reply to: