From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1G3LUM-0004Ft-7k for garchives@archives.gentoo.org; Wed, 19 Jul 2006 23:29:58 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6JNSE4Y004697; Wed, 19 Jul 2006 23:28:14 GMT Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k6JNK6Qi010445 for ; Wed, 19 Jul 2006 23:20:06 GMT Received: from [85.180.13.176] (helo=homer.bertram-scharpf.homelinux.com) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1G3LKn0otx-00007C; Thu, 20 Jul 2006 01:20:05 +0200 Received: from berti by homer.bertram-scharpf.homelinux.com with local (Exim 3.35 #1 (Debian)) id 1G3LKm-000107-00 for ; Thu, 20 Jul 2006 01:20:04 +0200 Date: Thu, 20 Jul 2006 01:20:03 +0200 From: Bertram Scharpf To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Xmodmap with unnamed keycode [solved] Message-ID: <20060719232003.GA3821@homer.bertram-scharpf> References: <20060718195817.GB2571@homer.bertram-scharpf> <200607182310.31661.benno.schulenberg@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200607182310.31661.benno.schulenberg@gmail.com> User-Agent: Mutt/1.5.6+20050307i Sender: Bertram Scharpf X-Provags-ID: kundenserver.de abuse@kundenserver.de login:caffef8ab192698da1c056aa166a41ee X-Archives-Salt: e8a920e6-a105-464c-bc19-65b5499ea5c0 X-Archives-Hash: 963af6bd1870b4470186027366ac7325 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