Re: Keyboard Layout on Xorg or GNOME

2011-01-03 Thread Anthony J. Bentley
Hi Daniel,

 I'm running -current. I have an US keyboard but need the dead keys, 
 since my native language have accents and other local punctuation.

I've always used American keyboards without dead keys so I can't really
help here. But an alternative is to set up a compose key, e.g., with

$ setxkbmap -option compose:ralt

to make it right alt. Then you can press (in sequence) Alt ' e to get
an e with acute accent, etc. This is configurable as well; you can set
up a file in ~/.XCompose if you want to change the default bindings.

Note that it uses Latin1 only by default, but you can get full access
to Unicode with LC_CTYPE=en_US.UTF-8 set.

--
Anthony J. Bentley



Re: Keyboard Layout on Xorg or GNOME

2011-01-03 Thread Daniel B.
On Mon, 3 Jan 2011, Anthony J. Bentley wrote:

 Hi Daniel,
 
 Note that it uses Latin1 only by default, but you can get full access
 to Unicode with LC_CTYPE=en_US.UTF-8 set.

Just found the problem. I was setting LC_CTYPE=en_US.UTF-8 in 
.xsession, as suggested by stsp@ at

http://www.undeadly.org/cgi?action=articlesid=20100729233638

This was having no effect in Xorg at all. In firefox, when typing an 
accented character, I was getting:

** (firefox-bin:13132): WARNING **: Error converting text from IM to
UTF-8: Invalid byte sequence in conversion input

Just put all the stuff I normally put in .xsession in .xinitrc (like 
setting LC_CTYPE). Problem solved. In other words, has nothing to do 
with configuring keyboard layout in Xorg.

Thanks for helping.