From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: Using quail input methods to translate buffer text.
Date: Fri, 21 Jul 2006 11:50:24 +0900 [thread overview]
Message-ID: <E1G3l5s-0000Z9-00@etlken> (raw)
In-Reply-To: <87lkqob2fe.fsf@heslin.eclipse.co.uk> (message from Peter Heslin on Thu, 20 Jul 2006 18:40:05 +0100)
In article <87lkqob2fe.fsf@heslin.eclipse.co.uk>, Peter Heslin <pj@heslin.eclipse.co.uk> writes:
>> It still doesn't work for chinese-py. For instance, typing
>> "bei2" should input "北", but quail-conv doesn't handle the
>> last "2" correctly.
> Ah, thanks. I think I've fixed this bug, but I'm not sure my fix is
> correct. I have assumed that each compound character sequence may be
> followed by at most a single digit, and that this digit is used to
> access the relevant vector like so: "1" gets the 0th element, "2" gets
> the 1st ..., "9" gets the 8th, and "0" gets the 9th. Does that sound
> right?
> PY.el says: "(each group contains at most 10 characters)", which I take
> to mean that the index number following each group is never more than a
> single digit. Are there other input methods where this is not true?
That's not accurate. See the variable
quail-translation-keymap. A user can select the next/prev
group by typing C-n/C-p. In addition, several input methods
(including chinese-py) remembers the last selection. So, to
get a constant result, we must reset the indices of last
selected translation, which requires modifying contents of
(quail-map).
I think it's not worth working on quail-conv to make it work
correctly for all cases. How about just make it work well
for simple input methods (i.e. ones that (quail-simple)
return t) and reject complicated input methods.
---
Kenichi Handa
handa@m17n.org
next prev parent reply other threads:[~2006-07-21 2:50 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-05 20:46 Using quail input methods to translate buffer text Peter Heslin
2006-07-06 12:11 ` Evil Boris
2006-07-07 1:40 ` Kenichi Handa
2006-07-07 12:25 ` Peter Heslin
2006-07-07 12:29 ` Kenichi Handa
2006-07-07 22:36 ` Peter Heslin
2006-07-08 0:48 ` Miles Bader
2006-07-08 0:54 ` Miles Bader
2006-07-10 21:12 ` Peter Heslin
2006-07-18 1:13 ` Kenichi Handa
2006-07-20 17:40 ` Peter Heslin
2006-07-21 2:50 ` Kenichi Handa [this message]
2006-07-21 2:56 ` Miles Bader
2006-07-21 4:16 ` Kenichi Handa
2006-07-21 16:21 ` Richard Stallman
2006-07-24 1:41 ` Kenichi Handa
2006-07-24 18:22 ` Richard Stallman
2006-07-25 7:16 ` Kenichi Handa
2006-07-25 14:13 ` Richard Stallman
2006-07-26 0:19 ` Kenichi Handa
2006-07-26 19:52 ` Peter Heslin
2006-07-23 21:30 ` Peter Heslin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1G3l5s-0000Z9-00@etlken \
--to=handa@m17n.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.