Improve SGML formatting.

Add more info.
This commit is contained in:
Andrey A. Chernov
1997-05-02 08:07:35 +00:00
parent a90ebee102
commit 113de7a90e
+92 -61
View File
@@ -1,4 +1,4 @@
<!-- $Id: russian.sgml,v 1.1 1997/05/02 02:20:25 ache Exp $ --> <!-- $Id: russian.sgml,v 1.2 1997/05/02 04:55:14 ache Exp $ -->
<!-- The FreeBSD Documentation Project --> <!-- The FreeBSD Documentation Project -->
<sect><heading>Russian Language<label id="russian"></heading> <sect><heading>Russian Language<label id="russian"></heading>
@@ -7,153 +7,184 @@
<sect1><heading>Console Setup<label id="russian:console"></heading> <sect1><heading>Console Setup<label id="russian:console"></heading>
<p> <p>
Russian console entry in <tt>/etc/rc.conf</tt> should looks like <enum>
<tscreen><verb> <item> Russian console entry in <tt>/etc/rc.conf</tt> should looks like
<verb>
keymap=ru.koi8-r keymap=ru.koi8-r
keychange="61 ^[[K" keychange="61 ^[[K"
scrnmap=koi8-r2cp866 scrnmap=koi8-r2cp866
font8x16=cp866b-8x16 font8x16=cp866b-8x16
font8x14=cp866-8x14 font8x14=cp866-8x14
font8x8=cp866-8x8 font8x8=cp866-8x8
</verb></tscreen> </verb>
<p> <p>
NOTE: ^[ means that real ESC character must be entered into <it>NOTE:</it> ^[ means that real ESC character must be entered into
<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 codeset This tuning means koi8-r keyboard with Alternative
screen font mapped to koi8-r character set to screen font mapped to koi8-r character set to
preserve pseudographics, <it>Gray Delete</it> key remapped to match Russian preserve pseudographics, <it>Gray Delete</it> key remapped to match Russian
termcap entry for console. <tt>termcap(5)</tt> entry for FreeBSD console.
See <tt>rc.conf(5)</tt> for details.
<p> <p>
RUS/LAT switch will be <it>CapsLock</it>. RUS/LAT switch will be <bf>CapsLock</bf>. Old CapsLock function still
<p> available via <bf>Shift+CapsLock</bf>. CapsLock LED will
For each <tt>ttyv?</tt> entry in <tt>/etc/ttys</tt> indicate RUS mode, not CapsLock mode.
change terminal type from <bf>cons25</bf> to
<bf>cons25r</bf>, i.e. each entry should looks like <item> For each <tt>ttyv?</tt> entry in <tt>/etc/ttys</tt>
<tscreen><verb> change terminal type from <tt>cons25</tt> to
<tt>cons25r</tt>, i.e. each entry should looks like
<verb>
ttyv0 "/usr/libexec/getty Pc" cons25r on secure ttyv0 "/usr/libexec/getty Pc" cons25r on secure
</verb></tscreen> </verb>
</enum>
<sect1><heading>Locale Setup<label id="russian:locale"></heading> <sect1><heading>Locale Setup<label id="russian:locale"></heading>
<p><label id="russian:env">
There is two environment variables for locale setup:
<itemize>
<item> <tt>LANG</tt>
for POSIX <tt>setlocale(3)</tt> family functions;
<item> <tt>MM_CHARSET</tt> for applications MIME chararter set.
</itemize>
<p> <p>
There is two environment variables for locale setup: <tt>LANG</tt>
and <tt>MM_CHARSET</tt>.
The best way is using <tt>/etc/login.conf</tt> The best way is using <tt>/etc/login.conf</tt>
<bf>russian</bf> user's login class <tt>russian</tt> user's login class
in <tt>passwd(5)</tt> entry login class position. in <tt>passwd(5)</tt> entry login class position.
See <tt>login.conf(5)</tt> for details. See <tt>login.conf(5)</tt> for details.
<sect2><heading>Login Class Method<label id="russian:class"></heading> <sect2><heading>Login Class Method<label id="russian:class"></heading>
<p> <p>
As first step check your <tt>/etc/login.conf</tt> have First of all check your <tt>/etc/login.conf</tt> have
<bf>russian</bf> login class, this entry may looks like: <tt>russian</tt> login class, this entry may looks like:
<tscreen><verb> <verb>
russian:Russian Users Accounts:\ russian:Russian Users Accounts:\
:charset=KOI8-R:\ :charset=KOI8-R:\
:lang=ru_RU.KOI8-R:\ :lang=ru_RU.KOI8-R:\
:tc=default: :tc=default:
</verb></tscreen> </verb>
<sect3><heading>How to do it with vipw(8)</heading> <sect3><heading>How to do it with vipw(8)</heading>
<p> <p>
If you use <tt>vipw(8)</tt> for adding new users, If you use <tt>vipw(8)</tt> for adding new users,
<tt>/etc/master.passwd</tt> <tt>/etc/master.passwd</tt>
entry should looks like: entry should looks like:
<tscreen><verb> <verb>
user:password:1111:11:russian:0:0:User Name:/home/user:/bin/csh user:password:1111:11:russian:0:0:User Name:/home/user:/bin/csh
</verb></tscreen> </verb>
<sect3><heading>How to do it with adduser(8)</heading> <sect3><heading>How to do it with adduser(8)</heading>
<p> <p>
If you use <tt>adduser(8)</tt> for adding new users, set If you use <tt>adduser(8)</tt> for adding new users:
<tscreen><verb> <itemize>
<item> Set
<verb>
defaultclass = russian defaultclass = russian
</verb></tscreen> </verb>
in <tt>/etc/adduser.conf</tt> in <tt>/etc/adduser.conf</tt>
(you must enter <bf>default</bf> class for all non-Russian (you must enter <tt>default</tt> class for all non-Russian
users in this case). users in this case);
<p> <newline><newline>
Alternative variant will be answer <bf>russian</bf> each time when you see
<tscreen><verb> <item> Alternative variant will be answering <tt>russian</tt>
each time when you see
<verb>
Enter login class: default []: Enter login class: default []:
</verb></tscreen> </verb>
prompt from <tt>adduser(8)</tt>, or call prompt from <tt>adduser(8)</tt>;
<tscreen><verb> <newline><newline>
<item> Another variant: call
<verb>
# adduser -class russian # adduser -class russian
</verb></tscreen> </verb>
for each Russian user you want to add. for each Russian user you want to add.
</itemize>
<sect3><heading>How to do it with pw(8)</heading> <sect3><heading>How to do it with pw(8)</heading>
<p> <p>
If you use <tt>pw(8)</tt> for adding new users, call it in this form: If you use <tt>pw(8)</tt> for adding new users, call it in this form:
<tscreen><verb> <verb>
# pw useradd user_name -L russian # pw useradd user_name -L russian
</verb></tscreen> </verb>
<sect2><heading>Shell Startup Files Method</heading> <sect2><heading>Shell Startup Files Method</heading>
<p> <p>
If you don't want to use If you don't want to use
<ref id="russian:class" name="login class method"> <ref id="russian:class" name="login class method">
for some reasons, just set for some reasons, just set
this two environment variables in <tt>/etc/profile</tt>: this
<tscreen><verb> <ref id="russian:env" name="two environment variables">
in the following shell startup files:
<itemize>
<item> <tt>/etc/profile</tt>:
<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></tscreen> </verb>
and <tt>/etc/csh.login</tt>:
<tscreen><verb> <item> <tt>/etc/csh.login</tt>:
<verb>
setenv LANG ru_RU.KOI8-R setenv LANG ru_RU.KOI8-R
setenv MM_CHARSET KOI8-R setenv MM_CHARSET KOI8-R
</verb></tscreen> </verb>
</itemize>
<p> <p>
Alternatively you can add this instructions to Alternatively you can add this instructions to
<tt>/usr/share/skel/dot.profile</tt> <itemize>
(similar to <tt>/etc/profile</tt>) and <item> <tt>/usr/share/skel/dot.profile</tt>:
<tt>/usr/share/skel/dot.login</tt> (similar to <p>
<tt>/etc/csh.login</tt>). (similar to <tt>/etc/profile</tt> above);
<item> <tt>/usr/share/skel/dot.login</tt>:
<p>
(similar to <tt>/etc/csh.login</tt> above).
</itemize>
<sect1><heading>X Window Setup<label id="russian:xwindow"></heading> <sect1><heading>X Window Setup<label id="russian:xwindow"></heading>
<p> <p>
First off all do <enum>
<item> First off all do
<ref id="russian:locale" name="locale setup"> as described. <ref id="russian:locale" name="locale setup"> 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
(lower than 3.2.1 + patches). (lower than 3.2.1 + locale/keyboard patches).
XFree86 port from <tt>/usr/ports/x11/XFree86</tt> already have XFree86 port from <tt>/usr/ports/x11/XFree86</tt> already have
all neccessary patches, so it will work, if you install XFree86 all neccessary patches, so it will work, if you install XFree86
from this port. 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.
<p>
Then 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
<tscreen><verb> <verb>
# make all install # make all install
</verb></tscreen> </verb>
there. This port install latest version of KOI8-R fonts. there. This port install latest version of KOI8-R fonts.
<p> <p>
Check find <tt>"Files"</tt> section in your <tt>/etc/XF86Config</tt>, Check find <tt>"Files"</tt> section in your <tt>/etc/XF86Config</tt>,
following lines must be before any other <tt>FontPath</tt> entries: following lines must be before any other <tt>FontPath</tt> entries:
<tscreen><verb> <verb>
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/misc" FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/misc"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/75dpi" FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/100dpi" FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/100dpi"
</verb></tscreen> </verb>
<p> <p>
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.
<p>
To activate Russian keyboard add <item> To activate Russian keyboard add
<tscreen><verb> <verb>
XkbKeymap "xfree86(ru)" XkbKeymap "xfree86(ru)"
</verb></tscreen> </verb>
line into <tt>"Keyboard"</tt> section in your <tt>/etc/XF86Config</tt>, line into <tt>"Keyboard"</tt> section in your <tt>/etc/XF86Config</tt>,
also make sure that <tt>XkbDisable</tt> is turned off (commented out) also make sure that <tt>XkbDisable</tt> is turned off (commented out)
there. there.
<p> <p>
RUS/LAT switch will be <it>CapsLock</it>. RUS/LAT switch will be <bf>CapsLock</bf>. Old CapsLock function still
available via <bf>Shift+CapsLock</bf> (in LAT mode only).
<p> <p>
<it>NOTE:</it> <it>NOTE:</it>
Russian XKB keyboard may not work with old XFree86 versions, Russian XKB keyboard may not work with old XFree86 versions,
see <ref id="russian:note" name="locale note"> for more info. see <ref id="russian:note" name="locale note"> for more info.
</enum>