如何使用输入法

参与到Ubuntu的翻译中来
回复
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

如何使用输入法

#1

帖子 oneleaf » 2005-03-31 10:23

我们先可以安装输入法:你可以选择安装 fcitx 还是 安装SCIM

安装完毕后,在 /etc/X11/Xsession.d/ 建立一个文件 95xinput

SCIM:

代码: 全选

 case "$LANG" in
 zh_TW*)
    XMODIFIERS="@im=SCIM"
    /usr/bin/scim -d
    ;;
 zh_HK*)
    XMODIFIERS="@im=SCIM"
    /usr/bin/scim -d
    ;;
 zh_CN*)
    XMODIFIERS="@im=SCIM"
    /usr/bin/scim -d
    ;;
 esac
 export XMODIFIERS
fcitx:

代码: 全选

 case "$LANG" in
 zh_TW*)
    XMODIFIERS="@im=fcitx"
    /usr/bin/fcitx
    ;;
 zh_HK*)
    XMODIFIERS="@im=fcitx"
    /usr/bin/fcitx
    ;;
 zh_CN*)
    XMODIFIERS="@im=fcitx"
    /usr/bin/fcitx
    ;;
 esac
 export XMODIFIERS
将文件属性改为755

代码: 全选

sudo chmod +755 /etc/X11/Xsession.d/95xinput 
重新启动Xwindow完成。按 'Ctrl+空格' 键激活输入法。

原文:

http://www.ubuntu.org.cn/docs/Input/doc ... s%20saved.
上次由 oneleaf 在 2005-03-31 19:42,总共编辑 1 次。
mafuzimeng
帖子: 3
注册时间: 2005-03-29 17:55

#2

帖子 mafuzimeng » 2005-03-31 14:01

哈哈
终于能够输入中文了
感觉真好

另外说下 95xinput 权限最好改成755
不然非root用户不能启动(我遇到这种情况了)
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#3

帖子 millenniumdark » 2006-08-01 5:05

好像是很久以前的快速设置指南的一部分
hitzq
帖子: 91
注册时间: 2006-12-19 0:42

#4

帖子 hitzq » 2006-12-23 14:54

code@tzq:~$ cd /etc/X11/Xsession.d
code@tzq:/etc/X11/Xsession.d$ ls
20x11-common_process-args 75dbus_dbus-launch 95xinput~
30x11-common_xresources 90im-switch 99x11-common_start
50x11-common_determine-startup 90x11-common_ssh-agent
55gnome-session_gnomerc 95xinput
code@tzq:/etc/X11/Xsession.d$ sudo chmod +755 95xinput
Password:
chmod: invalid mode: `+755'
Try `chmod --help' for more information.

-----------------------------------------------------------------------------

faint~~~
purewind
帖子: 452
注册时间: 2006-11-18 15:40

#5

帖子 purewind » 2006-12-23 19:30

奇怪,我什么也没有做过怎么就能用了呢
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#6

帖子 skyx » 2007-01-28 11:40

sky@ThinkPad:/etc/X11/Xsession.d$ ls -a
. 55gnome-session_gnomerc
.. 75dbus_dbus-launch
20x11-common_process-args 80ubuntu-xmodmap
30x11-common_xresources 90im-switch
40guidance-displayconfig_restore 90x11-common_ssh-agent
50x11-common_determine-startup 99x11-common_start


wiki上也是这样说的,加一个95xinput的自启动脚本

我用系统自带的 scim,

安装是这样做的: 系统---->系统管理-----> 语言支持----->默认语言改为简体中文 ,上面的chinese 打钩。

装完后再点系统---->首选项----->scim 随便设置一下,后重启X

我的X11下没有这个文件,和楼主的这段脚本相似的代码应该在其它脚本文件中, 现在想用fcitx输入法, 为了防止冲突,还没把fcitx相关95xinput放进/etc/X11/Xsession.d


我总感觉我的这种情况不能用楼主的方法改呀?有没有别的方法?
no security measure is worth anything if an attacker has physical access to the machine
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#7

帖子 zhuqin_83 » 2007-01-28 12:01

这个帖子太老拉。
都2年前的东西了。
ls mm就不要照做了。
wiki里有快速设置指南,照那个就可以了。其实只要sudo im-switch -s scim (or scim-pinyin or fcitx)
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#8

帖子 skyx » 2007-01-28 12:06

这个帖子太老拉。
我也是这样想的,只是还不知道问题的根源。

:oops:

im-switch -s fcitx

肯定可以,可是我想知道这条指令下去,哪些自启动脚本改了,都在什么文件中!!!!
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#9

帖子 skyx » 2007-01-28 12:09

在这里吗?

90im-switch
no security measure is worth anything if an attacker has physical access to the machine
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#10

帖子 zhuqin_83 » 2007-01-28 12:23

不是,在/etc/alternatives/xinput-zh_CN
你应该修该/etc/X11/xinit/xinput.d/下的scim or scim-pinyin or fcitx
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
qzjackie
帖子: 169
注册时间: 2007-02-08 13:32
来自: 福建,泉州
联系:

#11

帖子 qzjackie » 2007-10-17 15:37

学习了。
回复