Path: utzoo!attcan!uunet!mcsun!cernvax!chx400!ugun2b!cui!bertrand From: bertrand@cui.unige.ch (IBRAHIM Bertrand) Newsgroups: comp.windows.x Subject: need help to add accented letters to US keyboard Message-ID: <3427@cui.unige.ch> Date: 11 Oct 90 16:11:27 GMT References: <9010102359.AA04691@zia.aoc.nrao.edu> Reply-To: bertrand@cui.UUCP () Organization: University of Geneva / Switerland Lines: 64 Hi, I am using X11r4 on a Sun 3/80 running SunOS 4.0.3, with a type 4 US keyboard. I would like to use the Mod1 key (Meta Left key according to Sun terminology) combined with the Shift key to generate accented letters with the [ ] ; ' ` , . and / keys. I tried to add the following lines to my .keycode.map file: keysym bracketleft=bracketleft braceleft egrave udiaeresis keysym bracketright=bracketright braceright ecircumflex icircumflex keysym semicolon=semicolon colon eacute odiaeresis keysym quoteright=quoteright quotedbl agrave acircumflex keysym equal=equal plus ediaeresis idiaeresis keysym backslash=backslash bar ucircumflex ocircumflex keysym quoteleft=quoteleft tilde ugrave but couldn't get xmodmap to accept that. I also tried: keycode 48=equal plus ediaeresis idiaeresis ... but couldn't get the keyboard to generate an accented letter, even though an "xmodmap -kp" would show the modified entries, i.e. 48 0x003d (equal) 0x002b (plus) 0x00eb (ediaeresis) 0x00ef (idiaeresis) ... I was however able to generate accented letters by redefining the "Shift-ed" definition of the function keys (F1 to F12) with the following lines in my keycode.map file: keycode 12=F1 eacute keycode 13=F2 egrave keycode 14=F10 ocircumflex ... Just in case it could help, here is what the "xmodmap -pm" outputs: xmodmap: up to 2 keys per modifier, (keycodes in parentheses): shift Shift_L (0x6a), Shift_R (0x75) lock Caps_Lock (0x7e) control Control_L (0x53) mod1 Meta_L (0x7f), Meta_R (0x81) mod2 mod3 mod4 mod5 The different documentations (xmodmap, xterm, X, ...) do not give much hint about defining the keysyms corresponding to key-modifier combinations. Could any kind soul point me to the adequate documentation or directly tell me how to achieve my goal. Please respond directly to me. I can post a summary if there is enough interest. Thanks in advance, Bertrand Ibrahim Computer Science department, University of Geneva, Switzerland. BITNET: IBRAHIM@CGEUGE51.bitnet MHS, INTERNET: ibrahim@uni2a.unige.ch JANET: ibrahim%uni2a.unige.ch@uk.ac.ean-relay UUCP: mcsun!cui!bertrand.uucp or bertrand@cui.UUCP