Trim non-letter chars from both sides before dictionary look
A cross-platform XML/CSS based eBook reader
Brought to you by:
buggins
Hi,
I am using Cool Reader on my Android reader Nook STR and I am facing one annoying issues when searching selected word in dictionary.
1. non-letter characters are not removed from the beginning of the selection, typically left double quotation mark.
2. some non-letter characters are not removed from the end of the selection, typically right double quotation mark.
This makes dictionary search uncomfortable because I have to manually remove those letters.
I am not a Java nor Android developer but I hope that attached patch fixes this issue.
I have used isLetter() function to identify "bad" characters and remove them from both sides of the string.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
proposed patch to trim non-letter characters from both sides of the string before dictionary look-up
Last edit: Anonymous 2016-06-23
Need to check if isLetter() is working ok on national characters.