[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using quail input methods to translate buffer text.

From: Miles Bader
Subject: Re: Using quail input methods to translate buffer text.
Date: Sat, 08 Jul 2006 09:48:45 +0900

Peter Heslin <address@hidden> writes:
> OK, so I tried a different approach.  I borrowed some lines of this code
> from quail.el without fully understanding the data structures, so it may
> be wrong, but it seems to work for my simple purposes.  Are there any
> problems with this approach?

I tried both Kenichi's and your code using the `japanese' input method,
and yours seems to simply not work at all -- or at least I can't see
what it's doing:  it simply returns nil (and doesn't insert anything in
the buffer).  It does seem to work using the input method
`latin-1-postfix'.  In both cases, it leaves an empty scratch window
behind named "*conversion output*".

Kenichi's code does work properly for both cases, though a bit oddly for
Japanese -- because the japanese input method expects input to be
terminated with RET, you must append a "\r" to the string you pass to
his code to make sure it finishes correctly.

Quidquid latine dictum sit, altum viditur.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]