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.