星期一 三月 09, 2009

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

  1. 修正了光标跟随在副显示器上不能正常工作的bug
  2. 加入了用Shift进行中英文切换的选项
  3. 加入了Growl的支持,在使用Shift切换时通知“已切换至英文模式”

越发觉得SunPinyin的Logo有些简陋,期待有朋友能帮忙设计一个,呵呵 ...

大家可以从这里下载最新的安装包。在安装完成之后,请到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目录下。或者从酷本社区下载数据安装包来安装。

星期五 三月 06, 2009

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

  1. 加入了候选窗口的前景色和高亮色的设置
  2. 修正了未设置颜色时,首选项中的颜色栏为黑色的bug
  3. 加入了使用英文键盘布局的设置(感谢tianyu263的帮助)
  4. 修正了两个可能导致crash的bug

大家可以从这里下载最新的安装包。在安装完成之后,请到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目录下。或者从酷本社区下载数据安装包来安装。

星期一 三月 02, 2009

Yes, I'm running ibus-1.1.0 on opensolaris now, thanks Peng Huang to accept my patch for building ibus with SunStudio C compiler. Since it requires python 2.5+, I built many python modules (pygtk, gnome-python, dbus-python, xdg-python etc.) via the spec files from jds project. Hopes that opensolaris/JDS could migrate to python 2.5/2.6 in near future ...

星期三 二月 11, 2009

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

  1. 加入了候选词字符集的选项
  2. 调整了原来的界面布局,感谢jjgod的帮助



最初觉得缺省支持大字符集很好, 不过最近在帮Feng Zhu收集手写样本时发现,原来GB2312中的二级汉字,我也有若干不认识的。将候选词的字符集设小之后,也有助于减少候选词(主要是字)的个数,提高选取的效率。

大家可以从这里下载最新的安装包。在安装完成之后,请到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目录下。

星期三 十二月 03, 2008

If user removed a startup item (like iiim) via gnome-session-properties(1), when the item is checked, a customized .desktop file would be saved in $HOME/.config/autostart, with both "X-GNOME-Autostart-enabled" and "Hidden" entries are "true". And on next login, the removed item would not be started by gnome-session(1).

The term "Hidden" is quite confusing, from the "Desktop Entry Specification" and "Desktop Application Autostart Specification" standards from freedesktop.org, we could see it actually means "Deleted",

Hidden should have been called Deleted. It means the user deleted (at his level) something that was present (at an upper level, e.g. in the system dirs)...

When the .desktop file has the Hidden key set to true, the .desktop file MUST be ignored...

星期三 十一月 19, 2008

By default, input method service (either iiim or scim) would be started on any UTF-8 locale, and the disabling function iiim-properties(1) would not stop the starting of iiim services, but only disable the client communications. To completely disable the IM services, you could either hack the /etc/iiim/xsession script to not start iiim daemons on en_*.UTF-8 locales, or a lighter way is to add following lines to your $HOME/.profile,

$ cat ~/.profile
GTK_IM_MODULE=gtk-im-context-simple
export GTK_IM_MODULE


While the legacy XIM clients (like Java apps) would be impacted badly, you need to edit the /usr/X11/share/X11/locale/en_US.UTF-8/XI18N_OBJS file, and comment out all the XIM entries with _XimpLocalOpenIM (as the XOpenIM(3X11) entry point).

星期四 十一月 06, 2008

From gnome-2.24, iiim-panel shows a gray border in gnome-panel, when gnome-panel is set with "Solid color" or "Background image". It turns out that the 2nd nested window (GtkDrawArea, or GtkEventBox) does not inherit the style from its ancestor containers. I tried to use gdk_window_set_back_pixmap to make it transparent, but failed. :(

Finally , I had to use the 1st nested window (GtkEventBox) to draw the icon and text.

P.S., here is the container hierarchy we used to have,
egg_tray_icon
\_ event_box
  \_ hbox
    \_ drawing_area 

星期二 十月 28, 2008

We found a serious problem recently, if your application starts earlier than gnome-session, and has accesses to gconf services, like iiim-panel, you will see two gconfd daemons after you login to gnome. It might due to the introducing of gnome-keyring (with ssh-agent), so that gnome-session does not recognize and reuse the existing gconfd daemon?

Then when iiim-properties(1) is invoked later by user, it actually talks to the 2nd gconfd, but iiim-panel still connects to the 1st gconfd.That's why iiim-panel does not update its language list after adding/removing input-methods with iiim-properties. [OS.o bug #4024]

A workaround is to terminate your gconfd daemon after iiim-panel is started. There would be no explict impacts to existing clients, they will try to connect to the new gconfd. A better solution is to defer the iiim-panel starting after gnome-session.

P.S., it turns out killing gconfd does not work perfectly, iiim-properties(1) launched from terminal and the one launched by iiim-panel(1) would still start two different gconf daemons.

星期一 十月 20, 2008

At first, install scim and your favorite input-method engines from pkg.opensolaris.org, you could list the available scim packages, by $ pkg list -a SUNWscim*. For nevada users, you need select the scim metacluster in installer.

Then, edit your $HOME/.profile to export the GTK_IM_MODULE to scim, and re-login

$ cat >> ~/.profile << EOF
> GTK_IM_MODULE=scim
> export GTK_IM_MODULE
> EOF

To switch back to iiim, you could simply comment out the above lines in your $HOME/.profile, and re-login.

星期六 十月 11, 2008


Schedule:
Sunday, October 19 2008
No. 1 Conference Hall
14:00
Input methods Technologies - Part1
James Su, Peng Huang
15:00 Input methods Technologies - Part2
Yong Sun, Peng Wu

And here is the PDF version of presentation slides. Thanks a lot for the co-authors, Peng Wu, Peng Huang, and Feng Zhu, and thanks to James for reviewing. Looking forward to meet you in the forum, and share your thoughts and comments with us!

This blog copyright 2009 by yongsun