From owner-freebsd-questions@FreeBSD.ORG Tue Mar 23 09:05:45 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 A708016A4CE for ; Tue, 23 Mar 2004 09:05:45 -0800 (PST) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74D7043D1D for ; Tue, 23 Mar 2004 09:05:45 -0800 (PST) (envelope-from nkinkade@fastmail.fm) X-Sasl-enc: NFBDp6HRAGIooO1io5p/Bg 1080060867 Received: from [206.26.199.146] (unknown [206.27.244.136]) by www.fastmail.fm (Postfix) with ESMTP id D0B5B8304F4; Tue, 23 Mar 2004 11:54:26 -0500 (EST) Received: from nkinkade by [206.26.199.146] with local (Exim 4.24; FreeBSD) id 1B5p8q-0009xb-9Q; Tue, 23 Mar 2004 10:52:40 -0600 Date: Tue, 23 Mar 2004 10:52:40 -0600 From: Nathan Kinkade To: chip Message-ID: <20040323165240.GF12464@nkinkade.bmp.ub> References: <405FDFF5.5060604@wiegand.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gatW/ieO32f1wygP" Content-Disposition: inline In-Reply-To: <405FDFF5.5060604@wiegand.org> User-Agent: Mutt/1.4.1i Sender: Nathan Kinkade 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 Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 17:05:45 -0000 --gatW/ieO32f1wygP Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > > > > This may be of limited use to you, but the vim editor has this ability > > built-in (if compiled that way). To see what's available, start a vim > > session and type ':help digraphs'. > > > > -- > > David Fleck > > david.fleck@mchsi.com >=20 > > Thanks for the tip. I just gave that a try and it works fine, a little=20 > cumbersome though. But I'm sure I can get used to it. :) > -- > 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 =3D Mode_switch keycode 10 =3D 1 exclam exclamdown keycode 26 =3D e E eacute Eacute keycode 31 =3D i I iacute Iacute keycode 32 =3D o O oacute Oacute keycode 38 =3D a A aacute Aacute keycode 57 =3D n N ntilde Ntilde keycode 61 =3D 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 ``=E9'' and so on and so forth. Nathan --=20 gpg --keyserver pgp.mit.edu --recv-keys D8527E49 --gatW/ieO32f1wygP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQFAYGtYO0ZIEthSfkkRAhB2AKDUkpSutbh3CceP9/2uBOqskNqQywCeNVhe 3prZ3T/bNHOA7r0c01iZ8Cg= =E6/C -----END PGP SIGNATURE----- --gatW/ieO32f1wygP--