You are viewing the entry 08总结和09展望
« 减一天费四千的香港游 | Main | Tips: the equivalent... »
2008 2009 beijing c++ china corpus crf crf++ dbus fp geometry gnu google ibus iconv imbus indiana input-method interview iphone ips l10n lambda linker mac maxent mercurial nikon nlp opensolaris party pkg planet.os.o python ruby samp scim sogou solaris stardict static_constructor sunpinyin sunstudio techdays tip tips x11 zfs 分词 小小

你好,
我最近的畢業習作是做一個MacOSX輸入法..叫G6:
http://www.ee.cityu.edu.hk/~g6code/tutor_tc.html
但是我是輸入法,mac, Cocoa的初手,看過IMK Sample Code後
有幾個問題想請教你的
1. Controller由client收text有3個方法: 1)Support keybinding, 2)Receive all key events without the keybinding, but do "unpack" the relevant text data,
3)Receive events directly from the Text
這3個方法其實是有什麼分別的...因為我不明白什麼是keybinding and unpack
2.那個ConvertEngine應該如何寫呢?我怎樣加我的字庫去convert呢?
3.我嘗試過下載SunPinYin來看看...但是我不能打開啊,你能否把整個完整的代碼zip起來send給我呢??..十分感謝!
你可以給我的聯絡方法嗎?例如email,msn...希望你能夠幫助我!十分感謝!!
发表于 phoenix 在 2009年01月06日, 02:57 下午 CST #
Hi, phoenix, 请教不敢当,我也是初学。
keybinding应该是指第一种方法中将键盘事件和action影射起来的做法;unpack是说,你在第二种方法中,仍然不会直接得到event,而是将其内部的若干fields作为参数传递给inputText:key:modifiers:flags:client方法。ConvertEngine就是要实现转换逻辑的地方,将输入的string或event转换为候选词。
SunPinyin的代码可以下载此处最新的snapshot,http://opensolaris.org/os/project/input-method/files/inputmethod-repo-snapshot-20090106.tar.bz2
另外我的msn是findsun@hotmail.com,欢迎联络 :)
发表于 Yong Sun 在 2009年01月06日, 03:58 下午 CST #