# Japanese IM: KINPUT2 (deprecated)
kinput2 -xim +kinput +ximp &
# xim is for X11R6, kinput is for kterm only, ximp is for X11R5
# See "man XSetLocaleModifiers" for XMODIFIERS
XMODIFIERS="@im=kinput2"
export XMODIFIERS

# Alternative way to set kinput2 as XIM
# (Not with XMODIFIERS environment variable.)
#TMP=`tempfile`
#echo "*inputMethod: kinput2" >$TMP
#xrdb -merge $TMP
#rm -f $TMP

# Selection of actual package determin the conversion engin.
#  kinput2-canna and canna package will use CANNA