-rw-r--r-- | share/multikey/README | 16 | ||||
-rw-r--r-- | share/multikey/de.keymap | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/share/multikey/README b/share/multikey/README index c5e19f9..beed768 100644 --- a/share/multikey/README +++ b/share/multikey/README | |||
@@ -1,41 +1,57 @@ | |||
1 | +---- how to make your own keymap file. ----+ | 1 | +---- how to make your own keymap file. ----+ |
2 | 2 | ||
3 | first of all, later on you will be able to choose the keymap, but right now it | 3 | first of all, later on you will be able to choose the keymap, but right now it |
4 | selects the keymap according to your language setting. for example, if your | 4 | selects the keymap according to your language setting. for example, if your |
5 | language is "ko", it will select $OPIE_DIR/share/multikey/ko.keymap for the | 5 | language is "ko", it will select $OPIE_DIR/share/multikey/ko.keymap for the |
6 | keymap. so if you want to make a german keymap, copy the en.keymap file to | 6 | keymap. so if you want to make a german keymap, copy the en.keymap file to |
7 | de.keymap, and edit it. | 7 | de.keymap, and edit it. |
8 | 8 | ||
9 | your best friend is xmbfed. open the unicode font that is in | 9 | your 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. |
11 | in the keymap file, the columns are... | 11 | in 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 | | | |
16 | v v | 16 | v v |
17 | 1 0 0x36 2 | 17 | 1 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 | ||
23 | so, lets say you want to edit the 5th key on the 2nd row. find the 5th line | 23 | so, lets say you want to edit the 5th key on the 2nd row. find the 5th line |
24 | that starts with 2, and replace the 3rd column with the code you found in | 24 | that starts with 2, and replace the 3rd column with the code you found in |
25 | xmbdfed. save the file and test it out by restarting opie, or running | 25 | xmbdfed. save the file and test it out by restarting opie, or running |
26 | 26 | ||
27 | host$ $OPIEDIR/bin/qcop QPE/TaskBar "reloadInputMethods()" | 27 | host$ $OPIEDIR/bin/qcop QPE/TaskBar "reloadInputMethods()" |
28 | 28 | ||
29 | it worked, right? if all you see is a square in it's place, that means your | 29 | it worked, right? if all you see is a square in it's place, that means your |
30 | default font doesn't have that char. go to appearance and change the font to | 30 | default font doesn't have that char. go to appearance and change the font to |
31 | one that has that char. | 31 | one that has that char. |
32 | 32 | ||
33 | and if you want, you can have an image as the label instead of the char itself. | 33 | and if you want, you can have an image as the label instead of the char itself. |
34 | just draw the xpm image in gimp or something, save it, open it in your text | 34 | just draw the xpm image in gimp or something, save it, open it in your text |
35 | editor, cut off all the surrounding stuff and leave only the stuff between the | 35 | editor, cut off all the surrounding stuff and leave only the stuff between the |
36 | " chars. place that after your key definition. not too hard, right? | 36 | " chars. place that after your key definition. not too hard, right? |
37 | 37 | ||
38 | about shift and meta characters. to place chars in the shift map, the line | ||
39 | should consist of two columns. the non-shifted char and the shifted char. for | ||
40 | example. | ||
41 | |||
42 | 0x36 0x46 | ||
43 | |||
44 | so, 0x36 shifted is 0x46. and for meta chars. the reason why you have this | ||
45 | feature is because of languages like german, where you can hold down the | ||
46 | meta-alt key and enter in other special characters. it's like having | ||
47 | a second shift. to add chars to this map, you do the following. | ||
48 | |||
49 | m 0x36 0x84 | ||
50 | |||
51 | and here, if you hold down the meta-alt and hit the 0x36 key, 0x84 would be | ||
52 | input. get it? | ||
53 | |||
38 | if you have problems, suggestions, or just want to tell me something, you can | 54 | if you have problems, suggestions, or just want to tell me something, you can |
39 | contact me at jake at asdfnews.org | 55 | contact me at jake at asdfnews.org |
40 | 56 | ||
41 | jake richardson | 57 | jake richardson |
diff --git a/share/multikey/de.keymap b/share/multikey/de.keymap index 66b2ed5..12f470a 100644 --- a/share/multikey/de.keymap +++ b/share/multikey/de.keymap | |||
@@ -171,81 +171,81 @@ | |||
171 | 0x76 0x56 | 171 | 0x76 0x56 |
172 | 4 0 0x62 2 | 172 | 4 0 0x62 2 |
173 | 0x62 0x42 | 173 | 0x62 0x42 |
174 | 4 0 0x6e 2 | 174 | 4 0 0x6e 2 |
175 | 0x6e 0x4e | 175 | 0x6e 0x4e |
176 | 4 0 0x6d 2 | 176 | 4 0 0x6d 2 |
177 | 0x6d 0x4d | 177 | 0x6d 0x4d |
178 | 4 0 0x2c 2 | 178 | 4 0 0x2c 2 |
179 | 0x2c 0x3b | 179 | 0x2c 0x3b |
180 | 4 0 0x2e 2 | 180 | 4 0 0x2e 2 |
181 | 0x2e 0x3a | 181 | 0x2e 0x3a |
182 | 4 0 0x2d 2 | 182 | 4 0 0x2d 2 |
183 | 0x2d 0x5f | 183 | 0x2d 0x5f |
184 | 4 0x1020 0 5 | 184 | 4 0x1020 0 5 |
185 | "21 7 2 1" | 185 | "21 7 2 1" |
186 | " c None" | 186 | " c None" |
187 | ". c #000000" | 187 | ". c #000000" |
188 | " " | 188 | " " |
189 | " .. . . ... ... ... " | 189 | " .. . . ... ... ... " |
190 | " . . . . . . " | 190 | " . . . . . . " |
191 | " . ... . .. . " | 191 | " . ... . .. . " |
192 | " . . . . . . " | 192 | " . . . . . . " |
193 | " .. . . ... . . " | 193 | " .. . . ... . . " |
194 | " " | 194 | " " |
195 | 195 | ||
196 | 5 0x1021 0 3 | 196 | 5 0x1021 0 3 |
197 | "17 7 2 1" | 197 | "17 7 2 1" |
198 | " c None" | 198 | " c None" |
199 | ". c #000000" | 199 | ". c #000000" |
200 | " " | 200 | " " |
201 | " .. ... .. . " | 201 | " .. ... .. . " |
202 | " . . . . . " | 202 | " . . . . . " |
203 | " . . .. . " | 203 | " . . .. . " |
204 | " . . . . . " | 204 | " . . . . . " |
205 | " .. . . . ... " | 205 | " .. . . . ... " |
206 | " " | 206 | " " |
207 | 5 0x1023 0 3 | 207 | 5 0x1023 0 3 |
208 | "13 7 2 1" | 208 | "13 7 2 1" |
209 | " c None" | 209 | " c None" |
210 | ". c #000000" | 210 | ". c #000000" |
211 | " " | 211 | " " |
212 | " . . ... " | 212 | " . . ... " |
213 | " . . . . " | 213 | " . . . . " |
214 | " ... . . " | 214 | " ... . . " |
215 | " . . . . " | 215 | " . . . . " |
216 | " . . ... . " | 216 | " . . ... . " |
217 | " " | 217 | " " |
218 | 5 0 0x20 16 | 218 | 5 0 0x20 16 |
219 | 5 0x1023 0 3 | 219 | 5 0x1022 0 3 # meta alt key |
220 | "13 7 2 1" | 220 | "13 7 2 1" |
221 | " c None" | 221 | " c None" |
222 | ". c #000000" | 222 | ". c #000000" |
223 | " " | 223 | " " |
224 | " . . ... " | 224 | " . . ... " |
225 | " . . . . " | 225 | " . . . . " |
226 | " ... . . " | 226 | " ... . . " |
227 | " . . . . " | 227 | " . . . . " |
228 | " . . ... . " | 228 | " . . ... . " |
229 | " " | 229 | " " |
230 | 5 0x1021 0 3 | 230 | 5 0x1021 0 3 |
231 | "17 7 2 1" | 231 | "17 7 2 1" |
232 | " c None" | 232 | " c None" |
233 | ". c #000000" | 233 | ". c #000000" |
234 | " " | 234 | " " |
235 | " .. ... .. . " | 235 | " .. ... .. . " |
236 | " . . . . . " | 236 | " . . . . . " |
237 | " . . .. . " | 237 | " . . .. . " |
238 | " . . . . . " | 238 | " . . . . . " |
239 | " .. . . . ... " | 239 | " .. . . . ... " |
240 | " " | 240 | " " |
241 | 5 0x1030 0 2 #original code is F1, but i'll use it for turning on/off the config dialog | 241 | 5 0x1030 0 2 #original code is F1, but i'll use it for turning on/off the config dialog |
242 | "13 7 2 1" | 242 | "13 7 2 1" |
243 | " c None" | 243 | " c None" |
244 | ". c #000000" | 244 | ". c #000000" |
245 | " " | 245 | " " |
246 | " . " | 246 | " . " |
247 | " ... " | 247 | " ... " |
248 | " ..... " | 248 | " ..... " |
249 | " . " | 249 | " . " |
250 | " . " | 250 | " . " |
251 | " " | 251 | " " |