Spelling.Language

g GObject.Object GObject.Object Spelling.Language Spelling.Language GObject.Object->Spelling.Language

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

add_word (word)

contains_word (word, word_len)

get_code ()

get_extra_word_chars ()

ignore_word (word)

list_corrections (word, word_len)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

code

str

r/w/co

The language code

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Spelling.Language(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Spelling.LanguageClass

add_word(word)
Parameters:

word (str) –

contains_word(word, word_len)
Parameters:
  • word (str) –

  • word_len (int) –

Return type:

bool

get_code()
Return type:

str

get_extra_word_chars()
Return type:

str

ignore_word(word)
Parameters:

word (str) –

list_corrections(word, word_len)
Parameters:
  • word (str) – a word to be checked

  • word_len (int) – the length of word, or -1 if word is zero-terminated

Returns:

A list of possible corrections, or None.

Return type:

[str] or None

Retrieves a list of possible corrections for word.

Property Details

Spelling.Language.props.code
Name:

code

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The language code