Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2004 10:52:40 -0600
From:      Nathan Kinkade <nkinkade@ub.edu.bz>
To:        chip <chip@wiegand.org>
Cc:        questions@freebsd.org
Subject:   Re: special characters, ie spanish accents
Message-ID:  <20040323165240.GF12464@nkinkade.bmp.ub>
In-Reply-To: <405FDFF5.5060604@wiegand.org>
References:  <405FDFF5.5060604@wiegand.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040323165240.GF12464>