From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Using quail input methods to translate buffer text. Date: Fri, 07 Jul 2006 21:29:16 +0900 Message-ID: References: <87k66rlqys.fsf@heslin.eclipse.co.uk> <87y7v5fvp2.fsf@dur.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1152275450 5662 80.91.229.2 (7 Jul 2006 12:30:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Jul 2006 12:30:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 07 14:30:44 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FypTO-0001kn-8H for ged-emacs-devel@m.gmane.org; Fri, 07 Jul 2006 14:30:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FypTN-0000BT-Jc for ged-emacs-devel@m.gmane.org; Fri, 07 Jul 2006 08:30:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FypT5-00009N-BZ for emacs-devel@gnu.org; Fri, 07 Jul 2006 08:29:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FypT3-00007F-60 for emacs-devel@gnu.org; Fri, 07 Jul 2006 08:29:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FypT2-00006q-Sb for emacs-devel@gnu.org; Fri, 07 Jul 2006 08:29:56 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FypTR-0001uM-Uj for emacs-devel@gnu.org; Fri, 07 Jul 2006 08:30:22 -0400 Original-Received: from smtp1.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k67CTl6Q019597; Fri, 7 Jul 2006 21:29:49 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id k67CTkPr000802; Fri, 7 Jul 2006 21:29:46 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1FypSO-0001WR-00; Fri, 07 Jul 2006 21:29:16 +0900 Original-To: Peter Heslin In-reply-to: <87y7v5fvp2.fsf@dur.ac.uk> (message from Peter Heslin on Fri, 07 Jul 2006 13:25:45 +0100) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:56717 Archived-At: In article <87y7v5fvp2.fsf@dur.ac.uk>, Peter Heslin writes: > Thank you very much! This function will be extremely useful on a daily > basis (and I would guess also to others converting text from legacy > encodings to Unicode). > I append below a version of your function which suits my working habits. > The only problem I have noticed so far is this: if it encounters an > end-of-line at a point where it is still looking for possible keystrokes > to modify the current character, then the function stops there and does > not process the rest of the string. > I have worked around this for my purposes by appending a space to every > line before conversion, but I hope there is a cleaner solution. Currently I think there's no clean solution. Even appending a space doesn't work for some input methods. I have some idea about making input methods work as batch, but that requires big changes in the current code. Perhaps for emacs-unicode-2. --- Kenichi Handa handa@m17n.org