More formatting + more info

This commit is contained in:
Andrey A. Chernov 1997-05-02 08:37:48 +00:00
parent aa5e0b2bed
commit 1ac3565dc6
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=1469

View file

@ -1,14 +1,17 @@
<!-- $Id: russian.sgml,v 1.3 1997-05-02 08:07:35 ache Exp $ --> <!-- $Id: russian.sgml,v 1.4 1997-05-02 08:37:48 ache Exp $ -->
<!-- The FreeBSD Documentation Project --> <!-- The FreeBSD Documentation Project -->
<sect><heading>Russian Language<label id="russian"></heading> <sect><heading>Russian Language (KOI8-R encoding)<label id="russian"></heading>
<p><em>Contributed by &a.ache;<newline> <p><em>Contributed by &a.ache;<newline>
1 May 1997</em>. 1 May 1997</em>.
<p>See more info about KOI8-R encoding at
<htmlurl url="http://www.nagual.pp.ru/~ache/koi8.html"
name="KOI8-R References (Russian Net Character Set)">.
<sect1><heading>Console Setup<label id="russian:console"></heading> <sect1><heading>Console Setup<label id="russian:console"></heading>
<p> <p>
<enum> <enum>
<item> Russian console entry in <tt>/etc/rc.conf</tt> should looks like <item>Russian console entry in <tt>/etc/rc.conf</tt> should looks like
<verb> <verb>
keymap=ru.koi8-r keymap=ru.koi8-r
keychange="61 ^[[K" keychange="61 ^[[K"
@ -22,8 +25,8 @@ font8x8=cp866-8x8
<tt>/etc/rc.conf</tt>, <tt>/etc/rc.conf</tt>,
not just ^[ string. not just ^[ string.
<p> <p>
This tuning means koi8-r keyboard with Alternative This tuning means KOI8-R keyboard with Alternative
screen font mapped to koi8-r character set to screen font mapped to KOI8-R encoding to
preserve pseudographics, <it>Gray Delete</it> key remapped to match Russian preserve pseudographics, <it>Gray Delete</it> key remapped to match Russian
<tt>termcap(5)</tt> entry for FreeBSD console. <tt>termcap(5)</tt> entry for FreeBSD console.
<p> <p>
@ -31,7 +34,7 @@ RUS/LAT switch will be <bf>CapsLock</bf>. Old CapsLock function still
available via <bf>Shift+CapsLock</bf>. CapsLock LED will available via <bf>Shift+CapsLock</bf>. CapsLock LED will
indicate RUS mode, not CapsLock mode. indicate RUS mode, not CapsLock mode.
<item> For each <tt>ttyv?</tt> entry in <tt>/etc/ttys</tt> <item>For each <tt>ttyv?</tt> entry in <tt>/etc/ttys</tt>
change terminal type from <tt>cons25</tt> to change terminal type from <tt>cons25</tt> to
<tt>cons25r</tt>, i.e. each entry should looks like <tt>cons25r</tt>, i.e. each entry should looks like
<verb> <verb>
@ -43,9 +46,10 @@ ttyv0 "/usr/libexec/getty Pc" cons25r on secure
<p><label id="russian:env"> <p><label id="russian:env">
There is two environment variables for locale setup: There is two environment variables for locale setup:
<itemize> <itemize>
<item> <tt>LANG</tt> <item><tt>LANG</tt>
for POSIX <tt>setlocale(3)</tt> family functions; for POSIX <tt>setlocale(3)</tt> family functions;
<item> <tt>MM_CHARSET</tt> for applications MIME chararter set. <item><tt>MM_CHARSET</tt>
for applications MIME chararter set.
</itemize> </itemize>
<p> <p>
The best way is using <tt>/etc/login.conf</tt> The best way is using <tt>/etc/login.conf</tt>
@ -77,7 +81,7 @@ user:password:1111:11:russian:0:0:User Name:/home/user:/bin/csh
<p> <p>
If you use <tt>adduser(8)</tt> for adding new users: If you use <tt>adduser(8)</tt> for adding new users:
<itemize> <itemize>
<item> Set <item>Set
<verb> <verb>
defaultclass = russian defaultclass = russian
</verb> </verb>
@ -86,7 +90,7 @@ in <tt>/etc/adduser.conf</tt>
users in this case); users in this case);
<newline><newline> <newline><newline>
<item> Alternative variant will be answering <tt>russian</tt> <item>Alternative variant will be answering <tt>russian</tt>
each time when you see each time when you see
<verb> <verb>
Enter login class: default []: Enter login class: default []:
@ -94,7 +98,7 @@ Enter login class: default []:
prompt from <tt>adduser(8)</tt>; prompt from <tt>adduser(8)</tt>;
<newline><newline> <newline><newline>
<item> Another variant: call <item>Another variant: call
<verb> <verb>
# adduser -class russian # adduser -class russian
</verb> </verb>
@ -117,13 +121,13 @@ this
<ref id="russian:env" name="two environment variables"> <ref id="russian:env" name="two environment variables">
in the following shell startup files: in the following shell startup files:
<itemize> <itemize>
<item> <tt>/etc/profile</tt>: <item><tt>/etc/profile</tt>:
<verb> <verb>
LANG=ru_RU.KOI8-R; export LANG LANG=ru_RU.KOI8-R; export LANG
MM_CHARSET=KOI8-R; export MM_CHARSET MM_CHARSET=KOI8-R; export MM_CHARSET
</verb> </verb>
<item> <tt>/etc/csh.login</tt>: <item><tt>/etc/csh.login</tt>:
<verb> <verb>
setenv LANG ru_RU.KOI8-R setenv LANG ru_RU.KOI8-R
setenv MM_CHARSET KOI8-R setenv MM_CHARSET KOI8-R
@ -132,20 +136,21 @@ setenv MM_CHARSET KOI8-R
<p> <p>
Alternatively you can add this instructions to Alternatively you can add this instructions to
<itemize> <itemize>
<item> <tt>/usr/share/skel/dot.profile</tt>: <item><tt>/usr/share/skel/dot.profile</tt>:
<p> <p>
(similar to <tt>/etc/profile</tt> above); (similar to <tt>/etc/profile</tt> above);
<item> <tt>/usr/share/skel/dot.login</tt>: <item><tt>/usr/share/skel/dot.login</tt>:
<p> <p>
(similar to <tt>/etc/csh.login</tt> above). (similar to <tt>/etc/csh.login</tt> above).
</itemize> </itemize>
<sect1><heading>X Window Setup<label id="russian:xwindow"></heading> <sect1><heading>X Window Setup<label id="russian:xwindow"></heading>
<p> <p>
Step by step instructions:
<enum> <enum>
<item> First off all do <item>Do
<ref id="russian:locale" name="locale setup"> as described. <ref id="russian:locale" name="locale setup"> first as described.
<p> <p>
<it>NOTE:</it><label id="russian:note"> <it>NOTE:</it><label id="russian:note">
Russian KOI8-R locale may not work with old XFree86 versions Russian KOI8-R locale may not work with old XFree86 versions
@ -156,7 +161,7 @@ from this port.
Basically, XFree86 version shipped with latest FreeBSD distribution should Basically, XFree86 version shipped with latest FreeBSD distribution should
work too unless somebody forget to apply port patches to it. work too unless somebody forget to apply port patches to it.
<item> Go to <tt>/usr/ports/russian/X.language</tt> directory and say <item>Go to <tt>/usr/ports/russian/X.language</tt> directory and say
<verb> <verb>
# make all install # make all install
</verb> </verb>
@ -173,7 +178,7 @@ following lines must be before any other <tt>FontPath</tt> entries:
If you use high resolution video mode, swap 75 dpi and If you use high resolution video mode, swap 75 dpi and
100 dpi lines. 100 dpi lines.
<item> To activate Russian keyboard add <item>To activate Russian keyboard add
<verb> <verb>
XkbKeymap "xfree86(ru)" XkbKeymap "xfree86(ru)"
</verb> </verb>