-------------------------------------------------------------------------
() (quaker@paco.net)
http://zipper.paco.net/~quaker/rus.txt
-------------------------------------------------------------------------
Linux.
:
RedHat 5.0; RedHat 5.1; RedHat 5.2; RedHat 6.0;
Mandrake 5.1; Mandrake 5.2; Mandrake 5.3; SlackWare 3.6
Linux.
, Linux?
, .
Linux /usr/lib/kbd/consolefonts
. , ,
(console character map).
, - ,
. .
.
,
, , Alt
.
, .
, ,
Alt :
$ loadkeys /usr/lib/kbd/keymaps/i386/qwerty/ru1.map.gz
$ setfont /usr/lib/kbd/consolefonts/Cyr_a8x16
$ mapscrn /usr/lib/kbd/consoletrans/koi2alt
$ echo -ne "\033(K"
ru1.map,
/usr/lib/kbd/keymaps/i386/qwerty/.
Linux (keyboard maps) /usr/lib/keytables.
Cyr_a8x16,
Alt /usr/lib/kbd/consolefonts.
-.
,
.
Alt koi
. ,
.
,
koi :
$ loadkeys /usr/lib/kbd/keymaps/i386/qwerty/ru1.map.gz
$ setfont /usr/lib/kbd/consolefonts/koi8-8x16
.
koi8-8x16,
koi .
Alt, koi
Alt.
-. showkey.
-,
.
, . ,
.
10 , . (
!) (
) ,
- .
, .
shell-,
. koi
, rc.kbdkoi :
-------------------------------------------------------------
#!/bin/sh
if [ notset.$DISPLAY != notset. ]; then
echo "^Basename $0: cannot run under X"
exit
fi
loadkeys /usr/lib/kbd/keymaps/i386/qwerty/ru1.map.gz
setfont /usr/lib/kbd/consolefonts/koi8-8x16
--------------------------------------------------------------
, chmod +x <
>.
Alt , ,
rc.kbdalt :
--------------------------------------------------------------
#!/bin/sh
if [ notset.$DISPLAY != notset. ]; then
echo "^Basename $0: cannot run under X"
exit
fi
loadkeys /usr/lib/kbd/keymaps/i386/qwerty/ru1.map.gz
setfont /usr/lib/kbd/consolefonts/Cyr_a8x16
mapscrn /usr/lib/kbd/consoletrans/koi2alt
echo -ne "\033(K"
--------------------------------------------------------------
, shell- ...
/etc/rc.d.
rc.local,
,
/etc/rc.d/rc.kbdkoi /etc/rc.d/rc.kbdalt.
!
RedHat Linux 6.0 , "loadkeys"
consolechars!
, Xwindows
.
Xwindows.
.
Xwindows,
KOI8-R. Xwindows
( ;) Linux, 1996
XFree86. ,
RedHat Linux 5.0, Linux
KOI8-R.
, :
1. /usr/X11R6/lib/X11/fonts/ ,
cyrillic. , ,
68 ;)
2. : find / -name crox\*.pcf\*
.
, ,
, , ,
KOI8-R ftp
Linux XFree86
(http://www.xfree86.org/).
, , .
, /usr/lib/X11/fonts/cyrillic ,
.
BDF (*.bdf ),
. :
bdftopcf -o <_>.pcf <_>.bdf .
mkfontdir,
. ,
.
X- .
"fonts.dir" "fonts.alias".
, , X- ,
compress
( XFree86 gzip).
- ,
X-.
XFree, /etc/X11
XF86Config. ( , man XFree86.)
, X- .
"# Multiple FontPath entries are allowed (they are concatenated together)".
.
:
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
, ,
.
! X-
! .
, !
! ;)
.
, Xkb,
, .
Internet xruskb.
xruskb, REEDME
. , xruskb.
,
. , Xwindows
. xterm.
xterm
KOI8-R. , - .
xfontsel
. , .
xterm -font <__).
:
$ xterm -font *-fixed-*-*-medium-*-15-*-*-*-koi8-r
( , ;)
, -.
xterm ,
rxvt aterm.
,
Xwindows, , ,
, , -
. , man', ;)
!
Last-modified: Tue, 10 Aug 1999 04:48:25 GMT