diff options
Diffstat (limited to 'misc/sunpinyin/profile.d/sunpinyin.csh')
-rw-r--r-- | misc/sunpinyin/profile.d/sunpinyin.csh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/sunpinyin/profile.d/sunpinyin.csh b/misc/sunpinyin/profile.d/sunpinyin.csh new file mode 100644 index 0000000000..26db802153 --- /dev/null +++ b/misc/sunpinyin/profile.d/sunpinyin.csh @@ -0,0 +1,17 @@ +#!/bin/csh + +# SunPinyin is a statistical language model based Chinese input method, which +# was firstly developed by Sun Beijing Globalization team. + +[ -x /usr/bin/xsunpinyin ] +if ($status == 0) then + # Enable legacy X applications to use sunpinyin: + setenv XMODIFIERS="@im=xsunpinyin" + # Enable Qt/KDE applications to use sunpinyin. + setenv QT_IM_MODULE="XIM" + # Enable GTK applications to use sunpinyin: + setenv GTK_IM_MODULE="XIM" + # Make sunpinyin start automatically if the "magic key" Ctrl-Space is pressed: + setenv XIM_PROGRAM="/usr/bin/xsunpinyin -d" +endif + |