SCIM input method on Linux

來源:互聯網
上載者:User

標籤: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 [email protected]=SCIMexport GTK_IM_MODULE=scimexport QT_IM_MODULE=scimscim -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 [email protected]=SCIMexport GTK_IM_MODULE=scimexport QT_IM_MODULE=scim

[13/6/18] 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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.