IBus.EngineSimple¶
- Subclasses:
None
Methods¶
- Inherited:
IBus.Engine (21), IBus.Service (8), IBus.Object (2), GObject.Object (37)
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
IBus.Engine (22), IBus.Service (3), IBus.Object (1), GObject.Object (7)
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class IBus.EngineSimple(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An
IBus.EngineSimple
provides table-based input method logic.see_also:
IBus.Engine
- add_compose_file(file)¶
-
Call
IBus.EngineSimple.add_table
() internally by locale.
- add_table(data, max_seq_len, n_seqs)¶
- Parameters:
data ([
int
]) – The table which must be available during the whole life of the simple engine.max_seq_len (
int
) – Maximum length of a sequence in the table (cannot be greater thanIBus.MAX_COMPOSE_LEN
)n_seqs (
int
) – number of sequences in the table
Adds an additional table to search to the engine. Each row of the table consists of max_seq_len key symbols followed by two guint16 interpreted as the high and low words of a gunicode value. Tables are searched starting from the last added.
The table must be sorted in dictionary order on the numeric value of the key symbol fields. (Values beyond the length of the sequence should be zero.)