summaryrefslogtreecommitdiff
path: root/share/multikey
Side-by-side diff
Diffstat (limited to 'share/multikey') (more/less context) (ignore whitespace changes)
-rw-r--r--share/multikey/README10
-rw-r--r--share/multikey/en.keymap14
2 files changed, 15 insertions, 9 deletions
diff --git a/share/multikey/README b/share/multikey/README
index 4c6bd23..c5e19f9 100644
--- a/share/multikey/README
+++ b/share/multikey/README
@@ -1,37 +1,41 @@
+---- how to make your own keymap file. ----+
first of all, later on you will be able to choose the keymap, but right now it
selects the keymap according to your language setting. for example, if your
language is "ko", it will select $OPIE_DIR/share/multikey/ko.keymap for the
keymap. so if you want to make a german keymap, copy the en.keymap file to
de.keymap, and edit it.
your best friend is xmbfed. open the unicode font that is in
$QT_DIR/lib/fonts/unifont.bdf and search for the characters you want to input.
in the keymap file, the columns are...
+--- row number (there are 5 rows)
| +- qcode (used for special chars like enter, escape, etc...)
| |
v v
1 0 0x36 2
^ ^
| |
| +---- width of key (default key should be 2)
+--- the unicode value (the one you see in xmbded)
so, lets say you want to edit the 5th key on the 2nd row. find the 5th line
that starts with 2, and replace the 3rd column with the code you found in
-xmbdfed. save the file and test it out by restarting opie. it worked, right?
-if all you see is a square in it's place, that means your default font doesn't
-have that char. go to appearance and change the font to one that has that char.
+xmbdfed. save the file and test it out by restarting opie, or running
+
+host$ $OPIEDIR/bin/qcop QPE/TaskBar "reloadInputMethods()"
+
+it worked, right? if all you see is a square in it's place, that means your
+default font doesn't have that char. go to appearance and change the font to
+one that has that char.
and if you want, you can have an image as the label instead of the char itself.
just draw the xpm image in gimp or something, save it, open it in your text
editor, cut off all the surrounding stuff and leave only the stuff between the
" chars. place that after your key definition. not too hard, right?
if you have problems, suggestions, or just want to tell me something, you can
contact me at jake at asdfnews.org
jake richardson
diff --git a/share/multikey/en.keymap b/share/multikey/en.keymap
index 623c6ee..e312dba 100644
--- a/share/multikey/en.keymap
+++ b/share/multikey/en.keymap
@@ -170,61 +170,63 @@
" "
5 0 0x20 16
5 0x1023 0 3
"13 7 2 1"
" c None"
". c #000000"
" "
" . . ... "
" . . . . "
" ... . . "
" . . . . "
" . . ... . "
" "
5 0x1021 0 3
"17 7 2 1"
" c None"
". c #000000"
" "
" .. ... .. . "
" . . . . . "
" . . .. . "
" . . . . . "
" .. . . . ... "
" "
-5 0x1030 0 2 #original code is F1, but i'll use it for turning on/off pickboard
+5 0x1030 0 2 #original code is F1, but i'll use it for turning on/off the config dialog
"13 7 2 1"
" c None"
". c #000000"
" "
- " .. ... .. "
- " . . . . "
- " .. . . "
- " . . . "
- " . ... .. "
+ " . "
+ " ... "
+ " ..... "
+ " . "
+ " . "
" "
# shift table
# add xpm support for these keys too?
+
+# unshifed shifted
0x60 0x7e
0x31 0x21
0x32 0x40
0x33 0x23
0x34 0x24
0x35 0x25
0x36 0x5e
0x37 0x26
0x38 0x2a
0x39 0x28
0x30 0x29
0x2d 0x5f
0x3d 0x2b
0x71 0x51
0x77 0x57
0x65 0x45
0x72 0x52
0x74 0x54
0x79 0x59
0x75 0x55
0x69 0x49
0x6f 0x4f
0x70 0x50