temporary aspell suggest workaround
--HG-- branch : CASEDIACSENS
This commit is contained in:
parent
419ade0352
commit
1bab5ae658
@ -198,13 +198,18 @@ void QtGuiResListPager::suggest(const vector<string>uterms,
|
|||||||
// Actually, we may want to check the frequencies and propose something
|
// Actually, we may want to check the frequencies and propose something
|
||||||
// anyway if a possible variation is much more common (as google does)
|
// anyway if a possible variation is much more common (as google does)
|
||||||
#warning need to take case and diacs sensibility into account somehow
|
#warning need to take case and diacs sensibility into account somehow
|
||||||
// Maybe use the xapian index instead ? How to retrieve the sensitivity flags ?
|
// Maybe use the xapian index instead ? How to retrieve the
|
||||||
if (0) {
|
// sensitivity flags ?
|
||||||
if (aspell->check(*uit, reason))
|
|
||||||
continue;
|
// We used to call aspell->check() here and continue if it
|
||||||
else if (!reason.empty())
|
// succeeded. but this does not work if we are in
|
||||||
return;
|
// case-sensitive mode and the term was not found because of a
|
||||||
}
|
// case difference (our aspell is all lowercase).
|
||||||
|
// if (aspell->check(*uit, reason))
|
||||||
|
// continue;
|
||||||
|
// else if (!reason.empty())
|
||||||
|
// return;
|
||||||
|
|
||||||
if (!aspell->suggest(*rcldb, *uit, asuggs, reason)) {
|
if (!aspell->suggest(*rcldb, *uit, asuggs, reason)) {
|
||||||
LOGERR(("QtGuiResListPager::suggest: aspell failed: %s\n",
|
LOGERR(("QtGuiResListPager::suggest: aspell failed: %s\n",
|
||||||
reason.c_str()));
|
reason.c_str()));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user