[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: XKB with more than two languages
- To: Alex Shnitman <alexsh(at-nospam)hectic.net>
- Subject: Re: XKB with more than two languages
- From: Tzafrir Cohen <tzafrir(at-nospam)technion.ac.il>
- Date: Mon, 8 Jan 2001 21:07:58 +0200 (IST)
- cc: linux-il(at-nospam)cs.huji.ac.il
- In-Reply-To: <20010108161656.D3079@mangodsp.com>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
Hi
On Mon, 8 Jan 2001, Alex Shnitman wrote:
> Hi,
>
> I use the il xkb map and it works like a charm -- if I run a program
> with LANG=he, I can type there in Hebrew. However, is it possible to
> use *three* languages in a program? For example, I'd like to use
> Russian in my browser too. I can use the same setxkbmap command with
> the "ru" map, and then run the browser with LANG=ru_RU and it works.
> But what if I want to use both Hebrew and Russian? Is it even
> theoretically possible?
There are two seperate problems: The stupid X Input Method, and the
cryptic xkb config files.
As for X Input Method (XIM): The default one of X won't accept characters
that are not valid characters, acording to the current character set. You
can change LANG, LC_CTYPE or LC_ALL to change the language. This stupidity
makes one wonder why X bothers so much using multi-byte characters...
Some programs (mozilla and gtk 2.0 are the only two I am aware of) don't
use the standard XIM supplied by X, but, rather, use their own
implementations, and thus aviod the problem.
If you want to use it with netscape, you can abandon languages altogether,
and use "web fonts", and map hebrew and russian key presses to the same
values. It works fine for hebrew, but I'm not sure about russian. But it
is a lame method.
As for using more than two non-english languages in the same xkb map: you
have to prepare your own map (basically: your own symbols file).
Have a look at my he symbols file to see how it can be made more modular.
You can map hebrew to group 2 and russion to group 3 (make an 'ru3'
symbols file, similar to the existing us3). But the current 'ru' symbols
file needs to go through the same cleaning as I did to the "he" one,
before it can be easily modified.
--
Tzafrir Cohen
mailto:tzafrir@technion.ac.il
http://www.technion.ac.il/~tzafrir
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il