Bug 20183

Summary: localedrake doesn't allow to select UIM as input method
Product: Mageia Reporter: André Luiz Duarte de Queiroz <andre.luiz.d.queiroz>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Normal CC: marja11, thierry.vignaud, yochenhsieh
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA5TOO
Source RPM: CVE:
Status comment:

Description André Luiz Duarte de Queiroz 2017-01-25 17:53:28 CET
I have tried recently install uim instead of ibus as my Input Method (IM). I installed uim related packages through Mageia Control Center, and then went to session 'locale' to change Input Method option; however, uim is not shown among IM options, which are only IBUS, SCIM, or SCIM-BRIDGE (rather than 'no Input Method').
I tried to change via terminal also, calling localedrake logged as root, with equal results: IM options are the same as shown within MCC graphical tool... Even after restart the system, I haven't succeed to manage IM selection through localedrake.

Just in case: searching for the way to change IM options I found that in Ubuntu and derivatives one can do it through terminal command "im-switch -c", which will call all IM options available. Such command is not implemented in Mageia's bash.
Comment 1 Marja Van Waes 2017-01-27 00:28:34 CET
Btw, uim moved to github years ago, the code.google link (from our package) is dead.

Also dead is the link to "Internationalization in Mandrakelinux 10.1 - a mini guide of SCIM and UIM (written by Yukiko Bando)" on this page:
https://github.com/uim/uim/wiki

Maybe Hsieh or Thierry know how to select it.

CC: (none) => marja11, thierry.vignaud, yochenhsieh
Version: 5 => Cauldron
Assignee: bugsquad => mageiatools
Summary: localedrake doesn't show other Input Method options => localedrake doesn't allow to select UIM as input method
Whiteboard: (none) => MGA5TOO

Comment 2 You-Cheng Hsieh 2017-01-27 01:24:09 CET
According to the code, uim cannot be selected unless user locale is ja(japanese):
http://gitweb.mageia.org/software/drakx/tree/perl-install/lang.pm
(see line 895)

I think this is the problem by design: most input method platforms can work under multilingual environments, so perhaps we should not restrict how user can select them?

On the other hand, uim upstream has no new stable release since 2013 and the current version (1.8.6) has no qt5 support so it won't work in Plasma 5. Personally I cannot get neither the package nor the git snapshot work on mageia. I hope someone knows it more than me can handle it better.
Comment 3 Thierry Vignaud 2017-01-27 14:58:30 CET
The idea is not to ask questions to users who would not understand them.

For users of languages that do not require an IM, we hide the choice in advanced options.

The list of offered IMs depends on the chosen locale.

Some are only relevant for one language, some not.
Eg: ibus & scim are more IM frameworks than just an IM for a language (like fcitx , nabi or uim).

So instead of being restricted to some languages (through the {langs} field), they use the {default_for_lang} field to list the langs for which they're the default

Also, although it looks like UIM support more than the Japanese language, so we could switch it from using {langs} to {default_for_lang} but when I was advised years ago, I was told that UIM was mostly by Japanese users.
Which is why it's only listed when choosing a Japanese locale.

Another reason not to list it by default is that there hasn't been any new release in years for UIM while scim & ibus seems more maintained.
Comment 4 André Luiz Duarte de Queiroz 2017-01-27 17:27:30 CET
If I understood correctly: Mageia's developers don't include UIM among Input Method options by default because it would be "too much oriented to Japanese Input"(?) and also UIM hasn't being often updated?... However, if one select Japan as locale during installing process, UIM should appear among Input Method options too?...

Well, I'm not sure is such approach is the best. To be honest, I've always thought that Language Input configuration during Installing is a little silly, because even selecting multiple languages during the beginning of installing process, that action doesn't set Input Method, which must be done within another screen ( I spent a lot of time to figure out that when I started to use Mageia and tried to configure multi-language input on it..!)

Anyway, the weird behaviour I complaining is that localedrake (or whatsoever..!) doesn't allow any IM option other than ibus! Yesterday I tried to select SCIM-BRIDGE (one I never used..) instead of ibus. The system called SCIM-BRIDGE related packages. But, after restarting the session, ibus was still there! I tried to select none (direct input, with no IMs...) and even so ibus was still there!?!...It seems this 'misbehaviour' is happening since Mageia 5 release, according to some report in Brazilian Mageia forum.
Comment 5 You-Cheng Hsieh 2017-01-28 03:18:27 CET
Hi,
Please provide following information if you would:
1.Content of file: /etc/locale.conf
2.If you have .i18n (it's a hidden file) in your home directory (/home/USERNAME), please post its content.
3.Start a terminal(konsole, xterm, gnome-terminal,etc) and run:
echo $LANG
echo $XIM_PROGRAM
echo $GTK_IM_MODULE
echo $QT_IM_MODULE
4.In the terminal, run this command to check what scim packages are installed:
rpm -qa | grep scim
5.In the terminal, run this command to check if scim is running in background:
ps aux | grep scim
6.What's the desktop(kde, gnome, xfce, etc) or window manager you're using?
7.Please try a few programs and see if you can use IM, e.g. firefox, libreoffice, default editor(gedit, kwrite, etc.), and post results.
8.Please try to reboot the system if possible, and check if the results are same.

Thanks.
Comment 6 You-Cheng Hsieh 2017-02-13 08:17:36 CET
Thierry, 
Currently for locales "that don't need input methods usually", the input method option is hinding in "Other Countries" which is not very instinctive. Could we make it more obvious that users can find it if they need it?

Thanks.