|
发表于 2004-1-10 10:43:58
|
显示全部楼层
I think it's better now.
1 What is fcitx?
Fcitx as known as gWuBi before stands for Free Chinese Input Toy of X, an input method for Linux. To be more precise, fctix is a collection of Simplified Chinese input methods based on XIM (X Input Method), including WuBi, PinYin, ShuangPin, ErBi and QuWei. It is released under GPL.
2 About the developer
The developer of fcitx is Yuking. You may modify or redistribute this software freely, provided you indicate the original developer in your work -- please show your respects to software developers as well as yourself.
Yuking has spent a lot of time on fcitx to make it an exellent input method for Linux, and in order to help him, the members of community on LinuxSir.org are maintaining this homepage for him. Thanks also go to YU Mingjian, james_su, Chukuang, tram and WineInput. They have done a lot to make Chinese input method for Linux possible and becoming better.
The English version of the webpage was translated by ganlu and GaoYuanZhiLang in LinuxSir.org , Thanks a lot to them!
3 Installation
Make sure you have correctly installed gcc compiler and XFree86 development packages(usually named XFree86-devel) before you start to compile your fcitx.
Firstly go here to download fcitx tarball, which name is fcitx-2.x.tar.gz or fcitx-2.x.tar.bz2, and put it under /temp directory(or wherever you prefer). If you downloaded a copy of tar.gz file, use the following commands to uncompress:
cd /temp
tar zxvf fcitx-2.x.tar.gz
If the file you downloaded is in tar.bz2 format, use the following commands to uncompress:
cd /temp
tar jxvf fcitx-2.x.tar.gz
The tar command will creat fcitx-2.x folder automatically, and all files including source code are placed there.
We suppose you have already gcc and XFree86 developing packages installed, now you can use the following commands for fcitx compilation and installation( root account needed ).
cd fcitx-2.x
make clean
make && make install
It will install fcitx with XFT support. If any reasons you don't want XFT support, you can still choose to install fcitx by using:
cd fcitx-2.x
make clean
make -f Makefile.noxft && make install
then fcitx will use X core font.
After compilation, the following files will be automatically copied into your system for completing installation:
/usr/bin/fcitx
/usr/share/fcitx/punc.mb
/usr/share/fcitx/pybase.mb
/usr/share/fcitx/pyphrase.mb
/usr/share/fcitx/wbx.mb
If you don't have root authority, you need use "make install_local" instead of "make install", otherwise fcitx will copy the following files under your home folder:
bin/fcitx
fcitx/fcitx
fcitx/punc.mb
fcitx/pybase.mb
fcitx/pyphrase.mb
fcitx/wbx.mb
4 Configuration
Application communicates with XIM through environment variable XMODIFIERS, you can set up XMODIFIRES like this (for bash):
export XMODIFIERS="@im=YOUR_XIM_NAME"
Aboved-mentioned YOUR_XIM_NAME is registered name of your XIM application in the system. When starting up, application will look for corresponding XIM sever by value of this variable. Therefore, even if there are several applications in the system running at the same time, one application will take one XIM input method by one time. Sometimes you may account such situation that apparently you have invoked XIM, but application doesn't take it. It's mostly due to wrong XMODIFIERS configuration. One example would be that you have modified XMODIFIERS in diffirent scripts, which caused the variable becoming unconsistent when X starts up and after.
By default, fcitx will register its XIM name as fcitx, but if XMODIFIERS has been set before fcitx starts up, fcitx will register its name according system configuration. So, for fresh-installed mandrake and Redhat, the simplest way is to execute commands as follows:
cd /usr/bin
ln -sf fcitx chinput
Then restart X. If it doesn't work, you need set up your environment manually, usually adding these lines in ~/.bashrc could do the trick:
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
Then restart X and relogin. If fcitx isn't loaded automatically, you need execute the following in the command line:
fcitx
By default, fcitx runs in backgroud, if you don't want it running in this way, you can use:
fcitx -nb
5 Configuration file
The configuration file of fcitx is ~/.fcitx/config, inside it all options are Chinese(codeset gb2312), you can know almost every function through reading it. The following is default content of the file:
[程序]
#区域设置=zh_CN
显示字体=Simsun
显示字体大小=18
是否使用AA字体=0
是否使用Ctrl_Shift打开输入法=1
[输出]
数字后跟半角符号=1
Enter键行为=2
分号输入英文=1
大写字母输入英文=1
联想方式禁止翻页=1
[界面]
候选词个数=5
是否使用3D界面=2
是否自动隐藏输入条=1
主窗口隐藏模式=1
是否光标跟随=1
光标色=92 210 131
主窗口背景色=230 230 230
主窗口线条色=255 0 0
输入窗背景色=240 240 240
输入窗线条色=100 200 255
输入窗箭头色=255 150 255
输入窗用户输入色=0 0 255
输入窗提示色=255 0 0
输入窗序号色=200 0 0
输入窗第一个候选字色=0 150 100
#该颜色值只用于拼音中的用户自造词
输入窗用户词组色=0 0 255
输入窗提示编码色=100 100 255
#五笔、拼音的单字/系统词组均使用该颜色
输入窗其它文本色=0 0 0
[热键]
#中英文快速切换键 可以设置为L_CTRL R_CTRL L_SHIFT R_SHIFT
中英文快速切换键=L_CTRL
GBK支持=CTRL_M
联想支持=CTRL_L
全半角=SHIFT_SPACE
中文标点=ALT_SPACE
上一页=- ,
下一页== .
第二三候选词选择键=SHIFT
[五笔]
五笔四键自动上屏=1
自动调整五笔顺序=0
揉的词组=0
五笔精确匹配=0
提示五笔编码=1
使用Z输入拼音=1
Z模糊匹配=1
增加五笔词组=CTRL_8
调整五笔顺序=CTRL_6
删除五笔词组=CTRL_7
[拼音]
使用全拼=0
拼音自动组词=1
保存自动组词=0
增加拼音常用字=CTRL_8
删除拼音常用字=CTRL_7
删除拼音用户词组=CTRL_DELETE
#重码调整方式说明:0-->不调整 1-->快速调整 2-->按频率调整
拼音单字重码调整方式=2
拼音词组重码调整方式=1
拼音常用词重码调整方式=0
是否模糊an和ang=0
是否模糊en和eng=0
是否模糊ian和iang=0
是否模糊in和ing=0
是否模糊ou和u=0
是否模糊uan和uang=0
是否模糊c和ch=0
是否模糊f和h=0
是否模糊l和n=0
是否模糊s和sh=0
是否模糊z和zh=0
6 Anything left
Since I am not a superman, I can't adjust order of word/phrase one by one manually. So possibly when you begin to use, the order of word/phrase may eventually astonish you, and the number of phrase is limited too( even lack of many regularly-used words), but I have strong belief that it won't be a problem after you have used my application for some times. If you get better coding table of WuBi/PinYin, and don't have anything nonconvenient(you decide what it means), email to me please. I really appreciate that.
fcitx's WuBi86 coding table takes from cjkvinput project ,refer to related declatation.
7 Acknowledgements
Source codes on interface part of the application have refered to source codes of rfinput-2.x,thank Zhao yan(developer)
Thank Chu Kuang --the developer of xsim, he has provided me very precious technical help.
Thank tram --the developer of ErBi input method (ebf),he has done a lot of work for fcitx.
Thank winix for his many many valuable advice and suggestion.
Thank windrose for his carefully testing of ShuangPin function.
Thank Wang Yin for valuable advice for PinYin function.
Thank 北南南北 from LinuxSir.Org for providing the nest. At the same time, thank him and XiaoFan for their many popularizing and testing work.
Thank all of you for testing and using gWuBi/fcitx, hope fcitx can still gain everybody's futher support,thanks a lot. |
|