* Re: [gentoo-user] Xmodmap with unnamed keycode [not found] <20060718195817.GB2571@homer.bertram-scharpf> @ 2006-07-18 21:10 ` Benno Schulenberg 2006-07-19 23:20 ` [gentoo-user] Xmodmap with unnamed keycode [solved] Bertram Scharpf 0 siblings, 1 reply; 5+ messages in thread From: Benno Schulenberg @ 2006-07-18 21:10 UTC (permalink / raw To: gentoo-user Bertram Scharpf wrote: > I would like to map the the character 0x017f, the long s > (http://en.wikipedia.org/wiki/Long_s)i, to my X keyboard. > > I already succeed with [...] > entering "<C-V>u017f" in Vim and in GVim. Just for info: in nano one could do "<Alt+V>00017f". > Now, I say > > $ xmodmap -e 'keycode 39 = s S 0x017f ssharp 0x017f ssharp' Try this instead: $ xmodmap -e 'keycode 39 = s S 0x100017f ssharp 0x100017f ssharp' Why this works, I don't know. :) Benno -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Xmodmap with unnamed keycode [solved] 2006-07-18 21:10 ` [gentoo-user] Xmodmap with unnamed keycode Benno Schulenberg @ 2006-07-19 23:20 ` Bertram Scharpf 2006-07-20 22:15 ` Benno Schulenberg 0 siblings, 1 reply; 5+ messages in thread From: Bertram Scharpf @ 2006-07-19 23:20 UTC (permalink / raw To: gentoo-user Am Dienstag, 18. Jul 2006, 23:10:31 +0200 schrieb Benno Schulenberg: > Bertram Scharpf wrote: > > I would like to map the the character 0x017f, the long s > > (http://en.wikipedia.org/wiki/Long_s)i, to my X keyboard. > > > > $ xmodmap -e 'keycode 39 = s S 0x017f ssharp 0x017f ssharp' > > Try this instead: > > $ xmodmap -e 'keycode 39 = s S 0x100017f ssharp 0x100017f ssharp' > > Why this works, I don't know. :) Cool. This here seems to work, too: $ xmodmap -e 'keycode 39 = s S U017f ssharp U017f ssharp' Obviously there is a difference between UTF codes and X keycodes. As far as I see, `sacute' is U015b but has a Xmodmap code of 0x1b6. So both of these yield and acute-accented s: $ xmodmap -e 'keycode 39 = s S 0x01b6 ssharp 0x01b6 ssharp' $ xmodmap -e 'keycode 39 = s S U015b ssharp U015b ssharp' Setting bit 0x1000000 seems to mean: "take the UTF-16 character". Thanks a lot. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Xmodmap with unnamed keycode [solved] 2006-07-19 23:20 ` [gentoo-user] Xmodmap with unnamed keycode [solved] Bertram Scharpf @ 2006-07-20 22:15 ` Benno Schulenberg 2006-07-24 19:14 ` Bertram Scharpf 0 siblings, 1 reply; 5+ messages in thread From: Benno Schulenberg @ 2006-07-20 22:15 UTC (permalink / raw To: gentoo-user Bertram Scharpf wrote: > Am Dienstag, 18. Jul 2006, 23:10:31 +0200 schrieb Benno Schulenberg: > > Try this instead: > > > > $ xmodmap -e 'keycode 39 = s S 0x100017f ssharp 0x100017f ssharp' By the way: I found this by grepping for "long s" in /usr/lib/X11/xkb/symbols/pc (on your install probably elsewhere). > Cool. This here seems to work, too: > > $ xmodmap -e 'keycode 39 = s S U017f ssharp U017f ssharp' > > Obviously there is a difference between UTF codes and X > keycodes. Hmm, indeed: see /usr/include/X11/keysymdef.h . Quite confusing. Luckily it understands plain Unicode too. Benno -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Xmodmap with unnamed keycode [solved] 2006-07-20 22:15 ` Benno Schulenberg @ 2006-07-24 19:14 ` Bertram Scharpf 2006-07-24 20:32 ` Benno Schulenberg 0 siblings, 1 reply; 5+ messages in thread From: Bertram Scharpf @ 2006-07-24 19:14 UTC (permalink / raw To: gentoo-user Hi, Am Freitag, 21. Jul 2006, 00:15:48 +0200 schrieb Benno Schulenberg: > Bertram Scharpf wrote: > > Am Dienstag, 18. Jul 2006, 23:10:31 +0200 schrieb Benno Schulenberg: > > > Try this instead: > > > > > > $ xmodmap -e 'keycode 39 = s S 0x100017f ssharp 0x100017f ssharp' > > By the way: I found this by grepping for "long s" in > /usr/lib/X11/xkb/symbols/pc (on your install probably elsewhere). The Irish do map a long s and the Germans don't. This is speaking volumes. Maybe I should propose to at least distribute an XkbVariant "longs" and another one "longs_nodeadkeys". Any caveats? Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Xmodmap with unnamed keycode [solved] 2006-07-24 19:14 ` Bertram Scharpf @ 2006-07-24 20:32 ` Benno Schulenberg 0 siblings, 0 replies; 5+ messages in thread From: Benno Schulenberg @ 2006-07-24 20:32 UTC (permalink / raw To: gentoo-user Bertram Scharpf wrote: > The Irish do map a long s and the Germans don't. This is > speaking volumes. Maybe I should propose to at least > distribute an XkbVariant "longs" and another one > "longs_nodeadkeys". Or just propose a patch that adds one line to the basic layout in .../symbols/de and .../symbols/pc/de: key <AC02> { [ s, S, ssharp, 0x100017F ] }; The only reason they might reject this is that the Romanian variant then loses the long s. But hey, one can't have everything. I've put the long s last, because it can occur at the beginning of a word, so it somewhat has the character of an upper case letter, the sharp s not. Also, its position corresponds with the Irish layout. Benno -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-24 20:41 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20060718195817.GB2571@homer.bertram-scharpf> 2006-07-18 21:10 ` [gentoo-user] Xmodmap with unnamed keycode Benno Schulenberg 2006-07-19 23:20 ` [gentoo-user] Xmodmap with unnamed keycode [solved] Bertram Scharpf 2006-07-20 22:15 ` Benno Schulenberg 2006-07-24 19:14 ` Bertram Scharpf 2006-07-24 20:32 ` Benno Schulenberg
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox