星期二 2005年03月01日
First evaluation of libchewing 0.2.6 Just have a quick evaluations on the latest libchewing 0.2.6 and scim-chewing 0.2.0, found the following problems:
1. HanYu PinYin feature do not work on my JDS tch_le_sun LE. if I set kb_type to KB_HANYU_PINYING (who's value is 1000), libchewing always crash in function Key2Pho() of common/key2pho.c.
seems in common/key2pho.c, key_str[ MAX_KBTYPE ], MAX_KBTYPE's value is 8, is much less than 1000, so libchewing crash when it to get key_str [ KB_HANYU_PINYING ].
If I change KB_HANYU_PINYING to 8 in file "include/zuin.h", HanYu PinYin feature still do not work. since I have no time to continue on this problem, will wait chewing core team for next release.
so I disable KB_HANYU_PINYING in JDS tch_le_sun language engine.
2. If I start htt_server with normal user id, and type some letters in chewing input mode, htt_server will exit. th e problems is:
in InitChewing() of chewingio.c, there are the following codes:
#ifdef DEBUG
char *dbg_path;
int failsafe = 1;
dbg_path = getenv( "CHEWING_DEBUG" );
if ( dbg_path ) {
fp_g = fopen( dbg_path, "w+" );
if ( fp_g )
failsafe = 0;
}
if ( failsafe == 1 ) {
dbg_path = FAILSAFE_OUTPUT;
fp_g = fopen( dbg_path, "w+" );
if ( ! fp_g ) {
fprintf( stderr, "Error: failed to record debug message.\n" );
exit( -1 );
}
}
#endif
it use exit(), I think this function should not be used in such integrated architecture since this fuction will cause IM server exit in some situations.
3. for "Add Phrase forward" feature, I think it should be a user's preference. so it should be in user's scope, just like kb_type, not in input method's scope.
currently, if a user change this option, libchewing need do "SetConfig( &da, &config )" in input method level, which will cause that this option for all users' are changed, not only the current user.
Need more evaluations from chewing team, maybe my understanding is wrong.
4. scim-chewing.
I install scim 1.1.3 and scim-chewing 0.2.0 on my JDS, I found all the scim module do not work. do not know why.
also found "IBM keyboard layout" is missing in the properties setting window of chewing.
( 2005年03月01日, 11:28:46 上午 CST )
Permalink
反向跟踪 URL: http://blogs.sun.com/eyan/entry/first_evaluation_of_libchewing_0
发表于 James Su 在 2005年03月13日, 06:39 下午 CST #