特殊:Badtitle/NS100:HowToVirtualKeyboardKeymapping:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:HowToVirtualKeyboardKeymapping}} | {{Languages|UbuntuHelp:HowToVirtualKeyboardKeymapping}} | ||
Virtual Keyboard (aka VKey``Bd) has a very restricted set of keymappings by default. | Virtual Keyboard (aka VKey``Bd) has a very restricted set of keymappings by default. | ||
You can change this easily by editing the ~/.vkeybdmap file. | You can change this easily by editing the ~/.vkeybdmap file. | ||
The way it works is that it lists each keysym of the keyboard along with the corresponding note number to map to this key. You can figure out the keysym of any given key by installing and running the xkeycaps application: | The way it works is that it lists each keysym of the keyboard along with the corresponding note number to map to this key. You can figure out the keysym of any given key by installing and running the xkeycaps application: | ||
<pre><nowiki> | <pre><nowiki> | ||
第10行: | 第8行: | ||
xkeycaps | xkeycaps | ||
</nowiki></pre> | </nowiki></pre> | ||
Here is a sample of a fully-configured virtual keyboard, spanning over 3 octaves range: | Here is a sample of a fully-configured virtual keyboard, spanning over 3 octaves range: | ||
<pre><nowiki> | <pre><nowiki> | ||
global keymap | global keymap | ||
第62行: | 第58行: | ||
} | } | ||
</nowiki></pre> | </nowiki></pre> | ||
Download this file: https://help.ubuntu.com/community/vkeybdmap and save it as ~?action=AttachFile&do=get&target=.vkeybdmap | Download this file: https://help.ubuntu.com/community/vkeybdmap and save it as ~?action=AttachFile&do=get&target=.vkeybdmap | ||
This mapping may not be perfect for your needs, but it should serve as a good starting point for you. | This mapping may not be perfect for your needs, but it should serve as a good starting point for you. | ||
Once you have mapped all the keys how you want, be sure to start VKey``Bd with the maximum number of octaves, or else you will get weird errors when pressing keys that are not shown on screen: | Once you have mapped all the keys how you want, be sure to start VKey``Bd with the maximum number of octaves, or else you will get weird errors when pressing keys that are not shown on screen: | ||
<pre><nowiki> | <pre><nowiki> | ||
vkeybd --octave 9 | vkeybd --octave 9 | ||
</nowiki></pre> | </nowiki></pre> | ||
Test it out, and it should be working perfectly. If you want to make the default state of VKey``Bd to open up with 9 octaves, go to ''File > Save Config'' and now you do not need to specify the --octave parameter anymore. | Test it out, and it should be working perfectly. If you want to make the default state of VKey``Bd to open up with 9 octaves, go to ''File > Save Config'' and now you do not need to specify the --octave parameter anymore. | ||
That's all there is to it. | That's all there is to it. | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 17:45的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/HowToVirtualKeyboardKeymapping }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/af | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|Afrikaans| [[::HowToVirtualKeyboardKeymapping/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/ar | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|العربية| [[::HowToVirtualKeyboardKeymapping/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/az | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|azərbaycanca| [[::HowToVirtualKeyboardKeymapping/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/bcc | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|جهلسری بلوچی| [[::HowToVirtualKeyboardKeymapping/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/bg | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|български| [[::HowToVirtualKeyboardKeymapping/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/br | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|brezhoneg| [[::HowToVirtualKeyboardKeymapping/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/ca | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|català| [[::HowToVirtualKeyboardKeymapping/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/cs | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|čeština| [[::HowToVirtualKeyboardKeymapping/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/de | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|Deutsch| [[::HowToVirtualKeyboardKeymapping/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/el | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|Ελληνικά| [[::HowToVirtualKeyboardKeymapping/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/es | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|español| [[::HowToVirtualKeyboardKeymapping/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/fa | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|فارسی| [[::HowToVirtualKeyboardKeymapping/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/fi | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|suomi| [[::HowToVirtualKeyboardKeymapping/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/fr | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|français| [[::HowToVirtualKeyboardKeymapping/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/gu | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|ગુજરાતી| [[::HowToVirtualKeyboardKeymapping/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/he | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|עברית| [[::HowToVirtualKeyboardKeymapping/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/hu | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|magyar| [[::HowToVirtualKeyboardKeymapping/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/id | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|Bahasa Indonesia| [[::HowToVirtualKeyboardKeymapping/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/it | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|italiano| [[::HowToVirtualKeyboardKeymapping/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/ja | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|日本語| [[::HowToVirtualKeyboardKeymapping/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/ko | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|한국어| [[::HowToVirtualKeyboardKeymapping/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/ksh | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|Ripoarisch| [[::HowToVirtualKeyboardKeymapping/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/mr | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|मराठी| [[::HowToVirtualKeyboardKeymapping/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/ms | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|Bahasa Melayu| [[::HowToVirtualKeyboardKeymapping/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/nl | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|Nederlands| [[::HowToVirtualKeyboardKeymapping/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/no | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|norsk| [[::HowToVirtualKeyboardKeymapping/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/oc | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|occitan| [[::HowToVirtualKeyboardKeymapping/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/pl | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|polski| [[::HowToVirtualKeyboardKeymapping/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/pt | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|português| [[::HowToVirtualKeyboardKeymapping/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/ro | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|română| [[::HowToVirtualKeyboardKeymapping/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/ru | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|русский| [[::HowToVirtualKeyboardKeymapping/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/si | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|සිංහල| [[::HowToVirtualKeyboardKeymapping/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/sq | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|shqip| [[::HowToVirtualKeyboardKeymapping/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/sr | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|српски / srpski| [[::HowToVirtualKeyboardKeymapping/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/sv | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|svenska| [[::HowToVirtualKeyboardKeymapping/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/th | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|ไทย| [[::HowToVirtualKeyboardKeymapping/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/tr | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|Türkçe| [[::HowToVirtualKeyboardKeymapping/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/vi | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|Tiếng Việt| [[::HowToVirtualKeyboardKeymapping/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/yue | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|粵語| [[::HowToVirtualKeyboardKeymapping/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/zh | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|中文| [[::HowToVirtualKeyboardKeymapping/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/zh-hans | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|中文(简体)| [[::HowToVirtualKeyboardKeymapping/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping | UbuntuHelp:HowToVirtualKeyboardKeymapping | {{#if: | :}}HowToVirtualKeyboardKeymapping}}/zh-hant | • {{#if: UbuntuHelp:HowToVirtualKeyboardKeymapping|中文(繁體)| [[::HowToVirtualKeyboardKeymapping/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:HowToVirtualKeyboardKeymapping|:HowToVirtualKeyboardKeymapping|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :HowToVirtualKeyboardKeymapping/zh | | {{#ifexist: HowToVirtualKeyboardKeymapping/zh | | {{#ifeq: {{#titleparts:HowToVirtualKeyboardKeymapping|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:HowToVirtualKeyboardKeymapping|1|-1|}} | zh | | }}
Virtual Keyboard (aka VKey``Bd) has a very restricted set of keymappings by default. You can change this easily by editing the ~/.vkeybdmap file. The way it works is that it lists each keysym of the keyboard along with the corresponding note number to map to this key. You can figure out the keysym of any given key by installing and running the xkeycaps application:
sudo apt-get install xkeycaps xkeycaps
Here is a sample of a fully-configured virtual keyboard, spanning over 3 octaves range:
global keymap set keymap { {a 8} {z 9} {s 10} {x 11} {c 12} {f 13} {v 14} {g 15} {b 16} {n 17} {j 18} {m 19} {k 20} {comma 21} {l 22} {period 23} {slash 24} {apostrophe 25} {Shift_R 26} {Return 27} {Tab 24} {1 25} {q 26} {2 27} {w 28} {e 29} {4 30} {r 31} {5 32} {t 33} {6 34} {y 35} {u 36} {8 37} {i 38} {9 39} {o 40} {p 41} {minus 42} {bracketleft 43} {equal 44} {bracketright 45} {BackSpace 46} {backslash 47} }
Download this file: https://help.ubuntu.com/community/vkeybdmap and save it as ~?action=AttachFile&do=get&target=.vkeybdmap This mapping may not be perfect for your needs, but it should serve as a good starting point for you. Once you have mapped all the keys how you want, be sure to start VKey``Bd with the maximum number of octaves, or else you will get weird errors when pressing keys that are not shown on screen:
vkeybd --octave 9
Test it out, and it should be working perfectly. If you want to make the default state of VKey``Bd to open up with 9 octaves, go to File > Save Config and now you do not need to specify the --octave parameter anymore. That's all there is to it.