[Uim] A question about the space bar

TOKUNAGA Hiroyuki tkng at xem.jp
Mon Apr 5 00:24:41 EEST 2004


Hi,

On Fri, 02 Apr 2004 22:55:25 +0200
David Oftedal <david at start.no> wrote:

> What I was wondering is if generic.scm could somehow be modified so
> that it does the following:
> 
> 1: If there's anything in the preedit, it's committed. (If it's 
> necessary, it could output a space as well, but it's not useful for
> the Korean methods.)

"If there's anything in the preedit, it's committed." is OK, but I can't
understand next your words "If it's necessary, it could output a space
as well, but it's not useful for the Korean methods."

I made a patch for testing. It's OK?

Index: scm/hangul.scm
===================================================================
--- scm/hangul.scm      (revision 668)
+++ scm/hangul.scm      (working copy)
@@ -30,6 +30,12 @@
  
 (require "generic.scm")
  
+(define hangul-change-key-bind
+  (lambda ()
+    (define-key generic-next-candidate-key? "")
+    (define-key generic-prev-candidate-key? "")
+    (define-key generic-commit-key? '(" " generic-return-key?))))
+
 (define hangul2-init-handler
   (lambda (id arg)
     (require "hangul2.scm")
@@ -38,6 +44,7 @@
       (set-context-data!
        c
        (generic-context-new hangul2-rule #t))
+      (hangul-change-key-bind)
       ())))
  
 (define hangul3-init-handler
@@ -58,6 +65,7 @@
       (set-context-data!
        c
        (generic-context-new romaja-rule #t))
+      (hangul-change-key-bind)
       ())))
  
 (generic-register-im


Regards,

-- 
TOKUNAGA Hiroyuki
http://kodou.net/




More information about the uim mailing list