From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Kenichi Handa <handa@m17n.org>
Cc: gustavo@sagui.org, emacs-devel@gnu.org
Subject: Re: Cedilla input in UTF-8 locale with dead keys.
Date: Mon, 15 Oct 2007 15:13:23 +0200 [thread overview]
Message-ID: <47136773.1010302@swipnet.se> (raw)
In-Reply-To: <E1IhOkt-0005je-4T@etlken.m17n.org>
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
> handa@m17n.org
>
> ------- Start of forwarded message -------
> From: Gustavo Maciel Dias Vieira <gustavo@sagui.org>
> To: bug-gnu-emacs@gnu.org
> 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
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2007-10-15 13:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1IdUUG-0002a3-UI@fencepost.gnu.org>
[not found] ` <E1IgJNl-000664-EJ@etlken.m17n.org>
[not found] ` <1192198027.4579.11.camel@hamlet.sagui>
2007-10-15 12:09 ` Cedilla input in UTF-8 locale with dead keys Kenichi Handa
2007-10-15 12:37 ` Andreas Schwab
2007-10-15 13:13 ` Kenichi Handa
2007-10-15 13:42 ` Andreas Schwab
2007-10-16 5:12 ` Kenichi Handa
2007-10-16 8:35 ` Andreas Schwab
2007-10-16 13:21 ` Stefan Monnier
2007-10-15 13:13 ` Jan Djärv [this message]
2007-10-15 14:02 ` Andreas Schwab
2007-10-16 7:16 ` Jan Djärv
2007-10-15 14:05 ` Stefan Monnier
2007-10-16 2:04 ` Kenichi Handa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47136773.1010302@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=gustavo@sagui.org \
--cc=handa@m17n.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).