阅读:7422回复:6
yong怎么用到zhcon中?
相比zhcon版主是知道的,我想在zhcon中使用yong。在zhcon中添加输入法如下:
我先将libmb.so和pinyin.txt拷贝到zhcong输入法所在的目录,之后编辑/etc/zhcon.conf, ime = yong,input/libmb.so,pinyin.txt,gb2312,native #ime = 智能拼音,modules/cce/cce_pinyin.so,modules/cce/dict,gb2312,unicon #ime =全拼,,input/winpy.mb,gb2312,native ime = 五笔,,input/wb.mb,gb2312,native ime =双拼,,input/winsp.mb,gb2312,native ime = ︽ 30,,input/big5-ary30.mb,big5,native 增加如上所示,但是无法使用yong,能帮我解决么?谢谢。 |
|
板凳#
发布于:2012-10-23 19:23
嗯,那我也不再浪费时间了。
那么请问,在ubuntu纯命令界面下,有没有好的中文环境可以推荐的? 据我所知,比较好用的有zhcon和fbterm。这两个我都用过,我自己感觉zhcon体验更好。fbterm体验不是很好。首先是进入fbterm后,关机或者重启会提示硬件错误,但是当退出之后再关机或重启没有问题,这说明这是fbterm的问题。其次是进入fbterm之后,无法使用ctrl+alt+f2,3,4,。。。等切换终端。这些问题在zhcon中都不存在,并且zhcon的显示更舒服。 但是zhcon的输入法不是很好,因此我想yong是不是也可以在zhcon中使用。并且zhcon中有加入新的输入法的方法,不知道版主能否尝试将其加入到zhcon中,我想这两个结合是在纯命令行模式下显示和使用中文最好的方法了。多谢了。 另外,我把zhcon的配置文件贴出来,你可以更方便的做这些工作。 #this is config file for zhcon #it can be named as ~/.zhconrc or /etc/zhcon.conf #you can edit it manually #zhconpath = /usr/local/lib/zhcon/ #unicon(3.x) path uniconpath = /usr/lib/unicon/ #defaultencode: default encoding can be :gb2312,gbk,big5,jis,ksc defaultencode = gb2312 #autoencode: auto detect current Chinese encoding(GB2312 or BIG5) #when autoencode is set zhcon will try to detect current Chinese encoding #after idle 1 second and change current Chinese encoding to #GB2312 or BIG5.This function is useful if you are viewing many text files #with different encoding type. #auto,auto-gb,auto-big5,manual autoencode = manual #screen resolution #NOTE: # 1) These only works on FreeBSD. On Linux these options will be IGNORED! # 2) If your FreeBSD kernel has VESA support compiled in(with # "options VESA") and your display adapter support VESA(most cards will # do), you can set color_depth to 8 or higher. This means you can use # 640x480x256 colors, 640x480x65536 colors, 800x600x256 colors...etc # BUT you will not able to use 640x480x16 colors! (Of course I don't # think you will want to run 16 colors mode at all :)) # 3) If your FreeBSD kernel has not VESA support(or you even don't know # what's kernel or what's VESA), you can only set color_depth to 4. # That is, you can only run 16 colors mode(VERY slowly). # 4) Ok, if you don't understand me at all, it's OK. Just go and find a # FreeBSD wizard and ask him to compile a new kernel with VESA support # for you and ... emmmm ... explain all these stuff to you ... # x_resolution = 640 y_resolution = 480 # 4 bits = 16 colors, 8 bits = 256 colors, 16 bits = 64K colors, and so on.. # By defalut, 640X480X16 color is used to support as many video cards as # possible. zhcon works very SLOWLY under this mode. You should try setting # color_depth=8 to use 256 color (VESA mode) after recompiling your kernel # with VESA support to gain most out of your hardware. color_depth = 4 #blanklineheight must >= 0 blanklineheight = 1 #0, default(block); 1, none; 2, underline #3, 1/3 block; 4, 1/2 block; 5, 2/3 block; 6, block cursortype = 6 beep = on #whether to display startup message startupmsg = on #whether to enter prompt mode when start #you can enter prompt mode by press CTRL-ALT-0 promptmode = off # set font name, all font must be placed in PREFIX/lib/zhcon/ # for use with 24 pixel font # ascfont = font/asc24.bpsf # gbfont = font/gb-24-kai.bpsf ascfont = font/asc16.bpsf gbfont = font/gb-16.bpsf gbkfont = font/gbk-16.bpsf big5font = font/big5-16.bpsf jisfont = font/jis-16.bpsf kscfont = font/ksc-16.bpsf #inputstyle: overspot or nativebar inputstyle = overspot # color scheme format # text's fore, back, color1, color2, frame's light, dark color # change push style to pop by swap frame's light/dark color # red style = 15,4,11,14,12,0 # blue style = 15,1,11,14,9,0 # white style = 0,7,1,1,15,8 overspotcolor = 0,7,1,1,15,8 nativebarcolor = 15,4,11,14,0,12 showtips = on #change input method here #the first ime is the default ime when press CTRL_SPACE #only the first nine imes are avaiable to zhcon #you can add more ime from Chinput's config file #format: ime = imename,module,table,encode,type #imename := <input method's name> #module := <module file name> #table := <table file name> #encode := gb2312 | gbk | big5 #type := native | unicon #ime = zhcon,input/libmb.so,pinyin.txt,gb2312,native ime = ȫƴ,,input/winpy.mb,gb2312,native #ime = quanpin,,input/libmb.mb,gb2312,native ime = Îå±Ê,,input/wb.mb,gb2312,native ime = ˫ƴ,,input/winsp.mb,gb2312,native ime = ¦æ¦C30,,input/big5-ary30.mb,big5,native ime = ܾe,,input/big5-cj.mb,big5,native ime = ª`µ,,input/big5-phone.mb,big5,native ime = µL½¼¦Ì,,input/big5-liu5.mb,big5,native ime = ÖÇÄÜÆ´Òô,cce_pinyin.so,cce,gb2312,unicon ime = GBKÆ´Òô,TL_hzinput.so,gbk/gbkpy_mb.tab,gbk,unicon ime = ×ÔÈ»Âë,TL_hzinput.so,gb/zrm-2.tab,gb2312,unicon ime = ܾå¿é¤Ê,TL_hzinput.so,big5/pinyin.tab,big5,unicon ime = ܾe¿é¤J,TL_hzinput.so,big5/cj.tab,big5,unicon ime = ²©ö¿é¤J,TL_hzinput.so,big5/simplex.tab,big5,unicon ime = ȫƴ2,,input/py.mb,gb2312,native ime = ˫ƴ2,,input/py.mb,gb2312,native ime = ´óÖÚ,,input/dzm.mb,gb2312,native ime = Ó¢ÖÐ,,input/ed.mb,gb2312,native ime = ¼òÆ´,,input/jp.mb,gb2312,native ime = ÆÕͨ,,input/pt.mb,gb2312,native ime = Îå±Ê¶þά,,input/wbew.mb,gb2312,native ime = Îå±Ê»®,,input/wbh.mb,gb2312,native ime = ·±Ìå²Öò¡,,input/cjf.mb,gb2312,native ime = ¼òÌå²Öò¡,,input/cjj.mb,gb2312,native |
|
地板#
发布于:2012-10-23 19:31
这不只是一个配置文件的关系,输入法需要根据zhcon调整实现的接口。我不会实现的。
我没什么中文环境好推荐的,因为我基本只用图形界面。对那方面不熟。 |
|
5楼#
发布于:2012-10-23 22:11
|
|