On Wed, Dec 31, 2014 at 9:28 PM, Joel Rees <joel.r...@gmail.com> wrote:
> I've posted on getting anthy going in XFCE4 on my general blog:
>
> http://reiisi.blogspot.jp/2014/12/typing-in-japanese-in-openbsd.html
>
> I'll try to trim that up a bit for a FAQ entry in a few days, if it
> looks appropriate.

I'm getting closer to feeling like I can write an intelligent FAQ on
the anthy IME. Figured out how to get anthy running on some apps
within fvwm. Apps that don't understand Unicode or input methods won't
see the IME, of course.

I finally understand what the man page says about the X11 session
ending when .xinitrc exits.

So I copied /etc/X11/xinit/xinitrc to my home directory and renamed it
.xinitrc. Modified it according to the comments in the following:

----------------------------
#!/bin/sh
# $OpenBSD: xinitrc.cpp,v 1.12 2014/02/26 14:21:28 matthieu Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap


# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# modifying it here JMR20150106

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

#export GTK_IM_MODULE="uim"
#export QT_IM_MODULE="uim"
#export XMODIFIERS=@im=uim
#export LC_CTYPE=ja_JP.utf8
#scim -d

# end modifications JMR20150106

# if we have private ssh key(s), start ssh-agent and add the key(s)
id1=$HOME/.ssh/identity
id2=$HOME/.ssh/id_dsa
id3=$HOME/.ssh/id_rsa
id4=$HOME/.ssh/id_ecdsa
id5=$HOME/.ssh/id_ed25519

if [ -z "$SSH_AGENT_PID" ];
then
if [ -x /usr/bin/ssh-agent ] && [ -f $id1 -o -f $id2 -o -f $id3 -o -f
$id4 -o -f $id5 ];
then
eval `ssh-agent -s`
ssh-add < /dev/null
fi
fi

# if dbus is installed, start its daemon
if [ -x /usr/local/bin/dbus-launch -a -z "${DBUS_SESSION_BUS_ADDRESS}" ]; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi

# start some nice programs

# modifying it here, too JMR20150106
# start the various ibus processes

/usr/local/bin/ibus-daemon &
/usr/local/bin/python2.7 /usr/local/share/ibus-anthy/engine/main.py --ibus &
# /usr/local/libexec/ibus-engine-simple "(ibus-engine-simple)" &
# Do this from the command line after X11 comes up and gives you a shell:
# /usr/local/bin/ibus engine anthy
# Or, maybe:
# export ENGINE_NAME=anthy
# end modifications JMR20150106


xclock -geometry 50x50-1+1 &
xconsole -iconic &
xterm -geometry 80x24 &
fvwm || xterm

if [ "$SSH_AGENT_PID" ]; then
ssh-add -D < /dev/null
eval `ssh-agent -s -k`
fi
----------------------------

As I noted in the comments, you have to specify anthy as the engine
after I  get fvwm up and have a shell in it to do it in:

$    ibus engine anthy

After that, any window in the fvwm session will be able to accept text
from gedit or firefox or other application that accepts input from an
IME.

XFCE4 seems to ignore .xinitrc .

-- 
Joel Rees

Be careful when you look at conspiracy.
Look first in your own heart,
and ask yourself if you are not your own worst enemy.
Arm yourself with knowledge of yourself, as well.

Reply via email to