NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD Localization



On Mon, Feb 26, 2024 at 11:06:09 -0500, Ivan "Rambius" Ivanov wrote:

> On Sat, Feb 24, 2024 at 9:20 PM Valery Ushakov <uwe%stderr.spb.ru@localhost> wrote:
> >
> > On Sat, Feb 24, 2024 at 13:42:55 +0100, Martin Neitzel wrote:
> >
> > > > I can use setxkbmap in X to change the input language. If I am in text
> > > > mode and not in X how can I switch the input language?
> > >
> > > See wsconsctl(8), in particular the first example there.
> >
> > I guess the question is not about setting the layout, but switching
> > between say latin and cyrillic within one layout.
> 
> This is exactly what I was looking for - switching from latin
> cyrillic. Is it possible to do that outside of X11?

As I said, it doesn't look like there's a locking version of mode
switch.  Obviously, typing the other alphabet while constantly holding
mode switch is not practical :)

I haven't touched this in ages, so my memory is _very_ hazy (serial
consoles ftw!).  It should be relatively trivial to add to wskbd.c a
locking mode switch (like caps lock for caps) along the current
non-locking (like shift for caps).

I think the next stumbling block will be the adding the keysym mappings.

I never was too motiviated to look at this b/c wscons can only do
8-bit encodings (koi8, 8859-5) and with the shift to unicode they are
not very useful in the console.  Also, have I already mentioned serial
consoles? :)

So while the problem of switching to the other group within the same
layout is simple in isolation, it's the other surrounding issues that
conspire to make it a bit of a drag.

-uwe


Home | Main Index | Thread Index | Old Index