GtkIMContextSimple is a simple input method context supporting table-based input methods. It has a built-in table of compose sequences that is derived from the X11 Compose files.
GtkIMContextSimple reads additional compose sequences from the first of the following files that is found: ~/.config/gtk-3.0/Compose, ~/.XCompose, /usr/share/X11/locale/$locale/Compose (for locales that have a nontrivial Compose file). The syntax of these files is described in the Compose(5) manual page.
GtkIMContextSimple also supports numeric entry of Unicode characters by typing Ctrl-Shift-u, followed by a hexadecimal Unicode codepoint. For example, Ctrl-Shift-u 1 2 3 Enter yields U+0123 LATIN SMALL LETTER G WITH CEDILLA, i.e. ģ.
procedure Add_Compose_File
(Self : not null access Gtk_IM_Context_Simple_Record;
Compose_File : UTF8_String)
procedure Add_Table
(Self : not null access Gtk_IM_Context_Simple_Record;
Data : Gint_Array;
Max_Seq_Len : Glib.Gint;
N_Seqs : Glib.Gint)
Adds an additional table to search to the input context. 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.)
the table
Maximum length of a sequence in the table (cannot be greater than GTK_MAX_COMPOSE_LEN)
number of sequences in the table
function Get_Type return Glib.GType
type Gtk_IM_Context_Simple is access all Gtk_IM_Context_Simple_Record'Class;
function Gtk_IM_Context_Simple_New return Gtk_IM_Context_Simple
Creates a new Gtk.IM_Context_Simple.Gtk_IM_Context_Simple.
type Gtk_IM_Context_Simple_Record is new Gtk_IM_Context_Record with null record;
procedure Gtk_New (Self : out Gtk_IM_Context_Simple)
Creates a new Gtk.IM_Context_Simple.Gtk_IM_Context_Simple. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
procedure Initialize
(Self : not null access Gtk_IM_Context_Simple_Record'Class)
Creates a new Gtk.IM_Context_Simple.Gtk_IM_Context_Simple. Initialize does nothing if the object was already created with another call to Initialize* or G_New.