From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: Typing on GuixSD in languages other than English Date: Mon, 04 Apr 2016 23:48:52 -0700 Message-ID: <87oa9o1rfv.fsf@gmail.com> References: <87k2kf65n6.fsf@gmail.com> <87lh4vbj6h.fsf@member.fsf.org> <874mbjl41d.fsf@gmail.com> <87r3emrzg7.fsf@gmail.com> <87k2kdyw1z.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anKnQ-0003Qj-0l for help-guix@gnu.org; Tue, 05 Apr 2016 02:49:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anKnM-00087W-QI for help-guix@gnu.org; Tue, 05 Apr 2016 02:49:03 -0400 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:33939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anKnM-00087K-Co for help-guix@gnu.org; Tue, 05 Apr 2016 02:49:00 -0400 Received: by mail-pa0-x22d.google.com with SMTP id fe3so4621961pab.1 for ; Mon, 04 Apr 2016 23:48:59 -0700 (PDT) In-Reply-To: <87k2kdyw1z.fsf@elephly.net> (Ricardo Wurmus's message of "Mon, 04 Apr 2016 22:10:32 +0200") 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-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: Ricardo Wurmus Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ricardo Wurmus writes: > Chris Marusich writes: > >> How can I verify that ibus is working on its own? I've tried installing >> ibus by itself into my profile. When I do this, I can run ibus-setup, >> and I see a "Japanese" language input option. This is true even when >> anthy and ibus-anthy are not installed, which surprised me. I had >> expected to find no Japanese language input options at all in ibus-setup >> when anthy and ibus-anthy are not installed. > > It=E2=80=99s a bit tricky. IBus caches input methods and reads them from= the > cache. This is also the reason why IBus breaks whenever it is updated > (see bug #22707). > > This cache is in =E2=80=9C~/.cache/ibus/bus=E2=80=9D. Thanks for the heads-up. I've installed ibus to my profile, but I haven't updated it (to my knowledge). There is currently no sign that the cache is causing ibus to malfunction. > Another thing you might need to store settings for IBus is to run > =E2=80=9Clibexec/dconf-service=E2=80=9D of the =E2=80=9Cdconf=E2=80=9D pa= ckage. According to "ps auxww", there is already a "dconf-service" running under my user name. There is currently no sign that dconf-service is causing ibus to malfunction. > Then I had to set > > IBUS_COMPONENT_PATH=3D$HOME/.guix-profile/share/ibus/component > > and the usual > > QT_IM_MODULE=3Dibus > XMODIFIERS=3D@im=3Dibus > GTK_IM_MODULE=3Dibus > > You will also need > > GUIX_GTK2_PATH=3D$HOME/.guix-profile/lib/gtk2.0 > GUIX_GTK3_PATH=3D$HOME/.guix-profile/lib/gtk3.0 > > so that GTK+ can find the input method modules for ibus in your profile. > Then it should work in a GTK+ application such as =E2=80=9Cxfce4-terminal= =E2=80=9D. > Don=E2=80=99t try it in Emacs because it probably won=E2=80=99t work with= out even more > fiddling. I tried adding all of these to my ~/.bashrc (I rebooted after doing this to ensure that my environment would get configured correctly) =2D-8<---------------cut here---------------start------------->8--- export IBUS_COMPONENT_PATH=3D"$HOME/.guix-profile/share/ibus/component" export GTK_IM_MODULE=3Dibus export XMODIFIERS=3D@im=3Dibus export QT_IM_MODULE=3Dibus export GUIX_GTK2_PATH=3D"$HOME/.guix-profile/lib/gtk-2.0" export GUIX_GTK3_PATH=3D"$HOME/.guix-profile/lib/gtk-3.0" =2D-8<---------------cut here---------------end--------------->8--- Note that I've added hyphens (e.g., I wrote "gtk-2.0" instead of "gtk2.0") because on my GuixSD system, those are the correct paths. However, even with these environment variables set, all behavior remains unchanged from before. Because there appears to be essentially no error feedback (for example, where are the logs showing what ibus is up to?), it's difficult to tell what the problem might be. Perhaps because there are holes in my understanding of ibus, GNOME, GTK, QT, XIM, and input methods on GNU/Linux in general, I feel as though I am grasping at straws at this point. I have reviewed the ibus documentation, but things are still unclear to me. > This is all not nice yet and I=E2=80=99ve only managed to get the Pinyin = input > method to work (until the next upgrade). I haven=E2=80=99t been able to = get any > of the included input methods (like Arabic) to work at all. > > This needs more work and I=E2=80=99d appreciate some assistance! Can you tell me exactly how you set up the Pinyin input method? Perhaps I can replicate that on my end, if only to verify that my environment is sane. Going forward, perhaps we should ask for help from the ibus user [1] or [2] developer group, look at how other distros have packaged ibus [3], or try one of the unstable GNOME 3.5.x versions which integrate ibus into GNOME [4]. What do you think? [1] http://groups.google.com/group/ibus-user [2] http://groups.google.com/group/ibus-devel [3] For example: https://fedoraproject.org/wiki/Features/GNOMEIBusIntegrati= on [4] https://wiki.gnome.org/ThreePointFive/Features/IBus =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXA1/WAAoJEN1AmhXYIkad3P0QALXjnzsTHpmjn9OQaPX8E6/G GA/NVUA0uJDwCt6gwm+MikujRRFNp1BFt9Z55CMaRL3vcDOKC3XUpg8aEjv0e9tT p2TE1o8euC6L7F85O3c5n0tmyTIDYXZtMXW+ELL3C+CdKHqllBbNGTcuMw9vTzr1 0X7BN1te1B6iS0YQCb3g6fxBRRtGbU8o7kguLSdejmhuMRKwbfgMBUC7zoJgycoG mB77xcsZ9RfdoDDCV/kQjXxTueF8RLUO5oaJVgYHVV//HGpRNVVBtelgIqkAyErv VnlFLfmxDF9Gn080Q3marB9/Tcx2xDwY9TNqGfCz3SyalLqMI7HQons+BoSqQC0q VJb+7aLRERE4jFgdlDynFJtxZQkwKYYe/yhcu8a2G8NxWUTUvMHvUCNh2muGvyv8 PN2cFSLZdRY9oQnCDKK3SS5F4/ZXscjvSfC/jsJeF+FQrXMKgvokhFAcV1d/FT8y 0K2bIccZxOUMf6CYVPk0abSiJQISVHkVuOkksinyUu0BgjN4LmUm/7xLdhMFYXSW wreQSBkuee+UTKB4sE6YYt51Jpfr+5Rej5uGVRhhGKBBL5h0+ugZJvtMe8vjccqd QB5VuIib567+Ail553LemJAQ90JBJ1LHfhpMiWLw5lIwAUw8rffU2+bUHijQQ3/M jkpwsvRt0O8uPIvPEJ7L =4A+u -----END PGP SIGNATURE----- --=-=-=--