Spelling.Checker¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
The language code |
||
r/w/co |
The spell check provider |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Spelling.Checker(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_default()¶
- Returns:
- Return type:
Gets a default
Spelling.Checker
using the default provider and language.
- classmethod new(provider, language)¶
- Parameters:
provider (
Spelling.Provider
) –language (
str
) –
- Returns:
a newly created
Spelling.Checker
- Return type:
Create a new
Spelling.Checker
.
- get_language()¶
-
Gets the language being used by the spell checker.
- get_provider()¶
- Returns:
- Return type:
Gets the spell provider used by the spell checker.
Currently, only Enchant-2 is supported.
Property Details¶
- Spelling.Checker.props.language¶
- Name:
language
- Type:
- Default Value:
- Flags:
The “language” to use when checking words with the configured
Spelling.Provider
. For example,en_US
.
- Spelling.Checker.props.provider¶
- Name:
provider
- Type:
- Default Value:
- Flags:
The “provider” property contains the provider that is providing information to the spell checker.
Currently, only Enchant is supported, and requires using the #SpellingEnchantProvider. Setting this to
None
will get the default provider.