Module implementing the spell checker for the editor component.
The spell checker is based on pyenchant.
None |
SpellChecker | Class implementing a pyenchant based spell checker. |
None |
Class implementing a pyenchant based spell checker.
_spelling_dict |
_spelling_lang |
_getDict | Protected classmethod to get a new dictionary. |
getAvailableLanguages | Public classmethod to get all available languages. |
isAvailable | Public classmethod to check, if spellchecking is available. |
setDefaultLanguage | Public classmethod to set the default language. |
SpellChecker | Constructor |
__checkDocumentPart | Private method to check some part of the document. |
__getNextWord | Private method to get the next word in the text after the given position. |
__incrementalCheck | Private method to check the document incrementally. |
__iter__ | Private method to create an iterator. |
__next__ | Private method to advance to the next error. |
add | Public method to add a word to the personal word list. |
checkCurrentPage | Private method to check the currently visible page. |
checkDocument | Public method to check the complete document |
checkDocumentIncrementally | Public method to check the document incrementally. |
checkLines | Public method to check some lines of text. |
checkSelection | Private method to check the current selection. |
checkWord | Public method to check the word at position pos. |
clearAll | Public method to clear all spelling markers. |
getContext | Public method to get the context of a faulty word. |
getError | Public method to get information about the last error found. |
getLanguage | Public method to get the current language. |
getSuggestions | Public method to get suggestions for the given word. |
ignoreAlways | Public method to tell the checker, to always ignore the given word or the current word. |
initCheck | Public method to initialize a spell check. |
next | Public method to advance to the next error. |
remove | Public method to add a word to the personal exclude list. |
replace | Public method to tell the checker to replace the current word with the replacement string. |
replaceAlways | Public method to tell the checker to always replace the current word with the replacement string. |
setLanguage | Public method to set the current language. |
setMinimumWordSize | Public method to set the minimum word size. |
stopIncrementalCheck | Public method to stop an incremental check. |
None |
Protected classmethod to get a new dictionary.
Public classmethod to get all available languages.
Public classmethod to check, if spellchecking is available.
Public classmethod to set the default language.
Constructor
Private method to check some part of the document.
Private method to get the next word in the text after the given position.
Private method to check the document incrementally.
Private method to create an iterator.
Private method to advance to the next error.
Public method to add a word to the personal word list.
Private method to check the currently visible page.
Public method to check the complete document
Public method to check the document incrementally.
Public method to check some lines of text.
Private method to check the current selection.
Public method to check the word at position pos.
Public method to clear all spelling markers.
Public method to get the context of a faulty word.
Public method to get information about the last error found.
Public method to get the current language.
Public method to get suggestions for the given word.
Public method to tell the checker, to always ignore the given word or the current word.
Public method to initialize a spell check.
Public method to advance to the next error.
Public method to add a word to the personal exclude list.
Public method to tell the checker to replace the current word with the replacement string.
Public method to tell the checker to always replace the current word with the replacement string.
Public method to set the current language.
Public method to set the minimum word size.
Public method to stop an incremental check.