In a message dated 8/5/2004 8:23:24 PM Eastern Daylight Time, [EMAIL PROTECTED] writes:
On Thu, 5 Aug 2004 [EMAIL PROTECTED] 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
 
_______________________________________________
Aspell-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/aspell-devel

Reply via email to