📄 724.html
字号:
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=296
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=76
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=100
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=98
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=79
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=103
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=26
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1
border=0></TD></TR>
<TR>
<TD colSpan=3><A title=linux知识宝库
href="index.html" tppabs="http://www.linuxhero.com/docs/index.html"><IMG height=83
src="images/header_r1_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c1.gif" width=472 border=0
name=header_r1_c1></A></TD>
<TD colSpan=3>
<form action="http://www.linuxhero.com/docs/search.html" method=get>
<table
style="BORDER-RIGHT: #c4c4c4 1px solid; BORDER-TOP: #c4c4c4 1px solid; BORDER-LEFT: #c4c4c4 1px solid; BORDER-BOTTOM: #c4c4c4 1px solid"
cellspacing=0 cellpadding=3 width="95%" border=0 align="center">
<tbody>
<tr>
<td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif">
<div align=center><font class=normalfont>搜索文章:
<input type=hidden value=result name=action2>
<input type=radio checked value=title name=type>标题
<input type=radio value=content name=type>内容
<input type=image src="images/button_go.gif" tppabs="http://www.linuxhero.com/docs/images/button_go.gif" border=0 name=image2>
</font></div>
</td>
</tr>
<tr>
<td noWrap>
<div align="center">
<input maxlength=100 size=30 name=keyword2>
</div>
</td>
</tr></tbody>
</table>
</form>
</TD>
<TD rowSpan=2><IMG src="images/header_r1_c7.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c7.gif" width=26 border=0 name=header_r1_c7></TD>
<TD><IMG height=83 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 border=0></TD></TR>
<TR>
<TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"><IMG height=22
src="images/header_r2_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r2_c1.gif" width=296 border=0
name=header_r2_c1></TD>
<TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colSpan=5>
<DIV align=right><FONT class=normalfont>当前位置:
<A href="index.html" tppabs="http://www.linuxhero.com/docs/index.html">本站首页</A>
<font color="#FF6699">>></font>
<A href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</A> | <A href="copyright.html" tppabs="http://www.linuxhero.com/docs/copyright.html">版权说明</A></font></DIV>
</TD>
<TD><IMG height=22 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1
border=0></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=10 cellPadding=0 width="100%" bgColor=#ffffff
border=0>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TR>
<TD vAlign=top align=middle width="60%">
<TABLE cellSpacing=0 cellPadding=0 width="100%"
background="images/back.gif" tppabs="http://www.linuxhero.com/docs/images/back.gif" border=0>
<TBODY>
<TR>
<TD vAlign=top width="80%">
<DIV align=center>
<FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
</FORM>
<TABLE cellSpacing=0 cellPadding=0 width="95%"
border=0><TBODY>
<TR>
<TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif"
height=30></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=3 width="95%"
align=center border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=3 width="100%"
border=0>
<TBODY>
<TR>
<TD vAlign=top>
<p><FONT class=normalfont><B><font color=blue>Linux中文拼音输入法全接触</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:杨鹏<br>来自:Linux知识宝库<br>联系方式:无名<br><br> 不记得以前在何处曾看到过这样一段言论,意思是Linux赢得中国普通用户的最大障碍就是没有一个合适的输入法,当时看了颇有感触。确实,那时 Linux下的中文输入法极为稀少不说,并且其中大多数不太符合使用简体汉字用户的习惯,兼容性极差,每个应用程序可能都需要自己设置,还不太稳定。<br>
<br>
现在这个障碍已经不存在了,已经有了很多易于安装、配置和使用的中文输入软件。这些软件大都由个人/团队开发,遵循GPL协议,属于自由软件,且很多被各大 Linux发行版用作默认中文输入方式。下面笔者就从使用者的角度来比较一下目前流行的输入法(所有配置均基于Mandrake 9.1、GNOME 2.2)。<br>
<br>
概述<br>
<br>
目前,Linux下的输入法基本能支持智能拼音和五笔两种方法,其中拼音输入都是面向词组而非整句的,这是目前的局限。由于笔者喜欢拼音,所以下面的比较大都以拼音输入为主。<br>
<br>
在较新的Linux版本中,都通过/etc/sysconfig/i18n控制输入法。例如Mandrake 9.1下,使用scim时的i18n文件内容如下:<br>
<br>
LANGUAGE=zh_CN.GB2312:zh_CN:zh<br>
LC_ADDRESS=zh_CN<br>
LC_COLLATE=zh_CN<br>
LC_NAME=zh_CN<br>
XIM=Scim<br>
LC_NUMERIC=zh_CN<br>
LC_TIME=zh_CN<br>
LC_MEASUREMENT=zh_CN<br>
LANG=zh_CN<br>
LC_MESSAGES=zh_CN<br>
LC_IDENTIFICATION=zh_CN<br>
LC_CTYPE=zh_CN<br>
LC_TELEPHONE=zh_CN<br>
CONSOLE_NOT_LOCALIZED=yes<br>
ENC=gb<br>
LC_MONETARY=zh_CN<br>
XIM_PROGRAM=scim<br>
LC_PAPER=zh_CN<br>
XMODIFIERS="@im=SCIM"<br>
<br>
<br>
<br>
其中主要有三个选项控制使用何种输入法:XIM指出了输入法的名字, XIM_PROGRAM指出了应当运行的输入法程序,而XMODIFIERS则帮助设置环境变量,让输入法可以正常运行。一般来说,XIM就是输入法的常见叫法,如Scim、Xsim等,一般是首字母大写。XIM_PROGRAM必需与系统中输入法启动程序一致,如Scim的scim、Xsim的 startxsim,一般全部小写,而XMODIFIERS中的@im=XXXX一般全部大写。<br>
<br>
全局配置完成了,接下来就看看几种常见输入软件的具体使用。<br>
<br>
Xsim输入法<br>
<br>
Xsim全称为X Simple Input Method,作者是楚狂,是目前应用较多的中文输入软件。它的界面很漂亮,可定制性较强,光标跟随做得很好,但是系统依赖性较强。如果需要的相关软件不全,甚至版本不同都可能造成安装失败。<br>
<br>
1.安装<br>
<br>
该软件的主页是http://developer.berlios.de/projects/xsim/。Xsim的安装和其它软件类似,需要注意的是,它使用了db4 C++库,所以应该保证系统中已安装了libdb4、libdb4cxx等软件包。如果使用源代码安装,还需要libdb4-devel包。如果用RPM 安装的话,请尽量使用和系统版本完全一致的发布版,如Mandrake 9.0与9.1就有所不同。我建议使用源代码方式安装。<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -