|
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: 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
|
[Prev in Thread] | Current Thread | [Next in Thread] |