星期二 五月 19, 2009

http://wikis.sun.com/display/g11n/SunPinyin-2.0+Project+Plan+and+Status+Tracking

M1: 2009/05 ~ 2009/06

  1. re-implement the CPinyinTrie classes to use encoded syllable (instead of pinyin character) as key to lookup the systeam lexicon.
  2. implement the static Double-Array-Trie class, to load pinyin suffix trie data, assisting the pinyin segmentation.
  3. define the IPySegmentor interface, and implement the QuanPin segmentor basing on the pinyin suffix trie.

M2: 2009/06 ~ 2009/07

  1. re-implement the CIMIContext class basing on the new data strcture which would be largely changed.
  2. implement the CUserDict class (using SQLite).
  3. re-implement the classic view, and update gtk-standalone accordingly, to test the classic view.

M3: 2009/07 ~ 2009/08

  1. re-implement the modern view.
  2. re-implement the user configuration.
  3. testing the functionalities of views with gtk-standalone, and resolve found issues/bugs.

M4: 2009/08 ~ 2009/09

  1. update the Mac OS porting (by Yong, jjgod or other community developers)
  2. update the scim-sunpinyin porting (by Kov Chai or other community developers)
  3. update the iiimf-cle-sunpinyin porting (low priority, dueto the local file access limitation of iiimf, userdict may not be enabled)

M5: 2009/09 ~ 2009/10

  1. port to ibus framework (by Yong or other community developers)
  2. add Double Pinyin support
  3. bug fixes

Future Plans

  1. add ZhuYin support
  2. add Simplified Chinese -> Traditional Chinese conversion on Mac OS porting (scim has this feature as a framework facility)
  3. add more new words in dictionary, and retrain the language model
    ... ...

星期三 四月 29, 2009

感谢jjgod的贡献,为SunPinyin加入了自动更新的功能,

他还使用了新的打包工具iceberg,并为安装程序开发了一个插件,以支持检测和下载数据文件,

除此之外,本次更新还修正了“强制使用英文布局”选项无法正常工作的问题。

大家可以从这里下载最新的安装包。

星期六 四月 11, 2009

新买了2Gx2内存,把MBP上的1Gx2换了,然后暴力拆解了我的Mac Mini上,换上MBP上淘汰下来的1Gx2,两台机器的性能都有提升啊,呵呵 ...

星期二 四月 07, 2009

此次更新的主要内容包括:

  1. 解决了在PowerPoint 2008中使用经典模式无法输入中文的问题(严格来说是PowerPoint的bug)
  2. 修正了应用程序失去焦点会重置中英文模式的问题
  3. 修正了在输入法弹出的对话框中无法输入的问题(感谢tianyu263的帮助)

大家可以从这里下载最新的安装包。在安装完成之后,请到http://src.opensolaris.org/.../sunpinyin/ime/data下载lm_sc.t3g.le以及pydict_sc.bin.le(如果是PowerPC请下载后缀为'.be'的对应文件),将'.le'(或'.be')的后缀去掉,并拷贝到/Library/Input Methods/SunPinyin.app/Contents/Resources目录下。或者从苹果驿站下载数据安装包来安装。

星期六 三月 28, 2009

I just got a question from the comments of last entry,
No offense, but I'm just curious why does Sun spend money on developing an input method for Mac OS? Or Is this just a personal project?
And here comes my reply, that I'd like to post as new entry too,

Actually, the core of SunPinyin is the conversion engine based on statistical language model, and it can have different front-ends, like gtk_standalone (for debugging) iiimf-cle, scim, beCJK, and leopard/IMKit as well. The basic idea of porting SunPinyin to leopard/IMKit is to let more people to know about this input method, and attract some Mac developers to join this project, and hopefully join the engine development eventually. Another reason is that I'm not satisfied with the existing input methods on Mac.

The returns are that we really got a lot of valuable feedback and responses from the Mac users (like Zheming), and attracted several developers (including a UI designer) to join us. Though I'm hoping some one could take over the maintenance of leopard/IMKit porting from me :) All the contributions from Mac world, are helping us to make SunPinyin better, and better, on all platforms.

While, yes, you're right, it's more likely a personal project, I mostly spent spare time on that. Though the initial porting did take several working days. And, I'd appreciate the supports from my managers.

