[Moving to ports@ from misc@] On 2014-12-11 19:12:50, Bryan Linton <[email protected]> wrote: > > [...] > > Note that some applications refuse to accept Japanese input unless > they're run with the correct locale settings *AND* an overridden > input module, so I have > > bind C-g "env GTK_IM_MODULE=xim LC_CTYPE=ja_JP.UTF-8 gwaei" > > in my .cwmrc so that a Japanese dictionary program of all things > will accept Japanese input. > > As I said before, unfortunately xombrero needs the same hack > #bind C-x "env GTK_IM_MODULE=xim LC_CTYPE=ja_JP.UTF-8 xombrero" > but this makes the fonts very ugly on most pages and in the > general UI. I'm still hoping to find some way to get it to > support Japanese input without needing to force the locale to > change, since it seems like Firefox, xterms, and most any non-GTK > programs just "Do the Right Thing (TM)". > > [...] > > GTK apps used to "Just Work (TM)", but it seems like after new > versions have been released over the last few years, more and more > hacks have been needed to keep things working. >
I believe I have tracked down the source of this bug. Apparently the version of UIM currently in the ports tree (1.5.3) simply does not support GTK-3 applications as evidenced by a lack of a UIM module in /usr/local/lib/gtk-3.0/3.0.0/immodules wheras one is present in the GTK-2 directory /usr/local/lib/gtk-2.0/2.10.0/immodules Indeed, GTK-2 applications work fine when launched *without* needing any of the overridden environment variables whereas the GTK-3 applications need to have both their locale and input-module overridden to work correctly. According to UIM's website, GTK-3 support was first added in 1.7.0-alpha, and the current version of UIM is 1.8.6, so it would seem that version 1.5.3 being released on 2008/09/07 is a bit out of date. I tried to see if I could build a new version of UIM by just bumping the version and adding a few tweaks here and there (such as adding gtk3 to the build-depends, adding a "--with-gtk3" to the configure flags, and updating AUTOCONF_VERSION) but it would seem that the errors I was given were simply beyond my ability to easily fix. I don't suppose some kind soul would be willing to look into the possibility of churning out an update to UIM in the near future? It would certainly benefit people using GTK-3 applications, since UIM is used for more than just Japanese input. It allows not only Chinese/Japanese/Korean input, but also provides an easy way to input IPA symbols (a must for an linguist) as well as a way to use dead-keys to input the variety of diacritics used in the various European languages (though I know there are other ways to accomplish this). I would certainly be very appreciative of any efforts towards this, and would of course be willing to test any updates since it appears that that is all I can do with my current skill level. As GTK3 applications become more and more popular over GTK2 applications, I imagine that this will become a more pressing issue, though the fact that I appear to be the first one to have noticed it probably shows how many people this is really affecting at the moment... Regardless, I appreciate the effort the various OpenBSD developers have put into bringing a coherent GNOME desktop to OpenBSD. Even though I use CWM as my window manager, I have no doubt that this cohesiveness is what has allowed me to simply pkg_add uim and related components and have everything "Just Work (TM)" for all these years, so I thank all the people involved. -- Bryan
