当前位置: IT大杂烩 > Ubuntu  > SCIM input method on Linux

SCIM input method on Linux

www.someabcd.com  网友分享于:Jun 8, 2018 6:08:01 PM

标签: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   

发布此文章仅为传递网友分享,不代表本站观点,若侵权请联系我们删除,本站将不对此承担任何责任。
Copyright ©2018  IT大杂烩  版权所有  京ICP备11030978号-1 网站地图