- 论坛徽章:
- 0
|
你们要的输入法!!
zmcsdh copy some net friends!!
输入法:
freebsd-4.6.2 zh-chinput-2.1.
download zh-chinput-2.1.tar.gz
确保有ccs16_1.pcf.gz字体
tar -zxvf zh-chinput-2.1.tar.gz
make ;make install;
.xinitrc .xsession里加入
export LANG=zh_CN.GBK
export LC_ALL=zh_CN.GBK
export XMODIFIERS=@im=Chinput
exec chinput&
exec startkde
ln -s /usr/share/locale/zh_CN.EUC /usr/share/locale/zh_CN.GBK
if (ccs16_1.pcf.gz==没有)
{
?cd /usr/X11R6/lib/X11/fonts/local
?cp ccs16-1.pcf.gz ../misc
复制
cp /usr/X11R6/lib/X11/fonts/local/fonts.dir 文件的
ccs16_1.pcf.gz 这行开头的内容到
/usr/X11R6/lib/X11/fonts/misc/font.dir 文件内,
cat fonts.dir >;>; ../misc/fonts.dir
再把/usr/X11R6/lib/X11/fonts/misc/font.dir顶部的数字加 1
eg:
(/usr/X11R6/lib/X11/fonts/misc/font.dir为345,
则/usr/X11R6/lib/X11/fonts/misc/font.dir内就应该为346).
}
因为chinput会用到它,不然你进不了X也用不了Chinput
现在exit出root再login就可以
startx
进X用Ctrl+空格叫
出输入法了,F3是拼音,F7是五笔.....
simsun字体:
mkdir /usr/X11R6/lib/X11/fonts/TrueType/
cp windowsdir/windows/fonts/simsun.ttc /usr/X11R6/lib/X11/fonts/TrueType
/usr/X11R6/lib/X11/fonts/TrueType中建立两个文件fonts.dir和fonts.scale
4
simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-ascii-0
simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15
simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1
FontPath"/usr/X11R6/lib/X11/fonts/TrueType/"
Load"xtt"
Control Center->;Look & Feel->;Fonts中选择simsun.
滚轮:
找到
Section "InputDevice"行:
1. 在XF86Config中将鼠标的Protocol设置为Auto
2. 将Device 设置为 /dev/psm0 (PS/2鼠标)
3. 加上 Option "Buttons" "5" (三键鼠标)
4. 加上 Option "ZAxisMapping" "4 5"
eg:
vi /usr/X11R6/lib/X11/XF86Config
Section "InputDevice"
Identifier"Mouse0"
Driver"mouse"
Option" rotocol" "auto"
Option"Device" "/dev/psm0"
Option"Buttons" "5"
Option"ZAxisMapping" "4 5"
EndSection
|
|