Art Alexion on 17 Sep 2004 14:20:03 -0000


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

Re: [PLUG] deadkeys


Kevin Carruthers wrote:

On Thu, 2004-09-16 at 20:15, Art Alexion wrote:


Kevin Carruthers wrote:




Is AltGr (ModeShift) turned on in XF86Config?

Here is the keyboard section

   # **********************************************************************
   # Keyboard section
   # **********************************************************************

Section "Keyboard"



   # To set the LeftAlt to Meta, RightAlt key to ModeShift,
   # RightCtl key to Compose, and ScrollLock key to ModeLock:

LeftAlt Meta
RightAlt Meta



Change to: RightAlt ModeShift



       ScrollLock      Compose
       RightCtl        Control



The Mode_switch key (sometimes called AltGr) is similar to shift. Between the two modifiers you can assign upto 4 characters per key.

X allows you to map any 4 keysyms (key behaviours - i.e. 'a', ESC,
PageUp, etc.) to any keycode (the physical key - i.e. scancodes).  This
means that you can turn your 'b' key into "shift" and 'shift-a' into
"7".  As if you would want to...


The keysyms associated with a keycode are shown as columns in the output of 'xmodmap -pk'. In my case:

$ xmodmap -pk | grep quotedbl
48 	- keycode (the '"' key)

0xfe51 (dead_acute) - unmodified key press

0xfe57 (dead_diaeresis) - Shift

0x0027(apostrophe) - Mode_switch

0x0022 (quotedbl) - mode_switch + shifted


So to get a '"' character I would have to press the "-key + Shift + Mode_switch. To get access to this special key, remap the right alt key (standard location):

#make the left "Alt" key the "Mode_Switch" key
bash$ xmodmap -e 'keycode 113 = Mode_switch'


# turn Mode_switch into a Modifier
bash$ xmodmap -e 'add mod3 = Mode_switch'

You may also need to make a change to XF86Config (see above).




You can actual map


Make the above change to XF86Config.


Restarted X and it works!  thanks so much.

--

_______________________________________
Art Alexion
Arthur S. Alexion LLC
arthur [at] alexion [dot] com
aim: aalexion
sms: 2679725536 [at] messaging [dot] sprintpcs [dot] com

PGP fingerprint: 52A4 B10C AA73 096F A661  92D2 3B65 8EAC ACC5 BA7A
The attachment -- signature.asc -- is my electronic signature; no need for alarm.
Info @ http://mysite.verizon.net/art.alexion/encryption/signature.asc.what.html

Key for signed PDFs available at
http://mysite.verizon.net/art.alexion/encryption/ArthurSAlexion.p7c
The validation string is TTJY-ZILJ-BJJG.
________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature