On Mon, Dec 17, 2012 at 03:28:32AM +0800, Aron Xu wrote: > On Fri, Dec 14, 2012 at 9:11 AM, Gunnar Hjalmarsson <gunna...@ubuntu.com> > wrote: > > Thanks, Aron, for addressing this issue. > > > > On 2012-12-02 15:53, Aron Xu wrote: > >> I'm not sure whether file in /etc/X11/xinit/xinput.d is considered > >> out-dated once im-switch is gone, but currently it's a reliable way to > >> detect which input methods have been installed. > > > > In another discussion I mentioned two examples of why I don't think > > that's a reliable method, at least not in an im-config context: > > > > * uim 'pollutes' /etc/X11/xinit/xinput.d/ with a few files whose names > > are not valid input methods. > > > > * nabi adds a file with just that name, while im-config's idea of the > > method name is 'hangul'. > > > > I see, thanks.
As for Korean input method, I chose hangul as its generic name. nabi is only for xim. GTK/QT IM have hangul in their name. 50_hangul.conf has: Only activate as auto mode if all exist. package_auto () { package_status nabi && \ package_status imhangul-gtk2 && package_status imhangul-gtk3 && \ package_status qimhangul-qt4 } But show it in menu if any one of them are installed. package_menu () { package_status nabi || \ package_status imhangul-gtk2 || package_status imhangul-gtk3 || \ package_status qimhangul-qt4 } > > Attached please find a patch that would implement an option to list > > installed input methods. Maybe it can be done more elegantly, but the > > patch is at least something to start with. > > > > One thing I'd like to mention is that I excluded 'xim' from the list. If > > I understand it correctly, the xim option does not launch any input > > method daemon. To be honest I don't really know what it is, so I may > > well be totally wrong here. > > True but X start its xim thing. Choosing xim means to force using standard xim which is default. So fancy characters can be supported with dead keys etc for many european languages. So people who wish to diable im should chose this. > For xim, let's wait Osamu's opinion... As seen on manpage: 00-09: Input Method choice mode (default/auto/cjkv/REMOVE) 10-49: Input Method supporting multiple languages.(auto ready) 50-79: Input Method supporting limited languages. (auto ready) 80-89: Input Method (deprecated one) (not for auto) 90-99: Used internally by im-config (not for auto) $ ls -1 *.rc 00_default.rc 01_auto.rc 02_cjkv.rc 09_REMOVE.rc --- All these are automatic choice and not a real IM mode. 20_ibus.rc 22_fcitx.rc 24_uim.rc 25_hime.rc 26_gcin.rc 48_scim.rc 50_hangul.rc 60_thai.rc --- All these are real imput method. 78_none.rc 79_xim.rc --- Since XIM is default, these are practically the same .... 80_kinput2.rc 80_xsunpinyin.rc --- Some IM set up which should not be used these days but I kept them here are backup option. 90_bogus.rc 90_custom.rc 90_missing.rc In retrospective none and xim are somewhat redundant. My rationale was, with xim, it uses xim for whatever locale while GNOME/GTK/QT library default may be switched and it did so sometime ago.... > But IMHO there is already some code (almost the same) in im-config, it > would be great to maintain only one copy of the very function in > im-config, probably by making it a function. Osamu? Anyway, hints are in *.conf file content. Regards, Osamu I do niot have time to refactor code into im-config. So what ever works for you is fine for now for Ubuntu。 As for jessie, I could do more factoring. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org