From owner-freebsd-questions@FreeBSD.ORG Tue Mar 23 19:14:56 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAE1516A4CE for ; Tue, 23 Mar 2004 19:14:56 -0800 (PST) Received: from tpa6.isomedia.com (outgoing-mail.isomedia.com [66.114.158.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAEA543D2D for ; Tue, 23 Mar 2004 19:14:56 -0800 (PST) (envelope-from chip@wiegand.org) Received: from localhost (localhost.localdomain [127.0.0.1]) by tpa6.isomedia.com (Postfix) with ESMTP id C810A1CB7FF; Tue, 23 Mar 2004 19:13:41 -0800 (PST) Received: from tpa6.isomedia.com ([127.0.0.1]) by localhost (tpa6.isomedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21746-08; Tue, 23 Mar 2004 19:13:41 -0800 (PST) Received: from pioneernet.net (mail.pioneernet.net [207.115.64.224]) by tpa6.isomedia.com (Postfix) with ESMTP id A182A1CB569; Tue, 23 Mar 2004 19:13:41 -0800 (PST) Received: from wiegand.org [66.114.152.128] by pioneernet.net with ESMTP (SMTPD32-6.06) id ADD5220800A4; Tue, 23 Mar 2004 19:17:41 -0800 Message-ID: <4060FE7D.9070207@wiegand.org> Date: Tue, 23 Mar 2004 19:20:29 -0800 From: chip User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nathan Kinkade References: <405FDFF5.5060604@wiegand.org> <20040323165240.GF12464@nkinkade.bmp.ub> In-Reply-To: <20040323165240.GF12464@nkinkade.bmp.ub> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at isomedia.com cc: questions@freebsd.org Subject: Re: special characters, ie spanish accents X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 03:14:57 -0000 Nathan Kinkade wrote: > On Mon, Mar 22, 2004 at 10:57:57PM -0800, chip wrote: > >>>>How do I get the special characters to work, which work in MS >>>>Windoze using the conbination of right-alt+4digit code? I need to >>>>be able to use certain accents and characters found in spanish >>>>writing. I am using FBSD-5.1 with XFCE window manager. >>-- >>Chip > > > There is more than one way to get diacritic marks working in X. For my > part, since I generally only need a few marks (like you Spanish ones) I > used xmodmap. I put a file in my home directory called .xmodmaprc and > then in my .xinitrc (or .xsession if you use xdm and friends) I added > the line: > > xmodmap ~/.xmodmaprc > > My .xmodmaprc file contains the following: > > clear mod4 > keycode 115 = Mode_switch > keycode 10 = 1 exclam exclamdown > keycode 26 = e E eacute Eacute > keycode 31 = i I iacute Iacute > keycode 32 = o O oacute Oacute > keycode 38 = a A aacute Aacute > keycode 57 = n N ntilde Ntilde > keycode 61 = slash question questiondown > > This allows me to make use of the otherwise useless "windows" keys on my > keyboard. On my systems keycode 115 is the left "windows" key (referred > to as keysym Super_L in X). So, if I press Super_L-e I get ``?'' and so > on and so forth. > > Nathan Thanks Nathan, I have a brand new 104key keyboard, ran xkeycaps to verify the keycodes, and should be able to use your exact .xmodmaprc. The keycodes all match yours. I created the file and added the other line to .xinitrc (the end of the file, don't know if that matters), and restarted X, but I don't get any of the special keys. When I press the Super-L key I get the normal small case letter. I even tried an older 101key keyboard, same results. I also ran xmodmap and it shows mod 4 Super_L (Ox73), Super_R (Ox74) I am running XFree86-4.3.0. The XFree86 log shows the correct keyboard info, and the line Keyboard: CustomKeycode disabled Could that have something to do with this not working? Any ideas why this may not be working for me? Thanks, chip