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 | |||
@@ -1,257 +1,259 @@ | |||
1 | # comment lines must start with a '#' (for now...) | 1 | # comment lines must start with a '#' (for now...) |
2 | # order is: row qcode unicode length blah | 2 | # order is: row qcode unicode length blah |
3 | # | 3 | # |
4 | # please don't write anything between a key definition and it's xpm (excpet for spaces) | 4 | # please don't write anything between a key definition and it's xpm (excpet for spaces) |
5 | 5 | ||
6 | 1 0x1000 0 2 # and you can write whatever you want after the last element | 6 | 1 0x1000 0 2 # and you can write whatever you want after the last element |
7 | 7 | ||
8 | 8 | ||
9 | "9 9 2 1" | 9 | "9 9 2 1" |
10 | "a c #000000" | 10 | "a c #000000" |
11 | ". c None" | 11 | ". c None" |
12 | "........." | 12 | "........." |
13 | "........." | 13 | "........." |
14 | ".aa.aa.aa" | 14 | ".aa.aa.aa" |
15 | ".a..a..a." | 15 | ".a..a..a." |
16 | ".aa.aa.a." | 16 | ".aa.aa.a." |
17 | ".a...a.a." | 17 | ".a...a.a." |
18 | ".aa.aa.aa" | 18 | ".aa.aa.aa" |
19 | "........." | 19 | "........." |
20 | "........." | 20 | "........." |
21 | 21 | ||
22 | 1 0 0x60 2 # but not after xpm images... k? | 22 | 1 0 0x60 2 # but not after xpm images... k? |
23 | 1 0 0x31 2 | 23 | 1 0 0x31 2 |
24 | 1 0 0x32 2 | 24 | 1 0 0x32 2 |
25 | 1 0 0x33 2 | 25 | 1 0 0x33 2 |
26 | 1 0 0x34 2 | 26 | 1 0 0x34 2 |
27 | 1 0 0x35 2 | 27 | 1 0 0x35 2 |
28 | 1 0 0x36 2 | 28 | 1 0 0x36 2 |
29 | 1 0 0x37 2 | 29 | 1 0 0x37 2 |
30 | 1 0 0x38 2 | 30 | 1 0 0x38 2 |
31 | 1 0 0x39 2 | 31 | 1 0 0x39 2 |
32 | 1 0 0x30 2 | 32 | 1 0 0x30 2 |
33 | 1 0 0x2d 2 | 33 | 1 0 0x2d 2 |
34 | 1 0 0x3d 2 | 34 | 1 0 0x3d 2 |
35 | 1 0x1003 0 2 | 35 | 1 0x1003 0 2 |
36 | 36 | ||
37 | "9 9 2 1" | 37 | "9 9 2 1" |
38 | "a c #000000" | 38 | "a c #000000" |
39 | ". c None" | 39 | ". c None" |
40 | "........." | 40 | "........." |
41 | "........." | 41 | "........." |
42 | "...a....." | 42 | "...a....." |
43 | "..aa....." | 43 | "..aa....." |
44 | ".aaaaaaaa" | 44 | ".aaaaaaaa" |
45 | "..aa....." | 45 | "..aa....." |
46 | "...a....." | 46 | "...a....." |
47 | "........." | 47 | "........." |
48 | "........." | 48 | "........." |
49 | 49 | ||
50 | 50 | ||
51 | 2 0 0x9 3 # tab char, but why doesnt this work...? | 51 | 2 0 0x9 3 # tab char, but why doesnt this work...? |
52 | 52 | ||
53 | 53 | ||
54 | "11 9 2 1" | 54 | "11 9 2 1" |
55 | "a c #000000" | 55 | "a c #000000" |
56 | ". c None" | 56 | ". c None" |
57 | "..........." | 57 | "..........." |
58 | "..........." | 58 | "..........." |
59 | ".....a..a.." | 59 | ".....a..a.." |
60 | ".....aa.a.." | 60 | ".....aa.a.." |
61 | ".aaaaaaaa.." | 61 | ".aaaaaaaa.." |
62 | ".....aa.a.." | 62 | ".....aa.a.." |
63 | ".....a..a.." | 63 | ".....a..a.." |
64 | "..........." | 64 | "..........." |
65 | "..........." | 65 | "..........." |
66 | 2 0 0x71 2 | 66 | 2 0 0x71 2 |
67 | 2 0 0x77 2 | 67 | 2 0 0x77 2 |
68 | 2 0 0x65 2 | 68 | 2 0 0x65 2 |
69 | 2 0 0x72 2 | 69 | 2 0 0x72 2 |
70 | 2 0 0x74 2 | 70 | 2 0 0x74 2 |
71 | 2 0 0x79 2 | 71 | 2 0 0x79 2 |
72 | 2 0 0x75 2 | 72 | 2 0 0x75 2 |
73 | 2 0 0x69 2 | 73 | 2 0 0x69 2 |
74 | 2 0 0x6f 2 | 74 | 2 0 0x6f 2 |
75 | 2 0 0x70 2 | 75 | 2 0 0x70 2 |
76 | 2 0 0x5b 2 | 76 | 2 0 0x5b 2 |
77 | 2 0 0x5d 2 | 77 | 2 0 0x5d 2 |
78 | 2 0 0x5c 2 | 78 | 2 0 0x5c 2 |
79 | 79 | ||
80 | 3 0x1024 0 4 | 80 | 3 0x1024 0 4 |
81 | "17 7 2 1" | 81 | "17 7 2 1" |
82 | " c None" | 82 | " c None" |
83 | ". c #000000" | 83 | ". c #000000" |
84 | " " | 84 | " " |
85 | " .. . .. .. " | 85 | " .. . .. .. " |
86 | " . . . . . . " | 86 | " . . . . . . " |
87 | " . ... .. . " | 87 | " . ... .. . " |
88 | " . . . . . " | 88 | " . . . . . " |
89 | " .. . . . .. " | 89 | " .. . . . .. " |
90 | " " | 90 | " " |
91 | 3 0 0x61 2 | 91 | 3 0 0x61 2 |
92 | 3 0 0x73 2 | 92 | 3 0 0x73 2 |
93 | 3 0 0x64 2 | 93 | 3 0 0x64 2 |
94 | 3 0 0x66 2 | 94 | 3 0 0x66 2 |
95 | 3 0 0x67 2 | 95 | 3 0 0x67 2 |
96 | 3 0 0x68 2 | 96 | 3 0 0x68 2 |
97 | 3 0 0x6a 2 | 97 | 3 0 0x6a 2 |
98 | 3 0 0x6b 2 | 98 | 3 0 0x6b 2 |
99 | 3 0 0x6c 2 | 99 | 3 0 0x6c 2 |
100 | 3 0 0x3b 2 | 100 | 3 0 0x3b 2 |
101 | 3 0 0x27 2 | 101 | 3 0 0x27 2 |
102 | 3 0x1004 0 4 # enter | 102 | 3 0x1004 0 4 # enter |
103 | "16 9 2 1" | 103 | "16 9 2 1" |
104 | "a c #000000" | 104 | "a c #000000" |
105 | ". c None" | 105 | ". c None" |
106 | "................" | 106 | "................" |
107 | "................" | 107 | "................" |
108 | "...........a...." | 108 | "...........a...." |
109 | "....aa.....a...." | 109 | "....aa.....a...." |
110 | "...aa......a...." | 110 | "...aa......a...." |
111 | "..aaaaaaaaaa...." | 111 | "..aaaaaaaaaa...." |
112 | "...aa..........." | 112 | "...aa..........." |
113 | "....aa.........." | 113 | "....aa.........." |
114 | "................" | 114 | "................" |
115 | 115 | ||
116 | 4 0x1020 0 5 | 116 | 4 0x1020 0 5 |
117 | "21 7 2 1" | 117 | "21 7 2 1" |
118 | " c None" | 118 | " c None" |
119 | ". c #000000" | 119 | ". c #000000" |
120 | " " | 120 | " " |
121 | " .. . . ... ... ... " | 121 | " .. . . ... ... ... " |
122 | " . . . . . . " | 122 | " . . . . . . " |
123 | " . ... . .. . " | 123 | " . ... . .. . " |
124 | " . . . . . . " | 124 | " . . . . . . " |
125 | " .. . . ... . . " | 125 | " .. . . ... . . " |
126 | " " | 126 | " " |
127 | 4 0 0x7a 2 | 127 | 4 0 0x7a 2 |
128 | 4 0 0x78 2 | 128 | 4 0 0x78 2 |
129 | 4 0 0x63 2 | 129 | 4 0 0x63 2 |
130 | 4 0 0x76 2 | 130 | 4 0 0x76 2 |
131 | 4 0 0x62 2 | 131 | 4 0 0x62 2 |
132 | 4 0 0x6e 2 | 132 | 4 0 0x6e 2 |
133 | 4 0 0x6d 2 | 133 | 4 0 0x6d 2 |
134 | 4 0 0x2c 2 | 134 | 4 0 0x2c 2 |
135 | 4 0 0x2e 2 | 135 | 4 0 0x2e 2 |
136 | 4 0 0x2f 2 | 136 | 4 0 0x2f 2 |
137 | 4 0x1020 0 5 | 137 | 4 0x1020 0 5 |
138 | "21 7 2 1" | 138 | "21 7 2 1" |
139 | " c None" | 139 | " c None" |
140 | ". c #000000" | 140 | ". c #000000" |
141 | " " | 141 | " " |
142 | " .. . . ... ... ... " | 142 | " .. . . ... ... ... " |
143 | " . . . . . . " | 143 | " . . . . . . " |
144 | " . ... . .. . " | 144 | " . ... . .. . " |
145 | " . . . . . . " | 145 | " . . . . . . " |
146 | " .. . . ... . . " | 146 | " .. . . ... . . " |
147 | " " | 147 | " " |
148 | 148 | ||
149 | 5 0x1021 0 3 | 149 | 5 0x1021 0 3 |
150 | "17 7 2 1" | 150 | "17 7 2 1" |
151 | " c None" | 151 | " c None" |
152 | ". c #000000" | 152 | ". c #000000" |
153 | " " | 153 | " " |
154 | " .. ... .. . " | 154 | " .. ... .. . " |
155 | " . . . . . " | 155 | " . . . . . " |
156 | " . . .. . " | 156 | " . . .. . " |
157 | " . . . . . " | 157 | " . . . . . " |
158 | " .. . . . ... " | 158 | " .. . . . ... " |
159 | " " | 159 | " " |
160 | 5 0x1023 0 3 | 160 | 5 0x1023 0 3 |
161 | "13 7 2 1" | 161 | "13 7 2 1" |
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 |
239 | 0x67 0x47 | 241 | 0x67 0x47 |
240 | 0x68 0x48 | 242 | 0x68 0x48 |
241 | 0x6a 0x4a | 243 | 0x6a 0x4a |
242 | 0x6b 0x4b | 244 | 0x6b 0x4b |
243 | 0x6c 0x4c | 245 | 0x6c 0x4c |
244 | 0x3b 0x3a | 246 | 0x3b 0x3a |
245 | 0x27 0x22 | 247 | 0x27 0x22 |
246 | 248 | ||
247 | 0x7a 0x5a | 249 | 0x7a 0x5a |
248 | 0x78 0x58 | 250 | 0x78 0x58 |
249 | 0x63 0x43 | 251 | 0x63 0x43 |
250 | 0x76 0x56 | 252 | 0x76 0x56 |
251 | 0x62 0x42 | 253 | 0x62 0x42 |
252 | 0x6e 0x4e | 254 | 0x6e 0x4e |
253 | 0x6d 0x4d | 255 | 0x6d 0x4d |
254 | 0x2c 0x3c | 256 | 0x2c 0x3c |
255 | 0x2e 0x3e | 257 | 0x2e 0x3e |
256 | 0x2f 0x3f | 258 | 0x2f 0x3f |
257 | 259 | ||