On 2014-01-07 13:57, Osamu Aoki wrote: > On Sun, Jan 05, 2014 at 02:14:18PM +0100, Gunnar Hjalmarsson wrote: >> So the list presented to the user consists of: >> - default (i.e. auto mode) > > Don't you need to have API to get what is used for auto mode? (-
That would certainly be an improvement. It would allow us to never show an option labelled "default" to the user, but instead show the input method system that is actually loaded (if any). >> - xim (but it's labelled 'none' in the GUI) >> - the installed input method systems > > Don't you need to have API to get which IM is active? (-m) Would be nice, but not very important. We simply parse ~/.xinputrc: def getCurrentInputMethod(self): user_conf_file = os.path.expanduser('~/.xinputrc') if os.path.exists(user_conf_file): for line in open(user_conf_file): if line.startswith('run_im'): return line.split()[1] return 'default' > OK but why not to have API for current active mode and current > auto-selection. (-M) That makes thing complete and you can keep your code as > is for now. I think that something that shows what is used for auto mode would be very useful (whether you combine it in a general -m option or not). Do you think that could be ready within the next few weeks, so we could make use of it in Ubuntu 14.04 that will be released in April? > I am also thinking to add another API to get localized text for each IM: > > For example: for ibus, we should be able to ge as > > $ im-config -N ibus > Intelligent Input Bus (IBus) > * Required for all: ibus > * Language specific input conversion support: > * Japanese: ibus-mozc (best) or ibus-anthy or ibus-skk > * Korean: ibus-hangul > * Simplified Chinese: ibus-pinyin or ibus-sunpinyin or ibus-googlepinyin > * Traditional Chinese: ibus-chewing > * Thai: ibus-table-thai > * Vietnamese: ibus-unikey or ibus-table-viqr > * X Keyboard emulation: ibus-xkbc > * Generic keyboard translation table: ibus-m17n or ibus-table* packages > * Application platform support: > * GNOME/GTK+: ibus-gtk and ibus-gtk3 (both) > * KDE/Qt: ibus-qt4 > * Clutter: ibus-clutter > * EMACS: ibus-el Ok.. Valuable information, indeed. I for one am not sure if it would be best provided through an im-config API. Aron, do you have any thoughts on this? Thanks, Osamu! -- Gunnar Hjalmarsson https://launchpad.net/~gunnarhj -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org