scim: im-switch configuration for XIM mode should check user's locale

Bug #36547 reported by Ming Hua
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
im-switch (Ubuntu)
Incomplete
Medium
Unassigned
scim (Debian)
Confirmed
Unknown

Bug Description

Now scim in dapper has im-switch support, and ubuntu-desktop will install im-switch and scim by default, it should be much easier for ordinary users to set up scim. However according to bug #35990, users with locale other than zh*, ja*, ko*, and en_US.UTF-8 will have problem with the XIM mode.

Therefore, scim's im-switch configuration for XIM mode should check /etc/scim/global and ~/.scim/global for the "SupportedUnicodeLocales" setting, and warn the user if his/her locale is not specified.

Matt Zimmerman (mdz)
Changed in scim:
assignee: nobody → mvo
Revision history for this message
Michal Suchanek (hramrach) wrote :

Comment (must be provided for Malone to work)

Revision history for this message
Ming Hua (minghua) wrote :

I think I need to point out that nobody in Ubuntu seems to be working on im-switch. All the development is happening on the Debian side (I don't know if Fedora still uses im-switch). So if someone has an idea how this should be done, comments and/or patches are very welcome.

Michael, this bug is assigned to you, do you have any insights?

Revision history for this message
Michal Suchanek (hramrach) wrote :

It think it is possible to add the current locale to the configuration file if it is an utf-8 locale.

However, I do not know what the format of the file is so I am not sure if this can be done safely.

Another option is to start scim in en_US locale if the current locale is not supported. This would be suboptimal if scim translation for the current locale exists, though.

Another option is to make a default config file the locales for which scim is translated, and use en_US otherwise.

Changed in scim:
status: Unknown → Confirmed
Revision history for this message
Ming Hua (minghua) wrote : Re: [Bug 36547] Re: scim: im-switch configuration for XIM mode should check user's locale

On Mon, Jul 23, 2007 at 07:55:46AM -0000, Michal Suchanek wrote:
> It think it is possible to add the current locale to the configuration
> file if it is an utf-8 locale.

Yes, it's possible. But in my opinion requires quite some amount of
work.

> However, I do not know what the format of the file is so I am not sure
> if this can be done safely.

The format is rather simple, just:
    /SupportedUnicodeLocales = <list>
where list is a comma-separated list of all locales.

> Another option is to start scim in en_US locale if the current locale is
> not supported. This would be suboptimal if scim translation for the
> current locale exists, though.

This may not work. The locale of the application using scim is
important, too.

> Another option is to make a default config file the locales for which
> scim is translated, and use en_US otherwise.

How do you know which locales have scim translated when scim is using
the translations provided by language packs that come from Launchpad?

Ming
2007.07.23

Michael Vogt (mvo)
Changed in scim:
assignee: mvo → nobody
Revision history for this message
Travis Whitaker (pi-boy-travis) wrote :

Can someone confirm this with the latest release?

Changed in scim (Ubuntu):
status: New → Incomplete
Revision history for this message
Plareplane (plareplane) wrote :

On Ubuntu 9.4 here. I couldn't get scim-bridge (which, as far as I could tell, was the default) working for some KDE4 apps:

 - QT4 apps didn't use scim-bridge by default (im-switch only checked for some QT3 conditions), so I had to manually select scim-bridge input method inside QT4 apps.
 - Some KDE4 apps (at least Kate and Konsole) didn't even allow for selecting input method, so I couldn't use scim-bridge at all in those apps.

So, I did

 $ im-switch -s scim

after which I couldn't use scim in either GTK2 or QT4 apps. Then I checked /SupportedUnicodeLocales and noticed that only en_US.UTF-8 was on there while I was using en_CA.UTF-8. So, I added en_CA.UTF-8 to the list and then I could use scim in both GTK2 and QT4 apps.

To make a long story short, this bug is still present in the latest release.

P.S. What's the current best practice for CJK in KDE4 apps?

Revision history for this message
Rolf Leggewie (r0lf) wrote :

FWIW, im-switch is scheduled to be superseded by im-config

Rolf Leggewie (r0lf)
affects: scim (Ubuntu) → im-switch (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.