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 class method to get a new dictionary. |
getAvailableLanguages | Class method to get all available languages. |
getDefaultPath | Class method to get the default path names of the user dictionaries. |
getUserDictionaryPath | Class method to get the path name of a user dictionary file. |
isAvailable | Class method to check, if spellchecking is available. |
setDefaultLanguage | Class method 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__ | Special method to create an iterator. |
__next__ | Special method to advance to the next error. |
add | Public method to add a word to the personal word list. |
checkCurrentPage | Public 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 | Public 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. |
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 class method to get a new dictionary.
Class method to get all available languages.
Class method to get the default path names of the user dictionaries.
Class method to get the path name of a user dictionary file.
Class method to check, if spellchecking is available.
Class method 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.
Special method to create an iterator.
Special method to advance to the next error.
Public method to add a word to the personal word list.
Public 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.
Public 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 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.