File: scim-immodule

package info (click to toggle)
scim 1.4.18-2.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,700 kB
  • sloc: cpp: 54,849; ansic: 17,886; makefile: 1,068; sh: 917; sed: 16
file content (50 lines) | stat: -rw-r--r-- 1,390 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# This configuration file for SCIM is recommended.
#
# Use "X input method" for standard X applications
# Use "SCIM IM module" for GTK/clutter applications if available
#
# Using this configuration may improve some usability for GTK applications
# such as the location of word selection window.

# You still need these XIM settings for non-GTK programs.
XIM=SCIM
XIM_PROGRAM=/usr/bin/scim
XIM_ARGS="-d"
XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes

gtkimm_exists () {
	# check if any immodules installed
	for dir in /usr/lib/gtk-?.0/*/immodules /usr/lib/@DEB_HOST_MULTIARCH@/gtk-?.0/*/immodules; do
		if [ -r ${dir}/im-$1.so ]; then
			return 0
		fi
	done
	return 1
}

if gtkimm_exists scim; then
  GTK_IM_MODULE=scim
elif gtkimm_exists scim-orig; then
  GTK_IM_MODULE=scim-orig
else
  GTK_IM_MODULE=xim
fi

clutterimm_exists () {
	# check if any immodule installed
	for dir in /usr/lib/clutter-imcontext/immodules /usr/lib/@DEB_HOST_MULTIARCH@/clutter-imcontext/imcontext; do
		if [ -r ${dir}/im-$1.so ]; then
			 return 0
		fi
	done
	return 1
}

if clutterimm_exists scim; then
  CLUTTER_IM_MODULE=scim
else
  CLUTTER_IM_MODULE=xim
fi

DEPENDS="scim,scim-gtk-immodule|scim-qt-immodule|scim-clutter-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"