SCIM input method on Linux

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]=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 [email protected]=SCIM
export GTK_IM_MODULE=scim
export 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

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

时间: 2024-12-21 08:41:24

SCIM input method on Linux的相关文章

iBus input method in Linux

The following packages should be installed: python-ibus ibus ibus-clutter ibus-gtk ibus-m17n: input many non-latin characters ibus-pinyin ibus-qt4 ibus-table ibus-table-wubi python-xlib: will be used by Emacs ibus.el ibus-m17n: input many non-latin c

How to install chinese input method

在Ubuntu中安装中文输入法确实比较麻烦,特别是英文版的Ubuntu系统 Ubuntu上的输入法主要有小小输入平台(支持拼音/二笔/五笔等),Fcitx,Ibus,Scim等.其中Scim和Ibus是输入法框架. 在Ubuntu的中文系统中自带了中文输入法,通过Ctrl+Space可切换中英文输入法. 这里我们主要说下Ubuntu英文系统中,中文输入法的安装. 安装输入法的第一步,是安装语言包.我们选择System Settings-->Language Support-->Install/

Sogou input method on Ubuntu

It is exciting to know Sogou input method is available on ubuntu. Download the install file from 搜狗输入法 for Linux. After Sogou input method is installed, Ubuntu need to be configured. Configure fcitx Open system setting: Language Support Set input met

Android窗口管理服务WindowManagerService对输入法窗口(Input Method Window)的管理分析

文章转载至CSDN社区罗升阳的安卓之旅,原文地址:http://blog.csdn.net/luoshengyang/article/details/8526644 在Android系统中,输入法窗口是一种特殊类型的窗口,它总是位于需要使用输入法的窗口的上面.也就是说,一旦 WindowManagerService服务检测到焦点窗口需要使用输入法,那么它就会调整输入法窗口在窗口堆栈中的位置,使得输入法窗口位于在焦点窗 口的上面,这样用户可以通过输入法窗口来录入字母或者文字.本文就将详细分析Win

Linux sogou input method

[email protected]:~$ wget "http://pinyin.sogou.com/linux/download.php?f=linux&bit=64" -O "sougou_64.deb"https://blog.csdn.net/q1302182594/article/details/47068641 ubuntu下搜狗输入法异常:http://www.cnblogs.com/rkfeng/p/8017746.html google:h

TeamWork#3,Week5,Bing Input Method vs Sogou Input Method

现在电脑上用五笔的朋友估计越来越少了,好的拼音输入法也是难求.“必应输入法”的前身“英库拼音输入法”来自微软亚洲研究院的多项基础研究成果.最新的必应输入法不仅保留了英库拼音输入法的各项优势,还结合了必应的搜索体验,同时将输入法的应用平台开放化.搜狗输入法是搜狐公司推出的一款汉字拼音输入法软件,号称是当前网上最流行.用户好评率最高.功能最强大的拼音输入法.那么这两款输入法到底怎么样?好用吗?到底孰优孰劣?我们通过定性定量的总结分析,深入剖析这两款软件,对比了各个方面,总结出了这两款软件的强项和弱项

输入法环境变量XMODIFIERS/GTK_IM_MODULE

我们配置输入法时,都是习惯性的在输入法启动前导出环境变量: export [email protected]=SCIM export GTK_IM_MODULE=SCIM 他们有何用意呢?? 我们常用的输入法有以下几种: 1. XIM (X输入法, 所有 X 图形程序都是可用的) 2. GTK immodule(GTK输入模块, 专给 GTK+2/Gnome 程序用的,GTK+ 1 不适用) 3. QT immodule(QT输入模块, 专给 QT/KDE 程序用的) XMODIFIERS实际上

Linux input 子系统应用之按键驱动

硬件平台:s5pv210 软件平台:Linux2.6.35.7 应用程序:inputk2_app.c #include <stdio.h> #include <fcntl.h> #include <linux/input.h> #include <sys/types.h> #include <unistd.h> int main(int argc, char** argv) { int fd; int count; int i = 0; int

linux input设备驱动分析

linux input设备驱动分析 工作机制 输入设备工作机制: 输入动作–>产生中断–>CPU通过总线或者IO读取数据到缓冲区 构架层次 app //-------------------- input_event_driver //-------------------- input_core //-------------------- input_device_driver //-------------------- hardware 数据结构 输入设备对象 struct input