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

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