[prime-dev: 507] 常に数字選択

Back to archive index

Masaki Yatsu yatsu****@yatsu*****
2004年 12月 15日 (水) 13:06:34 JST


谷津です。

prime-elには以下のような設定があります。

;; prime-style-display-candidates が compact の場合で, input-mode でも
;; 数字による確定を可能にする.
(setq prime-style-display-candidates-compact 'always-number-selection)

uim-prime(prime.scm)でも同様の設定をしたいです。

これでいいでしょうか?

--- prime.scm.bak    Sun Dec 12 16:10:13 2004
+++ prime.scm    Wed Dec 15 12:49:05 2004
@@ -55,6 +55,7 @@
 (define prime-char-annotation?    #t)
 ;; If #t a candidate window displays usage examples of candidate words.
 (define prime-custom-display-usage? #t)
+(define prime-always-number-selection? #f)
 
 (define prime-mask-pending-preedit? #f)
 
@@ -877,7 +878,7 @@
 (define prime-command-preedit-commit-candidate
   (lambda (context key key-state)
     (print "prime-command-preedit-commit-candidate")
-    (if #f
+    (if prime-always-number-selection?
     (let* ((nth (number->candidate-index (numeral-char->number key)))
            (cand (prime-get-nth-candidate context nth)))
       (if cand

~/.uimで以下のように設定します。

(define prime-auto-register-mode? #t)

---
谷津真樹 (Masaki Yatsu)
mailto:yatsu****@yatsu*****





Prime-dev メーリングリストの案内
Back to archive index