I started working on a wrapper around SunPinyin one week ago. The scim platform, can now load my wrapper (which named scim-sunpinyin
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:
- configure scim and the input engines with debug enabled: –enable-debug
- 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.