From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?SmFuIERqw6Rydg==?= Newsgroups: gmane.emacs.devel Subject: Re: Cedilla input in UTF-8 locale with dead keys. Date: Mon, 15 Oct 2007 15:13:23 +0200 Message-ID: <47136773.1010302@swipnet.se> References: <1192198027.4579.11.camel@hamlet.sagui> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1192454266 6165 80.91.229.12 (15 Oct 2007 13:17:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2007 13:17:46 +0000 (UTC) Cc: gustavo@sagui.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 15 15:17:37 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IhPlm-0005h6-Pu for ged-emacs-devel@m.gmane.org; Mon, 15 Oct 2007 15:14:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhPlf-0001X4-Vn for ged-emacs-devel@m.gmane.org; Mon, 15 Oct 2007 09:14:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IhPlY-0001Q0-G2 for emacs-devel@gnu.org; Mon, 15 Oct 2007 09:13:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IhPlT-0001Kv-LW for emacs-devel@gnu.org; Mon, 15 Oct 2007 09:13:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhPlT-0001Ki-Hk for emacs-devel@gnu.org; Mon, 15 Oct 2007 09:13:47 -0400 Original-Received: from av12-1-sn2.hy.skanova.net ([81.228.8.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IhPlS-0003Vs-IP for emacs-devel@gnu.org; Mon, 15 Oct 2007 09:13:47 -0400 Original-Received: by av12-1-sn2.hy.skanova.net (Postfix, from userid 502) id AE37137F98; Mon, 15 Oct 2007 15:13:43 +0200 (CEST) Original-Received: from smtp4-2-sn2.hy.skanova.net (smtp4-2-sn2.hy.skanova.net [81.228.8.93]) by av12-1-sn2.hy.skanova.net (Postfix) with ESMTP id 9131337EEA; Mon, 15 Oct 2007 15:13:43 +0200 (CEST) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp4-2-sn2.hy.skanova.net (Postfix) with ESMTP id EA2D037E4C; Mon, 15 Oct 2007 15:13:42 +0200 (CEST) User-Agent: Thunderbird 2.0.0.6 (X11/20070728) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80918 Archived-At: FWIW, Gtk+ has a special handling of this. Gtk+ also processes all compo= se=20 itself, rather than using X. See Gtk+ sources, modules/input/imcedilla.c= : /* The difference between this and the default input method is the handli= ng * of C+acute - this method produces C WITH CEDILLA rather than C WITH A= CUTE. * 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 i= s * used extensively. */ Since Emacs does not use Gtk+ for character input, we don't get that mapp= ing. 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 =C3=A7 (c-cedilla) in gnome-terminal, but it inserts =C4=87 > (c-acute) in Emacs. >=20 > 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? >=20 > 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. >=20 > But, as I'm not that familiar with GTK programming, I don't > know how to do that. >=20 > --- > Kenichi Handa > handa@m17n.org >=20 > ------- Start of forwarded message ------- > From: Gustavo Maciel Dias Vieira > To: bug-gnu-emacs@gnu.org > MIME-version: 1.0 > Content-type: text/plain; charset=3Dutf-8 > Date: Wed, 3 Oct 2007 14:00:55 -0300 (BRT) > Subject: Cedilla input in UTF-8 locale with dead keys. >=20 >=20 > 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 > =C4=87 (accented-c) instead of =C3=A7 (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. >=20 >=20 > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel