class Highlighter |
|
The Sonnet Highlighter |
|
|
|
|
Emitted when as-you-type spell checking is enabled or disabled.
description - is a i18n description of the new state, with an optional reason |
|
Adds the given word permanently to the dictionary. It will never
be marked as misspelled again, even after restarting the application.
word - the word which will be added to the dictionary @since 4.1 |
|
|
|
|
|
Ignores the given word. This word will not be marked misspelled for
this session. It will again be marked as misspelled when creating
new highlighters.
word - the word which will be ignored @since 4.1 |
|
|
Returns the state of spell checking.
Returns true if spell checking is active See also setActive() |
|
Checks if a given word is marked as misspelled by the highlighter.
word - the word to be checked Returns true if the given word is misspelled. @since 4.1 |
|
originalWord - missspelled word
suggestions - list of word which can replace missspelled word Deprecated use isWordMisspelled() and suggestionsForWord() instead. |
|
|
Enable/Disable spell checking.
If active is true then spell checking is enabled; otherwise it is disabled. Note that you have to disable automatic (de)activation with setAutomatic() before you change the state of spell checking if you want to persistently enable/disable spell checking. active - if true, then spell checking is enabled See also isActive(), setAutomatic() |
|
|
|
|
|
|
|
|
Returns a list of suggested replacements for the given misspelled word.
If the word is not misspelled, the list will be empty.
word - the misspelled word max - at most this many suggestions will be returned. If this is -1, as many suggestions as the spell backend supports will be returned. Returns a list of suggested replacements for the word @since 4.1 |
|