View Single Post
Old 11-13-2017, 01:53 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,740
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
I also think that a Numbers as Words checkbox would be a good idea, in particular for OCRed text.

I looked into this some time ago and found out from KevinH that a toggle would need to change line #143 in /src/Misc/HTMLSpellCheck.cpp from:

Code:
    if (c.isLetter()) {
to

Code:
    if (c.isLetterOrNumber()) {
I.e., in terms of programming this shouldn't be too complicated to implement.

@KevinH, @DiapDealer:

Since this line appears to define what a "letter" is in terms of spell-checking, it should be possible to add curly right apostrophes (’ U+2019) to the list of "letters" via an additional if clause. This would fix another frequently reported spell check problem.
To keep it simple, the algorithm would only have to accept curly right apostrophes in the middle of words.


EDIT: I must have misremembered this.

Last edited by Doitsu; 11-13-2017 at 10:17 AM.
Doitsu is offline   Reply With Quote