[Webkit-unassigned] [Bug 15616] [GTK] Add spell checking (and grammar?)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 20 13:24:16 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=15616
------- Comment #8 from gns at gnome.org 2009-03-20 13:24 PDT -------
Spelling check table I promised to diegoe
Input/Ouput expectations for void EditorClient::checkSpellingOfString(const
UChar* text, int length, int* misspellingLocation, int* misspellingLength)
Notice that this method returns data through int pointers.
INPUT misspellingLocation
misspellingLength
"asd" 0
3
" qwe" 1
3
" " -1
0
"apple kov" 6
3
" apple kov " 7
3
"apple orange kov tree" 13
3
The input list is realistic; I have checked that all of those are sent to the
function in a way or another. The problem we have is that our Enchant library
doesn't help us here, apparently; we cannot give it arbitrary text and have it
tell us where the spelling problem starts, and what is its length, like the
library used by Mac does, so we need to do our own string handling (such as
finding word boundaries, stripping spaces) to feed enchant with the word we
want to check, and nothing more, while still being able to give WebCore the
proper location.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list