Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1393199
  • 博文数量: 343
  • 博客积分: 13098
  • 博客等级: 上将
  • 技术积分: 2862
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-06 00:35
文章存档

2012年(131)

2011年(31)

2010年(53)

2009年(23)

2008年(62)

2007年(2)

2006年(36)

2005年(5)

分类: LINUX

2010-08-30 19:49:17

This howto details the steps required to enable Chinese input (Japanese, Arabic, and other languages) on a English (or other language) interface in #!CrunchBang Linux.

For details on installing applications and the terminal, see .

In the terminal enter:

sudo apt-get install ttf-arphic-gbsn00lp ttf-arphic-gkai00mp ttf-arphic-bsmi00lp ttf-arphic-bkai00mp xfonts-wqy

To install the relevant fonts.

In the terminal enter:

sudo apt-get install scim scim-pinyin scim-qtimm

To install Scim and scim-pinyin.

Create a custom SCIM startup

In the terminal enter:

sudo touch /etc/X11/Xsession.d/74custom-scim_startup

To create a file, then to modify the permissions for it:

sudo chmod 646 /etc/X11/Xsession.d/74custom-scim_startup

Then:

sudo echo 'export XMODIFIERS="@im=SCIM"' >> /etc/X11/Xsession.d/74custom-scim_startup
sudo echo 'export GTK_IM_MODULE="xim"' >> /etc/X11/Xsession.d/74custom-scim_startup
sudo chmod 644 /etc/X11/Xsession.d/74custom-scim_startup

In the terminal enter:

sudo nano /etc/scim/global

and check the line:

SupportedUnicodeLocales 

if:

SupportedUnicodeLocales = en_US.UTF-8 

then in the terminal enter:

sudo echo 'export LANG="en_US.UTF-8"' >> /etc/profile

In the terminal enter:

echo 'scim -d' >> ~/.config/openbox/autostart.sh

or see this on autostarting applications.

In the terminal enter:

locale | grep LANG=

The answer would be something like

LANG=en_US.UTF-8

Type in the terminal:

im-switch -z YOUR_LOCALE -s scim # replace "YOUR_LOCALE" by something like "en_US.UTF-8"

Log off or reboot the computer for the modifications to take hold. Log back into the newly-configured user account. Note the keyboard icon that appears in the system tray.

Right-click on it to access the SCIM Setup menu and configured as preferred.

Open up Firefox. Hit Control+Space to toggle scim on/off.

阅读(1081) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~