Package: im-config
Version: 0.5
Severity: wishlist

I've prepared im-config files for gtk-im-libthai, so that I can switch the
pacakge from im-switch to im-config. Please check if it's OK to add.

Qt & Clutter are not supported for now, but it's possible to add it in the
future.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=th_TH.UTF-8, LC_CTYPE=th_TH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages im-config depends on:
ii  dialog  1.1-20111020-1
ii  zenity  3.2.0-1       

Versions of packages im-config recommends:
ii  dialog      1.1-20111020-1
ii  x11-common  1:7.6+9       

im-config suggests no packages.

-- no debconf information

-- 
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/
IM_CONFIG_DSC="activate LibThai-based Thai input method"
IM_CONFIG_KEY="/usr/lib/gtk-3.0/3.0.0/immodules/im-thai-libthai.so"
IM_CONFIG_DEP="Required: gtk-im-libthai and gtk3-im-libthai"

# start libthai
# vim: set sts=4 expandtab:

# set variables for the plain XIM
XMODIFIERS=@im=BasicCheck

GTK_IM_MODULE=xim
# use gtk immodule only when available for both GTK 2.0 and 3.0
IM_CONFIG_MARKER2=0
for IM_CONFIG_MARKER in /usr/lib/*/gtk-2.0/*/immodules/im-thai-libthai.so \
                        /usr/lib/gtk-2.0/*/immodules/im-thai-libthai.so ; do
    if [ -e $IM_CONFIG_MARKER ]; then
        IM_CONFIG_MARKER2=1
        break
    fi
done

IM_CONFIG_MARKER3=0
for IM_CONFIG_MARKER in /usr/lib/*/gtk-3.0/*/immodules/im-thai-libthai.so \
                        /usr/lib/gtk-3.0/*/immodules/im-thai-libthai.so ; do
    if [ -e $IM_CONFIG_MARKER ]; then
        IM_CONFIG_MARKER3=1
        break
    fi
done
if [ $IM_CONFIG_MARKER2 = 1 ] && [ $IM_CONFIG_MARKER3 = 1 ] ; then
    GTK_IM_MODULE=thai-libthai
fi

# No IM modules for Qt and Clutter for now
QT_IM_MODULE=xim
CLUTTER_IM_MODULE=xim

Reply via email to