From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: how to teach emacs that ' + c = =?utf-8?Q?=C3=A7?= Date: Wed, 05 Jul 2017 03:57:58 +0200 Message-ID: <87a84jbq6x.fsf@wanadoo.es> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1499219923 16862 195.159.176.226 (5 Jul 2017 01:58:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2017 01:58:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 05 03:58:39 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSZaP-00042o-37 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jul 2017 03:58:37 +0200 Original-Received: from localhost ([::1]:43717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSZaU-00074v-Hl for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Jul 2017 21:58:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSZa3-00074k-2n for help-gnu-emacs@gnu.org; Tue, 04 Jul 2017 21:58:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSZZy-0001LQ-7Z for help-gnu-emacs@gnu.org; Tue, 04 Jul 2017 21:58:15 -0400 Original-Received: from [195.159.176.226] (port=42946 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSZZy-0001LH-0u for help-gnu-emacs@gnu.org; Tue, 04 Jul 2017 21:58:10 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dSZZp-0002LQ-RX for help-gnu-emacs@gnu.org; Wed, 05 Jul 2017 03:58:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 78 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:/G/Kv8i5DLqVukhPCX5cAIapZOg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113699 Archived-At: Filipe Silva writes: > I've set up my keyboard layout in arch with localectl set-x11-keymap us > pc104 intl > > By default, in this layout, the ' is a dead character. It is called a dead > acute. In portuguese, we are used to compose the ç char with ' + c = ç when > using international us-keyboard layouts. > > I don't know why, but by default linux distros come configured so that when > you type this combination ' + c= ć, which is an invalid char in Brazilian > portuguese, and so I'm screwed. > > So I did this: > > - > > Editing the files: > > sudo vim /usr/lib/gtk-3.0/3.0.0/immodules.cache sudo vim > /usr/lib/gtk-2.0/2.10.0/immodules.cache > > changing the line > > "cedilla" "Cedilla" "gtk20" "/usr/share/locale" > "az:ca:co:fr:gv:oc:pt:sq:tr:wa" to "cedilla" "Cedilla" "gtk20" > "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en" > - > > replaced "ć" to "ç" and "Ć" to "Ç" on > /usr/share/X11/locale/en_US.UTF-8/Compose > > sudo cp /usr/share/X11/locale/en_US.UTF-8/Compose > /usr/share/X11/locale/en_US.UTF-8/Compose.bak sed 's/ć/ç/g' < > /usr/share/X11/locale/en_US.UTF-8/Compose | sed 's/Ć/Ç/g' > Compose sudo mv > Compose /usr/share/X11/locale/en_US.UTF-8/Compose > - > > add two lines on /etc/environment > > GTK_IM_MODULE=cedilla QT_IM_MODULE=cedilla > - > > restart my computer. > > And all is working fine in firefox, chromium, scite, gvim or any other gui > tool, but no emacs. on emacs, ' + cinsist on producing ć, despite my > efforts. > > > So I ask you, how can I teach emacs to produce ç and not ć in this scenario? > > > thanks in advance. Curious. I have setxkbmap us_intl in my init scripts and have the opposite problem (not actually a problem for me since in my languages ç is not used). ' + c produces ç in Emacs but ć elsewhere. BUT... if I start Emacs with -Q, then ' + c indeed produces as the other applications ć. After looking at my customizations, tried LANG=C emacs -Q and now ' + c gives ç. Hope this gives you some clues. Ubuntu 17.04 here.