#
# @(#)S207hkle	1.12 99/11/22 SMI
#
# Launch Desktop X Input Method Server for HKLE
# Locale: ja,ja_JP.PCK,ja_JP.UTF-8
#

if [ -x /usr/openwin/bin/htt -a -f /usr/lib/im/leif/hkle.so ]; then 
	# OpenWindows
	if [ "_$_sunximswm" = "_olwm" ] ; then
		: # HKLE does not support OpenWindows
		: # do not unset DTSTARTIMS in this case

		: # for Motif or others which use XIMStatusArea
		echo "*disableStatusArea: true" \
			| /usr/openwin/bin/xrdb -m
		: # for XView which use XIMStatusCallback
		echo "OpenWindows.ImStatusStyle: none" \
			| /usr/openwin/bin/xrdb -m

	# CDE
	else
		echo "*preeditType: rootwindow" | /usr/openwin/bin/xrdb -m

		LC_ALL=zh_HK.BIG5HK LANG=zh_HK.BIG5HK \
		/usr/openwin/bin/htt \
			-if hkle -so -nosm -lc_basiclocale zh_HK.BIG5HK -xim htt_xbe \
			> /dev/null 2>&1 &
		DISABLE_MULTI_SCRIPT_IM=true; export DISABLE_MULTI_SCRIPT_IM
		unset DTSTARTIMS
	fi
fi
