Masanari Yamamoto
h0131****@ice*****
2005年 3月 19日 (土) 17:07:29 JST
山本です。 skk.scmのskk-get-candidate-handlerでaccel-enum-hintが使われていません。 このため、skk-nr-candidate-max個の候補を表示できない場合、ラベルの番号 がずれてしまいます。 これを修正するskk.scmのパッチです。 他のIMでもaccel-enum-hintを使っていないようです。 Index: scm/skk.scm =================================================================== --- scm/skk.scm (revision 793) +++ scm/skk.scm (working copy) @@ -1632,7 +1632,7 @@ (skk-flush sc))) (define skk-get-candidate-handler - (lambda (sc idx) + (lambda (sc idx accel-enum-hint) (let* ((dcsc (skk-find-descendant-context sc)) (cand (skk-lib-eval-candidate (skk-get-nth-candidate dcsc idx))) (okuri (skk-context-okuri dcsc))) @@ -1645,8 +1645,8 @@ cand) ;; FIXME make sure to enable lable other than number (if (= skk-nr-candidate-max 0) - (digit->string (+ idx 1)) - (digit->string (+ (remainder idx skk-nr-candidate-max) 1))) + (digit->string (+ accel-enum-hint 1)) + (digit->string (+ (remainder accel-enum-hint skk-nr-candidate-max) 1))) "")))) (define skk-set-candidate-index-handler -- 山本将也