Here is one additional comment on uim-sj3. On Fri, Feb 15, 2008 at 5:38 PM, Etsushi Kato <[EMAIL PROTECTED]> wrote: > Hi Iwata-san, > > > On Tue, Feb 12, 2008 at 6:13 PM, iwata <[EMAIL PROTECTED]> wrote: > > I rewrite uim/sj3.c and add new scheme code "scm/sj3*.scm" > > (copied from canna). patch is here, > > Interesting :) And thanks for fixing typo in canna.scm. > > > > Note that sj3-im has not been implemented "bunsetu-gakusyuu" mode, > > "touroku" mode and "syoukyo" mode yet. > > Of course I recognize it is very very important. > > > > If you test this im, please install SJ3 server and library. > > Download from new project page, > > > > http://code.google.com/p/sj3/ > > I've tried uim-sj3 today, and seems to work good ;). Here is some comments. > > * Please don't forget to include <config.h> at the top of sj3.c. > glibc on Linux doesn't have strlcpy(3) and so on. > * Return value of sj3_open() can be a combination of error codes in > sj3lib.h (e.g. SJ3_CANNOT_OPEN_MDICT | SJ3_CANNOT_MAKE_UDIR), > uim_sj3_select_error() should handle these errors as well (though it > can be low prioritized to do at the moment). > * Shrinking segments seems somewhat weird. i.e. It can even select > no character ;) > * Compiling sj3-2.0.1.22p1 itself failed at sj3proxy on Linux and Mac > OS X. It doesn't seem SA_LEN() is portable.
* I got error using uim-sj3 if ~/.uim.d/custom/custom-sj3-advanced.scm contains following default values. (define custom-activate-sj3-server-name? #f) (define custom-preserved-sj3-server-name "") (define sj3-server-name #f) And here is the error message. Error: uim_scm_refer_c_str: string or symbol required but got #f **** BACKTRACE **** (sj3-lib-init sj3-server-name) (if (not sj3-init-lib-ok?) (begin (sj3-lib-init sj3-server-name) (set! sj3-init-lib-ok? #t))) (if (not (eq? init-handler stub-im-init-handler)) (init-handler id im arg) (begin (error "stub IM actualization failed") #f)) (handler uc im arg) (create-context uc #f name) (uim-switch-im uc name) (im-switch-im ctx idname) (handler (widget-owner widget)) (widget-activate! widget action) (let* ((actions (widget-actions widget)) (action (assq act-id actions)) (indicator (widget-indicator widget))) (or (widget-activate! widget action) (widget-activate! widget indicator))) (find-tail pred list) (and handler (apply handler handler-args)) (invoke-handler im-prop-activate-handler uc message) libuim: [fatal] an unhandled error raised from Scheme interpreter libuim: All functionality has been disabled to save user application data. libuim: [fatal] an unhandled error raised from Scheme interpreter libuim: [fatal] All functionality has been disabled to save user application data. Cheers, -- Etsushi Kato [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ Google Groups "uim-en" group uim-en@googlegroups.com http://groups.google.com/group/uim-en/about -~----------~----~----~----~------~----~------~--~---