On Fri, Sep 12, 2008 at 7:10 PM, qxty <[EMAIL PROTECTED]> wrote: > Sure, what should I do? > 1. I shill provide those source in c which convert those pdb file of Palm to > scm if anyone interest it.
I don't think it is a requirement. > 2. Is it necessary to explain the orignal pdb file where is come from? It is good idea. And possibly following that pdb's license may be the right thing. > 3. I do not sure how to add a new scm, so just replace py.scm to test it. OK. Here is a example to add your gbk table to uim-1.5.3. 1. Rename py.scm (from your uim-py-gbk.tar) as py-gbk.scm, and put this in uim-1.5.3/scm/ 2. Add 'py-gbk-init-handler' and 'generic-register-im' in py-gbk.scm. See attached file (diff2.txt) 3. To recognize this as a uim module, modify uim-1.5.3/scm/Makefile.in (or Makefile if you play after ./configure) with adding py-gbk.scm into 'SCM_FILES' and py-gbk into 'module_names'. See another attached file (diff3.txt) 4. Do 'make' to generate installed-modules.scm and loader.scm 5. Do 'make install' 6. Put 'py-gbk' into 'enabled-im-list' in ~/.uim.d/customs/custom-global.scm (this can be done with uim-pref-gtk, but it may be quite heavy starting...) Cheers, -- Etsushi Kato [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ Google Groups "uim-en" group uim-en@googlegroups.com http://groups.google.com/group/uim-en/about -~----------~----~----~----~------~----~------~--~---
--- py-gbk.scm.orig 2008-09-10 18:25:31.000000000 +0900 +++ py-gbk.scm 2008-09-12 20:16:01.000000000 +0900 @@ -34,6 +34,8 @@ ;; part is generated automatically from the Unihan database ;; "Unihan.txt" using the entries kMandarin and kHanyuPinlu. +(require "generic.scm") + (define py-gbk-rule '( ((("a")) ("é¿" "å" "åµ" "å" "å" "è " "é" "é")) @@ -34280,3 +34282,17 @@ ((("/")) ("ï¼")) ((("_")) ("_")) )) + + +(define py-gbk-init-handler + (lambda (id im arg) + (require "py-gbk.scm") + (generic-context-new id im py-gbk-rule #f))) + +(generic-register-im + 'py-gbk + "zh_TW:zh_HK" + "UTF-8" + (N_ "Py GBK") + (N_ "Py GBK input method") + py-gbk-init-handler)
--- uim-1.5.3.orig/scm/Makefile.in 2008-09-07 17:59:51.000000000 +0900 +++ uim-1.5.3/scm/Makefile.in 2008-09-12 20:31:24.000000000 +0900 @@ -335,6 +335,7 @@ rk.scm \ generic.scm generic-custom.scm generic-key-custom.scm \ pyload.scm py.scm pyunihan.scm pinyin-big5.scm \ + py-gbk.scm \ japanese.scm japanese-azik.scm japanese-kana.scm \ anthy.scm anthy-custom.scm anthy-key-custom.scm \ anthy-utf8.scm anthy-utf8-custom.scm \ @@ -366,7 +367,8 @@ $(am__append_4) $(am__append_5) $(am__append_6) \ $(am__append_7) $(am__append_8) "tcode" "trycode" "tutcode" \ "byeoru" "latin" "elatin" $(am__append_9) "pyload" "hangul" \ - "viqr" "ipa-x-sampa" "look" $(am__append_10) + "viqr" "ipa-x-sampa" "look" $(am__append_10) \ + "py-gbk" UIM_MODULE_MANAGER = $(top_builddir)/uim/uim-module-manager UIM_MODULE_MANAGER_ENV = \ LIBUIM_SYSTEM_SCM_FILES=$(abs_top_srcdir)/sigscheme/lib \