Patch To Implement ignore-case In aspell-0.60-pre2

[email protected]
Newsgroups gmane.comp.gnu.aspell.devel
Message-ID <[email protected]>
 
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_ (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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.