[uim-commit] r242 - trunk/scm
ekato@freedesktop.org
ekato@freedesktop.org
Mon Jan 10 22:38:02 PST 2005
Author: ekato
Date: 2005-01-10 22:37:57 -0800 (Mon, 10 Jan 2005)
New Revision: 242
Modified:
trunk/scm/skk.scm
Log:
* scm/skk.scm (skk-proc-state-direct) : With skk-plain-space-key?,
compose rk string even with using the space character. And
don't commit native space if composed string is zenkaku space.
Modified: trunk/scm/skk.scm
===================================================================
--- trunk/scm/skk.scm 2005-01-11 05:45:08 UTC (rev 241)
+++ trunk/scm/skk.scm 2005-01-11 06:37:57 UTC (rev 242)
@@ -909,8 +909,12 @@
;; 2. commits " " as native space (such as Qt::Key_Space)
(if (skk-plain-space-key? key key-state)
(begin
- (set! res (rk-push-key-last! rkc))
- (skk-commit-raw-with-preedit-update sc key key-state)
+ (set! res (rk-push-key! rkc key-str))
+ ;; For special exception, don't commit native space if
+ ;; this key sequcence produce zenkaku space.
+ (if (not (and res
+ (string=? (car res) "¡¡")))
+ (skk-commit-raw-with-preedit-update sc key key-state))
#f)
#t)
;; bad strategy. see bug #528
More information about the Uim-commit
mailing list