/usr/share/canna/wx2+.canna is in libcanna1g 3.7p3-14.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | ;; Copyright 1994 NEC Corporation, Tokyo, Japan.
;;
;; Permission to use, copy, modify, distribute and sell this software
;; and its documentation for any purpose is hereby granted without
;; fee, provided that the above copyright notice appear in all copies
;; and that both that copyright notice and this permission notice
;; appear in supporting documentation, and that the name of NEC
;; Corporation not be used in advertising or publicity pertaining to
;; distribution of the software without specific, written prior
;; permission. NEC Corporation makes no representations about the
;; suitability of this software for any purpose. It is provided "as
;; is" without express or implied warranty.
;;
;; NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
;; INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
;; NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
;; CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
;; USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
;; OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
;; PERFORMANCE OF THIS SOFTWARE.
;; Using this customize file gives you a Japanese Input Interface
;; like WXII+ does.
;; $Id: wx2+.canna,v 1.1.1.1 2002/10/19 08:27:53 aida_s Exp $
;;; ¥í¡¼¥Þ»ú¤«¤ÊÊÑ´¹¤ÎÀßÄê
(setq romkana-table "wx2+.cbp")
;;; ÍøÍѤ¹¤ë¼½ñ
(use-dictionary
"iroha"
"fuzokugo"
"hojomwd"
"hojoswd"
:bushu "bushu"
:user "user"
)
;;ÆüËܸìÆþÎÏ on ¤Ë¤¹¤ë¡£
(set-key 'alpha-mode "\C-Xfer" 'japanese-mode)
; ±¦Ã¼¤Ç±¦¤Ë¹Ô¤³¤¦¤È¤¹¤ë¤Èº¸Ã¼¤Ë¤¤¤¯¡£
(setq cursor-wrap t) ; default t
; ʸÀá¤Î±¦Ã¼¤Ç±¦°ÜÆ°¤ò¤¹¤ë¤ÈÁ´Ê¸¤¬³ÎÄꤹ¤ë¡£
(setq kakutei-if-end-of-bunsetsu t) ; default nil
; 2 ²óÊÑ´¹¥¡¼¤ò²¡¤¹¤È°ìÍ÷ɽ¼¨¤ò¹Ô¤¦¡£
(setq n-henkan-for-ichiran 2) ; default 2
; ¸õÊ䤬Á´ÂΤβ¿ÈÖÌܤ«¤òɽ¼¨¤¹¤ë¡£
(setq kouho-count t) ; default t
; °ìÍ÷ɽ¼¨¤Ç¿ô»ú¤òÂǤ俤Ȥ¤Ë¥«¡¼¥½¥ë°ÜÆ°¤Ë¤È¤É¤á¤ë¡£
(setq select-direct nil) ; default t
; °ìÍ÷ɽ¼¨¤Ç¿ô»ú¤ÇÁªÂò¤¹¤ë¡£
(setq numerical-key-select t) ; default t
;°ìÍ÷¤«¤éÁªÂò¤ò¹Ô¤¦¤È°ì¤ÄÀè¤ÎʸÀá¤Ë°ÜÆ°¤¹¤ë¡£
(setq stay-after-validate nil) ; default t
; °ìÍ÷¤ÎºÇ¸å¤Þ¤Ç¤¤¤Ã¤Æ¤â°ìÍ÷ɽ¼¨¤ò¤ä¤á¤Ê¤¤¡£
(setq quit-if-end-of-ichiran nil) ; default nil
; ÆþÎÏÃæ¤ÎÆɤßÁ´ÂΤò¥ê¥Ð¡¼¥¹¤·¤Ê¤¤¡£
(setq reverse-widely nil) ; default nil
; ÉÑÅٳؽ¬¤ò¤¹¤ë¡£
(setq gakushu t) ; default t
; ¸õÊä°ìÍ÷¤ÎÈÖ¹æ¤òȾ³Ñʸ»ú¤Ë¤¹¤ë¡£
(setq index-hankaku t) ; default nil
; ¸õÊä¤ÎÈÖ¹æ¤È¤Î¶èÀÚ¤êʸ»ú¡£
(setq index-separator ?:)
; µ¹æÆþÎϥ⡼¥É¤Çµ¹æ¤òÆþÎϤ·¤¿¤È¤µ¹æÆþÎϥ⡼¥É¤ò½ªÎ»¤¹¤ë¡£
(setq quickly-escape-from-kigo-input t) ; default nil
; ñ¸ìÅÐÏ¿/ºï½ü¤Îľ¸å¤Ë¼½ñ¤Î½ñ¤½Ð¤·½èÍý¤ò¹Ô¤¦
(setq auto-sync t) ; default t
;; ¥¡¼¥Þ¥Ã¥×
(global-unbind-key-function 'extend)
(global-unbind-key-function 'shrink)
(global-unbind-key-function 'forward)
(global-unbind-key-function 'backward)
(global-unbind-key-function 'previous)
(global-unbind-key-function 'next)
(global-unbind-key-function 'beginning-of-line)
(global-unbind-key-function 'end-of-line)
(global-unbind-key-function 'kill-to-end-of-line)
(global-unbind-key-function 'kouho-ichiran)
(global-set-key "\S-Right" 'extend)
(global-set-key "\S-Left" 'shrink)
(global-set-key "\Right" 'forward)
(global-set-key "\Down" 'forward)
(global-set-key "\Left" 'backward)
(global-set-key "\Up" 'previous)
(global-set-key "\S-Up" 'previous)
(global-set-key "\S-Down" 'next)
(global-set-key "\Space" 'henkan)
(global-set-key "\Escape" 'quit)
(global-set-key "\F5" 'convert-as-hex)
;; ÆþÎϥ⡼¥É¤ÎÄêµÁ
(defmode zenkaku-katakana-mode " Á´¥«¥Ê " romkana-table '(katakana) t)
(defmode hankaku-katakana-mode " Ⱦ¥«¥Ê " romkana-table '(katakana hankaku) t)
(defmode zenkaku-eisu-mode " Á´±Ñ¿ô " nil '(zenkaku) nil)
(defmode hankaku-eisu-mode " Ⱦ±Ñ¿ô " nil nil nil)
(set-key 'empty-mode "\Nfer" 'zenkaku-katakana-mode)
(set-key 'zenkaku-katakana-mode "\Nfer" 'hankaku-katakana-mode)
(set-key 'hankaku-katakana-mode "\Nfer" 'henkan-nyuuryoku-mode)
(set-key 'empty-mode "\S-Nfer" 'zenkaku-eisu-mode)
(set-key 'zenkaku-katakana-mode "\S-Nfer" 'zenkaku-eisu-mode)
(set-key 'hankaku-katakana-mode "\S-Nfer" 'zenkaku-eisu-mode)
(set-key 'zenkaku-eisu-mode "\S-Nfer" 'hankaku-eisu-mode)
(set-key 'hankaku-eisu-mode "\S-Nfer" 'zenkaku-eisu-mode)
(set-key 'zenkaku-eisu-mode "\Nfer" 'henkan-nyuuryoku-mode)
(set-key 'hankaku-eisu-mode "\Nfer" 'henkan-nyuuryoku-mode)
;; ¥â¡¼¥Éɽ¼¨Ê¸»úÎóÄêµÁ
(set-mode-display 'henkan-nyuuryoku-mode " Á´¤«¤Ê ")
(set-mode-display 'empty-mode " Á´¤«¤Ê ")
(set-mode-display 'yomi-mode " Á´¤«¤Ê ")
;; Æɤߥ⡼¥É»þ
(let ((mode 'yomi-mode))
(set-key mode "\Delete" 'delete-next)
(set-key mode "\Backspace" 'delete-previous)
(set-key mode "\F6" 'hiragana)
(set-key mode "\F7" 'katakana)
(set-key mode "\F8" 'hankaku)
(set-key mode "\F9" 'romaji)
(set-key mode "\Down" 'kakutei)
(set-key mode "\Return" 'kakutei)
(set-key mode "\Xfer" 'henkan)
)
;; ñ¸õÊä¥â¡¼¥É»þ
(let ((mode 'tankouho-mode))
(set-key mode "\F6" 'hiragana)
(set-key mode "\F7" 'katakana)
(set-key mode "\F8" 'hankaku)
(set-key mode "\F9" 'romaji)
(set-key mode "\Return" 'kakutei)
(set-key mode "\Xfer" 'henkan)
(set-key mode "\S-Right" '(shinshuku-mode extend))
(set-key mode "\S-Left" '(shinshuku-mode shrink))
)
;; ʸ»ú¼ï¥â¡¼¥É»þ
(let ((mode 'mojishu-mode))
(set-key mode "\F6" 'hiragana)
(set-key mode "\F7" 'katakana)
(set-key mode "\F8" 'hankaku)
(set-key mode "\F9" 'romaji)
(set-key mode "\Return" 'kakutei)
)
;; °ìÍ÷¸õÊä¥â¡¼¥É»þ
(let ((mode 'ichiran-mode))
(set-key mode "\S-Xfer" 'backward)
(set-key mode "\Backspace" 'backward)
(set-key mode "\Xfer" 'forward)
(set-key mode "\Down" 'kakutei)
(set-key mode "\S-Right" '(quit shinshuku-mode extend))
(set-key mode "\S-Left" '(quit shinshuku-mode shrink))
)
;; µ¹æÆþÎϥ⡼¥É»þ
(let ((mode 'kigou-mode))
(set-key mode "\S-Xfer" 'backward)
(set-key mode "\Backspace" 'backward)
(set-key mode "\Xfer" 'forward)
(set-key mode "\Down" 'kakutei)
)
;; ¿½Ì¥â¡¼¥É»þ
(let ((mode 'shinshuku-mode))
(set-key mode "\F6" '(henkan hiragana))
(set-key mode "\F7" '(henkan katakana))
(set-key mode "\F8" '(henkan hankaku))
(set-key mode "\F9" '(henkan romaji))
)
;; ¥·¥ó¥Ü¥ë¤ÎÄêµÁ
(defsymbol
?, "¡¢" "¡¤"
?. "¡£" "¡¥")
(defsymbol
?[ "¡Ö" "¡Î"
?] "¡×" "¡Ï")
(defsymbol ?/ "¡¦" "¡¿" )
|