Hi,

I kind of see your problem but questions are:
 * is this feature?
 * does this change cause side effect?

On Wed, Jan 28, 2009 at 03:16:51AM +1100, Harshula wrote:
> Package: im-switch
> Version: 1.16
> Severity: important
> Tags: patch
> 
> Hi,
> 
> K. Sethu brought this inconsistent behaviour to my attention [1].
> 
> im-switch(8):
> ------------------------------------------------------------------------
>        im-switch [-v][-z ll_CC] -s inputmethodname
> 
> ...
> 
> -z ll_CC
>        Set up the input method for X run under ll_CC locale (ISO 639  /
>        ISO  3188).   When  setting  for all locales, use all_ALL as the 
>        quasi-locale value here.

This documentation may have room to improve ...

> ------------------------------------------------------------------------
> 
> If im-switch is run with ll_CC set to all_ALL and run again with ll_CC
> set to the real locale, e.g. en_AU, then the "inputmethodname" set for
> en_AU will override the "inputmethodname" set for all_ALL.

That is what I intended this to work.

all_ALL is meant as fallback default as I remember.
 
> One would expect the inverse behaviour where the "inputmethodname" set
> for all_ALL would override the "inputmethodname" set for en_AU.

Hmmm.... could you suggest documentation update to reflect current
situation?

> Fixing this problem is quite straightforward. Simply, search for the
> quasi-locale, all_ALL, symlink before the real locale, en_AU:
> ------------------------------------------------------------------------
> --- 80im-switch.bak     2007-12-25 01:39:19.000000000 +1100
> +++ /etc/X11/Xsession.d/80im-switch     2009-01-28 02:29:39.000000000 +1100
> @@ -30,10 +30,10 @@
>  echo "Setting IM through im-switch for locale=$LNG."
>  
>  # Source first found configuration under $LNG locale
> -for f in    "$HOME/.xinput.d/${LNG}" \
> -           "$HOME/.xinput.d/all_ALL" \
> -           "/etc/X11/xinit/xinput.d/${LNG}" \
> +for f in    "$HOME/.xinput.d/all_ALL" \
> +           "$HOME/.xinput.d/${LNG}" \
>             "/etc/X11/xinit/xinput.d/all_ALL" \
> +           "/etc/X11/xinit/xinput.d/${LNG}" \
>             "/etc/X11/xinit/xinput.d/default" ; do
>      if [ -f "$f" -a -r "$f" ]; then
>         echo "Start IM through $f linked to $(readlink -f $f)."
> ------------------------------------------------------------------------

This suites your way of expectation but it does not suites my way of
thinking.

By the way, what do you tell user if they want to remove all_ALL
feature.  There is no easy way other than using "rm" command.  This is
the real problem.  Maybe if we have way to remove link via im-switch
command, people will not be confused.  Setting all_ALL while removing
everything else will get you what you want with current order.


I think action items are:
 * improve documentation
 * add new option -d which reset inputmethod link for that link, if run
   without -z ll_ZZ, then it should reset for all locales.

Basically, -d is oposit of -a, -c, -s does.

What do you think?

Osamu

PS: I was lust using "rm" until now for this.



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