From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Inputting characters with specialist diacritic marks in emacs Date: Tue, 19 Jan 2016 11:20:40 -0500 Message-ID: References: <571eb6f1-614e-4ec0-9c55-bbe1fbfb9ddc@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1453221143 27905 80.91.229.3 (19 Jan 2016 16:32:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jan 2016 16:32:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 19 17:32:10 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aLZCT-0004rh-K4 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jan 2016 17:32:09 +0100 Original-Received: from localhost ([::1]:37980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLZCT-0000bx-0o for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jan 2016 11:32:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLZ1e-00069e-6M for help-gnu-emacs@gnu.org; Tue, 19 Jan 2016 11:20:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLZ1a-00057B-1r for help-gnu-emacs@gnu.org; Tue, 19 Jan 2016 11:20:58 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:54330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLZ1Z-000575-RS for help-gnu-emacs@gnu.org; Tue, 19 Jan 2016 11:20:53 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aLZ1T-0006v7-KI for help-gnu-emacs@gnu.org; Tue, 19 Jan 2016 17:20:47 +0100 Original-Received: from 23-91-143-239.cpe.pppoe.ca ([23.91.143.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jan 2016 17:20:47 +0100 Original-Received: from monnier by 23-91-143-239.cpe.pppoe.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jan 2016 17:20:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 23-91-143-239.cpe.pppoe.ca User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:Q1gwN87MRMwqgoWmv3k9bsx0sgM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108782 Archived-At: > This is not ideal since it's quite difficult to type these bindings. In > Linux I use Ibus mappings which involve double-tapping a similar key (e.g., > when I type "a-a" I get "ā", when I type "i-i" I get "ī" and so on. You want to use a proper input method, yes. AFAIK it should be possible to use your OS's input method (e.g. Ibus under GNU/Linux), but you can also use one of Emacs's own input methods. I'm not sure what's the best input method for your use-case, but at least you can start with the TeX input method, which tends to be a bit verbose but has the advantage of offering a reasonably good coverage. C-u C-\ TeX RET after which you can type "\=a" to input an "ā" or "\~n" to input an "ñ", "\d{d}" to input a "ḍ" (not sure why the method does not allow the use of something shorter like \dd here). You can use M-x describe-input-method RET TeX RET to see a complete description. And C-u C-x = on a character will tell you things like «to input: type "\d{t}" with TeX input method» if the TeX input method is enabled. Stefan PS: Personally, I most often use my OS's input method, where I rely on the "compose" key for most things. See also https://github.com/kragen/xcompose for an example of what you can do on that front.