emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cedilla input in UTF-8 locale with dead keys.


From: Jan Djärv
Subject: Re: Cedilla input in UTF-8 locale with dead keys.
Date: Mon, 15 Oct 2007 15:13:23 +0200
User-agent: Thunderbird 2.0.0.6 (X11/20070728)

FWIW, Gtk+ has a special handling of this. Gtk+ also processes all compose itself, rather than using X. See Gtk+ sources, modules/input/imcedilla.c:

/* The difference between this and the default input method is the handling
 * of C+acute - this method produces C WITH CEDILLA rather than C WITH ACUTE.
 * For languages that use CCedilla and not acute, this is the preferred mapping,
 * and is particularly important for pt_BR, where the us-intl keyboard is
 * used extensively.
 */

Since Emacs does not use Gtk+ for character input, we don't get that mapping.

        Jan D.


Kenichi Handa skrev:
Attached is a report about the inconsistency of dead key
handling on Emacs with the other applications.  I confirmed
the reported behaviour with the trunk code by starting the X
session in pt_BR.UTF-8 locale.  Typing "RightAlt-' c"
inserts ç (c-cedilla) in gnome-terminal, but it inserts ć
(c-acute) in Emacs.

But, it seems that inserting c-cedilla is the behaviour only
with GNOME/GTK applications (and OpenOffice, Mozilla).  For
instance, xev reports "RightAlt-' c" as c-acute, any KDE
applications (e.g. kedit) insert c-acute.  Gustavo, could
you also try them?

I'm not sure what we should do.  Emacs is not a GTK
application even if it is configured with --with-gtk.  But,
from the user point of view, I think it is better that it
insert c-cedilla as well as the other GNOME applications.

But, as I'm not that familiar with GTK programming, I don't
know how to do that.

---
Kenichi Handa
address@hidden

------- Start of forwarded message -------
From: Gustavo Maciel Dias Vieira <address@hidden>
To: address@hidden
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Date: Wed,  3 Oct 2007 14:00:55 -0300 (BRT)
Subject: Cedilla input in UTF-8 locale with dead keys.


If you use the combination of Emacs 22, a US keyboard and dead
keys in a UTF-8 locale, the combination of '+c will give you
ć (accented-c) instead of ç (cedilla). Granted, not everyone will want
a cedilla, but some people will do. Brazilians for example. GTK2 had
the same issue some time ago and they created an input method called
"cedilla" that is activated based on locale.


_______________________________________________
Emacs-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]