Tchaikov’s Journal

September 22, 2007

scim-sunpinyin_0.1 progress: 31.415%

Filed under: GNU/Linux, Input-Method

I started working on a wrapper around SunPinyin one week ago. The scim platform, can now load my wrapper (which named scim-sunpinyin 8-) and display the logo of SunPinyin.

But it still can’t switch between full/half punctuate, full/half simbol (it’s not typo) or en/cn input mode, not to mention inputing Chinese characters correctly display the aux string and preedit string. Anyway, I got to know how to debug scim input method engine:

  1. configure scim and the input engines with debug enabled: –enable-debug
  2. pass the arguments for scim-launcher after `–’ when launch scim. Actually, the loading chain looks like: scim -> scim-launcher -> scim-frontend, each module/executable in this chain will just pass the argument after `–’ to the next one.
    $ scim -e sunpinyin -- -v 7 -m backend,imengine,lookuptable -o filename 

Since the debug options should be invisible to end users, they are only `documented’ in the source of scim_launcher.cpp and scim_debug.cpp.

Anyway, even with the help of debug facility provided by SCIM, it’s still a bit difficult to debug an input method engine.
scim-sunpinyin

2 Comments »

The URI to TrackBack this entry is: http://tchaikov.blogsome.com/2007/09/22/scim-sunpinyin_01-progress-31415/trackback/

  1. Why not attach a screenshot :)

    Comment by Yong Sun — September 28, 2007 @ 6:36 am

  2. haha, done

    Comment by tchaikov — September 30, 2007 @ 2:33 am

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


Get free blog up and running in minutes with Blogsome
Theme designed by Jay of onefinejay.com