annotate leim/quail/devanagari.el @ 22406:d893285c4d8a

(ange-ftp-expand-dir): Use null-device.
author Richard M. Stallman <rms@gnu.org>
date Tue, 09 Jun 1998 02:53:29 +0000
parents 0f690a5476fe
children db21a8833d0f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
1 ;; quail/devanagari.el -- Quail packages for inputting Devanagari
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
2
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
3 ;; Copyright (C) 1997 Free Software Foundation, Inc.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
4
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
5 ;; Author: KAWABATA, Taichi <kawabata@is.s.u-tokyo.ac.jp>
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
6
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
7 ;; Keywords: multilingual, input method, Indian, Devanagari
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
8
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
9 ;; This file is part of GNU Emacs.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
10
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
12 ;; it under the terms of the GNU General Public License as published by
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
14 ;; any later version.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
15
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
16 ;; GNU Emacs is distributed in the hope that it will be useful,
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
19 ;; GNU General Public License for more details.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
20
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
24 ;; Boston, MA 02111-1307, USA.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
25
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
26 ;;; Commentary:
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
27
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
28 ;; History:
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
29 ;; 1996.10.10 written by KAWABATA, Taichi <kawabata@is.s.u-tokyo.ac.jp>
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
30 ;; 1997.03.21 fixed by KAWABATA, Taichi
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
31
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
32 ;; I'm not sure if this keyboard layout is REALLY an ISCII keyboard layout.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
33 ;; Please let me know if it is not.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
34
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
35 ;;; Code:
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
36
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
37 (require 'quail)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
38 (require 'devan-util)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
39
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
40 ;; This function does nothing for now. For future use.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
41 (defun quail-devanagari-update-translation (control-flag)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
42 (cond ((eq control-flag t) ; terminate translation with the whole key.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
43 (insert quail-current-str)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
44 (quail-terminate-translation))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
45 ((null control-flag) ; proceed translation with more keys.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
46 (insert (or quail-current-str quail-current-key)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
47 (t ; control-flag is the number of keys to be translated.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
48 (insert (aref quail-current-key 0))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
49 (setq unread-command-events
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
50 (list (aref quail-current-key control-flag))))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
51
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
52 (defun quail-devanagari-compose-characters ()
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
53 (interactive)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
54 (if (quail-point-in-conversion-region)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
55 (let* ((from (overlay-start quail-conv-overlay))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
56 (to (overlay-end quail-conv-overlay))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
57 (dstr (buffer-substring from to)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
58 (delete-overlay quail-overlay)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
59 (delete-overlay quail-conv-overlay)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
60 (save-restriction
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
61 (narrow-to-region from to)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
62 (goto-char (point-min))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
63 (delete-region (point-min) (point-max))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
64 (insert (devanagari-compose-string dstr 'sanskrit))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
65 (goto-char (point-max)))
19518
0f690a5476fe (quail-devanagari-compose-characters): Fix
Kenichi Handa <handa@m17n.org>
parents: 19413
diff changeset
66 (setq overriding-terminal-local-map nil)))
19413
81fe2432f1a6 (quail-devanagari-compose-characters): Do
Kenichi Handa <handa@m17n.org>
parents: 18673
diff changeset
67 (setq unread-command-events (list last-command-event)))
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
68
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
69 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
70 "devanagari-keyboard-a" "Devanagari" "DevK" t
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
71 "Devanagari input method with ISCII format
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
72
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
73 `$(5!\(B !$(5!.(B @$(5!c(B #x $x %x ^x &$(5")(B *$(5"((B ( ) _$(5!#(B +$(5!*(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
74 ~$(5!/(B 1$(5!r(B 2$(5!s(B 3$(5!t(B 4$(5!u(B 5$(5!v(B 6$(5!w(B 7$(5!x(B 8$(5!y(B 9$(5!z(B 0$(5!q(B - =$(5!_(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
75
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
76 Q$(5!f(B W$(5!-(B E$(5!%(B R$(5!'(B T$(5!)(B Y$(5!K(B U$(5!7(B I$(5!E(B O$(5!C(B P$(5!;(B {$(5!@(B }$(5!<(B |$(5!2(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
77 q$(5!f(B w$(5!b(B e$(5!Z(B r$(5!\(B t$(5!^(B y$(5!J(B u$(5!X(B i$(5!5(B o$(5!D(B p$(5!:(B [$(5!?(B ]$(5!i(B \\$(5!g(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
78
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
79 A$(5!0(B S$(5!,(B D$(5!$(B F$(5!&(B G$(5!((B H$(5!I(B J$(5!P(B K$(5!4(B l$(5!C(B :$(5!8(B \"$(5!>(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
80 a$(5!e(B s$(5!a(B d$(5!h(B f$(5![(B g$(5!](B h$(5!H(B j$(5!O(B k$(5!3(B l$(5!B(B ;$(5!9(B '$(5!=(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
81
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
82 Z$(5!+(B X$(5!!(B C$(5!A(B V$(5!G(B B$(5!S(B N$(5!R(B M$(5!U(B <$(5!V(B >$(5!j(B ?$(5!N(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
83 z$(5!`(B x$(5!"(B c$(5!L(B v$(5!F(B b$(5!T(B n$(5!Q(B m$(5!W(B , . /$(5!M(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
84 "
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
85 nil t t nil nil nil nil nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
86 ;;'quail-devanagari-update-translation
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
87 nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
88 '((" " . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
89 ("-" . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
90 ("," . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
91 ("\C-m" . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
92 ([return] . quail-devanagari-compose-characters))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
93 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
94
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
95 ;; ..... (not prepared yet)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
96 ;; I forgot where I got this keymap from.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
97 ;; Please let me know if you know what this keymap is.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
98
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
99 (quail-define-rules
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
100 ("`" ?$(5!\(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
101 ("~" ?$(5!/(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
102 ("1" ?$(5!r(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
103 ("!" ?$(5!.(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
104 ("2" ?$(5!s(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
105 ("@" ?$(5!c(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
106 ("3" ?$(5!t(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
107 ("#" ?# ) ; following "r" in keymap...
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
108 ("4" ?$(5!u(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
109 ("$" ?$ ) ; preceding "r" in keymap...
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
110 ("5" ?$(5!v(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
111 ("%" ?x ) ; ??
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
112 ("6" ?$(5!w(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
113 ("^" ?x ) ; %tra
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
114 ("7" ?$(5!x(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
115 ("&" ?$(5")(B) ; % special
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
116 ("8" ?$(5!y(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
117 ("*" ?$(5"((B) ; % special
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
118 ("9" ?$(5!z(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
119 ("(" ?\()
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
120 ("0" ?$(5!q(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
121 (")" ?\))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
122 ("-" ?-)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
123 ("_" ?$(5!#(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
124 ("=" ?$(5!_(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
125 ("+" ?$(5!*(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
126 ("q" ?$(5!f(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
127 ("Q" ?$(5!1(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
128 ("w" ?$(5!b(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
129 ("W" ?$(5!-(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
130 ("e" ?$(5!Z(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
131 ("E" ?$(5!%(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
132 ("r" ?$(5!\(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
133 ("R" ?$(5!'(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
134 ("t" ?$(5!^(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
135 ("T" ?$(5!)(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
136 ("y" ?$(5!J(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
137 ("Y" ?$(5!K(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
138 ("u" ?$(5!X(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
139 ("U" ?$(5!7(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
140 ("i" ?$(5!5(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
141 ("I" ?$(5!E(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
142 ("o" ?$(5!D(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
143 ("O" ?$(5!C(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
144 ("p" ?$(5!:(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
145 ("P" ?$(5!;(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
146 ("[" ?$(5!?(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
147 ("{" ?$(5!@(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
148 ("]" ?$(5!i(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
149 ("}" ?$(5!<(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
150 ("\\" ?$(5!g(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
151 ("|" ?$(5!2(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
152 ("a" ?$(5!e(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
153 ("A" ?$(5!0(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
154 ("s" ?$(5!a(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
155 ("S" ?$(5!,(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
156 ("d" ?$(5!h(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
157 ("D" ?$(5!$(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
158 ("f" ?$(5![(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
159 ("F" ?$(5!&(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
160 ("g" ?$(5!](B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
161 ("G" ?$(5!((B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
162 ("h" ?$(5!H(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
163 ("H" ?$(5!I(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
164 ("j" ?$(5!O(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
165 ("J" ?$(5!P(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
166 ("k" ?$(5!3(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
167 ("K" ?$(5!4(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
168 ("l" ?$(5!B(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
169 ("L" ?$(5!C(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
170 (";" ?$(5!8(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
171 (":" ?$(5!9(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
172 ("'" ?$(5!=(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
173 ("\"" ?$(5!>(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
174 ("z" ?$(5!`(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
175 ("Z" ?$(5!+(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
176 ("x" ?$(5!"(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
177 ("X" ?$(5!!(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
178 ("c" ?$(5!L(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
179 ("C" ?$(5!A(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
180 ("v" ?$(5!F(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
181 ("V" ?$(5!G(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
182 ("b" ?$(5!T(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
183 ("B" ?$(5!S(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
184 ("n" ?$(5!Q(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
185 ("N" ?$(5!R(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
186 ("m" ?$(5!W(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
187 ("M" ?$(5!U(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
188 ;; ("," ?,)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
189 ("<" ?$(5!V(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
190 ;; ("." ?.)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
191 (">" ?$(5!j(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
192 ("/" ?$(5!M(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
193 ("?" ?$(5!N(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
194 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
195
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
196
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
197 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
198 ;; Quail Devanagari Input By Transliteration
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
199 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
200
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
201 (eval-when-compile
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
202
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
203 (defvar devanagari-consonant-transliteration-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
204 '(
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
205 ; GUTTURALS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
206 ("k" . "$(5!3(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
207 ("k." . "$(5!3!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
208 ("kh" . "$(5!4(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
209 ("kh." . "$(5!4!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
210 ("g" . "$(5!5(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
211 ("g." . "$(5!5!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
212 ("gh" . "$(5!6(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
213 ("G" . "$(5!7(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
214 ; PALATALS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
215 ("c" . "$(5!8(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
216 ("ch" . "$(5!9(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
217 ("j" . "$(5!:(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
218 ("j." . "$(5!:!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
219 ("Z" . "$(5!:!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
220 ("jh" . "$(5!;(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
221 ("J" . "$(5!<(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
222 ; CEREBRALS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
223 ("T" . "$(5!=(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
224 ("Th" . "$(5!>(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
225 ("D" . "$(5!?(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
226 ("D." . "$(5!?!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
227 ("Dh" . "$(5!@(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
228 ("Dh." . "$(5!@!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
229 ("N" . "$(5!A(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
230 ; DENTALS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
231 ("t" . "$(5!B(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
232 ("th" . "$(5!C(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
233 ("d" . "$(5!D(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
234 ("dh" . "$(5!E(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
235 ("n" . "$(5!F(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
236 ("N." . "$(5!G(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
237 ; LABIALS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
238 ("p" . "$(5!H(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
239 ("ph" . "$(5!I(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
240 ("ph." . "$(5!I!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
241 ("f" . "$(5!I(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
242 ("f." . "$(5!I!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
243 ("b" . "$(5!J(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
244 ("bh" . "$(5!K(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
245 ("m" . "$(5!L(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
246 ; SEMIVOWELS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
247 ("y" . "$(5!M(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
248 ("y." . "$(5!N(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
249 ("Y" . "$(5!N(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
250 ("r" . "$(5!O(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
251 ("r." . "$(5!P(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
252 ("l" . "$(5!Q(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
253 ("W" . "$(5!R(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
254 ("W." . "$(5!S(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
255 ("v" . "$(5!T(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
256 ("w" . "$(5!T(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
257 ; SIBILANTS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
258 ("z" . "$(5!U(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
259 ("S" . "$(5!V(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
260 ("s" . "$(5!W(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
261 ("h" . "$(5!X(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
262 ))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
263
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
264 (defvar devanagari-vowel-transliteration-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
265 '(
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
266 ;; Special treatment unique to IS 13194 Transliteration
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
267 ("" . "$(5!h(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
268 ("a" . "")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
269 ; Matra (Vowel Sign)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
270 ("A" . "$(5!Z(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
271 ("i" . "$(5![(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
272 ("I" . "$(5!\(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
273 ("u" . "$(5!](B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
274 ("U" . "$(5!^(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
275 ("R" . "$(5!_(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
276 ;; ("RR" . "x") ; not specified in ordinary IS 13194.(but in Unicode??)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
277 ("q" . "$(5#K(B") ; "$(5#K(B" = "$(5!_!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
278 ("L" . "$(5#L(B") ; "$(5#L(B" = "$(5![!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
279 ("E" . "$(5#M(B") ; "$(5#M(B" = "$(5!\!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
280 ("E" . "$(5!`(B") ; only for transcription of other scripts.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
281 ("e" . "$(5!a(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
282 ("ai" . "$(5!b(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
283 ("ae" . "$(5!b(B") ; variation of transliteration.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
284 ("EE" . "$(5!c(B") ; only for transcription of other scripts. (Candra E)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
285 ("O" . "$(5!d(B") ; only for transcription of other scripts.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
286 ("o" . "$(5!e(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
287 ("au" . "$(5!f(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
288 ("ao" . "$(5!f(B") ; variation of transliteration.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
289 ("OO" . "$(5!g(B") ; only for transcription of other scripts. (Candra O)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
290 ))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
291
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
292 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
293 ;; Independent vowels and other signs.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
294 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
295
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
296 (defvar devanagari-other-letters-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
297 '(
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
298 ("a" . "$(5!$(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
299 ("A" . "$(5!%(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
300 ("i" . "$(5!&(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
301 ("I" . "$(5!'(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
302 ("u" . "$(5!((B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
303 ("U" . "$(5!)(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
304 ("R" . "$(5!*(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
305 ;; ("RR" . "x") ; not specified in IS 13194. (but in Unicode??)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
306 ("q" . "$(5#*(B") ; "$(5#*(B" = "$(5!*!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
307 ("L" . "$(5#&(B") ; "$(5#&(B" = "$(5!&!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
308 ("E" . "$(5#'(B") ; "$(5#'(B" = "$(5!'!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
309 ("Ex" . "$(5!+(B") ; only for transcription of other scripts.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
310 ("e" . "$(5!,(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
311 ("ai" . "$(5!-(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
312 ("EE" . "$(5!.(B") ; only for transcription of other scripts. (Candra E)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
313 ("O" . "$(5!/(B") ; only for transcription of other scripts.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
314 ("o" . "$(5!0(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
315 ("au" . "$(5!1(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
316 ("ao" . "$(5!1(B") ; variation of transliteration.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
317 ("OO" . "$(5!2(B") ; only for transcription of other scripts. (Candra O)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
318 ("'" . "$(5#J(B") ; avagraha
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
319 ("@" . "$(5#!(B") ; OM
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
320 ("/" . "$(5!j(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
321 ("M" . "$(5!"(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
322 ("&" . "$(5!!(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
323 ("H" . "$(5!#(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
324 ("." . "$(5!i(B") ; Nukta
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
325 ("0" . "$(5!q(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
326 ("1" . "$(5!r(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
327 ("2" . "$(5!s(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
328 ("3" . "$(5!t(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
329 ("4" . "$(5!u(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
330 ("5" . "$(5!v(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
331 ("6" . "$(5!w(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
332 ("7" . "$(5!x(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
333 ("8" . "$(5!y(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
334 ("9" . "$(5!z(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
335 ))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
336 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
337
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
338 (defmacro devanagari-transliteration-quail-define-rules ()
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
339 (cons 'quail-define-rules
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
340 (let ((cl devanagari-consonant-transliteration-alist)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
341 (ml devanagari-other-letters-alist) rules)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
342 (while cl
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
343 (let ((vl devanagari-vowel-transliteration-alist))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
344 (while vl
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
345 (setq rules
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
346 (cons (list (concat (car (car cl)) (car (car vl)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
347 (make-vector 1
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
348 (concat (cdr (car cl)) (cdr (car vl)))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
349 rules))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
350 (setq vl (cdr vl))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
351 (setq cl (cdr cl)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
352 (while ml
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
353 (setq rules (cons (list (car (car ml))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
354 (make-vector 1 (cdr (car ml))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
355 rules))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
356 (setq ml (cdr ml)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
357 rules)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
358
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
359 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
360 "devanagari-transliteration" "Devanagari" "DEVt" t
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
361 "Devanagari input method by transliteration
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
362 VOWELS : a $(5!$(B A $(5!%(B i $(5!&(B I $(5!'(B u $(5!((B U $(5!)(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
363 R $(5!*(B q $(5#*(B L $(5#&(B E $(5#'(B Ex $(5!+(B e $(5!,(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
364 ai $(5!-(B EE $(5!.(B O $(5!/(B o $(5!0(B au $(5!1(B OO $(5!2(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
365 GRUTTALS : k $(5!3(B kh $(5!4(B g $(5!5(B gh $(5!6(B G $(5!7(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
366 PALATALS : c $(5!8(B ch $(5!9(B j $(5!:(B jh $(5!;(B J $(5!<(B (Z $(5!:!i(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
367 CEREBRALS : T $(5!=(B Th $(5!>(B D $(5!?(B Dh $(5!@(B N $(5!A(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
368 DENTALS : t $(5!B(B th $(5!C(B d $(5!D(B dh $(5!E(B n $(5!F(B (Nq $(5!G(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
369 LABIALS : p $(5!H(B ph $(5!I(B b $(5!J(B bh $(5!K(B m $(5!L(B (f $(5!I(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
370 SEMIVOWELS : y $(5!M(B Y $(5!N(B r $(5!O(B Rq $(5!P(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
371 l $(5!Q(B W $(5!R(B W. $(5!S(B v $(5!T(B w $(5!T(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
372 SIBILANTS : z $(5!U(B S $(5!V(B s $(5!W(B h $(5!X(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
373
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
374 Specials : Anuswar M $(5!"(B Visarg H $(5!#(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
375 Chandrabindu & $(5!!(B Nukta . $(5!i(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
376 Danda / $(5!j(B Avagrah ' $(5#J(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
377 OM @ $(5#!(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
378 "
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
379 nil t t nil nil nil nil nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
380 ;; 'quail-devanagari-update-translation
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
381 nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
382 '((" " . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
383 ("-" . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
384 ("," . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
385 ("\C-m" . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
386 ([return] . quail-devanagari-compose-characters))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
387 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
388
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
389 (devanagari-transliteration-quail-define-rules)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
390
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
391 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
392 ;; ITRANS - Indian Script Translation
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
393 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
394
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
395 (eval-and-compile
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
396
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
397 (defun rule-indian-to-devanagari (alist)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
398 (if (null alist) nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
399 (cons (cons (car (car alist))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
400 (indian-to-devanagari-string (cdr (car alist))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
401 (rule-indian-to-devanagari (cdr alist)))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
402 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
403
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
404 (eval-when-compile
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
405
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
406 (defvar devanagari-consonant-itrans-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
407 (rule-indian-to-devanagari indian-itrans-consonant-alist))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
408
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
409 (defvar devanagari-vowel-itrans-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
410 (rule-indian-to-devanagari indian-itrans-vowel-sign-alist))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
411
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
412 (defvar devanagari-other-letters-itrans-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
413 (rule-indian-to-devanagari indian-itrans-other-letters-alist))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
414
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
415 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
416
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
417 (defmacro devanagari-itrans-quail-define-rules ()
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
418 (cons 'quail-define-rules
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
419 (let ((cl devanagari-consonant-itrans-alist)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
420 (ml devanagari-other-letters-itrans-alist) rules)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
421 (while cl
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
422 (let ((vl devanagari-vowel-itrans-alist))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
423 (while vl
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
424 (setq rules
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
425 (cons (list (concat (car (car cl)) (car (car vl)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
426 (make-vector 1
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
427 (concat (cdr (car cl)) (cdr (car vl)))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
428 rules))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
429 (setq vl (cdr vl))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
430 (setq cl (cdr cl)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
431 (while ml
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
432 (setq rules (cons (list (car (car ml))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
433 (make-vector 1 (cdr (car ml))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
434 rules))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
435 (setq ml (cdr ml)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
436 rules)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
437
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
438 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
439 "devanagari-itrans" "Devanagari" "DEVi" t
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
440 "Devanagari input method by ITRANS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
441 Special Keys : Anuswar n'
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
442 Chandrabindu nn'
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
443 Visarg nh
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
444 Nukta type capital letter for first character.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
445 $(5!7(B(ng) $(5!<(B(ny) $(5!A(B(nn) $(5!F(B(n) $(5!G(B(nnn)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
446 "
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
447 nil t t nil nil nil nil nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
448 ;; 'quail-devanagari-update-translation
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
449 nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
450 '((" " . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
451 ("-" . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
452 ("," . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
453 ("\C-m" . quail-devanagari-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
454 ([return] . quail-devanagari-compose-characters))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
455 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
456
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
457 (devanagari-itrans-quail-define-rules)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
458
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
459
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
460 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
461 ;; Quail Hindi Input By Transliteration
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
462 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
463
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
464 (defun quail-devanagari-hindi-compose-characters ()
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
465 (interactive)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
466 (if (quail-point-in-conversion-region)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
467 (let* ((from (overlay-start quail-conv-overlay))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
468 (to (overlay-end quail-conv-overlay))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
469 (dstr (buffer-substring from to)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
470 (delete-overlay quail-overlay)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
471 (delete-overlay quail-conv-overlay)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
472 (save-restriction
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
473 (narrow-to-region from to)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
474 (goto-char (point-min))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
475 (delete-region (point-min) (point-max))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
476 (insert (devanagari-compose-string dstr))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
477 (goto-char (point-max)))
19518
0f690a5476fe (quail-devanagari-compose-characters): Fix
Kenichi Handa <handa@m17n.org>
parents: 19413
diff changeset
478 (setq overriding-terminal-local-map nil)))
19413
81fe2432f1a6 (quail-devanagari-compose-characters): Do
Kenichi Handa <handa@m17n.org>
parents: 18673
diff changeset
479 (setq unread-command-events (list last-command-event)))
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
480
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
481 (eval-when-compile
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
482
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
483 (defvar devanagari-hindi-consonant-transliteration-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
484 '(
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
485 ; GUTTURALS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
486 ("k" . "$(5!3(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
487 ("ks" . "$(5$.(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
488 ("k." . "$(5!3!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
489 ("kh" . "$(5!4(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
490 ("kh." . "$(5!4!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
491 ("g" . "$(5!5(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
492 ("g." . "$(5!5!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
493 ("gh" . "$(5!6(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
494 ("G" . "$(5!7(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
495 ; PALATALS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
496 ("ch" . "$(5!8(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
497 ("chh" . "$(5!9(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
498 ("j" . "$(5!:(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
499 ("j." . "$(5!:!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
500 ("z" . "$(5!:!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
501 ("jh" . "$(5!;(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
502 ("J" . "$(5!<(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
503 ; CEREBRALS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
504 ("T" . "$(5!=(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
505 ("Th" . "$(5!>(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
506 ("D" . "$(5!?(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
507 ("D." . "$(5!?!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
508 ("Dh" . "$(5!@(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
509 ("Dh." . "$(5!@!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
510 ("N" . "$(5!A(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
511 ; DENTALS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
512 ("t" . "$(5!B(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
513 ("th" . "$(5!C(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
514 ("d" . "$(5!D(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
515 ("dh" . "$(5!E(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
516 ("n" . "$(5!F(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
517 ("N." . "$(5!G(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
518 ; LABIALS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
519 ("p" . "$(5!H(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
520 ("ph" . "$(5!I(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
521 ("ph." . "$(5!I!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
522 ("f" . "$(5!I(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
523 ("f." . "$(5!I!i(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
524 ("b" . "$(5!J(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
525 ("bh" . "$(5!K(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
526 ("m" . "$(5!L(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
527 ; SEMIVOWELS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
528 ("y" . "$(5!M(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
529 ("y." . "$(5!N(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
530 ("Y" . "$(5!N(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
531 ("r" . "$(5!O(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
532 ("r." . "$(5!P(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
533 ("l" . "$(5!Q(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
534 ("W" . "$(5!R(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
535 ("W." . "$(5!S(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
536 ("v" . "$(5!T(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
537 ("w" . "$(5!T(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
538 ; SIBILANTS
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
539 ("sh" . "$(5!U(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
540 ("S" . "$(5!V(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
541 ("s" . "$(5!W(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
542 ("h" . "$(5!X(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
543 ; Special for Hindi
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
544 ("ks" . "$(5$.(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
545 ("tr" . "$(5"%(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
546 ("xn" . "$(5$E(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
547 ))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
548
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
549 (defvar devanagari-hindi-vowel-transliteration-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
550 '(
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
551 ; In hindi, halant sign is rarely used so should explicity typed in.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
552 ("" . "")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
553 ("~" . "$(5!h(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
554 ; Matra (Vowel Sign)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
555 ("a" . "$(5!Z(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
556 ("i" . "$(5![(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
557 ("I" . "$(5!\(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
558 ("u" . "$(5!](B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
559 ("U" . "$(5!^(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
560 ("R" . "$(5!_(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
561 ;; ("RR" . "x") ; not specified in ordinary IS 13194.(but in Unicode??)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
562 ("q" . "$(5#K(B") ; "$(5#K(B" = "$(5!_!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
563 ("L" . "$(5#L(B") ; "$(5#L(B" = "$(5![!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
564 ("E" . "$(5#M(B") ; "$(5#M(B" = "$(5!\!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
565 ("E" . "$(5!`(B") ; only for transcription of other scripts.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
566 ("e" . "$(5!a(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
567 ("ai" . "$(5!b(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
568 ("ae" . "$(5!b(B") ; variation of transliteration.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
569 ("EE" . "$(5!c(B") ; only for transcription of other scripts. (Candra E)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
570 ("O" . "$(5!d(B") ; only for transcription of other scripts.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
571 ("o" . "$(5!e(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
572 ("au" . "$(5!f(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
573 ("ao" . "$(5!f(B") ; variation of transliteration.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
574 ("OO" . "$(5!g(B") ; only for transcription of other scripts. (Candra O)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
575 ))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
576
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
577 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
578 ;; Independent vowels and other signs.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
579 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
580
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
581 (defvar devanagari-hindi-other-letters-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
582 '(
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
583 ("a" . "$(5!$(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
584 ("A" . "$(5!%(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
585 ("i" . "$(5!&(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
586 ("I" . "$(5!'(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
587 ("u" . "$(5!((B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
588 ("U" . "$(5!)(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
589 ("R" . "$(5!*(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
590 ;; ("RR" . "x") ; not specified in IS 13194. (but in Unicode??)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
591 ("q" . "$(5#*(B") ; "$(5#*(B" = "$(5!*!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
592 ("L" . "$(5#&(B") ; "$(5#&(B" = "$(5!&!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
593 ("E" . "$(5#'(B") ; "$(5#'(B" = "$(5!'!i(B" in IS 13194.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
594 ("Ex" . "$(5!+(B") ; only for transcription of other scripts.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
595 ("e" . "$(5!,(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
596 ("ai" . "$(5!-(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
597 ("EE" . "$(5!.(B") ; only for transcription of other scripts. (Candra E)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
598 ("O" . "$(5!/(B") ; only for transcription of other scripts.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
599 ("o" . "$(5!0(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
600 ("au" . "$(5!1(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
601 ("ao" . "$(5!1(B") ; variation of transliteration.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
602 ("OO" . "$(5!2(B") ; only for transcription of other scripts. (Candra O)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
603 ("'" . "$(5#J(B") ; avagraha
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
604 ("@" . "$(5#!(B") ; OM
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
605 ("/" . "$(5!j(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
606 ("M" . "$(5!"(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
607 ("&" . "$(5!!(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
608 ("H" . "$(5!#(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
609 ("." . "$(5!i(B") ; Nukta
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
610 ("0" . "$(5!q(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
611 ("1" . "$(5!r(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
612 ("2" . "$(5!s(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
613 ("3" . "$(5!t(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
614 ("4" . "$(5!u(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
615 ("5" . "$(5!v(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
616 ("6" . "$(5!w(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
617 ("7" . "$(5!x(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
618 ("8" . "$(5!y(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
619 ("9" . "$(5!z(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
620 ))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
621 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
622
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
623 (defmacro devanagari-hindi-transliteration-quail-define-rules ()
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
624 (cons 'quail-define-rules
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
625 (let ((cl devanagari-hindi-consonant-transliteration-alist)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
626 (ml devanagari-hindi-other-letters-alist) rules)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
627 (while cl
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
628 (let ((vl devanagari-hindi-vowel-transliteration-alist))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
629 (while vl
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
630 (setq rules
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
631 (cons (list (concat (car (car cl)) (car (car vl)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
632 (make-vector 1
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
633 (concat (cdr (car cl)) (cdr (car vl)))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
634 rules))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
635 (setq vl (cdr vl))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
636 (setq cl (cdr cl)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
637 (while ml
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
638 (setq rules (cons (list (car (car ml))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
639 (make-vector 1 (cdr (car ml))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
640 rules))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
641 (setq ml (cdr ml)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
642 rules)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
643
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
644 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
645 "devanagari-hindi-transliteration" "Hindi" "HINt" t
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
646 "Devanagari-Hindi input method by transliteration
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
647 VOWELS : a $(5!$(B A $(5!%(B i $(5!&(B I $(5!'(B u $(5!((B U $(5!)(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
648 R $(5!*(B q $(5#*(B L $(5#&(B E $(5#'(B Ex $(5!+(B e $(5!,(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
649 ai $(5!-(B EE $(5!.(B O $(5!/(B o $(5!0(B au $(5!1(B OO $(5!2(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
650 GRUTTALS : k $(5!3(B kh $(5!4(B g $(5!5(B gh $(5!6(B G $(5!7(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
651 PALATALS : c $(5!8(B ch $(5!9(B j $(5!:(B jh $(5!;(B J $(5!<(B z $(5!:!i(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
652 CEREBRALS : T $(5!=(B Th $(5!>(B D $(5!?(B Dh $(5!@(B N $(5!A(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
653 DENTALS : t $(5!B(B th $(5!C(B d $(5!D(B dh $(5!E(B n $(5!F(B (Nq $(5!G(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
654 LABIALS : p $(5!H(B ph $(5!I(B b $(5!J(B bh $(5!K(B m $(5!L(B (f $(5!I(B)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
655 SEMIVOWELS : y $(5!M(B Y $(5!N(B r $(5!O(B Rq $(5!P(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
656 l $(5!Q(B W $(5!R(B W. $(5!S(B v $(5!T(B w $(5!T(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
657 SIBILANTS : sh $(5!U(B S $(5!V(B s $(5!W(B h $(5!X(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
658 OTHERS : ks $(5$.(B tr $(5"%(B xn $(5$E(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
659
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
660 Specials : Anuswar M $(5!"(B Visarg H $(5!#(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
661 Chandrabindu & $(5!!(B Nukta . $(5!i(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
662 Danda / $(5!j(B Avagrah ' $(5#J(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
663 OM @ $(5#!(B Halant ~ $(5!h(B
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
664 "
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
665 nil t t nil nil nil nil nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
666 ;; 'quail-devanagari-update-translation
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
667 nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
668 '((" " . quail-devanagari-hindi-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
669 ("-" . quail-devanagari-hindi-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
670 ("," . quail-devanagari-hindi-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
671 ("\C-m" . quail-devanagari-hindi-compose-characters)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
672 ([return] . quail-devanagari-hindi-compose-characters))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
673 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
674
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
675 (devanagari-hindi-transliteration-quail-define-rules)