Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2003 15:24:39 +0200
From:      Willie Viljoen <will@unfoldings.net>
To:        Olga Zenkova <siro200@yahoo.com>, freebsd-questions@freebsd.org
Subject:   Re: russian windows charset
Message-ID:  <200304181524.39597.will@unfoldings.net>
In-Reply-To: <20030418083444.68170.qmail@web9605.mail.yahoo.com>
References:  <20030418083444.68170.qmail@web9605.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 18 April 2003 10:34, someone, possibly Olga Zenkova, typed:
> Hi!

Hey there

> Does anybody knows how to get russian windows charset
> on FreeBSD?

Depends entirely what you want to do with it. If you want it at the console 
(not in X), then all you need is to add these to the end of /etc/rc.conf 
and reboot:

mousechar_start="3"
font8x8="cp866-8x8"
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
scrnmap="koi8-r2cp866"

If you want to use them in X, things get abit more tricky...

First, you need to make sure that the right fonts have been installed with 
your XFree86 distribution. To do this, check in 
/usr/X11R6/lib/X11/fonts/cyrillic/. You should see something like:

%ls /usr/X11R6/lib/X11/fonts/cyrillic/
crox1c.pcf.gz           crox2tbo.pcf.gz         crox5h.pcf.gz           
koi12x24.pcf.gz
crox1cb.pcf.gz          crox2to.pcf.gz          crox5hb.pcf.gz          
koi12x24b.pcf.gz
crox1cbo.pcf.gz         crox3c.pcf.gz           crox5hbo.pcf.gz         
koi5x8.pcf.gz
crox1co.pcf.gz          crox3cb.pcf.gz          crox5ho.pcf.gz          
koi6x10.pcf.gz
crox1h.pcf.gz           crox3cbo.pcf.gz         crox5t.pcf.gz           
koi6x13.pcf.gz
crox1hb.pcf.gz          crox3co.pcf.gz          crox5tb.pcf.gz          
koi6x13b.pcf.gz
crox1hbo.pcf.gz         crox3h.pcf.gz           crox5tbo.pcf.gz         
koi6x9.pcf.gz
crox1ho.pcf.gz          crox3hb.pcf.gz          crox5to.pcf.gz          
koi7x14.pcf.gz
crox1t.pcf.gz           crox3hbo.pcf.gz         crox6h.pcf.gz           
koi7x14b.pcf.gz
crox1tb.pcf.gz          crox3ho.pcf.gz          crox6hb.pcf.gz          
koi8x13.pcf.gz
crox1tbo.pcf.gz         crox3t.pcf.gz           crox6hbo.pcf.gz         
koi8x16.pcf.gz
crox1to.pcf.gz          crox3tb.pcf.gz          crox6ho.pcf.gz          
koi8x16b.pcf.gz
crox2c.pcf.gz           crox3tbo.pcf.gz         crox6t.pcf.gz           
koi9x15.pcf.gz
crox2cb.pcf.gz          crox3to.pcf.gz          crox6tb.pcf.gz          
koi9x15b.pcf.gz
crox2cbo.pcf.gz         crox4h.pcf.gz           crox6tbo.pcf.gz         
koi9x18.pcf.gz
crox2co.pcf.gz          crox4hb.pcf.gz          crox6to.pcf.gz          
koi9x18b.pcf.gz
crox2h.pcf.gz           crox4hbo.pcf.gz         encodings.dir           
koinil2.pcf.gz
crox2hb.pcf.gz          crox4ho.pcf.gz          fonts.alias             
proof9x16.pcf.gz
crox2hbo.pcf.gz         crox4t.pcf.gz           fonts.cache-1           
screen8x16.pcf.gz
crox2ho.pcf.gz          crox4tb.pcf.gz          fonts.dir               
screen8x16b.pcf.gz
crox2t.pcf.gz           crox4tbo.pcf.gz         koi10x16b.pcf.gz
crox2tb.pcf.gz          crox4to.pcf.gz          koi10x20.pcf.gz

These are wrapped by my mail client, they will appear in a different layout, 
but most of them should be there. If not, you can install them with:

%cd XFree86-4-fontCyrillic/
%make install

If you do not have X sources on your system, be ready for a huge download. 
Also, if you have not upgraded your X in a while, and you have a new ports 
tree, you risk getting things out of sync. If that's the case, I'd sugest 
you upgrade your whole X install with portupgrade. The easiest way to do 
that is portupgrade -rR XFree86-libraries, then upgrade individual things 
that have not been upgraded by that (these will be few)

Now you have to enable the fonts for X, you can do this by adding this as 
the first FontPath line in /etc/X11/XF8Config (in the Files section):

	FontPath		"/usr/X11R6/lib/X11/fonts/cyrillic/"

You should see a few other font path entries there which can be used as 
examples.

Once you have the fonts, you can set up your interface to use them by which 
ever means in the interface allows. On KDE, I have seen it automatically 
switch to Cryrillic when needed, it basically uses which ever character set 
it thinks it should be using. If your system does not do this, please let 
me know which interface you are using, and I'll help you figure out how to 
get the characters enabled.

Hope this helps
Will

-- 
Willie Viljoen
Freelance IT Consultant

214 Paul Kruger Avenue, Universitas
Bloemfontein
9321
South Africa

+27 51 522 15 60
+27 51 522 44 36 (after hours)
+27 82 404 03 27 (mobile)

will@unfoldings.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304181524.39597.will>