码迷,mamicode.com
首页 > 系统相关 > 详细

SCIM input method on Linux

时间:2014-06-30 13:18:56      阅读:450      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   color   strong   art   

The following packages should be installed:

  • scim
  • scim-tables-zh (this includes Wubi input method)
  • scim-tables-pinyin (this includes Pinyin input method)
  • scim-bridge-agent
  • scim-bridge-client-gtk
  • scim-bridge-client-qt
  • scim-bridge-client-qt4
  • scim-gtk2-immodule
  • scim-qtimm
  • im-switch

Before installation, the locale should be checked because scim does not support all the locales. At least, it supports en_US.UTF-8, zh_CN.UTF-8 and zh_CN.GBK.

According to the web that a 95xinput file should be created in the folder /etc/X11/Xsessions.d/ with mode 755 and with its contents as follows:

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
scim -d

In principle, this script should be automatically executed by xsession when the user calls startx. However, it seems like this script has not been executed at all. Then, I removed 95xinput and added the following to ~/.bashrc and now it works:

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim

[13618] Comment: an interesting thing is if we do not use startx from command line to start the X session but use the default gdm3 login window to enter into Gnome environment, the 95xinput is requisite and scim will not start without this file.

Further, in order to make scim work under the English environment, a symbolic link should be created in the folder ~/.xinput.d/:

en_US links to /etc/X11/xinit/xinput.d/scim-bridge

or

default links to /etc/X11/xinit/xinput.d/scim-bridge

One thing to mentioned is if the im-switch package is installed, by calling “im-switch -s scim” will also create the en_US symbolic link in the above in an US English locale.

Finally, to make scim work in in Emacs, scim-bridge.el should be installed and configured as follows:

 

;; scim-bridge
(require ‘scim-bridge)
;; Turn on scim-mode automatically after loading .emacs
(add-hook ‘after-init-hook ‘scim-mode-on)

 

 

scim
scim-tables-zh (this includes Wubi input method)
scim-tables-pinyin (this includes Pinyin input method)
scim-bridge-agent
scim-bridge-client-gtk
scim-bridge-client-qt
scim-bridge-client-qt4
scim-gtk2-immodule
scim-qtimm
im-switch

SCIM input method on Linux,布布扣,bubuko.com

SCIM input method on Linux

标签:des   style   blog   color   strong   art   

原文地址:http://www.cnblogs.com/quantumman/p/3813831.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!