Cannaの場合、英大文字を入れるとそれはそのまま入力され、 無理くりローマ字変換されたりしない。だから逆に、全部大文字の 単語とかがモード移行することなく、大文字単語として入力できてうれしい。
が結構多いのが、キャピタライズされた単語で、そんな場合、先頭が 大文字だったら、後続する小文字英字もローマ字でなくそのまま英字でいて欲しい。
と気付いて、大文字は全てテンポラリに eisu/hankaku モードに移行する
昨日を割り当ててしまってはどうかと考えた。やってみよう。
~/.canna
に追加。
(global-set-key "A" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "B" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "C" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "D" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "E" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "F" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "G" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "H" '(self-insert temporary base-eisue-hankaku)) (global-set-key "I" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "J" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "K" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "L" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "M" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "N" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "O" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "P" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "Q" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "R" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "S" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "T" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "U" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "V" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "W" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "X" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "Y" '(self-insert temporary base-eisu base-hankaku)) (global-set-key "Z" '(self-insert temporary base-eisu base-hankaku))
canlispにループ構造がないのでA〜Zをループで回せないのが残念だが まあ26行だからすぐね。いれてみた。おお、結構いいかな。でも、 今 A〜Z といれるときにちょっとはまった(やってみればわかる)。でも 概ね良好。しばらく使ってみよう。
叱咤激励感想ツッコミはゲストブックへ
Generated with mkdiary.rb