Re: Problem with sun5t latin1 keyboard
[Format recovered--see http://www.lemis.com/email/email-format.html] On Mon, Sep 10, 2001 at 04:13:41PM +0200, Yann MORERE wrote: > I compiled the 1.1.6fix 3 release on a sun sparc station 5 under > debian potato. I'm using the sun5t latin 1 keyboard. > > I got the following problem : > > I can't make an "ê" in lyx. pressing simultaneously ^ and e gives me > an e. In fact the ^ key seems to have no effect. > Using "xev" to show the key I got > > KeyPress event, serial 20, synthetic NO, window 0x281, > root 0x2b, subw 0x0, time 3699913641, (158,468), root:(727,555), > state 0x40, keycode 71 (keysym 0x1005ff01, SunFA_Circum), same_screen YES, > XLookupString gives 0 characters: "" I believe your problem is with your X keyboard mapping. And can be fixed by using xmodmap in your X startup file (~/.xinitrc and/or ~/.xsession). I'm not a keyboard expert and I rarely use accented characters however. I used xkeycaps (http://www.jwz.org/xkeycaps/) to set my Scroll Lock key to make the SunFA_Circum keysym. After doing so xev reports similar to what you give but I was unable to do anything useful with the key. I then set it to the "dead_circumflex" keysym (under the ISO submenu in xkeycaps) and I was able to get "ê" by typing (*not* holding scroll lock down but releasing if before typing the ). I recommend xkeycaps as a useful tool when doing things with keyboard setup under X windows. There is lots of useful information about keyboard mappings in the xkeycaps manpage. In fact the it mentions SuSE Linux having many problems with their default keymap. For the rare occasion when I need accented or special characters I use a compose key (the "Multi_key" keysym mapped with an unused modifier to one of the otherwise useless winblows keys on my keyboard with an xkeycaps produce xmodmap file). So for an "ê" I type <^>. Assuming you use XFree86 then the file /usr/X11R6/lib/X11/locale/iso8859-1/Compose lists the available compose and dead key combinations. Substitute the appropriate encoding for iso8859-1. For example grepping for "ecircumflex" gives: : "\352"ecircumflex : "\352"ecircumflex : "\352"ecircumflex : "\352"ecircumflex : "\352"ecircumflex I did notice that some of the other encoding's "Compose" files lacked lines for "ecircumflex" for some reason (again I know nothing about these iso8859 encoding things). So in summary: - get xkeycaps from http://www.jwz.org/xkeycaps/ - edit the keysym of your existing "SunFA_Circum" key making sure it has an otherwise unused modifier - have xkeycaps write the file, it will use ~/.xmodmap-$HOSTNAME - xkeycaps will tell you to add something like "xmodmap ~/.xmodmap-`uname -n`" to your ~/.xinitrc and/or ~/.xsession files If you want to write the .xmodmap file by hand it will look something like this: keycode 0x47 = dead_circumflex add Mod3 = dead_circumflex (assuming the key doesn't already have a modifier and Mod3 isn't already used). Hope this helped, -- Dave Chapeskie OpenPGP Key KeyId: 3D2B6B34
Problem with sun5t latin1 keyboard
Hello, lys users, I compiled the 1.1.6fix 3 release on a sun sparc station 5 under debian potato. I'm using the sun5t latin 1 keyboard. I got the following problem : I can't make an "ê" in lyx. pressing simultaneously ^ and e gives me an e. In fact the ^ key seems to have no effect. Using "xev" to show the key I got KeyPress event, serial 20, synthetic NO, window 0x281, root 0x2b, subw 0x0, time 3699913641, (158,468), root:(727,555), state 0x40, keycode 71 (keysym 0x1005ff01, SunFA_Circum), same_screen YES, XLookupString gives 0 characters: "" KeyRelease event, serial 23, synthetic NO, window 0x281, root 0x2b, subw 0x0, time 3699913781, (158,468), root:(727,555), state 0x40, keycode 71 (keysym 0x1005ff01, SunFA_Circum), same_screen YES, XLookupString gives 0 characters: "" after pressing the ^ key KeyPress event, serial 23, synthetic NO, window 0x281, root 0x2b, subw 0x0, time 3699916981, (158,468), root:(727,555), state 0x40, keycode 63 (keysym 0x65, e), same_screen YES, XLookupString gives 1 characters: "e" KeyRelease event, serial 23, synthetic NO, window 0x281, root 0x2b, subw 0x0, time 3699917051, (158,468), root:(727,555), state 0x40, keycode 63 (keysym 0x65, e), same_screen YES, XLookupString gives 1 characters: "e" after e key is anybody have an idea to fix this problem Yann -- "Y faut liiirrreee, Arlequin, Champion de l'amou" Dany Boon --- (Yann MORERE ICQ=#97130491 mailto:[EMAIL PROTECTED]) (Docteur en Automatique http://ymorere.multimania.com/ )