Main spellchecking class, everything important happens here.
Parameters: |
|
---|
A list of supported languages.
checks if a language exists
Parameters: | language – language to check |
---|
Adds a word to user’s dictionary.
Parameters: | word – the word to add |
---|
Append a new filter to the filter list. Filters are useful to ignore some misspelled words based on regular expressions.
Parameters: |
|
---|
Filter Types:
SpellChecker.FILTER_WORD: The regex must match the whole word you want to filter. The word separation is done by Pango’s word separation algorythm so, for example, urls won’t work here because they are split in many words.
SpellChecker.FILTER_LINE: If the expression you want to match is a single line expression use this type. It should not be an open end expression because then the rest of the line with the text you want to filter will become correct.
SpellChecker.FILTER_TEXT: Use this if you want to filter multiline expressions. The regex will be compiled with the MULTILINE flag. Same with open end expressions apply here.
Appends a tag to the list of ignored tags. A string will be automatic resolved into a tag object.
Parameters: | tag – tag object or tag name |
---|
Initialize the GtkTextBuffer associated with the GtkTextView. If you associate a new GtkTextBuffer with the GtkTextView call this method.
Checks a specified range between two GtkTextIters.
Parameters: |
|
---|
Disable spellchecking.
Enable spellchecking.
Enable or disable spellchecking
Ignores a word for the current session.
Parameters: | word – the word to ignore |
---|
The language used for spellchecking
Rechecks the spelling of the whole text.
Remove a filter from the filter list.
Parameters: |
|
---|
Removes a tag from the list of ignored tags. A string will be automatic resolved into a tag object.
Parameters: | tag – tag object or tag name |
---|