libchewing
libchewing copied to clipboard
簡單注音模式
請參考:
https://groups.google.com/forum/?fromgroups#!topic/chewing-devel/TLn_31OFTrU
This can be implemented by modify CountReleaseNum like this. After applying this patch, set maxChiSymbolLen to and you will only have one word in preedit buffer.
However, I cannot find the purpose of the following code in CountReleaseNum, especially ZUIN_SIZE part. Modify it might cause undesirable side effect.
/* reserve ZUIN_SIZE positions for Zuin */
remain = pgdata->config.maxChiSymbolLen - (pgdata->chiSymbolBufLen + ZUIN_SIZE);
if ( remain > 0 )
return 0;