caleb joined:
2007-09-22 posted:
630 promoted: 134 bookmarked: 90
| 1 | subject:
[轉貼] 奇怪的"、" |
0
0 | 2008-01-23 | quote | | |
原文: http://cle.linux.org.tw/trac/discussion/1/439
各位先進, 小弟使用1.3.7(目前是1.3.8)的詞音時
會有一個小問題, 不知是小弟改到了什麼設定抑或是程式的問題, 請各位幫忙
就是當我使用詞音時, 我用"caps lock"切到了英文模式
當我想輸入" ' "(enter旁邊那個)的時候
不管我怎麼按, 都會是"、", 這個問題還滿麻煩的, 因為這個符號好像滿常用到的
請各位先進幫小的看看是哪裡的問題好嗎, 謝謝
喵 1/22/08 21:41:32
|
eliu
joined:
2007-08-09 posted:
11480 promoted: 617 bookmarked: 187 新竹, 台灣 |
沒遇過這個問題,可能是 keyboard 的問題。
'、' 應該是按 ctrl+' 才會出現
在 xev 這個 program 按 ',看看有沒有 ctrl 鍵被按下的 message
edited: 1
|
coolcd joined:
2008-01-21 posted:
2601 promoted: 348 bookmarked: 95
|
小弟也遇到同樣的情況
使用環境是華碩筆電 Asus M6Va
Linux Debian4 2.6.22-3-686 #1 SMP Mon Nov 12 08:32:57 UTC 2007 i686 GNU/Linux
gcin 1.3.4-2
xev 按 ' 的結果
KeyPress event, serial 30, synthetic NO, window 0x3800001,
root 0x85, subw 0x0, time 2815490095, (162,-13), root:(166,38),
state 0x0, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
XLookupString gives 1 bytes: (27) "'"
XmbLookupString gives 1 bytes: (27) "'"
XFilterEvent returns: False
KeyRelease event, serial 30, synthetic NO, window 0x3800001,
root 0x85, subw 0x0, time 2815490196, (162,-13), root:(166,38),
state 0x0, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
XLookupString gives 1 bytes: (27) "'"
XFilterEvent returns: False
沒有找到 Control_L Control_R 相關的字串
edited: 1
|
eliu
joined:
2007-08-09 posted:
11480 promoted: 617 bookmarked: 187 新竹, 台灣 |
|
coolcd joined:
2008-01-21 posted:
2601 promoted: 348 bookmarked: 95
|
mlterm、mlterm+vim、gvim、firefox、bluefish、evolution、vym 都會遇到這種情形
現在改用網站供應的 gcin 1.3.8-1 deb 包
還是有遇到這種情形
edited: 1
|
eliu
joined:
2007-08-09 posted:
11480 promoted: 617 bookmarked: 187 新竹, 台灣 |
我猜可能你的 xmodmap 有錯,執行 xev 看 ' 鍵在 CapLock & Ctrl 紅字的部份有何不同。
$xev
-- CapsLock on
KeyPress event, serial 30, synthetic NO, window 0x2400001,
root 0x92, subw 0x0, time 2965242732, (173,172), root:(396,729),
state 0x2, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
XLookupString gives 1 bytes: (27) "'"
XmbLookupString gives 1 bytes: (27) "'"
XFilterEvent returns: False
-- Ctrl on
KeyPress event, serial 30, synthetic NO, window 0x2400001,
root 0x92, subw 0x0, time 2965364661, (92,66), root:(175,144),
state 0x4, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
XLookupString gives 1 bytes: (27) "'"
XmbLookupString gives 1 bytes: (27) "'"
XFilterEvent returns: False
$ xmodmap
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
|
coolcd joined:
2008-01-21 posted:
2601 promoted: 348 bookmarked: 95
|
剛剛測了一下,我不是很瞭解結果代表的意義,所以 POST 上來問問看。
執行 xmodmap 的結果 (橘色的字是和 eliu 老大不同的地方)
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_R (0x71), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
在 Caps lock off 的狀態執行 xev
按下 Caps Lock (前面是 vim 的行號,請忽略)
1 KeyPress event, serial 27, synthetic NO, window 0x3800001,
2 root 0x85, subw 0x0, time 2975116656, (724,285), root:(728,336),
3 state 0x0, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
4 XLookupString gives 0 bytes:
5 XmbLookupString gives 0 bytes:
6 XFilterEvent returns: False
按下 '
17 KeyPress event, serial 30, synthetic NO, window 0x3800001,
18 root 0x85, subw 0x0, time 2975121077, (724,285), root:(728,336),
19 state 0x2, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
20 XLookupString gives 1 bytes: (27) "'"
21 XmbLookupString gives 1 bytes: (27) "'"
22 XFilterEvent returns: False
再按一次 Caps Lock
30 KeyPress event, serial 30, synthetic NO, window 0x3800001,
31 root 0x85, subw 0x0, time 2975123609, (724,285), root:(728,336),
32 state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
33 XLookupString gives 0 bytes:
34 XmbLookupString gives 0 bytes:
35 XFilterEvent returns: False
再按一次 '
46 KeyPress event, serial 30, synthetic NO, window 0x3800001,
47 root 0x85, subw 0x0, time 2975125750, (724,285), root:(728,336),
48 state 0x0, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
49 XLookupString gives 1 bytes: (27) "'"
50 XmbLookupString gives 1 bytes: (27) "'"
51 XFilterEvent returns: False
至於 Ctrl On 的狀態,不太瞭解,可以講一下該怎麼測嗎?
是指:按下 Ctrl -> 放開 Ctrl -> 按下 '
還是:Ctrl+'
還是其他意思?
補充說明:小弟是用筆電,X windows 中鍵盤的設定是
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
|
eliu
joined:
2007-08-09 posted:
11480 promoted: 617 bookmarked: 187 新竹, 台灣 |
|
coolcd joined:
2008-01-21 posted:
2601 promoted: 348 bookmarked: 95
|
按下 '
1 KeyPress event, serial 30, synthetic NO, window 0x3000001,
2 root 0x85, subw 0x0, time 3057067438, (451,255), root:(455,306),
3 state 0x0, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
4 XLookupString gives 1 bytes: (27) "'"
5 XmbLookupString gives 1 bytes: (27) "'"
6 XFilterEvent returns: False
按下 ctrl+'
8 KeyPress event, serial 30, synthetic NO, window 0x3000001,
9 root 0x85, subw 0x0, time 3057068967, (451,255), root:(455,306),
10 state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
11 XLookupString gives 0 bytes:
12 XmbLookupString gives 0 bytes:
13 XFilterEvent returns: False
14
15 KeyPress event, serial 30, synthetic NO, window 0x3000001,
16 root 0x85, subw 0x0, time 3057069377, (451,255), root:(455,306),
17 state 0x4, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
18 XLookupString gives 1 bytes: (27) "'"
19 XmbLookupString gives 1 bytes: (27) "'"
20 XFilterEvent returns: False
edited: 1
|
eliu
joined:
2007-08-09 posted:
11480 promoted: 617 bookmarked: 187 新竹, 台灣 |
|