diff options
| author | Dave Love | 2001-12-15 00:26:22 +0000 |
|---|---|---|
| committer | Dave Love | 2001-12-15 00:26:22 +0000 |
| commit | 96566974b16c896ef634783ce99fd13b7954ae29 (patch) | |
| tree | 408e48c0ab33f7a0ef55f87e2b8932b93eb26e72 | |
| parent | 4e0ba44edbe90fc3856863604be1fb2f7d3fa2d1 (diff) | |
| download | emacs-96566974b16c896ef634783ce99fd13b7954ae29.tar.gz emacs-96566974b16c896ef634783ce99fd13b7954ae29.zip | |
Don't require cl.
(quail-indian-flatten-list): Renamed from flatten-list.
| -rw-r--r-- | leim/ChangeLog | 26 | ||||
| -rw-r--r-- | leim/quail/indian.el | 49 |
2 files changed, 49 insertions, 26 deletions
diff --git a/leim/ChangeLog b/leim/ChangeLog index f85f1608554..a6576851936 100644 --- a/leim/ChangeLog +++ b/leim/ChangeLog | |||
| @@ -1,10 +1,34 @@ | |||
| 1 | 2001-12-15 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * quail/latin-pre.el ("french-prefix", "german-prefix") | ||
| 4 | ("spanish-prefix"): Fix language assignment. | ||
| 5 | |||
| 6 | * quail/latin-post.el ("french-postfix", "german-postfix") | ||
| 7 | ("spanish-postfix", "turkish-latin-3-postfix", "turkish-postfix") | ||
| 8 | ("french-keyboard", "french-azerty", "german") | ||
| 9 | ("spanish-keyboard"): Fix language assignment. | ||
| 10 | |||
| 11 | * quail/indian.el: Don't require cl. | ||
| 12 | (quail-indian-flatten-list): Renamed from flatten-list. | ||
| 13 | |||
| 14 | * quail/cyrillic.el ("cyrillic-beylorussian") | ||
| 15 | ("cyrillic-ukrainian", "cyrillic-translit-bulgarian") | ||
| 16 | ("belarusian", "bulgarian-pho"): Fix language assignment. | ||
| 17 | |||
| 18 | * quail/latin-alt.el ("french-alt-postfix", "german-alt-postfix") | ||
| 19 | ("spanish-alt-postfix", "turkish-latin-3-alt-postfix") | ||
| 20 | ("turkish-alt-postfix"): Fix language assignment. | ||
| 21 | ("dutch"): Assign to Dutch. Use chars, not strings. | ||
| 22 | ("lithuanian-numeric", "lithuanian-keyboard", "latvian-keyboard"): | ||
| 23 | New. | ||
| 24 | |||
| 1 | 2001-12-08 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 25 | 2001-12-08 Pavel Jan,Bm(Bk <Pavel@Janik.cz> |
| 2 | 26 | ||
| 3 | * COPYING: New file. | 27 | * COPYING: New file. |
| 4 | 28 | ||
| 5 | 2001-12-03 Jaeyoun Chung <jay@kldp.org> | 29 | 2001-12-03 Jaeyoun Chung <jay@kldp.org> |
| 6 | 30 | ||
| 7 | * quail/hangul3.el: added a few convenient composing sequence for | 31 | * quail/hangul3.el: Added a few convenient composing sequences for |
| 8 | Korean keyboard type 3 users. | 32 | Korean keyboard type 3 users. |
| 9 | 33 | ||
| 10 | 2001-11-29 Dave Love <fx@gnu.org> | 34 | 2001-11-29 Dave Love <fx@gnu.org> |
diff --git a/leim/quail/indian.el b/leim/quail/indian.el index ce4b1160aba..fc390299606 100644 --- a/leim/quail/indian.el +++ b/leim/quail/indian.el | |||
| @@ -27,12 +27,11 @@ | |||
| 27 | 27 | ||
| 28 | ;; History: | 28 | ;; History: |
| 29 | 29 | ||
| 30 | ;; 2000.12.12 | 30 | ;; 2000.12.12 |
| 31 | ;; Totally re-written from devanagari.el to handle multiple Inidan Scripts. | 31 | ;; Totally re-written from devanagari.el to handle multiple Indian Scripts. |
| 32 | 32 | ||
| 33 | ;;; Code: | 33 | ;;; Code: |
| 34 | 34 | ||
| 35 | (require 'cl) | ||
| 36 | (require 'quail) | 35 | (require 'quail) |
| 37 | (require 'devan-util) | 36 | (require 'devan-util) |
| 38 | (require 'ind-util) | 37 | (require 'ind-util) |
| @@ -40,7 +39,7 @@ | |||
| 40 | (defun quail-indian-preceding-char-position (position) | 39 | (defun quail-indian-preceding-char-position (position) |
| 41 | "Return the position of preceding composite character." | 40 | "Return the position of preceding composite character." |
| 42 | (let (prec-composed) | 41 | (let (prec-composed) |
| 43 | (if (char-valid-p (char-before position)) ;; range o.k. | 42 | (if (char-valid-p (char-before position)) ;; range o.k. |
| 44 | (if (setq prec-composed (find-composition (1- position))) | 43 | (if (setq prec-composed (find-composition (1- position))) |
| 45 | (car prec-composed) | 44 | (car prec-composed) |
| 46 | (1- position)) | 45 | (1- position)) |
| @@ -49,10 +48,10 @@ | |||
| 49 | (defvar quail-indian-update-preceding-char nil) | 48 | (defvar quail-indian-update-preceding-char nil) |
| 50 | (make-variable-frame-local 'quail-indian-update-preceding-char) | 49 | (make-variable-frame-local 'quail-indian-update-preceding-char) |
| 51 | 50 | ||
| 52 | ;;; update function | 51 | ;;; update function |
| 53 | 52 | ||
| 54 | ;; CONTROL-FLAG is integer (n) | 53 | ;; CONTROL-FLAG is integer (n) |
| 55 | ;; quail-current-key :: keyboard input. | 54 | ;; quail-current-key :: keyboard input. |
| 56 | ;; Only first n can be translated. | 55 | ;; Only first n can be translated. |
| 57 | ;; quail-current-string :: corresonding string. Translated when last | 56 | ;; quail-current-string :: corresonding string. Translated when last |
| 58 | ;; time CONTROL-FLAG is nil. | 57 | ;; time CONTROL-FLAG is nil. |
| @@ -79,12 +78,12 @@ | |||
| 79 | (when (and quail-current-str | 78 | (when (and quail-current-str |
| 80 | (null input-method-use-echo-area) | 79 | (null input-method-use-echo-area) |
| 81 | (null input-method-exit-on-first-char) | 80 | (null input-method-exit-on-first-char) |
| 82 | (setq prec-char-position | 81 | (setq prec-char-position |
| 83 | (quail-indian-preceding-char-position | 82 | (quail-indian-preceding-char-position |
| 84 | (overlay-start quail-overlay))) | 83 | (overlay-start quail-overlay))) |
| 85 | (setq composition-regexp | 84 | (setq composition-regexp |
| 86 | (if prec-char-position | 85 | (if prec-char-position |
| 87 | (caar (elt composition-function-table | 86 | (caar (elt composition-function-table |
| 88 | (char-after prec-char-position))))) | 87 | (char-after prec-char-position))))) |
| 89 | ;; (null quail-indian-update-preceding-char) | 88 | ;; (null quail-indian-update-preceding-char) |
| 90 | (setq prec-char-str | 89 | (setq prec-char-str |
| @@ -103,7 +102,7 @@ | |||
| 103 | ;; set quail-current-str unless control-flag is number. | 102 | ;; set quail-current-str unless control-flag is number. |
| 104 | (if (numberp control-flag) | 103 | (if (numberp control-flag) |
| 105 | (setq quail-indian-update-preceding-char nil | 104 | (setq quail-indian-update-preceding-char nil |
| 106 | quail-current-str | 105 | quail-current-str |
| 107 | (if (equal quail-current-str "") | 106 | (if (equal quail-current-str "") |
| 108 | (substring quail-current-key 0 control-flag) | 107 | (substring quail-current-key 0 control-flag) |
| 109 | (indian-compose-string quail-current-str)) | 108 | (indian-compose-string quail-current-str)) |
| @@ -133,8 +132,8 @@ | |||
| 133 | (funcall 'quail-define-package pkgname lang title t doc | 132 | (funcall 'quail-define-package pkgname lang title t doc |
| 134 | nil nil nil nil nil nil t nil | 133 | nil nil nil nil nil nil t nil |
| 135 | 'quail-indian-update-translation) | 134 | 'quail-indian-update-translation) |
| 136 | (maphash | 135 | (maphash |
| 137 | '(lambda (key val) | 136 | '(lambda (key val) |
| 138 | (quail-defrule key (if (= (length val) 1) | 137 | (quail-defrule key (if (= (length val) 1) |
| 139 | (string-to-char val) | 138 | (string-to-char val) |
| 140 | (vector val)))) | 139 | (vector val)))) |
| @@ -162,16 +161,16 @@ | |||
| 162 | ;;; Input by Inscript | 161 | ;;; Input by Inscript |
| 163 | ;;; | 162 | ;;; |
| 164 | 163 | ||
| 165 | (defun flatten-list (lst) | 164 | (defun quail-indian-flatten-list (lst) |
| 166 | "Flatten the nested LIST so that there would be no innner list." | 165 | "Flatten the nested LIST so that there would be no innner list." |
| 167 | (if (listp lst) | 166 | (if (listp lst) |
| 168 | (apply 'append (mapcar 'flatten-list lst)) | 167 | (apply 'append (mapcar 'quail-indian-flatten-list lst)) |
| 169 | (list lst))) | 168 | (list lst))) |
| 170 | 169 | ||
| 171 | (defun quail-define-inscript-package (char-table key-table pkgname lang title | 170 | (defun quail-define-inscript-package (char-table key-table pkgname lang title |
| 172 | docstring) | 171 | docstring) |
| 173 | (setq char-table (flatten-list char-table)) | 172 | (setq char-table (quail-indian-flatten-list char-table)) |
| 174 | (setq key-table (flatten-list key-table)) | 173 | (setq key-table (quail-indian-flatten-list key-table)) |
| 175 | (funcall 'quail-define-package pkgname lang title nil docstring | 174 | (funcall 'quail-define-package pkgname lang title nil docstring |
| 176 | nil nil nil nil nil nil nil nil | 175 | nil nil nil nil nil nil nil nil |
| 177 | 'quail-indian-update-translation | 176 | 'quail-indian-update-translation |
| @@ -179,7 +178,7 @@ | |||
| 179 | (mapcar* | 178 | (mapcar* |
| 180 | '(lambda (key val) | 179 | '(lambda (key val) |
| 181 | (and key val | 180 | (and key val |
| 182 | (quail-defrule | 181 | (quail-defrule |
| 183 | (if (char-valid-p key) (char-to-string key) key) | 182 | (if (char-valid-p key) (char-to-string key) key) |
| 184 | (if (stringp val) (vector val) val)))) | 183 | (if (stringp val) (vector val) val)))) |
| 185 | key-table char-table)) | 184 | key-table char-table)) |
| @@ -194,15 +193,15 @@ | |||
| 194 | (?| ?\\) (?~ ?`) (?A ?a) (?Q ?q) ("+]" "=]") ("R]" "r]")) | 193 | (?| ?\\) (?~ ?`) (?A ?a) (?Q ?q) ("+]" "=]") ("R]" "r]")) |
| 195 | (;; CONSONANTS (42) | 194 | (;; CONSONANTS (42) |
| 196 | ?k ?K ?i ?I ?U ;; GRUTTALS | 195 | ?k ?K ?i ?I ?U ;; GRUTTALS |
| 197 | ?\; ?: ?p ?P ?} ;; PALATALS | 196 | ?\; ?: ?p ?P ?} ;; PALATALS |
| 198 | ?' ?\" ?\[ ?{ ?C ;; CEREBRALS | 197 | ?' ?\" ?\[ ?{ ?C ;; CEREBRALS |
| 199 | ?l ?L ?o ?O ?v ?V ;; DENTALS | 198 | ?l ?L ?o ?O ?v ?V ;; DENTALS |
| 200 | ?h ?H ?y ?Y ?c ;; LABIALS | 199 | ?h ?H ?y ?Y ?c ;; LABIALS |
| 201 | ?/ ?j ?J ?n ?N "N]" ?b ;; SEMIVOWELS | 200 | ?/ ?j ?J ?n ?N "N]" ?b ;; SEMIVOWELS |
| 202 | ?M ?< ?m ?u ;; SIBILANTS | 201 | ?M ?< ?m ?u ;; SIBILANTS |
| 203 | "k]" "K]" "i]" "p]" "[]" "{]" "H]" "/]" ;; NUKTAS | 202 | "k]" "K]" "i]" "p]" "[]" "{]" "H]" "/]" ;; NUKTAS |
| 204 | ?% ?&) | 203 | ?% ?&) |
| 205 | (;; Misc Symbols (7) | 204 | (;; Misc Symbols (7) |
| 206 | ?X ?x ?_ ">]" ?d "X]" ?>) | 205 | ?X ?x ?_ ">]" ?d "X]" ?>) |
| 207 | (;; Digits | 206 | (;; Digits |
| 208 | ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9) | 207 | ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9) |
| @@ -210,7 +209,7 @@ | |||
| 210 | ?# ?$ ?^ ?* ?\]))) | 209 | ?# ?$ ?^ ?* ?\]))) |
| 211 | 210 | ||
| 212 | ;; (quail-define-package "devanagari-inscript" "Devanagari" "DevIS" t "Devanagari keyboard Inscript") | 211 | ;; (quail-define-package "devanagari-inscript" "Devanagari" "DevIS" t "Devanagari keyboard Inscript") |
| 213 | (quail-define-inscript-package | 212 | (quail-define-inscript-package |
| 214 | indian-dev-base-table inscript-dev-keytable | 213 | indian-dev-base-table inscript-dev-keytable |
| 215 | "devanagari-inscript" "Devanagari" "DevIS" | 214 | "devanagari-inscript" "Devanagari" "DevIS" |
| 216 | "Devanagari keyboard Inscript.") | 215 | "Devanagari keyboard Inscript.") |