[uim-commit] r776 - branches/composer/scm
yamaken at freedesktop.org
yamaken at freedesktop.org
Tue Mar 8 11:45:33 PST 2005
Author: yamaken
Date: 2005-03-08 11:45:27 -0800 (Tue, 08 Mar 2005)
New Revision: 776
Modified:
branches/composer/scm/anthy.scm
Log:
* scm/anthy.scm
- (anthy-begin-conv, anthy-get-nth-preconv-ustr): Simplify
Modified: branches/composer/scm/anthy.scm
===================================================================
--- branches/composer/scm/anthy.scm 2005-03-08 19:30:51 UTC (rev 775)
+++ branches/composer/scm/anthy.scm 2005-03-08 19:45:27 UTC (rev 776)
@@ -1029,8 +1029,7 @@
(preconv-ustr (anthy-context-preconv-ustr ac))
(preconv-str (evmap-ustr-preedit-string preconv-ustr)))
(if (and (number? (anthy-context-ac-id ac))
- (> (string-length preconv-str)
- 0))
+ (positive? (string-length preconv-str)))
(begin
(anthy-lib-set-string ac-id preconv-str)
(let ((nr-segments (anthy-lib-get-nr-segments ac-id)))
@@ -1173,7 +1172,7 @@
(define anthy-get-nth-preconv-ustr
(lambda (ac seg-idx cand-idx)
(let* ((ac-id (anthy-context-ac-id ac))
- (transposed? (< cand-idx 0))
+ (transposed? (negative? cand-idx))
(seg-pos (anthy-get-segment-pos ac seg-idx))
(seg-len (anthy-lib-get-segment-length ac-id seg-idx))
(preconv-ustr (anthy-context-preconv-ustr ac))
More information about the Uim-commit
mailing list