Hopes you enjoy it :)

星期五 三月 27, 2009

此次更新的主要内容包括:

  1. 替换了新的SunPinyin图标(感谢chumsdock同学的贡献)
  2. 修正了Shift+其他组合键会造成中英文状态切换的问题
  3. 改善了即时输入模式,可以输入无效的拼音字符,Return键不再是进行音字转换而是提交preedit,Shift+Return则把整个输入缓冲区中的拼音字符提交到应用程序中,方便大家临时输入英文的需要

大家可以从这里下载最新的安装包。在安装完成之后,请到http://src.opensolaris.org/.../sunpinyin/ime/data下载lm_sc.t3g.le以及pydict_sc.bin.le(如果是PowerPC请下载后缀为'.be'的对应文件),将'.le'(或'.be')的后缀去掉,并拷贝到/Library/Input Methods/SunPinyin.app/Contents/Resources目录下。或者从苹果驿站下载数据安装包来安装。

星期二 三月 24, 2009

客厅里的大书桌被小小(确切地说是被小小的玩具、水果和零食等等)占领了,之前买了个小的电脑桌放在卧室里,不过太短了,要是摆上两台机器,就没地儿了。前几天得闲到IKEA买了个比较长的书桌(120x60),组装很费劲,差点拧坏了两把螺丝刀。然后把MBP的第二个DVI口和LCD显示器连接起来。老婆还送我一个她不用的笔记本支架,使得两个显示器并排在一起不至于太参差不齐。用两个屏幕的确是很爽啊,一边浏览文档、一边写代码,呵呵 ...

星期六 三月 21, 2009

I just committed the python binding of CPinyinTrie class in SunPinyin -- pytrie.pyx (written in cython). Together with pyslm extension, you (and I off course) are able to start building the input method engine with python. And I'm also prototyping some new stuff for SunPinyin-2.0 with Python (in very early stage).

Who has interests in porting SunPinyin to ibus? ;)

To build it on Solaris with SunStudio,
$ export CC=/opt/SUNWspro/bin/CC
$ export LDFLAGS="-lCrun -lCstd"

星期二 三月 17, 2009

感谢chumsdock同学的贡献,SunPinyin有了一个非常好看的图标!由于一些流程方面的原因,我暂时还无法直接提交到repository中。大家可以通过下面的方法替换SunPinyin原有的图标。

  1. 首先下载图标文件,并解压缩
  2. $ sudo cp SunPinyin.icns /Library/Input\ Methods/SunPinyin.app/Contents/Resources
  3. $ sudo rm /Library/Input\ Methods/SunPinyin.app/Contents/Resources/SunPinyin.tiff
  4. 编辑/Library/Input\ Methods/SunPinyin.app/Contents/Info.plist,将SunPinyin.tiff替换为SunPinyin.icns
  5. 重新登陆

这样大家就可以看到新的图标了!

星期五 三月 13, 2009

Basically the similar steps as described in Quick Start Guide on Ubuntu 8.04.

  1. Install amp-dev (or webstack packages) on OpenSolaris (or Solaris production release), and install SunStudio and GNU autotools (JDS CBE toolset is recommended).
  2. Download the latest laconica archive file, and extract to apache2/2.2/htdocs, and edit the httpd.conf to enable "AllowOverride All" for htdocs directory.
  3. Edit config.php, setup mysql databases, configure fancy URL, as described in above document.
  4. Download sphinx-0.9.8.1 and apply this patch for sunstudio C++ compiler, build and install it as following,
  5. $ export PATH=$PATH:/path/to/mysql/bin
    $ ./configure; make; pfexec make install
    $ cd api/libsphinxclient; ./configure LDFLAGS="-lsocket -lnsl"; \
    > make; pfexec make install
  6. Use pecl(1) to install sphinx php extension, while you need export CC to SunStudio, otherwise, it would uses gcc even it's not in your $PATH. (Thanks to Sriram Natarajan for this tip, I used to download and build it manually.)
  7. $ export CC=/opt/SUNWspro/bin/cc
    $ pecl install sphinx

  8. Enable DNS and set it prior to NIS, otherwise email validation would fail.

This blog copyright 2009 by yongsun