aspell-devel
[Top][All Lists]
Advanced

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

[aspell-devel] Patch To Implement ignore-case In aspell-0.60-pre2


From: Saad1Mufti
Subject: [aspell-devel] Patch To Implement ignore-case In aspell-0.60-pre2
Date: Thu, 12 Aug 2004 13:21:35 EDT

In a message dated 8/5/2004 8:23:24 PM Eastern Daylight Time, address@hidden writes:
On Thu, 5 Aug 2004 address@hidden wrote:

> Just started playing with aspell (aspell 0.60), and I have a question. When 
> I spellcheck a single word like "ibm", it says that this is mispelled and 
> suggests "IBM".

Becuase the "ignore-case" is option is unimplemented in Aspell 0.60. 
Sorry.

--
http://kevin.atkinson.dhs.org
 
I have done a patch to aspell-0.60-pre2 to implement the ignore-case option. It appears to be working fine for me against the standard English dictionary.
 
Would it be possible for you to incorporate my patch into a pre3 or maybe the final 0.60? I am new to aspell, so let me know if I have missed some subtle interaction. The changes are very small, the following are the diffs:
 
modules/speller/default/speller_impl.cpp
========================================
459a460
>     s_cmp.case_insensitive = config_->retrieve_bool("ignore-case");

modules/speller/default/language.cpp
====================================
398a399,410
>     if (!case_insensitive)
>         goto try_normal;
>     word = word0;
>     inlist = inlist0;
>     while (*word && *inlist && lang->to_upper(*word) == lang->to_upper(*inlist)) ++word, ++inlist;
>     if (*inlist) goto fail;
>     if (end && lang->special(*word).end) ++word;
>     if (*word) goto fail;
>     return true;
>   try_normal:
>     word = word0;
>     inlist = inlist0;
----------------------
Saad Mufti
America Online
 

reply via email to

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