21196
|
1 ;;; quail/slovak.el -- Quail package for inputting Slovak
|
|
2
|
|
3 ;; Copyright (C) 1998 Free Software Foundation.
|
|
4
|
|
5 ;; Authors: Tibor ,B)(Bimko <tibor.simko@fmph.uniba.sk>,
|
|
6 ;; Milan Zamazal <pdm@fi.muni.cz>
|
|
7 ;; Maintainer: Milan Zamazal <pdm@fi.muni.cz>
|
|
8 ;; Keywords: multilingual, input method, Slovak
|
|
9
|
21422
|
10 ;; This file is part of GNU Emacs.
|
|
11
|
|
12 ;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
13 ;; it under the terms of the GNU General Public License as published by
|
|
14 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
15 ;; any later version.
|
|
16
|
|
17 ;; GNU Emacs is distributed in the hope that it will be useful,
|
|
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20 ;; GNU General Public License for more details.
|
|
21
|
|
22 ;; You should have received a copy of the GNU General Public License
|
|
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
25 ;; Boston, MA 02111-1307, USA.
|
21196
|
26
|
|
27 ;;; Commentary:
|
|
28
|
|
29 ;; This setups some Slovak keyboards:
|
|
30 ;; - standard Slovak keyboard
|
|
31 ;; - three Slovak keyboards for programmers
|
|
32
|
|
33 ;; Current Quail version has some limitations, which create annoying problems
|
21422
|
34 ;; when using Slovak keyboards. You may want to install the file
|
21196
|
35 ;; `hack-quail.el' from the package
|
|
36 ;; ftp://ftp.fi.muni.cz/pub/localization/emacs/emacs-20/emacs-cs-utils*
|
|
37 ;; which tries to remove some of these limitations.
|
|
38
|
|
39 ;;; Code:
|
|
40
|
|
41 (require 'quail)
|
|
42
|
|
43
|
|
44 (quail-define-package
|
|
45 "slovak" "Slovak" "SK" nil
|
|
46 "Standard Slovak keyboard."
|
|
47 nil t nil nil n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+3" ?#)
|
|
161 ("+4" ?$)
|
|
162 ("+5" ?%)
|
|
163 ("+6" ?^)
|
|
164 ("+7" ?&)
|
|
165 ("+8" ?*)
|
|
166 ("+9" ?\()
|
|
167 ("+0" ?\))
|
|
168 ([kp-1] ?1)
|
|
169 ([kp-2] ?2)
|
|
170 ([kp-3] ?3)
|
|
171 ([kp-4] ?4)
|
|
172 ([kp-5] ?5)
|
|
173 ([kp-6] ?6)
|
|
174 ([kp-7] ?7)
|
|
175 ([kp-8] ?8)
|
|
176 ([kp-9] ?9)
|
|
177 ([kp-0] ?0)
|
|
178 ([kp-add] ?+))
|
|
179
|
|
180
|
|
181 (quail-define-package
|
|
182 "slovak-prog-1" "Slovak" "SK" nil
|
|
183 "Slovak (non-standard) keyboard for programmers #1.
|
|
184
|
|
185 All digits except of `1' are replaced by Slovak characters as on the standard
|
|
186 Slovak keyboard.
|
|
187 Dead keys are on `[', `[[', and `[[['.
|
|
188 All other keys are the same as on standard US keyboard."
|
|
189 nil t nil nil nil nil nil nil nil nil t)
|
|
190
|
|
191 (quail-define-rules
|
|
192 ("[[[[" ?\[)
|
|
193 ("2" ?,B5(B)
|
|
194 ("3" ?,B9(B)
|
|
195 ("4" ?,Bh(B)
|
|
196 ("5" ?,B;(B)
|
|
197 ("6" ?,B>(B)
|
|
198 ("7" ?,B}(B)
|
|
199 ("8" ?,Ba(B)
|
|
200 ("9" ?,Bm(B)
|
|
201 ("0" ?,Bi(B)
|
|
202 ("[a" ?,Ba(B)
|
|
203 ("[[a" ?,Bd(B)
|
|
204 ("[[[a" ?,Bd(B)
|
|
205 ("[c" ?,Bh(B)
|
|
206 ("[[c" ?,Bh(B)
|
|
207 ("[d" ?,Bo(B)
|
|
208 ("[[d" ?,Bo(B)
|
|
209 ("[e" ?,Bi(B)
|
|
210 ("[[e" ?,Bl(B)
|
|
211 ("[i" ?,Bm(B)
|
|
212 ("[l" ?,Be(B)
|
|
213 ("[[l" ?,B5(B)
|
|
214 ("[n" ?,Br(B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([kp-3] ?3)
|
|
265 ([kp-4] ?4)
|
|
266 ([kp-5] ?5)
|
|
267 ([kp-6] ?6)
|
|
268 ([kp-7] ?7)
|
|
269 ([kp-8] ?8)
|
|
270 ([kp-9] ?9)
|
|
271 ([kp-0] ?0)
|
|
272 ([kp-add] ?+))
|
|
273
|
|
274
|
|
275 (quail-define-package
|
|
276 "slovak-prog-2" "Slovak" "SK" nil
|
|
277 "Slovak (non-standard) keyboard for programmers #2.
|
|
278
|
|
279 All digits except of `1' are replaced by Slovak characters as on the standard
|
|
280 Slovak keyboard.
|
|
281 Dead keys are on `=' and `+'.
|
|
282 All other keys are the same as on standard US keyboard."
|
|
283 nil t nil nil nil nil nil nil nil nil t)
|
|
284
|
|
285 (quail-define-rules
|
|
286 ("2" ?,B5(B)
|
|
287 ("3" ?,B9(B)
|
|
288 ("4" ?,Bh(B)
|
|
289 ("5" ?,B;(B)
|
|
290 ("6" ?,B>(B)
|
|
291 ("7" ?,B}(B)
|
|
292 ("8" ?,Ba(B)
|
|
293 ("9" ?,Bm(B)
|
|
294 ("0" ?,Bi(B)
|
|
295 ("==" ?=)
|
|
296 ("++" ?+)
|
|
297 ("=+" ?+)
|
|
298 ("=2" ?2)
|
|
299 ("=3" ?3)
|
|
300 ("=4" ?4)
|
|
301 ("=5" ?5)
|
|
302 ("=6" ?6)
|
|
303 ("=7" ?7)
|
|
304 ("=8" ?8)
|
|
305 ("=9" ?9)
|
|
306 ("=0" ?0)
|
|
307 ("+2" ?2)
|
|
308 ("+3" ?3)
|
|
309 ("+4" ?4)
|
|
310 ("+5" ?5)
|
|
311 ("+6" ?6)
|
|
312 ("+7" ?7)
|
|
313 ("+8" ?8)
|
|
314 ("+9" ?9)
|
|
315 ("+0" ?0)
|
|
316 ("=a" ?,Ba(B)
|
|
317 ("+a" ?,Bd(B)
|
|
318 ("+=a" ?,Bd(B)
|
|
319 ("+c" ?,Bh(B)
|
|
320 ("+d" ?,Bo(B)
|
|
321 ("=e" ?,Bi(B)
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p-0] ?0)
|
|
374 ([kp-add] ?+))
|
|
375
|
|
376
|
|
377 (quail-define-package
|
|
378 "slovak-prog-3" "Slovak" "SK" nil
|
|
379 "Slovak (non-standard) keyboard for programmers #3.
|
|
380
|
|
381 Dead keys are on `[', `[[', `[[[', and `]'.
|
|
382 All other keys are the same as on standard US keyboard."
|
|
383 nil t nil nil nil nil nil nil nil nil t)
|
|
384
|
|
385 (quail-define-rules
|
|
386 ("[[[[" ?\[)
|
|
387 ("[]" ?\])
|
|
388 ("][" ?\[)
|
|
389 ("]]" ?\])
|
|
390 ("[a" ?,Ba(B)
|
|
391 ("[[a" ?,Bd(B)
|
|
392 ("[[[a" ?,Bd(B)
|
|
393 ("]a" ?,Bd(B)
|
|
394 ("][a" ?,Bd(B)
|
|
395 ("[c" ?,Bh(B)
|
|
396 ("[[c" ?,Bh(B)
|
|
397 ("]c" ?,Bh(B)
|
|
398 ("[d" ?,Bo(B)
|
|
399 ("[[d" ?,Bo(B)
|
|
400 ("]d" ?,Bo(B)
|
|
401 ("[e" ?,Bi(B)
|
|
402 ("[[e" ?,Bl(B)
|
|
403 ("]e" ?,Bl(B)
|
|
404 ("[i" ?,Bm(B)
|
|
405 ("[l" ?,Be(B)
|
|
406 ("[[l" ?,B5(B)
|
|
407 ("]l" ?,B5(B)
|
|
408 ("[n" ?,Br(B)
|
|
409 ("[[n" ?,Br(B)
|
|
410 ("]n" ?,Br(B)
|
|
411 ("[[o" ?,Bt(B)
|
|
412 ("[[[o" ?,Bv(B)
|
|
413 ("[o" ?,Bs(B)
|
|
414 ("]o" ?,Bt(B)
|
|
415 ("][o" ?,Bv(B)
|
|
416 ("[r" ?,B`(B)
|
|
417 ("[[r" ?,Bx(B)
|
|
418 ("]r" ?,Bx(B)
|
|
419 ("[s" ?,B9(B)
|
|
420 ("[[s" ?,B9(B)
|
|
421 ("[[[s" ?,B_(B)
|
|
422 ("]s" ?,B9(B)
|
|
423 ("[t" ?,B;(B)
|
|
424 ("[[t" ?,B;(B)
|
|
425 ("]t" ?,B;(B)
|
|
426 ("[u" ?,Bz(B)
|
|
427 ("[[u" ?,By(B)
|
|
428 ("[[[u" ?,B|(B)
|
|
429 ("]u" ?,By(B)
|
|
430 ("][u" ?,B|(B)
|
|
431 ("[y" ?,B}(B)
|
|
432 ("[z" ?,B>(B)
|
|
433 ("[[z" ?,B>(B)
|
|
434 ("]z" ?,B>(B)
|
|
435 ("[A" ?,BA(B)
|
|
436 ("[[A" ?,BD(B)
|
|
437 ("[[[A" ?,BD(B)
|
|
438 ("]A" ?,BD(B)
|
|
439 ("][A" ?,BD(B)
|
|
440 ("[C" ?,BH(B)
|
|
441 ("[[C" ?,BH(B)
|
|
442 ("]C" ?,BH(B)
|
|
443 ("[D" ?,BO(B)
|
|
444 ("[[D" ?,BO(B)
|
|
445 ("]D" ?,BO(B)
|
|
446 ("[E" ?,BI(B)
|
|
447 ("[[E" ?,BL(B)
|
|
448 ("]E" ?,BL(B)
|
|
449 ("[I" ?,BM(B)
|
|
450 ("[L" ?,BE(B)
|
|
451 ("[[L" ?,B%(B)
|
|
452 ("]L" ?,B%(B)
|
|
453 ("[N" ?,BR(B)
|
|
454 ("[[N" ?,BR(B)
|
|
455 ("]N" ?,BR(B)
|
|
456 ("[O" ?,BS(B)
|
|
457 ("[[O" ?,BT(B)
|
|
458 ("[[[O" ?,BV(B)
|
|
459 ("]O" ?,BT(B)
|
|
460 ("][O" ?,BV(B)
|
|
461 ("[R" ?,B@(B)
|
|
462 ("[[R" ?,BX(B)
|
|
463 ("]R" ?,BX(B)
|
|
464 ("[S" ?,B)(B)
|
|
465 ("[[S" ?,B)(B)
|
|
466 ("[[[S" ?,B_(B)
|
|
467 ("]S" ?,B)(B)
|
|
468 ("[T" ?,B+(B)
|
|
469 ("[[T" ?,B+(B)
|
|
470 ("]T" ?,B+(B)
|
|
471 ("[U" ?,BZ(B)
|
|
472 ("[[U" ?,BY(B)
|
|
473 ("[[[U" ?,B\(B)
|
|
474 ("]U" ?,BY(B)
|
|
475 ("][U" ?,B\(B)
|
|
476 ("[Y" ?,B](B)
|
|
477 ("[Z" ?,B.(B)
|
|
478 ("[[Z" ?,B.(B)
|
|
479 ("]Z" ?,B.(B)
|
|
480 ([kp-1] ?1)
|
|
481 ([kp-2] ?2)
|
|
482 ([kp-3] ?3)
|
|
483 ([kp-4] ?4)
|
|
484 ([kp-5] ?5)
|
|
485 ([kp-6] ?6)
|
|
486 ([kp-7] ?7)
|
|
487 ([kp-8] ?8)
|
|
488 ([kp-9] ?9)
|
|
489 ([kp-0] ?0)
|
|
490 ([kp-add] ?+))
|