Comment #4 on issue 1728 by [email protected]: [FR] custom compose table support
https://code.google.com/p/ibus/issues/detail?id=1728

Alright. So basically what we have is this:
We have a file here: https://github.com/ibus/ibus/blob/master/src/gtkimcontextsimpleseqs.h which is apparently hardcoded because GTK does so. So whatever changes we make will likely have to be applied to GTK as well. We also have these files: https://github.com/ibus/ibus/blob/master/src/ibuscomposetable.h, which is generated by https://github.com/ibus/ibus/blob/master/src/gencomposetable.c automatically. These are static arrays.

Our goal is therefore to dynamically generate a similar table when ibus is started by reading the /usr/share/X11/locale/lang/Compose files, and then ~/.XCompose.

The only .c file that need to be edited should be ibus/src/ibusenginesimple.c. I think. As a side note, since .XCompose supports using compose key to output more than one character, gencomposetable.c:282 and its associated block should be removed. GTK will have to know this as well; if there are any GTK-people reading this, please alert the appropriate venues.

I will try to produce a basic functioning patch soon.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en
--- You received this message because you are subscribed to the Google Groups "ibus-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

回复