[uim-commit] r837 - trunk/scm

ekato at freedesktop.org ekato at freedesktop.org
Fri May 6 18:23:07 PDT 2005


Author: ekato
Date: 2005-05-06 18:23:04 -0700 (Fri, 06 May 2005)
New Revision: 837

Modified:
   trunk/scm/skk.scm
Log:
* scm/skk.scm (skk-do-update-preedit) : More ddskk compatible
  behavior on converting state with ddskk-like candidate selection
  style.


Modified: trunk/scm/skk.scm
===================================================================
--- trunk/scm/skk.scm	2005-05-06 10:09:08 UTC (rev 836)
+++ trunk/scm/skk.scm	2005-05-07 01:23:04 UTC (rev 837)
@@ -669,33 +669,32 @@
       (if (and
 	   (= stat 'skk-state-converting)
 	   (null? csc))
-	  (if (or
-	       (= skk-candidate-selection-style 'uim)
-	       (and
-		(= skk-candidate-selection-style 'ddskk-like)
-		(not (skk-context-candidate-window sc))))
-	      (begin
+	  (begin
+	    (if (or
+		 (= skk-candidate-selection-style 'uim)
+		 (and
+		  (= skk-candidate-selection-style 'ddskk-like)
+		  (not (skk-context-candidate-window sc))))
 		(im-pushback-preedit
 		 sc
-		 (bit-or skk-preedit-attr-conv-body
-			 preedit-cursor)
+		 (bit-or skk-preedit-attr-conv-body preedit-cursor)
 		 (if skk-show-annotation-in-preedit?
 		     (skk-lib-eval-candidate (skk-get-current-candidate sc))
 		     (skk-lib-eval-candidate
 		      (skk-lib-remove-annotation
 		       (skk-get-current-candidate sc)))))
 		(im-pushback-preedit
-		 sc skk-preedit-attr-conv-okuri
-		 (skk-make-string (skk-context-okuri sc)
-				  (skk-context-kana-mode sc)))
-		(im-pushback-preedit
-		 sc skk-preedit-attr-conv-appendix
-		 (skk-make-string (skk-context-appendix sc)
-				  (skk-context-kana-mode sc))))
-	      (im-pushback-preedit
-	       sc
-	       (bit-or skk-preedit-attr-conv-body preedit-cursor)
-	       "")))
+		 sc
+		 (bit-or skk-preedit-attr-conv-body preedit-cursor)
+		 ""))
+	    (im-pushback-preedit
+	     sc skk-preedit-attr-conv-okuri
+	     (skk-make-string (skk-context-okuri sc)
+			      (skk-context-kana-mode sc)))
+	    (im-pushback-preedit
+	     sc skk-preedit-attr-conv-appendix
+	     (skk-make-string (skk-context-appendix sc)
+			      (skk-context-kana-mode sc)))))
       (if (and
 	   (not (null? csc))
 	    (or



More information about the Uim-commit mailing list