#18 Trim non-letter chars from both sides before dictionary look

pending
nobody
None
5
2013-02-04
2012-05-03
Anonymous
No

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.

Discussion


  • Anonymous
    2012-05-03

    proposed patch to trim non-letter characters from both sides of the string before dictionary look-up

     
  • Vadim Lopatin
    Vadim Lopatin
    2013-02-04

    • status: open --> pending
     
  • Vadim Lopatin
    Vadim Lopatin
    2013-02-04

    Need to check if isLetter() is working ok on national characters.