From: Rupert <rswarbrick@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: predictive mode and 'ã'
Date: Sun, 15 Jul 2007 00:42:22 -0000 [thread overview]
Message-ID: <1184460142.458475.103180@q75g2000hsh.googlegroups.com> (raw)
In-Reply-To: <87r6nb5m34.wl@nospam.anselm.chemie.fu-berlin.de>
On Jul 14, 11:14 am, Anselm Helbig <ans...@chemie.fu-berlin.de> wrote:
>
> I haven't used predictive mode yet, so I can't comment on that. But
> the usual way emacs determines if some character belongs to a word or
> not is by syntax tables; these tables are mode-specific. When I put
> point on the letter `ã', `C-u C-x =' gives me some information about
> the character (I'm using GNU Emacs 22), and it says that it's syntax
> is "w which means: word".
>
> What emacs are you using, and what mode are you in? Does M-f
> (forward-word) and M-b (backward-word) stop at accented characters?
> Maybe you can do something about it by fiddling with the syntax
> table (look them up in the elisp manual).
>
> HTH,
>
> Anselm
Could it be that the predictive mode is interpreting your hitting the
~ key as an input of "~" (which would end the word, as it's
punctuation)? Then you'd get the rubbish completion you're describing.
Once you type the following a, however, the string "~a" is squished
into just "ã" and so you end up with "não", which emacs correctly once
again decides is a single word.
The fundamental problem seems to be that predictive mode has no way of
knowing which bit of a "multi-key character" is the last bit and thus
at which point it should decide whether to expand. Maybe there's a
different hook that predictive mode could be using (does emacs send
out one when it finally decides on a character?)
A work-around might be to have a look at different input systems you
might use:
1) If you're in X, you could set, say, your Alt-Gr key to act as
compose. Then you could type something like Alt-Gr ~, a
2) Possibly faster to type with: I know that the German entry mode for
emacs has a "post" form, so you can type ä by ae. Is there a
Portuguese mode similar? Then the punctuation would happen after the
letter and maybe predictive mode wouldn't get confused.
Rupert
next prev parent reply other threads:[~2007-07-15 0:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-13 13:24 predictive mode and 'ã' weber
2007-07-14 10:14 ` Anselm Helbig
2007-07-15 0:42 ` Rupert [this message]
2007-07-16 16:16 ` Mathias Dahl
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=1184460142.458475.103180@q75g2000hsh.googlegroups.com \
--to=rswarbrick@googlemail.com \
--cc=help-gnu-emacs@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.