On Mon, 2007-12-03 at 17:08 +0000, Paul LeoNerd Evans wrote:
> I notice there's a large table of compose sequences in
> gtkimcontextsimple.c. Is there any particular logic to the exact
> sequences listed here, or would it be acceptable to add some more?

The table should be in sync with the one from Xorg, 
/usr/share/X11/locale/en_US.UTF-8/Compose

There is a bug report on this, 
"Synch gdkkeysyms.h/gtkimcontextsimple.c with X.org 6.9/7.0"
http://bugzilla.gnome.org/show_bug.cgi?id=321896

> I'd quite like to have some mappings of Esperanto characters added;
> namely:
> 
> GDK_dead_circumflex, GDK_C, 0, 0, 0, 0x0108, /* 
> LATIN_CAPITAL_LETTER_C_WITH_CIRCUMFLEX */
> GDK_dead_circumflex, GDK_G, 0, 0, 0, 0x011D, /* 
> LATIN_CAPITAL_LETTER_G_WITH_CIRCUMFLEX */
> GDK_dead_circumflex, GDK_H, 0, 0, 0, 0x0124, /* 
> LATIN_CAPITAL_LETTER_H_WITH_CIRCUMFLEX */
> GDK_dead_circumflex, GDK_J, 0, 0, 0, 0x0134, /* 
> LATIN_CAPITAL_LETTER_J_WITH_CIRCUMFLEX */
> GDK_dead_circumflex, GDK_S, 0, 0, 0, 0x015C, /* 
> LATIN_CAPITAL_LETTER_S_WITH_CIRCUMFLEX */
> 
> GDK_dead_circumflex, GDK_c, 0, 0, 0, 0x0109, /* 
> LATIN_SMALL_LETTER_C_WITH_CIRCUMFLEX */
> GDK_dead_circumflex, GDK_g, 0, 0, 0, 0x011D, /* 
> LATIN_SMALL_LETTER_G_WITH_CIRCUMFLEX */
> GDK_dead_circumflex, GDK_h, 0, 0, 0, 0x0125, /* 
> LATIN_SMALL_LETTER_H_WITH_CIRCUMFLEX */
> GDK_dead_circumflex, GDK_j, 0, 0, 0, 0x0135, /* 
> LATIN_SMALL_LETTER_J_WITH_CIRCUMFLEX */
> GDK_dead_circumflex, GDK_s, 0, 0, 0, 0x015D, /* 
> LATIN_SMALL_LETTER_S_WITH_CIRCUMFLEX */
> 
> GDK_dead_caron,      GDK_U, 0, 0, 0, 0x01D3, /* 
> LATIN_CAPITAL_LETTER_U_WITH_CARON */
> 
> GDK_dead_caron,      GDK_u, 0, 0, 0, 0x01D4, /* 
> LATIN_SMALL_LETTER_U_WITH_CARON */
> 
> Should I submit a patch?

A quick glance at the compose file of Xorg shows that these sequences exist 
there which is good.

If you would like to help with bug 321896 it would be great. The current state 
is on how to make the table much smaller, even with the addition of more 
keysyms. There is a script that converts en_US.UTF-8/Compose into a series of 
arrays that should be easy for GTK+ to work on. 
Regarding Greek polytonic there is an optimisation suggested by Tor to reduce 
the sequences (current about 1000 sequences out of 5000).

Simos


_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to