diff options
| author | Kenichi Handa | 1997-03-18 23:16:27 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-03-18 23:16:27 +0000 |
| commit | ea3fb7d263c4e616c5b69dc8e052a475f767dd3d (patch) | |
| tree | 7c928a6c8a0f4f311ba6fef22c7ec9cd1e8892e9 | |
| parent | 3aa3a18c9cfccc9bdff6527f3a8a81aeca738819 (diff) | |
| download | emacs-ea3fb7d263c4e616c5b69dc8e052a475f767dd3d.tar.gz emacs-ea3fb7d263c4e616c5b69dc8e052a475f767dd3d.zip | |
(quail-translation-keymap): Add entry for escape key.
(quail-conversion-keymap): Likewise.
(quail-keyboard-layout-standard): Add two lines for
keyboard layout.
(quail-keyboard-layout): Docstring changed to reflect the above
change.
(quail-keyboard-layout-len): Increased for the above change.
(quail-keyboard-layout-alist): Modified for the above change.
| -rw-r--r-- | lisp/international/quail.el | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index d10538375a3..9b1059d2d24 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -259,6 +259,7 @@ LEIM is available from the same ftp directory as Emacs.")) | |||
| 259 | (define-key map "\C-@" 'quail-select-current) | 259 | (define-key map "\C-@" 'quail-select-current) |
| 260 | (define-key map "\C-c" 'quail-abort-translation) | 260 | (define-key map "\C-c" 'quail-abort-translation) |
| 261 | (define-key map "\C-h" 'quail-translation-help) | 261 | (define-key map "\C-h" 'quail-translation-help) |
| 262 | (define-key map "\e" '(keymap (t . quail-execute-non-quail-command))) | ||
| 262 | (define-key map [tab] 'quail-completion) | 263 | (define-key map [tab] 'quail-completion) |
| 263 | (define-key map [delete] 'quail-delete-last-char) | 264 | (define-key map [delete] 'quail-delete-last-char) |
| 264 | (define-key map [backspace] 'quail-delete-last-char) | 265 | (define-key map [backspace] 'quail-delete-last-char) |
| @@ -284,6 +285,7 @@ This map is activated while translation region is active.") | |||
| 284 | (define-key map "\C-d" 'quail-conversion-delete-char) | 285 | (define-key map "\C-d" 'quail-conversion-delete-char) |
| 285 | (define-key map "\C-h" 'quail-conversion-help) | 286 | (define-key map "\C-h" 'quail-conversion-help) |
| 286 | (define-key map "\C-\\" 'quail-inactivate) | 287 | (define-key map "\C-\\" 'quail-inactivate) |
| 288 | (define-key map "\e" '(keymap (t . quail-execute-non-quail-command))) | ||
| 287 | (define-key map "\177" 'quail-conversion-backward-delete-char) | 289 | (define-key map "\177" 'quail-conversion-backward-delete-char) |
| 288 | (define-key map [delete] 'quail-conversion-backward-delete-char) | 290 | (define-key map [delete] 'quail-conversion-backward-delete-char) |
| 289 | (define-key map [backspace] 'quail-conversion-backward-delete-char) | 291 | (define-key map [backspace] 'quail-conversion-backward-delete-char) |
| @@ -548,10 +550,12 @@ The current translation and conversion are terminated." | |||
| 548 | 550 | ||
| 549 | (defconst quail-keyboard-layout-standard | 551 | (defconst quail-keyboard-layout-standard |
| 550 | "\ | 552 | "\ |
| 553 | \ | ||
| 551 | 1!2@3#4$5%6^7&8*9(0)-_=+`~ \ | 554 | 1!2@3#4$5%6^7&8*9(0)-_=+`~ \ |
| 552 | qQwWeErRtTyYuUiIoOpP[{]} \ | 555 | qQwWeErRtTyYuUiIoOpP[{]} \ |
| 553 | aAsSdDfFgGhHjJkKlL;:'\"\\| \ | 556 | aAsSdDfFgGhHjJkKlL;:'\"\\| \ |
| 554 | zZxXcCvVbBnNmM,<.>/? " | 557 | zZxXcCvVbBnNmM,<.>/? \ |
| 558 | " | ||
| 555 | "Standard keyboard layout of printable characters Quail assumes. | 559 | "Standard keyboard layout of printable characters Quail assumes. |
| 556 | See the documentation of `quail-keyboard-layout' for this format. | 560 | See the documentation of `quail-keyboard-layout' for this format. |
| 557 | This layout is almost the same as that of VT100, | 561 | This layout is almost the same as that of VT100, |
| @@ -560,26 +564,30 @@ This layout is almost the same as that of VT100, | |||
| 560 | 564 | ||
| 561 | (defvar quail-keyboard-layout quail-keyboard-layout-standard | 565 | (defvar quail-keyboard-layout quail-keyboard-layout-standard |
| 562 | "A string which represents physical key layout of a particular keyboard. | 566 | "A string which represents physical key layout of a particular keyboard. |
| 563 | We assume there are four rows and each row has 15 keys (columns), | 567 | We assume there are six rows and each row has 15 keys (columns), |
| 564 | the first column of the first row is left of key '1', | 568 | the first row is above the `1' - `0' row, |
| 565 | the first column of the second row is left of key `q', | 569 | the first column of the second row is left of key `1', |
| 566 | the first column of the third row is left of key `a', | 570 | the first column of the third row is left of key `q', |
| 567 | the first column of the fourth row is left of key `z'. | 571 | the first column of the fourth row is left of key `a', |
| 572 | the first column of the fifth row is left of key `z', | ||
| 573 | the sixth row is below the `z' - `/' row. | ||
| 568 | Nth (N is even) and (N+1)th characters in the string are non-shifted | 574 | Nth (N is even) and (N+1)th characters in the string are non-shifted |
| 569 | and shifted characters respectively at the same location. | 575 | and shifted characters respectively at the same location. |
| 570 | The location of Nth character is row (N / 30) and column ((N mod 30) / 2).") | 576 | The location of Nth character is row (N / 30) and column ((N mod 30) / 2).") |
| 571 | 577 | ||
| 572 | (defconst quail-keyboard-layout-len 120) | 578 | (defconst quail-keyboard-layout-len 180) |
| 573 | 579 | ||
| 574 | ;; Here we provide several examples of famous keyboard layouts. | 580 | ;; Here we provide several examples of famous keyboard layouts. |
| 575 | 581 | ||
| 576 | (defvar quail-keyboard-layout-alist | 582 | (defvar quail-keyboard-layout-alist |
| 577 | (list | 583 | (list |
| 578 | '("sun-type3" . "\ | 584 | '("sun-type3" . "\ |
| 585 | \ | ||
| 579 | 1!2@3#4$5%6^7&8*9(0)-_=+\\|`~\ | 586 | 1!2@3#4$5%6^7&8*9(0)-_=+\\|`~\ |
| 580 | qQwWeErRtTyYuUiIoOpP[{]} \ | 587 | qQwWeErRtTyYuUiIoOpP[{]} \ |
| 581 | aAsSdDfFgGhHjJkKlL;:'\" \ | 588 | aAsSdDfFgGhHjJkKlL;:'\" \ |
| 582 | zZxXcCvVbBnNmM,<.>/? ") | 589 | zZxXcCvVbBnNmM,<.>/? \ |
| 590 | ") | ||
| 583 | (cons "standard" quail-keyboard-layout-standard)) | 591 | (cons "standard" quail-keyboard-layout-standard)) |
| 584 | "Alist of keyboard names and corresponding layout strings. | 592 | "Alist of keyboard names and corresponding layout strings. |
| 585 | See the documentation of `quail-keyboard-layout' for the format of | 593 | See the documentation of `quail-keyboard-layout' for the format of |