From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Typing on GuixSD in languages other than English Date: Mon, 18 Apr 2016 09:27:14 +0200 Message-ID: <87k2jvz8a5.fsf@elephly.net> References: <87k2kf65n6.fsf@gmail.com> <87lh4vbj6h.fsf@member.fsf.org> <874mbjl41d.fsf@gmail.com> <87r3emrzg7.fsf@gmail.com> <58afdb3587e69a13cc5c532e60804f87@openmailbox.org> <8760vy9bo3.fsf@gmail.com> <87twjbv9sb.fsf@member.fsf.org> <87lh4mfu7l.fsf@gmail.com> <878u0ln6cq.fsf@member.fsf.org> <878u0ith13.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as3af-0002Wo-Dw for help-guix@gnu.org; Mon, 18 Apr 2016 03:27:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1as3ab-0002QR-FN for help-guix@gnu.org; Mon, 18 Apr 2016 03:27:25 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:24614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as3ab-0002PC-6C for help-guix@gnu.org; Mon, 18 Apr 2016 03:27:21 -0400 In-reply-to: <878u0ith13.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Chris Marusich Cc: help-guix@gnu.org Chris Marusich writes: > iyzsong@member.fsf.org (宋文武) writes: > >>> Chris Marusich writes: >>> >>>> Awesome! Where you able to get this working? I've tried installing it >>>> From the version you pushed, and I still can't get it to work. Even >>>> when I set all the environment variables mentioned, and I install all >>>> the packages (ibus, ibus-anthy, and anthy) to my profile. If you got it >>>> working, I'd like to know how so I can set it up on my end, too. >> >> Yes, I only tested in xterm. >> set the environemnt variables, run ‘ibus-daemon –-xim -v’. >> then use ‘ibus-setup’ to add ‘Japanese - Anthy’. >> in xterm, ‘Super+Space’ work fine. >> >> >> For GTK+ applications, I have to generate the ‘immodules.cache’ file: >> >> GTK_IM_MODULE_FILE=/tmp/immodules.cache gtk-query-immodules-3.0 -–update-cache >> >> GTK_IM_MODULE_FILE=/tmp/immodules.cache gtk3-demo –-run search_entry >> >> >> With the cache (it contains ibus), it will work. > > Thank you so much for the tips! I've finally gotten ibus-anthy working > (partially)! However, I've encountered some additional > problems/questions, and I hope you can provide some advice: > > * When I set up GTK_IM_MODULE_FILE like you've suggested, it works only > for GTK3 applications. Applications using GTK2 crash due to some kind > of a version incompatibility problem [1]. However, if I generate the > immodules cache file with "gtk-query-immodules-2.0", then the same > thing happens in reverse: GTK2 applications work with Japanese input, > but GTK3 applications crash. Do you know of a way we can get it > working for both GTK2 and GTK3 applications simultaneously? This is the reason why we have GUIX_GTK2_PATH and GUIX_GTK3_PATH. I don’t set GTK_IM_MODULE_FILE. > * If the ibus cache in $HOME/.cache/ibus exists, then installing > ibus-anthy will APPEAR to have no effect. The only way I was able to > get GNOME's control panel ("All Settings" > "Region & Language" > > "Input Sources") or ibus-setup to recognize the "Japanese (Anthy)" > input method after installing ibus-anthy was to invoke "rm -rf" on the > $HOME/.cache/ibus directory and then restart ibus-daemon (e.g., by > restarting the xorg-server service). To make it easier to install and > use ibus-anthy, there a way we can ensure that the ibus cache is > refreshed when the user installs ibus-anthy? The cache is a problem. It’s annoying also when upgrading IBus. We should patch IBus to improve this. ~~ Ricardo