[Uim] new library 'libuim-sj3'

Iwata iwata at quasiquote.org
Sun Apr 1 05:19:30 EEST 2007


Hi,

I wrote im interface code for SJ3.

Note that you can use this module via uim-sh only
because scheme code is stub (does anyone write it?).

And I wrote a patch for SJ3 to create shared library.
patch for sj3-2.0.1.20.tar.gz is here (it includes bug fix, very huge),

 http://quasiquote.org/files/sj3-qq-2.0.1.21.diff.gz

patch for uim is here,

 http://quasiquote.org/files/uim-sj3.diff.gz

Cheers,


$ uim-sh
uim> (load-plugin "sj3")
#t
uim> (sj3-lib-open "localhost" (getenv "USER"))
#t
uim> (sj3-lib-getkan "いれたてのおちゃ")
("入れた手のお茶" ("いれた" "入れた" #<c_pointer 0xcfbe8340>) ("ての" "手の" #<c_pointer 0xcfbe8370>) ("おちゃ" "お茶" #<c_pointer 0xcfbe83a0>))
uim> (sj3-lib-touroku "いれたて" "入れ立て" 'sj3-hinshi-nrmnoun)
#t
uim> (sj3-lib-getkan "いれたてのおちゃ")
("入れ立てのお茶" ("いれたての" "入れ立ての" #<c_pointer 0xcfbe8340>) ("おちゃ" "お茶" #<c_pointer 0xcfbe8370>))
uim> (define douon (sj3-lib-getdouon "おちゃ"))
douon
uim> douon
(("お茶" . #<c_pointer 0xcfb65444>) ("御茶" . #<c_pointer 0xcfb65668>))
uim> (sj3-lib-gakusyuu (cdr (nth 1 douon)))
#t
uim> (sj3-lib-getkan "いれたてのおちゃ")
("入れ立ての御茶" ("いれたての" "入れ立ての" #<c_pointer 0xcfbe8340>) ("おちゃ" "御茶" #<c_pointer 0xcfbe8370>))
uim> (sj3-lib-syoukyo "いれたて" "入れ立て" 'sj3-hinshi-nrmnoun)
#t
uim> (sj3-lib-getkan "いれたてのおちゃ")
("入れた手の御茶" ("いれた" "入れた" #<c_pointer 0xcfbe8340>) ("ての" "手の" #<c_pointer 0xcfbe8370>) ("おちゃ" "御茶" #<c_pointer 0xcfbe83a0>))
uim> (sj3-lib-close)
#t
uim> ^D





More information about the uim mailing list