diff options
| author | Kenichi Handa | 2005-04-09 01:42:04 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2005-04-09 01:42:04 +0000 |
| commit | 36cacb1f85bc87829ac89f37708c018c297da8c4 (patch) | |
| tree | 0f6c9d113afd162cb97bb11751b7c831b8667f21 | |
| parent | a17ae96ac4e644c0fc9eaef0b0e926c10e6969d2 (diff) | |
| download | emacs-36cacb1f85bc87829ac89f37708c018c297da8c4.tar.gz emacs-36cacb1f85bc87829ac89f37708c018c297da8c4.zip | |
Fix previous change.
| -rw-r--r-- | lisp/language/thai-util.el | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lisp/language/thai-util.el b/lisp/language/thai-util.el index cbfc82c9dc8..75d8c9fc797 100644 --- a/lisp/language/thai-util.el +++ b/lisp/language/thai-util.el | |||
| @@ -54,17 +54,6 @@ | |||
| 54 | "\\cc\\(\\cu\\|\\cI\\cU\\|\\cv\\ct?\\)\\|\\cv\\ct\\|\\cI\\cU" | 54 | "\\cc\\(\\cu\\|\\cI\\cU\\|\\cv\\ct?\\)\\|\\cv\\ct\\|\\cI\\cU" |
| 55 | "Regular expression matching a Thai composite sequence.") | 55 | "Regular expression matching a Thai composite sequence.") |
| 56 | 56 | ||
| 57 | (defun thai-self-insert-command (&optional n) | ||
| 58 | "Insert the Thai character you type. | ||
| 59 | The character will be composed with the surrounding Thai character | ||
| 60 | if necessary." | ||
| 61 | (interactive "*p") | ||
| 62 | (let ((pos (point)) | ||
| 63 | category-set ch) | ||
| 64 | (self-insert-command n) | ||
| 65 | (or thai-auto-composition-mode | ||
| 66 | (thai-auto-composition (1- (point)) (point) 0)))) | ||
| 67 | |||
| 68 | (let ((l '((?,T!(B consonant "LETTER KO KAI") ; 0xA1 | 57 | (let ((l '((?,T!(B consonant "LETTER KO KAI") ; 0xA1 |
| 69 | (?,T"(B consonant "LETTER KHO KHAI") ; 0xA2 | 58 | (?,T"(B consonant "LETTER KHO KHAI") ; 0xA2 |
| 70 | (?,T#(B consonant "LETTER KHO KHUAT") ; 0xA3 | 59 | (?,T#(B consonant "LETTER KHO KHUAT") ; 0xA3 |
| @@ -167,8 +156,7 @@ if necessary." | |||
| 167 | (ptype (nth 1 elm))) | 156 | (ptype (nth 1 elm))) |
| 168 | (put-char-code-property char 'phonetic-type ptype) | 157 | (put-char-code-property char 'phonetic-type ptype) |
| 169 | (cond ((eq ptype 'consonant) | 158 | (cond ((eq ptype 'consonant) |
| 170 | (modify-category-entry char ?c thai-category-table) | 159 | (modify-category-entry char ?c thai-category-table)) |
| 171 | (global-set-key (vector char) 'thai-self-insert-command)) | ||
| 172 | ((memq ptype '(vowel-upper vowel-lower)) | 160 | ((memq ptype '(vowel-upper vowel-lower)) |
| 173 | (modify-category-entry char ?v thai-category-table) | 161 | (modify-category-entry char ?v thai-category-table) |
| 174 | (if (= char ?,TT(B) | 162 | (if (= char ?,TT(B) |