blchinezu / pocketbook-coolreader

Alternative reading application for the PocketBook eReaders based on Linux.
http://www.mobileread.com/forums/showthread.php?t=256917
GNU General Public License v2.0
173 stars 22 forks source link

Dictionary - Suffixes improvement #207

Open bormachine opened 8 years ago

bormachine commented 8 years ago

When using text selection with dictionary, if word is not matched in dictionary- auto-remove suffixes until match is found. Mostly encountered issues with: -s, -ly, -ing, -ed, but also -ment, -ness and other.

Some dictionaries will refer to the original word without the suffix. Clicking on the word within the dictionary window/area will also be good. This is already in #76

blchinezu commented 8 years ago

This could be done but it should be implemented in the dictionary. It wouldn't be the best thing to hard code this stuff since it's valid only for english.

spcmd commented 7 years ago

Yes, I really hope this can be made, it would be a great help when using the dictionary.

baltov commented 6 years ago

At InkPad 3, FW5, if i change row 3815, in cr3pocketbook.cpp, _translateResult = LookupWordExact((char *)what.c_str(), &word, &translation); with _translateResult = LookupWord((char *)what.c_str(), &word, &translation);

dictionary work as expected. Maybe LookupWordExact return something not 0? How can I enable trace log?