Subject: Re: How to add a locale
To: None <current-users@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: current-users
Date: 11/19/2001 22:08:51
On Mon, Nov 19, 2001 at 11:43:16 -0500, Christopher W. Richardson wrote:

> Instead, I'm contemplating the Russification of NetBSD.

Wow.  I guess NetBSD is really short of native Russian users if
Russification initiative comes from someone who's not a native speaker ;)


> 	2) create a Cyrillic wsfont

Something I wanted to do for some time, but all my sparcs are
headless now so I postponed it.

For i386 one can use loadable vga fonts.  I did that with a custom
program (ther was a needed ioctl but no userland utility), but I think
in current -current all the bits are already in place to use them
(mmm, I really should upgrage -current on my notebook).


> 	3) possibly add a WSDISPLAY_FONTENC_KOI8 to wsconsio.h
>            (if the font I end up creating uses KOI8 encoding)

I have to confess I was unable to grok the FONTENC logic in wscons and
its purpose in life.  The only explanation that crossed my mind is
that it's necessary when we need to use line-drawing glyphs from the
"main" font and we need to know at which code points in the main font
they are located.  Otherwise, for the "text" portion of the font, I
don't see why we need to do reencoding.  (perhaps I need to check if
new section 9 pages explain this...)


> I'm also guessing that I'm missing a bunch of stuff, so if anyone
> out there cares to give pointers on how to do this, I'll take all
> the help I can get.

One crucial piece that is missing is locale support.  Currently only
LC_CTYPE is supported.  For a usable locale, at the very least
LC_COLLATE is necessary.  AFAIK, Takashi-san is working on that.


SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen