1 |
Am Dienstag, 18. Jul 2006, 23:10:31 +0200 schrieb Benno Schulenberg: |
2 |
> Bertram Scharpf wrote: |
3 |
> > I would like to map the the character 0x017f, the long s |
4 |
> > (http://en.wikipedia.org/wiki/Long_s)i, to my X keyboard. |
5 |
> > |
6 |
> > $ xmodmap -e 'keycode 39 = s S 0x017f ssharp 0x017f ssharp' |
7 |
> |
8 |
> Try this instead: |
9 |
> |
10 |
> $ xmodmap -e 'keycode 39 = s S 0x100017f ssharp 0x100017f ssharp' |
11 |
> |
12 |
> Why this works, I don't know. :) |
13 |
|
14 |
Cool. This here seems to work, too: |
15 |
|
16 |
$ xmodmap -e 'keycode 39 = s S U017f ssharp U017f ssharp' |
17 |
|
18 |
Obviously there is a difference between UTF codes and X |
19 |
keycodes. As far as I see, `sacute' is U015b but has a |
20 |
Xmodmap code of 0x1b6. So both of these yield and |
21 |
acute-accented s: |
22 |
|
23 |
$ xmodmap -e 'keycode 39 = s S 0x01b6 ssharp 0x01b6 ssharp' |
24 |
$ xmodmap -e 'keycode 39 = s S U015b ssharp U015b ssharp' |
25 |
|
26 |
Setting bit 0x1000000 seems to mean: "take the UTF-16 |
27 |
character". |
28 |
|
29 |
Thanks a lot. |
30 |
|
31 |
Bertram |
32 |
|
33 |
|
34 |
-- |
35 |
Bertram Scharpf |
36 |
Stuttgart, Deutschland/Germany |
37 |
http://www.bertram-scharpf.de |
38 |
-- |
39 |
gentoo-user@g.o mailing list |