Debian Codegraph @

debian/im-switch/scim-immodule

raw
1 #
2 # This configuration file for SCIM is recommended.
3 #
4 # Use "X input method" for standard X applications
5 # Use "SCIM IM module" for GTK applications if available
6 #
7 # Using this configuration may improve some usability for GTK applications
8 # such as the location of word selection window.
9
10 # You still need these XIM settings for non-GTK programs.
11 XIM=SCIM
12 XIM_PROGRAM=/usr/bin/scim
13 XIM_ARGS="-d"
14 XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes
15
16 gtkimm_exists () {
17 # check if any immodules installed
18 for dir in /usr/lib/gtk-?.0/*/immodules /usr/lib/@DEB_HOST_MULTIARCH@/gtk-?.0/*/immodules; do
19 if [ -r ${dir}/im-$1.so ]; then
20 return 0
21 fi
22 done
23 return 1
24 }
25
26 if gtkimm_exists scim; then
27 GTK_IM_MODULE=scim
28 elif gtkimm_exists scim-orig; then
29 GTK_IM_MODULE=scim-orig
30 else
31 GTK_IM_MODULE=xim
32 fi
33
34 DEPENDS="scim,scim-gtk-immodule|scim-qt-immodule,scim-anthy|scim-canna|scim-chewing|scim-pinyin|scim-hangul|scim-prime|scim-skk|scim-modules-table|scim-tables-additional|scim-m17n|scim-uim|scim-tables-ja|scim-tables-ko|scim-tables-zh"