开发者

Loading dictionary for input method suggestion list

For various reasons, i'm trying to write my own input keyboard. So far all is going well except that of creating the suggestions.

I've found the latinIME algorithm, which is all good.

However i'm having major difficulty working out how to load the dictionary in the first place.

I've had a good look round the net, and found various suggestions, but no definitive answers, and i cant seem to get any of them to work.

If anyone has any suggestions on h开发者_运维知识库ow best to do it, or even better some sample code, that would be brilliant.

Many Thanks

James


There is a BinaryDictionary inside the LatinIME src code here. It loads the dictionary using:

static {
    try {
        System.loadLibrary("jni_latinime");
    } catch (UnsatisfiedLinkError ule) {
        Log.e("BinaryDictionary", "Could not load native library jni_latinime");
    }
}

I don't know if you can access it, but try it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