Re: Keyboard remapping.

2007-12-29 Thread Alex Malinovich
Nuno Magalhães wrote:
 Why not just set up a Compose Key? I have my compose key set to the
 right Windows key on my keyboard, so to type ê, for example, I could type:
 
 'Cos i was being picky :-) I assume that's the same as using AltGr,
 i'd be happy with that as well, but regardless of the way i choose to
 do it i'd have to add something somewhere, that's where i'm lost.
 

It's similar to using AltGr, but not the same. With AltGr you can only
do one special character per key, so you're limited to about 50 total.
And if they're not already labeled on your keyboard you have to remember
which key is used for which character. A compose key puts you into a
special entry mode. So, with the ê example above, assuming you're using
the right Win key as your Compose Key:

Push (and release) the right Win key
Type the letter e
Type the character ^

What you'll see appear on the terminal is ê.

Here's instructions on how to set it up system-wide:

http://www.linuxhowtos.org/Tips%20and%20Tricks/compose.htm

To set it per-user you can use either xmodmap, setxkbmap, or if you're
using Gnome or KDE, you can set it through the GUI tools. (In Gnome, for
example, go to System - Preferences - Keyboard - Layout Options)

P.S. It's better to reply to the list than directly to the individual
poster. The more people that see your message the more likely that it
will be answered.

-- 
Alex Malinovich
Support Free Software, delete your Windows partition TODAY!
Encrypted mail preferred. You can get my public key from any of the
pgp.net keyservers. Key ID: A6D24837


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Keyboard remapping.

2007-12-28 Thread Alex Malinovich
Nuno Magalhães wrote:
 Greetings.
 
 I'm running Debian unstable on AMD64. My keyboard map is portuguese, it has
 deadkeys. In particular, the ^ key. If i press ^ and e, i'll get ê.I'd
 like to do the same with 6 other letters and there are 3 ways.
 
 - The correct one, where ^+letter would result in that same letter with ^
 - the lazy one, where AltGr+letter would be used (i was previously
 using this in another machine)
 - the practical one: typing e+x would produce ê, typing shift+e+x
 (E+x) would produce Ê.
--snip--

Why not just set up a Compose Key? I have my compose key set to the
right Windows key on my keyboard, so to type ê, for example, I could type:

R Win Key, e, ^

It's an extra keystroke but it works for a very wide range of characters:

RWin, a, e = æ
RWin, O, E = œ

etc.

-- 
Alex Malinovich
Support Free Software, delete your Windows partition TODAY!
Encrypted mail preferred. You can get my public key from any of the
pgp.net keyservers. Key ID: A6D24837


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Keyboard remapping.

2007-12-27 Thread Nuno Magalhães
Greetings.

I'm running Debian unstable on AMD64. My keyboard map is portuguese, it has
deadkeys. In particular, the ^ key. If i press ^ and e, i'll get ê.I'd
like to do the same with 6 other letters and there are 3 ways.

- The correct one, where ^+letter would result in that same letter with ^
- the lazy one, where AltGr+letter would be used (i was previously
using this in another machine)
- the practical one: typing e+x would produce ê, typing shift+e+x
(E+x) would produce Ê.

After using xmodmap -pke i wrote this file, called .eoklavoj:
keycode  30 = u U ubreve Ubreve downarrow uparrow
keycode  39 = s S scircumflex Scircumflex ssharp section
keycode  42 = g G gcircumflex Gcircumflex eng ENG
keycode  43 = h H hcircumflex Hcircumflex hstroke Hstroke
keycode  44 = j J jcircumflex Jcircumflex
keycode  54 = c C ccircumflex Ccircumflex cent copyright

...which is in my home. So issuing xmodmap .eoklavoj would produce
the desired effect. If i issue xmodmap -pke again, in fact those
letters appear to be changed. However, in terminal, xchat, iceweasel,
gedit, abiword, etc, etc they still have their normal AltGr+
funtionality. C, for instance, still produces ¢ and (c), not
ccircumflex and Ccircumflex .

This would be the lazy way. The output of xmodmap -pke does show all
the letters i want to change, and also the [~^] key, which is:
keycode  51 = dead_tilde dead_circumflex dead_grave dead_breve
dead_grave dead_breve
However, i couldn't find where is it defined which letters get to be
accented. I can easily produce ã, but not ~s for instance. If i want
to do it the right way instead of the easy way i'd need this
information and probably wouldn't need to fiddle with xmodmap.

This is xev's output when i press AltGr+s:
KeyPress event, serial 29, synthetic NO, window 0x2c1,
   root 0x135, subw 0x0, time 4196303626, (87,-7), root:(91,41),
   state 0x10, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
   XLookupString gives 0 bytes:
   XmbLookupString gives 0 bytes:
   XFilterEvent returns: False

KeyPress event, serial 29, synthetic NO, window 0x2c1,
   root 0x135, subw 0x0, time 4196303829, (87,-7), root:(91,41),
   state 0x90, keycode 39 (keysym 0xdf, ssharp), same_screen YES,
   XLookupString gives 2 bytes: (c3 9f) ß
   XmbLookupString gives 2 bytes: (c3 9f) ß
   XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x2c1,
   root 0x135, subw 0x0, time 4196303912, (87,-7), root:(91,41),
   state 0x90, keycode 39 (keysym 0xdf, ssharp), same_screen YES,
   XLookupString gives 2 bytes: (c3 9f) ß

KeyRelease event, serial 29, synthetic NO, window 0x2c1,
   root 0x135, subw 0x0, time 4196304038, (87,-7), root:(91,41),
   state 0x90, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
   XLookupString gives 0 bytes:

I've tried this in windowmaker, same thing. I've tried it under root,
same thing. What am i missing here? deb-user got me nowhere, neither
did rtfm-ing of search engines.

Please do not quote my whole message when replying.
Thanks in advance.

-- 
Fica bem, porta-te mal.
Be well, misbehave.