Hi,

On Tue, Jan 07, 2014 at 11:22:00PM +0100, Gunnar Hjalmarsson wrote:
...
> >> - 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'

Yah...
 
> > 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).

By moving lines and adding:

    -m)
        echo "$IM_CONFIG_ACTIVE"
        echo "$IM_CONFIG_AUTOMATIC"
        exit
        ;;

I can print both.  (only few lines added for -l. )
Also -l can be mixed with -a.

$ im-config -l
 ibus uim xim
$ im-config -a -l
 ibus fcitx uim hime gcin maliit scim hangul thai xim kinput2 xsunpinyin
$ im-config -m
missing
ibus
$ im-config -n ibus
$ im-config -m
ibus
ibus
$ im-config -n auto
$ im-config -m
auto
ibus
$ im-config -n REMOVE
$ im-config -m
missing
ibus

> 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?

In few days, ...
 
> > I am also thinking to add another API to get localized text for each IM:
> > 
> > For example: for ibus, we should be able to get description as
> > 
> > $ im-config -o ibus
                 ^ changed
> > Intelligent Input Bus (IBus)
> >  * Required for all: ibus
> >  * Language specific input conversion support:
...
> 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?

You do not need to use this.  I will add 2 lines for this.

Osamu


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to