On Mon, Mar 21, 2016 at 06:59:18PM +1300, Peter Kane wrote: > On Sun, Mar 20, 2016 at 05:46:25PM +0900, Bryan Linton wrote: > > On 2016-03-20 11:17:25, Peter Kane <pwk...@gmail.com> wrote: > > > > > > I use jserver/kinput2 because it works with cwm and I can run it on a > > > legacy i386 system and connect over ssh from an amd64 machine (I was > > > hoping the new vmd development work would help there, but i386 support > > > seems a way off). The new UTF-8 desktop settings in -current work OK for > > > me to display UTF-8 fonts, it is just the occasional inputting of kanji > > > that I need something for. If someone can show how to use uim/anthy with > > > cwm in a non-root manner I would be grateful. > > > > > > uim does have appeal because it supports a wide range of languages and I > > > would like something for Chinese, too. > > > > > > > It's been a long time since I installed and configured uim/anthy > > (it Just Works), so I may not remember all the steps it took, but > > it's fairly straightforward. > > > > These are the installed ports I have: > > anthy-9100hp1 japanese input method > > uim-1.8.6p1 multilingual input method library > > uim-gtk-1.8.6p1 uim for GTK+2 > > uim-gtk3-1.8.6p2 uim for GTK+3 > > uim-kde-1.8.6p1 uim for KDE3 > > uim-qt4-1.8.6p1 uim for QT4 > > uim-tomoe-gtk-0.6.0 japanese handwriting > > > > In .xinitrc (non-relevant lines omitted): > > [...] > > export XMODIFIERS=@im=uim > > export GTK_IM_MODULE="uim" > > export QT_IM_MODULE="uim" > > env LC_CTYPE=ja_JP.UTF-8 uim-xim & > > [...] > > exec env LC_CTYPE="en_US.UTF-8" /usr/X11R6/bin/cwm > > > > Quite frankly, I can't remember why I put the > > "env LC_CTYPE=ja_JP.UTF-8" and 'env LC_CTYPE="en_US.UTF-8"' lines > > in there. I think at one point they mattered, but with the base > > system having/being switched to UTF-8 by default, they may no > > longer be necessary. > > > > After that, simply typing "startx" will bring up CWM with a > > working IME. > > > > Running /usr/local/bin/uim-pref-gtk will bring up a GUI you can > > use to configure UIM. There are probably *way* more options here > > than you'll need. Configuring the keyboard shortcut you want to > > use to switch input methods is probably the only one you'll really > > need at first. I have mine set up to toggle between an IPA > > keyboard (for inputting linguistics-related symbols), a regular > > keyboard, and the anthy IME. > > > > You can also run one of: > > uim-toolbar-gtk > > uim-toolbar-gtk3 > > uim-toolbar-qt4 > > uim-toolbar-gtk-systray > > uim-toolbar-gtk3-systray > > > > If you want a GUI-toolbar or systray application to run that lets > > you click on buttons to toggle/switch between IMEs. Though > > personally, I find them to be superfluous, especially in a > > minimalist windowmanager like CWM. > > > > Please let me know if you're successful in setting up UIM/anthy > > with this information; I can always try to offer better advice :) > > > > -- > > Bryan > > > > Thanks for the detailed notes. I'll give it another go shortly. > > Peter
OK, I take it all back, partly. At first it wasn't working at all but after a few or more Xorg restarts it began to show signs of life. I unloaded a lot of the conversion engines that I didn't want and added "set encoding=utf-8" in a vimrc file. However, the uim-toolbar-gtk often doesn't launch properly on startup for me so I have to wait a while and try again (I would just get a preferences icon). The keyboard switching also seemed erratic and laggy. The anthy part runs as root. On the whole it wasn't a great user experience, but jvim isn't really any better. Maybe I can refine the settings further to make it better. Thanks again. Peter