summaryrefslogtreecommitdiff
authorhash <hash>2002-08-14 05:56:01 (UTC)
committer hash <hash>2002-08-14 05:56:01 (UTC)
commitbc837a01bb47d552dff317f8373608ed1c649768 (patch) (unidiff)
treecd4d95baa48d79e93e3e20468b03b52b5a4d52fd
parent622bcc8878a081111e11646945f52b0406f1d21c (diff)
downloadopie-bc837a01bb47d552dff317f8373608ed1c649768.zip
opie-bc837a01bb47d552dff317f8373608ed1c649768.tar.gz
opie-bc837a01bb47d552dff317f8373608ed1c649768.tar.bz2
just added something about reloading the inputmethod without restarting the whole damn opie
Diffstat (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 @@
1+---- how to make your own keymap file. ----+ 1+---- how to make your own keymap file. ----+
2 2
3first of all, later on you will be able to choose the keymap, but right now it 3first of all, later on you will be able to choose the keymap, but right now it
4selects the keymap according to your language setting. for example, if your 4selects the keymap according to your language setting. for example, if your
5language is "ko", it will select $OPIE_DIR/share/multikey/ko.keymap for the 5language is "ko", it will select $OPIE_DIR/share/multikey/ko.keymap for the
6keymap. so if you want to make a german keymap, copy the en.keymap file to 6keymap. so if you want to make a german keymap, copy the en.keymap file to
7de.keymap, and edit it. 7de.keymap, and edit it.
8 8
9your best friend is xmbfed. open the unicode font that is in 9your best friend is xmbfed. open the unicode font that is in
10$QT_DIR/lib/fonts/unifont.bdf and search for the characters you want to input. 10$QT_DIR/lib/fonts/unifont.bdf and search for the characters you want to input.
11in the keymap file, the columns are... 11in the keymap file, the columns are...
12 12
13+--- row number (there are 5 rows) 13+--- row number (there are 5 rows)
14| +- qcode (used for special chars like enter, escape, etc...) 14| +- qcode (used for special chars like enter, escape, etc...)
15| | 15| |
16v v 16v v
171 0 0x36 2 171 0 0x36 2
18 ^ ^ 18 ^ ^
19 | | 19 | |
20 | +---- width of key (default key should be 2) 20 | +---- width of key (default key should be 2)
21 +--- the unicode value (the one you see in xmbded) 21 +--- the unicode value (the one you see in xmbded)
22 22
23so, lets say you want to edit the 5th key on the 2nd row. find the 5th line 23so, lets say you want to edit the 5th key on the 2nd row. find the 5th line
24that starts with 2, and replace the 3rd column with the code you found in 24that starts with 2, and replace the 3rd column with the code you found in
25xmbdfed. save the file and test it out by restarting opie. it worked, right? 25xmbdfed. save the file and test it out by restarting opie, or running
26if all you see is a square in it's place, that means your default font doesn't 26
27have that char. go to appearance and change the font to one that has that char. 27host$ $OPIEDIR/bin/qcop QPE/TaskBar "reloadInputMethods()"
28
29it worked, right? if all you see is a square in it's place, that means your
30default font doesn't have that char. go to appearance and change the font to
31one that has that char.
28 32
29and if you want, you can have an image as the label instead of the char itself. 33and if you want, you can have an image as the label instead of the char itself.
30just draw the xpm image in gimp or something, save it, open it in your text 34just draw the xpm image in gimp or something, save it, open it in your text
31editor, cut off all the surrounding stuff and leave only the stuff between the 35editor, cut off all the surrounding stuff and leave only the stuff between the
32" chars. place that after your key definition. not too hard, right? 36" chars. place that after your key definition. not too hard, right?
33 37
34if you have problems, suggestions, or just want to tell me something, you can 38if you have problems, suggestions, or just want to tell me something, you can
35contact me at jake at asdfnews.org 39contact me at jake at asdfnews.org
36 40
37jake richardson 41jake 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
@@ -162,77 +162,79 @@
162 " c None" 162 " c None"
163 ". c #000000" 163 ". c #000000"
164 " " 164 " "
165 " . . ... " 165 " . . ... "
166 " . . . . " 166 " . . . . "
167 " ... . . " 167 " ... . . "
168 " . . . . " 168 " . . . . "
169 " . . ... . " 169 " . . ... . "
170 " " 170 " "
1715 0 0x20 16 1715 0 0x20 16
1725 0x1023 0 3 1725 0x1023 0 3
173 "13 7 2 1" 173 "13 7 2 1"
174 " c None" 174 " c None"
175 ". c #000000" 175 ". c #000000"
176 " " 176 " "
177 " . . ... " 177 " . . ... "
178 " . . . . " 178 " . . . . "
179 " ... . . " 179 " ... . . "
180 " . . . . " 180 " . . . . "
181 " . . ... . " 181 " . . ... . "
182 " " 182 " "
1835 0x1021 0 3 1835 0x1021 0 3
184 "17 7 2 1" 184 "17 7 2 1"
185 " c None" 185 " c None"
186 ". c #000000" 186 ". c #000000"
187 " " 187 " "
188 " .. ... .. . " 188 " .. ... .. . "
189 " . . . . . " 189 " . . . . . "
190 " . . .. . " 190 " . . .. . "
191 " . . . . . " 191 " . . . . . "
192 " .. . . . ... " 192 " .. . . . ... "
193 " " 193 " "
1945 0x1030 0 2 #original code is F1, but i'll use it for turning on/off pickboard 1945 0x1030 0 2 #original code is F1, but i'll use it for turning on/off the config dialog
195 "13 7 2 1" 195 "13 7 2 1"
196 " c None" 196 " c None"
197 ". c #000000" 197 ". c #000000"
198 " " 198 " "
199 " .. ... .. " 199 " . "
200 " . . . . " 200 " ... "
201 " .. . . " 201 " ..... "
202 " . . . " 202 " . "
203 " . ... .. " 203 " . "
204 " " 204 " "
205# shift table 205# shift table
206# add xpm support for these keys too? 206# add xpm support for these keys too?
207
208# unshifed shifted
2070x60 0x7e 2090x60 0x7e
2080x31 0x21 2100x31 0x21
2090x32 0x40 2110x32 0x40
2100x33 0x23 2120x33 0x23
2110x34 0x24 2130x34 0x24
2120x35 0x25 2140x35 0x25
2130x36 0x5e 2150x36 0x5e
2140x37 0x26 2160x37 0x26
2150x38 0x2a 2170x38 0x2a
2160x39 0x28 2180x39 0x28
2170x30 0x29 2190x30 0x29
2180x2d 0x5f 2200x2d 0x5f
2190x3d 0x2b 2210x3d 0x2b
220 222
2210x71 0x51 2230x71 0x51
2220x77 0x57 2240x77 0x57
2230x65 0x45 2250x65 0x45
2240x72 0x52 2260x72 0x52
2250x74 0x54 2270x74 0x54
2260x79 0x59 2280x79 0x59
2270x75 0x55 2290x75 0x55
2280x69 0x49 2300x69 0x49
2290x6f 0x4f 2310x6f 0x4f
2300x70 0x50 2320x70 0x50
2310x5b 0x7b 2330x5b 0x7b
2320x5d 0x7d 2340x5d 0x7d
2330x5c 0x7c 2350x5c 0x7c
234 236
2350x61 0x41 2370x61 0x41
2360x73 0x53 2380x73 0x53
2370x64 0x44 2390x64 0x44
2380x66 0x46 2400x66 0x46