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

Re: looking for hebrew key mapping file - for xmodmap



On 21 Jun 2000, Yossi Amon wrote:

> 
> Hi,
> 
> I'm looking for a "Proven to work" key-map file to enable writing
> Hebrew letters in Netscape (Ver 4.6). I know it would not be
> Right-To-Left, but it will enable me to search for Hebrew
> keywords in Hebrew sites.
> 
> I've seen few files that werepartially working, but non of them was
> correct in terms of mapping, and also due to mapping of Alt-<key>
> most of the bindings would have caused Netscape to perform some kind
> of action, like open "Save to File" window and so.
> 
> I've also used the xkeycaps program by Jamie Zawinski, which is
> excellent, but never gotten it to produce a proper map.
> 
> p.s. - I know that such mapping is keyboard defendant, but it would be 
> easier to start with it, and just replace keys using xkeycaps.
> 
> System: P-II, Debian 2.1, MS-win type Keyboard (With two "windows"
> buttons and a "Menu" button on bottom right).
> 

This is not proven to work, but still:

At least for me - the mapping that works for netscape doesn't work for
many other programs.

if I map hebrew keys to 0xe0-0xfa I get something that works with:
netscape
xemacs
rxvt
kvt
xedit
gnp
gxedit

If I map hebrew keys to 0xe0-0xfa I get something that works for:
kedit
gedit
gvim
xterm
licq (qt-gui)
kab
knotes
gnomecard

All of them seem to use a function that converts the key to a string,
display it as the appropriate char in the range 0xe0-0xfa.

If anybody knows how to use one mapping for all of those apps - please let
me know. Keeping two seperate hebrew keymaps just because of apps
incompitabilities is not my idea of a decent configuration.

Anyway - you can try two xkb symbol files:
http://www.technion.ac.il/~tzafrir/HebConfig/usr/X11R6/lib/X11/xkb/symbols/il_8bit
http://www.technion.ac.il/~tzafrir/HebConfig/usr/X11R6/lib/X11/xkb/symbols/il

The second one works for me. It uses the second mapping above. 
The first one should give you the first mapping above. Not tested.

Copy the one you like to the appropriate place (as "il") and make "il"
the keyboard language in your XF86Config. 

As for the problem of alt - you can map a certain modifier to be
ModeSwitch and another one to be ISO_Next_Group (or something similar. I
don't remember exactly - it is analogous to caps-lock here). I think that
if you set your keyboard type to "104" you'll get some sain defaults.
Anyway - your right alt key does not have to send "Alt_R".

One thing I was not able to get around is that when I am currently in the
second group (hebrew keys) and hold ModeSwitch to get an english char - I
get back to the fisrt group (english) permanently. If this is a feature -
any way to avoid it?

-- 
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