author | hash <hash> | 2002-08-14 05:56:01 (UTC) |
---|---|---|
committer | hash <hash> | 2002-08-14 05:56:01 (UTC) |
commit | bc837a01bb47d552dff317f8373608ed1c649768 (patch) (unidiff) | |
tree | cd4d95baa48d79e93e3e20468b03b52b5a4d52fd | |
parent | 622bcc8878a081111e11646945f52b0406f1d21c (diff) | |
download | opie-bc837a01bb47d552dff317f8373608ed1c649768.zip opie-bc837a01bb47d552dff317f8373608ed1c649768.tar.gz opie-bc837a01bb47d552dff317f8373608ed1c649768.tar.bz2 |
just added something about reloading the inputmethod without restarting the whole damn opie
-rw-r--r-- | share/multikey/README | 10 | ||||
-rw-r--r-- | share/multikey/en.keymap | 14 |
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 | ||
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. it worked, right? | 25 | xmbdfed. save the file and test it out by restarting opie, or running |
26 | if all you see is a square in it's place, that means your default font doesn't | 26 | |
27 | have that char. go to appearance and change the font to one that has that char. | 27 | host$ $OPIEDIR/bin/qcop QPE/TaskBar "reloadInputMethods()" |
28 | |||
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 | ||
31 | one that has that char. | ||
28 | 32 | ||
29 | 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. |
30 | 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 |
31 | 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 |
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 | ||
34 | if you have problems, suggestions, or just want to tell me something, you can | 38 | if you have problems, suggestions, or just want to tell me something, you can |
35 | contact me at jake at asdfnews.org | 39 | contact me at jake at asdfnews.org |
36 | 40 | ||
37 | jake richardson | 41 | 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 | |||
@@ -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 | " " |
171 | 5 0 0x20 16 | 171 | 5 0 0x20 16 |
172 | 5 0x1023 0 3 | 172 | 5 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 | " " |
183 | 5 0x1021 0 3 | 183 | 5 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 | " " |
194 | 5 0x1030 0 2 #original code is F1, but i'll use it for turning on/off pickboard | 194 | 5 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 | ||
207 | 0x60 0x7e | 209 | 0x60 0x7e |
208 | 0x31 0x21 | 210 | 0x31 0x21 |
209 | 0x32 0x40 | 211 | 0x32 0x40 |
210 | 0x33 0x23 | 212 | 0x33 0x23 |
211 | 0x34 0x24 | 213 | 0x34 0x24 |
212 | 0x35 0x25 | 214 | 0x35 0x25 |
213 | 0x36 0x5e | 215 | 0x36 0x5e |
214 | 0x37 0x26 | 216 | 0x37 0x26 |
215 | 0x38 0x2a | 217 | 0x38 0x2a |
216 | 0x39 0x28 | 218 | 0x39 0x28 |
217 | 0x30 0x29 | 219 | 0x30 0x29 |
218 | 0x2d 0x5f | 220 | 0x2d 0x5f |
219 | 0x3d 0x2b | 221 | 0x3d 0x2b |
220 | 222 | ||
221 | 0x71 0x51 | 223 | 0x71 0x51 |
222 | 0x77 0x57 | 224 | 0x77 0x57 |
223 | 0x65 0x45 | 225 | 0x65 0x45 |
224 | 0x72 0x52 | 226 | 0x72 0x52 |
225 | 0x74 0x54 | 227 | 0x74 0x54 |
226 | 0x79 0x59 | 228 | 0x79 0x59 |
227 | 0x75 0x55 | 229 | 0x75 0x55 |
228 | 0x69 0x49 | 230 | 0x69 0x49 |
229 | 0x6f 0x4f | 231 | 0x6f 0x4f |
230 | 0x70 0x50 | 232 | 0x70 0x50 |
231 | 0x5b 0x7b | 233 | 0x5b 0x7b |
232 | 0x5d 0x7d | 234 | 0x5d 0x7d |
233 | 0x5c 0x7c | 235 | 0x5c 0x7c |
234 | 236 | ||
235 | 0x61 0x41 | 237 | 0x61 0x41 |
236 | 0x73 0x53 | 238 | 0x73 0x53 |
237 | 0x64 0x44 | 239 | 0x64 0x44 |
238 | 0x66 0x46 | 240 | 0x66 0x46 |