From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.devel Subject: Re: [conversion fails] Date: Mon, 12 Feb 2018 11:07:05 +0100 Message-ID: <87zi4eo71y.fsf@mat.ucm.es> References: <878tcbdpf3.fsf@mat.ucm.es> <876078p1gy.fsf@md5i.com> <87tvurldff.fsf@mat.ucm.es> <87wozmnhny.fsf@md5i.com> <8760750vz4.fsf_-_@mat.ucm.es> <87po5aoocr.fsf@md5i.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1518430016 7868 195.159.176.226 (12 Feb 2018 10:06:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2018 10:06:56 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 12 11:06:51 2018 Return-path: Envelope-to: ged-emacs-devel@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 1elB0Q-00014u-MG for ged-emacs-devel@m.gmane.org; Mon, 12 Feb 2018 11:06:38 +0100 Original-Received: from localhost ([::1]:36500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elB2S-0002e2-8c for ged-emacs-devel@m.gmane.org; Mon, 12 Feb 2018 05:08:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elB1i-0002cN-G5 for emacs-devel@gnu.org; Mon, 12 Feb 2018 05:07:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elB1d-0007T9-Jj for emacs-devel@gnu.org; Mon, 12 Feb 2018 05:07:58 -0500 Original-Received: from [195.159.176.226] (port=48304 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elB1d-0007RY-Cl for emacs-devel@gnu.org; Mon, 12 Feb 2018 05:07:53 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1elAzI-0005Rg-BQ for emacs-devel@gnu.org; Mon, 12 Feb 2018 11:05:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 32 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:lj6rRAWgBzpd/jQtmlNeRetEefQ= 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222683 Archived-At: > Uwe Brauer writes: > Okay. > Not all input methods are bijections. Especially not many of the Asian > input methods. > Really? Try typing the following using the ipa input method: > tsh1tsh2tsh3 > The number selects the specific form. If something else it typed rather > than the number, it will use the last remembered version, defaulting to > version 1. Ok I will > I hacked up the following, which is minimally tested, but may work for > you. I tried to use public functions from quail, but the (null (cdr > map)) is probably an implementation detail, and might break in a future > version. There are almost certainly better ways to write this function. > If presented with an ambiguity (like above), it will choose the last > remembered variant (defaulting to 1). Thanks very much, this looks very promising. I will start testing and report back! Uwe