From b63edaf35f026b14fe39f957dad6584ab68e8cba Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Fri, 2 May 1997 02:20:25 +0000 Subject: [PATCH] Add Localization section and Russian Language l10n description (somebody with better English, please check!) BTW: Next: entry have wrong name "Network Communications" in Locale Setup although points to right direction. Looks like sgmlfmt bug... --- share/doc/handbook/Makefile | 4 +- share/doc/handbook/handbook.sgml | 5 +- share/doc/handbook/russian.sgml | 140 +++++++++++++++++++++++++++++++ share/doc/handbook/sections.sgml | 3 +- 4 files changed, 148 insertions(+), 4 deletions(-) create mode 100644 share/doc/handbook/russian.sgml diff --git a/share/doc/handbook/Makefile b/share/doc/handbook/Makefile index befd218a10cf..edbe2129e259 100644 --- a/share/doc/handbook/Makefile +++ b/share/doc/handbook/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.23 1997/02/22 12:58:05 peter Exp $ +# $Id: Makefile,v 1.24 1997/05/01 03:06:31 jfieber Exp $ SRCS= authors.sgml basics.sgml bibliography.sgml boothelp.sgml SRCS+= booting.sgml contrib.sgml crypt.sgml ctm.sgml current.sgml cvsup.sgml @@ -10,7 +10,7 @@ SRCS+= kerberos.sgml kernelconfig.sgml kerneldebug.sgml kernelopts.sgml SRCS+= lists.sgml mail.sgml memoryuse.sgml SRCS+= mirrors.sgml nfs.sgml nutshell.sgml pgpkeys.sgml policies.sgml SRCS+= porting.sgml ports.sgml ppp.sgml printing.sgml -SRCS+= quotas.sgml relnotes.sgml routing.sgml +SRCS+= quotas.sgml relnotes.sgml routing.sgml russian.sgml SRCS+= serial.sgml scsi.sgml sections.sgml sio.sgml skey.sgml slipc.sgml SRCS+= slips.sgml stable.sgml submitters.sgml sup.sgml synching.sgml SRCS+= term.sgml userppp.sgml uart.sgml linuxemu.sgml diff --git a/share/doc/handbook/handbook.sgml b/share/doc/handbook/handbook.sgml index 662236e3df14..abe2ce948268 100644 --- a/share/doc/handbook/handbook.sgml +++ b/share/doc/handbook/handbook.sgml @@ -1,4 +1,4 @@ - + or one of the numerous &hw; + Localization + &russian; + Network Communications diff --git a/share/doc/handbook/russian.sgml b/share/doc/handbook/russian.sgml new file mode 100644 index 000000000000..1474aeb0270f --- /dev/null +++ b/share/doc/handbook/russian.sgml @@ -0,0 +1,140 @@ + + + +Russian Language +

Contributed by &a.ache; +1 May 1997. + +Console Setup +

+Russian console entry in /etc/rc.conf should looks like + +keymap=ru.koi8-r +keychange="61 ^[[K" +scrnmap=koi8-r2cp866 +font8x16=cp866b-8x16 +font8x14=cp866-8x14 +font8x8=cp866-8x8 + +

+NOTE: ^[ means that real ESC character must be entered into +/etc/rc.conf, +not just ^[ string. +

+This tuning means koi8-r keyboard with Alternative codeset +screen font mapped to koi8-r character set to +preserve pseudographics, Gray Delete key remapped to match Russian +termcap entry for console. +See rc.conf(5) for details. +

+For each ttyv? entry in /etc/ttys +change terminal type from cons25 to +cons25r, i.e. each entry should looks like + +ttyv0 "/usr/libexec/getty Pc" cons25r on secure + + +Locale Setup +

+There is two environment variables for locale setup: LANG +and MM_CHARSET. +The best way is using /etc/login.conf +russian user's login class +in passwd(5) entry login class position. +See login.conf(5) for details. +Login Class Method +

+As first step check your /etc/login.conf have +russian login class, this entry may looks like: + +russian:Russian Users Accounts:\ + :charset=KOI8-R:\ + :lang=ru_RU.KOI8-R:\ + :tc=default: + + +How to do it with vipw(8) +

+If you use vipw(8) for adding new users, +/etc/master.passwd +entry should looks like: + +user:password:1111:11:russian:0:0:User Name:/home/user:/bin/csh + + +How to do it with adduser(8) +

+If you use adduser(8) for adding new users, set + +defaultclass = russian + +in /etc/adduser.conf +(you must enter default class for all non-Russian +users in this case). +

+Alternative variant will be answer russian each time when you see + +Enter login class: default []: + +prompt from adduser(8), or call + +# adduser -class russian + +for each Russian user you want to add. + +How to do it with pw(8) +

+If you use pw(8) for adding new users, call it in this form: + +# pw useradd user_name -L russian + + +Shell Startup Files Method +

+If you don't want to use + +for some reasons, just set +this two environment variables in /etc/profile: + +LANG=ru_RU.KOI8-R; export LANG +MM_CHARSET=KOI8-R; export MM_CHARSET + +and /etc/csh.login: + +setenv LANG ru_RU.KOI8-R +setenv MM_CHARSET KOI8-R + +

+Alternatively you can add this instructions to +/usr/share/skel/dot.profile +(similar to /etc/profile) and +/usr/share/skel/dot.login (similar to +/etc/csh.login). + +X Window Setup +

+First off all do + as described. +

+Then go to /usr/ports/russian/X.language directory and say + +# make all install + +there. This port install latest version of KOI8-R fonts. +

+Check find "Files" section in your /etc/XF86Config, +following lines must be before any other FontPath entries: + + FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/misc" + FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/75dpi" + FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/100dpi" + +

If you use high resolution video mode, swap 75 dpi and +100 dpi lines. +

To activate Russian keyboard add + + XkbKeymap "xfree86(ru)" + +line into "Keyboard" section in your /etc/XF86Config, +also make sure that XkbDisable is turned off (commented out) +there. diff --git a/share/doc/handbook/sections.sgml b/share/doc/handbook/sections.sgml index 97d0bb62ebdf..dbe1db726a4c 100644 --- a/share/doc/handbook/sections.sgml +++ b/share/doc/handbook/sections.sgml @@ -1,4 +1,4 @@ - + @@ -47,6 +47,7 @@ +