zsh-users
 help / color / mirror / code / Atom feed
* spelling correction bug?
@ 2003-09-16 11:45 Dominik Vogt
  2003-09-16 12:02 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Dominik Vogt @ 2003-09-16 11:45 UTC (permalink / raw)
  To: Zsh Users

I have my zsh-4.0.4 configured for spelling correction:

  setopt CORRECT
  unsetopt CORRECT_ALL

(not using the new completion system yet).  Now, when I type

  $ mape all

zsh asks

  zsh: correct 'mape' to 'mpage' [nyae]? 

But "mpage" is two character errors away from "mape", while "make"
is only one error away.  Shouldn't it try closer matches first?

Ciao

Dominik ^_^  ^_^


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: spelling correction bug?
  2003-09-16 11:45 spelling correction bug? Dominik Vogt
@ 2003-09-16 12:02 ` Peter Stephenson
  2003-09-16 12:11   ` Dominik Vogt
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2003-09-16 12:02 UTC (permalink / raw)
  To: dominik.vogt; +Cc: Zsh Users

Dominik Vogt wrote:
> I have my zsh-4.0.4 configured for spelling correction:
> 
>   setopt CORRECT
>   unsetopt CORRECT_ALL
> 
> (not using the new completion system yet).  Now, when I type
> 
>   $ mape all
> 
> zsh asks
> 
>   zsh: correct 'mape' to 'mpage' [nyae]? 
> 
> But "mpage" is two character errors away from "mape", while "make"
> is only one error away.  Shouldn't it try closer matches first?

This sort of correction (unlike that in the completion system) is
actually based on the keyboard layout; that's why there's an option
DVORAK to use the Dvorak keyboard.   Hence it decides `k' isn't near
enough to `p' for you to have meant that, whereas you might (without
reference to the keyboard) have missed out a letter or transposed a
couple.

There's a long-standing wish that you could use completion-style
correction at this point, but it's a lot of work.  With Sven absent,
it's not even clear there's anyone capable of doing it at the moment.

pws


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: spelling correction bug?
  2003-09-16 12:02 ` Peter Stephenson
@ 2003-09-16 12:11   ` Dominik Vogt
  0 siblings, 0 replies; 3+ messages in thread
From: Dominik Vogt @ 2003-09-16 12:11 UTC (permalink / raw)
  To: Zsh Users

On Tue, Sep 16, 2003 at 01:02:35PM +0100, Peter Stephenson wrote:
> Dominik Vogt wrote:
> > I have my zsh-4.0.4 configured for spelling correction:
> > 
> >   setopt CORRECT
> >   unsetopt CORRECT_ALL
> > 
> > (not using the new completion system yet).  Now, when I type
> > 
> >   $ mape all
> > 
> > zsh asks
> > 
> >   zsh: correct 'mape' to 'mpage' [nyae]? 
> > 
> > But "mpage" is two character errors away from "mape", while "make"
> > is only one error away.  Shouldn't it try closer matches first?
> 
> This sort of correction (unlike that in the completion system) is
> actually based on the keyboard layout; that's why there's an option
> DVORAK to use the Dvorak keyboard.   Hence it decides `k' isn't near
> enough to `p' for you to have meant that, whereas you might (without
> reference to the keyboard) have missed out a letter or transposed a
> couple.
> 
> There's a long-standing wish that you could use completion-style
> correction at this point, but it's a lot of work.  With Sven absent,
> it's not even clear there's anyone capable of doing it at the moment.

Thanks for the quick answer.  Actually I have been considering to
give up my work on fvwm and instead take a look at the zsh sources
:-)

Ciao

Dominik ^_^  ^_^


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-16 12:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-16 11:45 spelling correction bug? Dominik Vogt
2003-09-16 12:02 ` Peter Stephenson
2003-09-16 12:11   ` Dominik Vogt

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).