|
发表于 2004-6-18 23:19:24
|
显示全部楼层
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -I/usr/X11R6/include -Wall -Werror -c `test -f 'ui.c' || echo './'`ui.c
cc1: warnings being treated as errors
ui.c: In function `SetLocale':
ui.c:147: warning: implicit declaration of function `toupper'
make[1]: *** [ui.o] Error 1
make[1]: Leaving directory `/root/fcitx-3.0.0test2/src'
make: *** [all-recursive] Error 1
beta2出错试了beta1的码表功能
这是以前兄弟提供的,可以用在以前的fxitx,在转换过程会丢失部分的词汇
另外编码的Z根本不支持,大部分的输入法多支持Z建的.beta1会导致键盘没反应,killall fcitx就OK了,不知道这么回事先用 dos2unix.pl 转成unix文本格式
usage: perl dos2unix.pl <old98.txt >wb98.txt
#!/usr/bin/perl -w
while(<> ){
s/\r\n$/\n/;
print;
}
再用 wb.pl 转成fcitx格式
usage: perl wb.pl <wb98.txt
#!/usr/bin/perl -w
open(FH,">wbx.mb")||die('open fail');
while($str=<> ){
$str=~s/ .*//; #erase extra data after space
$str=~s/([a-z]{1,4}$)//; #extract encodings
$tmp=$1;
chop($str); #erase \n
if(length($str)%2){ #if true indicate wrong whwn extract encodings
$str.=substr($tmp,0,1); #fix the wrong problem
$tmp=~s/[a-z]//;
}
print FH "$tmp $str\n"; #write to new file
} |
|