annotate lisp/language/ind-util.el @ 89407:a9b9211d250a

*** empty log message ***
author Kenichi Handa <handa@m17n.org>
date Sat, 12 Apr 2003 02:37:18 +0000
parents e1d0641b8107
children 2f877ed80fa6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 ;;; ind-util.el --- Transliteration and Misc. Tools for Indian Languages -*- coding: iso-2022-7bit; -*-
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 ;; Copyright (C) 2001 Free Software Foundation, Inc.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5 ;; Maintainer: KAWABATA, Taichi <batta@beige.ocn.ne.jp>
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 ;; Keywords: multilingual, Indian, Devanagari
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 ;; any later version.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 ;; GNU General Public License for more details.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 ;; Boston, MA 02111-1307, USA.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 ;;; Commentary:
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 ;; This file provides conversion between UCS and various
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 ;; transliteration schemes, such as ITRANS, kyoto-harvard and aiba
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 ;; methods. It also provides conversion between IS 13194 and UCS.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 ;; Finally, this program provides the compatibility support with
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 ;; old implementation of Devanagari script.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 ;;; Code:
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 ;;; Transliteration
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 ;; The followings provide the various transliteration schemes (such as
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 ;; ITRANS, kyoto-harvard, and Aiba) of Indian scripts. They are also
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 ;; used in quail/indian.el for typing Indian script in Emacs.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 (eval-and-compile
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42
42060
f3b460667d31 (range): Function deleted.
Richard M. Stallman <rms@gnu.org>
parents: 42056
diff changeset
43 (defun indian-regexp-of-hashtbl-keys (hashtbl)
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44 "Returns the regular expression of hashtable keys."
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45 (let ((max-specpdl-size 1000))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
46 (regexp-opt
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
47 (sort
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
48 (let (dummy)
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
49 (maphash (function (lambda (key val) (setq dummy (cons key dummy))))
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
50 hashtbl)
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51 dummy)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 (function (lambda (x y) (> (length x) (length y))))))))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54 (defvar indian-dev-base-table
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55 '(
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56 (;; VOWELS (18)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57 (?$,15E(B nil) (?$,15F(B ?$,15~(B) (?$,15G(B ?$,15(B) (?$,15H(B ?$,16 (B) (?$,15I(B ?$,16!(B) (?$,15J(B ?$,16"(B)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58 (?$,15K(B ?$,16#(B) (?$,15L(B ?$,16$(B) (?$,15M(B ?$,16%(B) (?$,15N(B ?$,16&(B) (?$,15O(B ?$,16'(B) (?$,15P(B ?$,16((B)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59 (?$,15Q(B ?$,16)(B) (?$,15R(B ?$,16*(B) (?$,15S(B ?$,16+(B) (?$,15T(B ?$,16,(B) (?$,16@(B ?$,16B(B) (?$,16A(B ?$,16C(B))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60 (;; CONSONANTS (currently 42, including special cases)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
61 ?$,15U(B ?$,15V(B ?$,15W(B ?$,15X(B ?$,15Y(B ;; GUTTRULS
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
62 ?$,15Z(B ?$,15[(B ?$,15\(B ?$,15](B ?$,15^(B ;; PALATALS
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
63 ?$,15_(B ?$,15`(B ?$,15a(B ?$,15b(B ?$,15c(B ;; CEREBRALS
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
64 ?$,15d(B ?$,15e(B ?$,15f(B ?$,15g(B ?$,15h(B ?$,15i(B ;; DENTALS
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
65 ?$,15j(B ?$,15k(B ?$,15l(B ?$,15m(B ?$,15n(B ;; LABIALS
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66 ?$,15o(B ?$,15p(B ?$,15q(B ?$,15r(B ?$,15s(B ?$,15t(B ?$,15u(B ;; SEMIVOWELS
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
67 ?$,15v(B ?$,15w(B ?$,15x(B ?$,15y(B ;; SIBILANTS
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
68 ?$,168(B ?$,169(B ?$,16:(B ?$,16;(B ?$,16<(B ?$,16=(B ?$,16>(B ?$,16?(B ;; NUKTAS
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 "$,15\6-5^(B" "$,15U6-5w(B")
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
70 (;; Misc Symbols (7)
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 ?$,15A(B ?$,15B(B ?$,15C(B ?$,15}(B ?$,16-(B ?$,160(B ?$,16D(B)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
72 (;; Digits (10)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73 ?$,16F(B ?$,16G(B ?$,16H(B ?$,16I(B ?$,16J(B ?$,16K(B ?$,16L(B ?$,16M(B ?$,16N(B ?$,16O(B)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74 (;; Inscript-extra (4) (#, $, ^, *, ])
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
75 "$,16-5p(B" "$,15p6-(B" "$,15d6-5p(B" "$,15v6-5p(B" "$,15|(B")))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77 (defvar indian-pnj-base-table nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78 (defvar indian-ori-base-table nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 (defvar indian-bng-base-table nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 (defvar indian-asm-base-table nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 (defvar indian-tlg-base-table nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82 (defvar indian-knd-base-table nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 (defvar indian-mlm-base-table nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 (defvar indian-tml-base-table nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 (defvar indian-base-table-to-language-alist
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87 '((indian-dev-base-table . "Devanagari")
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
88 (indian-pnj-base-table . "Punjabi")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89 (indian-ori-base-table . "Oriya")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90 (indian-bng-base-table . "Bengali")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 (indian-asm-base-table . "Assamese")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92 (indian-tlg-base-table . "Telugu")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93 (indian-knd-base-table . "Kannada")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 (indian-mlm-base-table . "Malayalam")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 (indian-tml-base-table . "Tamil")))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97 (defvar indian-itrans-v5-table
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98 '(;; for encode/decode
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 (;; vowels -- 18
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 "a" ("aa" "A") "i" ("ii" "I") "u" ("uu" "U")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 ("RRi" "R^i") ("LLi" "L^i") (".c" "e.c") nil "e" "ai"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 "o.c" nil "o" "au" ("RRI" "R^I") ("LLI" "L^I"))
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
103 (;; consonants -- 40
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 "k" "kh" "g" "gh" ("~N" "N^")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105 "ch" ("Ch" "chh") "j" "jh" ("~n" "JN")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
106 "T" "Th" "D" "Dh" "N"
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
107 "t" "th" "d" "dh" "n" "nh"
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108 "p" "ph" "b" "bh" "m"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109 "y" "r" "rh" "l" ("L" "ld") nil ("v" "w")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 "sh" ("Sh" "shh") "s" "h"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111 "q" "K" "G" ("J" "z") ".D" ".Dh" "f" ("Y" "yh")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
112 ("GY" "dny") "x")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113 (;; misc -- 7
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
114 ".N" (".n" "M") "H" ".a" ".h" ("AUM" "OM") "..")))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
115
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
116 (defvar indian-kyoto-harvard-table
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
117 '(;; for encode/decode
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
118 (;; vowel
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
119 "a" ("A" "aa") "i" ("I" "ii") "u" ("U" "uu")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
120 "R" ("L" "lR") nil nil "e" "ai"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
121 nil nil "o" "au" ("q" "RR" "Q") ("E" "LL" "lRR"))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
122 (;; consonant
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
123 "k" "kh" "g" "gh" "G"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
124 "c" "ch" "j" "jh" "J"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
125 "T" "Th" "D" "Dh" "N"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
126 "t" "th" "d" "dh" "n" nil
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
127 "p" "ph" "b" "bh" "m"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
128 "y" "r" nil "l" "L" nil "v"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
129 ("z" "Z") "S" "s" "h"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 nil nil nil nil nil nil nil nil
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131 nil nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132 (;; misc
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
133 nil "M" "H" "'" nil "." nil)))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135 (defvar indian-harvard-table
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136 '(;; for encode/decode
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
137 (;; vowel
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138 "a" ("A" "aa") "i" ("I" "ii") "u" ("U" "uu")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
139 "R" ("L" "lR") nil nil "e" "ai"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
140 nil nil "o" "au" ("RR" "q" "Q") ("LL" "E" "lRR"))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
141 (;; consonant
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
142 "k" "kh" "g" "gh" "G"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
143 "c" "ch" "j" "jh" "J"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
144 "T" "Th" "D" "Dh" "N"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
145 "t" "th" "d" "dh" "n" nil
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
146 "p" "ph" "b" "bh" "m"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
147 "y" "r" nil "l" "L" nil "v"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
148 ("z" "Z") "S" "s" "h"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
149 nil nil nil nil nil nil nil nil
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
150 nil nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
151 (;; misc
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
152 nil "M" "H" "'" nil "." nil)))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
153
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
154 (defvar indian-tokyo-table
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
155 '(;; for encode/decode
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
156 (;; vowel
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
157 "a" ("A" "aa") "i" ("I" "ii") "u" ("U" "uu")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
158 "R" ("L" "lR") nil nil "e" "ai"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
159 nil nil "o" "au" ("Q" "RR" "q") ("E" "LL" "lRR"))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
160 (;; consonant
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
161 "k" "kh" "g" "gh" "G"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
162 "c" "ch" "j" "jh" "J"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
163 "T" "Th" "D" "Dh" "N"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
164 "t" "th" "d" "dh" "n" nil
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
165 "p" "ph" "b" "bh" "m"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
166 "y" "r" nil "l" "L" nil "v"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
167 ("Z" "z") "S" "s" "h"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
168 nil nil nil nil nil nil nil nil
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
169 nil nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
170 (;; misc
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
171 nil "M" "H" "'" nil "." nil)))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
172
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
173 (defvar indian-aiba-table
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
174 '(;; for encode/decode
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
175 (;; vowel
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
176 "a" "aa" "i" "ii" "u" "uu"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
177 ".r" ".l" nil nil "e" "ai"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
178 nil nil "o" "au" "~r" "~l")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
179 (;; consonant
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
180 "k" "kh" "g" "gh" "^n"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
181 "c" "ch" "j" "jh" "~n"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
182 ".t" ".th" ".d" ".dh" ".n"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
183 "t" "th" "d" "dh" "n" nil
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
184 "p" "ph" "b" "bh" "m"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
185 "y" "r" nil "l" nil nil "v"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
186 "^s" ".s" "s" "h"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
187 nil nil nil nil nil nil nil nil
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
188 nil nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
189 (;; misc
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
190 nil ".m" ".h" "'" nil "." nil)))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
191
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
192 (defun mapthread (function seq1 &rest seqrest)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
193 "Apply FUNCTION to each element of SEQ1 and return result list.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
194 If there are several SEQRESTs, FUNCTION is called with that many
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
195 arguments, with all possible combinations of these multiple SEQUENCES.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
196 Thus, if SEQ1 contains 3 elements and SEQ2 contains 5 elements, then
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
197 FUNCTION will be called 15 times."
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
198 (if seqrest
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
199 (mapcar
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
200 (lambda (x)
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
201 (apply
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
202 'mapthread
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
203 `(lambda (&rest y) (apply ',function x y))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
204 seqrest))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
205 seq1)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
206 (mapcar function seq1)))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
207
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
208 (defun indian--puthash-char (char trans-char hashtbls)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
209 (let ((encode-hash (car hashtbls)) ;; char -> trans
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
210 (decode-hash (cdr hashtbls)) ;; trans -> char
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
211 )
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
212 ;; char -- nil / char / string (/ list of vowel & matra)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
213 ;; trans-char -- nil / string / list of strings
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
214 (when (and char trans-char)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
215 (if (stringp trans-char) (setq trans-char (list trans-char)))
88620
04b31cd7acc5 Avoid decode-char.
Dave Love <fx@gnu.org>
parents: 42111
diff changeset
216 (if (characterp char) (setq char (char-to-string char)))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
217 (puthash char (car trans-char) encode-hash)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
218 (mapc
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
219 (lambda (trans)
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
220 (puthash trans char decode-hash))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
221 trans-char))))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
222
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
223 (defun indian--map (f l1 l2)
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
224 (while l1
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
225 (funcall f (pop l1) (pop l2))))
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
226
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
227 (defun indian--puthash-v (v trans-v hashtbls)
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
228 (indian--map
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
229 (lambda (v trans-v)
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
230 (indian--puthash-char (car v) trans-v hashtbls))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
231 v trans-v))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
232
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
233 (defun indian--puthash-c (c trans-c halant hashtbls)
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
234 (indian--map
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
235 (lambda (c trans-c)
88620
04b31cd7acc5 Avoid decode-char.
Dave Love <fx@gnu.org>
parents: 42111
diff changeset
236 (if (characterp c) (setq c (char-to-string c)))
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
237 (indian--puthash-char (concat c halant) trans-c hashtbls))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
238 c trans-c))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
239
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
240 (defun indian--puthash-m (m trans-m hashtbls)
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
241 (indian--map
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
242 (lambda (m trans-m)
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
243 (indian--puthash-char m trans-m hashtbls))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
244 m trans-m))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
245
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
246 (defun indian--puthash-cv (c trans-c v trans-v hashtbls)
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
247 (indian--map
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
248 (lambda (c trans-c)
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
249 (indian--map
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
250 (lambda (v trans-v)
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
251 (when (and c trans-c v trans-v)
88620
04b31cd7acc5 Avoid decode-char.
Dave Love <fx@gnu.org>
parents: 42111
diff changeset
252 (if (characterp c) (setq c (char-to-string c)))
04b31cd7acc5 Avoid decode-char.
Dave Love <fx@gnu.org>
parents: 42111
diff changeset
253 (setq v (if (characterp (cadr v)) (char-to-string (cadr v)) ""))
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
254 (if (stringp trans-c) (setq trans-c (list trans-c)))
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
255 (if (stringp trans-v) (setq trans-v (list trans-v)))
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
256 (indian--puthash-char
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
257 (concat c v)
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
258 (apply 'append
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
259 (mapthread 'concat trans-c trans-v))
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
260 hashtbls)))
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
261 v trans-v))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
262 c trans-c))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
263
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
264 (defun indian-make-hash (table trans-table)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
265 "Indian Transliteration Hash for decode/encode"
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
266 (let* ((encode-hash (makehash 'equal))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
267 (decode-hash (makehash 'equal))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
268 (hashtbls (cons encode-hash decode-hash))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
269 (vowels (elt table 0))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
270 (consonants (elt table 1))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
271 (misc (elt table 2))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
272 (digits (elt table 3))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
273 (halant (char-to-string (elt misc 4)))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
274 (trans-vowels (elt trans-table 0))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
275 (trans-consonants (elt trans-table 1))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
276 (trans-misc (elt trans-table 2))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
277 (trans-digits '("0" "1" "2" "3" "4" "5" "6" "7" "8" "9")))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
278 (indian--puthash-v vowels trans-vowels hashtbls)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
279 (indian--puthash-c consonants trans-consonants halant hashtbls)
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
280 (indian--puthash-cv consonants trans-consonants
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
281 vowels trans-vowels hashtbls)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
282 (indian--puthash-m misc trans-misc hashtbls)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
283 (indian--puthash-m digits trans-digits hashtbls)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
284 hashtbls))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
285
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
286 (defvar indian-dev-itrans-v5-hash
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
287 (indian-make-hash indian-dev-base-table
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
288 indian-itrans-v5-table))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
289 (defvar indian-dev-kyoto-harvard-hash
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
290 (indian-make-hash indian-dev-base-table
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
291 indian-kyoto-harvard-table))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
292 (defvar indian-dev-aiba-hash
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
293 (indian-make-hash indian-dev-base-table
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
294 indian-aiba-table))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
295
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
296 )
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
297
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
298 (defmacro indian-translate-region (from to hashtable encode-p)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
299 `(save-excursion
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
300 (save-restriction
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
301 (let ((regexp ,(indian-regexp-of-hashtbl-keys
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
302 (if encode-p (car (eval hashtable))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
303 (cdr (eval hashtable))))))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
304 (narrow-to-region from to)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
305 (goto-char (point-min))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
306 (while (re-search-forward regexp nil t)
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
307 (let ((matchstr (gethash (match-string 0)
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
308 (if ,encode-p
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
309 (car ,hashtable)
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
310 (cdr ,hashtable)))))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
311 (if matchstr (replace-match matchstr))))))))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
312
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
313 ;;;
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
314
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
315 (defun indian-dev-itrans-v5-encode-region (from to)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
316 (interactive "r")
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
317 (indian-translate-region
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
318 from to indian-dev-itrans-v5-hash t))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
319
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
320 (defun indian-dev-itrans-v5-decode-region (from to)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
321 (interactive "r")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
322 (indian-translate-region
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
323 from to indian-dev-itrans-v5-hash nil))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
324
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
325 (defun indian-dev-kyoto-harvard-encode-region (from to)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
326 (interactive "r")
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
327 (indian-translate-region
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
328 from to indian-dev-kyoto-harvard-hash t))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
329
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
330 (defun indian-dev-kyoto-harvard-decode-region (from to)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
331 (interactive "r")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
332 (indian-translate-region
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
333 from to indian-dev-kyoto-harvard-hash nil))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
334
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
335 (defun indian-dev-aiba-encode-region (from to)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
336 (interactive "r")
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
337 (indian-translate-region
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
338 from to indian-dev-aiba-hash t))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
339
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
340 (defun indian-dev-aiba-decode-region (from to)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
341 (interactive "r")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
342 (indian-translate-region
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
343 from to indian-dev-aiba-hash nil))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
344
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
345
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
346
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
347
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
348 ;;; IS 13194 utilities
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
349
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
350 ;; The following provide conversion between IS 13194 (ISCII) and UCS.
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
351
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
352 (defvar is13194-default-repertory 'devanagari)
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
353
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
354 (defvar is13194-repertory-to-ucs-script
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
355 `((DEF ?\x40 ,is13194-default-repertory)
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
356 (RMN ?\x41 ,is13194-default-repertory)
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
357 (DEV ?\x42 devanagari)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
358 (BNG ?\x43 bengali)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
359 (TML ?\x44 tamil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
360 (TLG ?\x45 telugu)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
361 (ASM ?\x46 bengali)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
362 (ORI ?\x47 oriya)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
363 (KND ?\x48 kannada)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
364 (MLM ?\x49 malayalam)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
365 (GJR ?\x4a gujarati)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
366 (PNJ ?\x4b gurmukhi)))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
367
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
368 ;; for guiding find-variable function.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
369 (defvar is13194-to-ucs-devanagari-hashtbl nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
370 (defvar is13194-to-ucs-devanagari-regexp nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
371 (defvar is13194-to-ucs-bengali-hashtbl nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
372 (defvar is13194-to-ucs-bengali-regexp nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
373 (defvar is13194-to-ucs-assamese-hashtbl nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
374 (defvar is13194-to-ucs-assamese-regexp nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
375 (defvar is13194-to-ucs-gurmukhi-hashtbl nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
376 (defvar is13194-to-ucs-gurmukhi-regexp nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
377 (defvar is13194-to-ucs-gujarati-hashtbl nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
378 (defvar is13194-to-ucs-gujarati-regexp nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
379 (defvar is13194-to-ucs-oriya-hashtbl nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
380 (defvar is13194-to-ucs-oriya-regexp nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
381 (defvar is13194-to-ucs-tamil-hashtbl nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
382 (defvar is13194-to-ucs-tamil-regexp nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
383 (defvar is13194-to-ucs-telugu-hashtbl nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
384 (defvar is13194-to-ucs-telugu-regexp nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
385 (defvar is13194-to-ucs-malayalam-hashtbl nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
386 (defvar is13194-to-ucs-malayalam-regexp nil)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
387
89110
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
388 (let
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
389 ;;Unicode vs IS13194. Only Devanagari is supported currently.
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
390 ((ucs-devanagari-to-is13194-alist
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
391 '((?\x0900 . "[U+0900]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
392 (?\x0901 . "(5!(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
393 (?\x0902 . "(5"(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
394 (?\x0903 . "(5#(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
395 (?\x0904 . "[U+0904]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
396 (?\x0905 . "(5$(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
397 (?\x0906 . "(5%(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
398 (?\x0907 . "(5&(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
399 (?\x0908 . "(5'(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
400 (?\x0909 . "(5((B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
401 (?\x090a . "(5)(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
402 (?\x090b . "(5*(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
403 (?\x090c . "(5&i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
404 (?\x090d . "(5.(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
405 (?\x090e . "(5+(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
406 (?\x090f . "(5,(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
407 (?\x0910 . "(5-(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
408 (?\x0911 . "(52(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
409 (?\x0912 . "(5/(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
410 (?\x0913 . "(50(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
411 (?\x0914 . "(51(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
412 (?\x0915 . "(53(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
413 (?\x0916 . "(54(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
414 (?\x0917 . "(55(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
415 (?\x0918 . "(56(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
416 (?\x0919 . "(57(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
417 (?\x091a . "(58(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
418 (?\x091b . "(59(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
419 (?\x091c . "(5:(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
420 (?\x091d . "(5;(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
421 (?\x091e . "(5<(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
422 (?\x091f . "(5=(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
423 (?\x0920 . "(5>(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
424 (?\x0921 . "(5?(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
425 (?\x0922 . "(5@(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
426 (?\x0923 . "(5A(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
427 (?\x0924 . "(5B(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
428 (?\x0925 . "(5C(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
429 (?\x0926 . "(5D(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
430 (?\x0927 . "(5E(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
431 (?\x0928 . "(5F(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
432 (?\x0929 . "(5G(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
433 (?\x092a . "(5H(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
434 (?\x092b . "(5I(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
435 (?\x092c . "(5J(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
436 (?\x092d . "(5K(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
437 (?\x092e . "(5L(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
438 (?\x092f . "(5M(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
439 (?\x0930 . "(5O(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
440 (?\x0931 . "(5P(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
441 (?\x0932 . "(5Q(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
442 (?\x0933 . "(5R(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
443 (?\x0934 . "(5S(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
444 (?\x0935 . "(5T(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
445 (?\x0936 . "(5U(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
446 (?\x0937 . "(5V(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
447 (?\x0938 . "(5W(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
448 (?\x0939 . "(5X(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
449 (?\x093a . "[U+093a]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
450 (?\x093b . "[U+093b]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
451 (?\x093c . "(5i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
452 (?\x093d . "(5ji(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
453 (?\x093e . "(5Z(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
454 (?\x093f . "(5[(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
455 (?\x0940 . "(5\(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
456 (?\x0941 . "(5](B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
457 (?\x0942 . "(5^(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
458 (?\x0943 . "(5_(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
459 (?\x0944 . "(5_i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
460 (?\x0945 . "(5c(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
461 (?\x0946 . "(5`(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
462 (?\x0947 . "(5a(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
463 (?\x0948 . "(5b(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
464 (?\x0949 . "(5g(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
465 (?\x094a . "(5d(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
466 (?\x094b . "(5e(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
467 (?\x094c . "(5f(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
468 (?\x094d . "(5h(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
469 (?\x094e . "[U+094e]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
470 (?\x094f . "[U+094f]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
471 (?\x0950 . "(5!i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
472 (?\x0951 . "(5p5(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
473 (?\x0952 . "(5p8(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
474 (?\x0953 . "[DEVANAGARI GRAVE ACCENT]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
475 (?\x0954 . "[DEVANAGARI ACUTE ACCENT]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
476 (?\x0955 . "[U+0955]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
477 (?\x0956 . "[U+0956]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
478 (?\x0957 . "[U+0957]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
479 (?\x0958 . "(53i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
480 (?\x0959 . "(54i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
481 (?\x095a . "(55i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
482 (?\x095b . "(5:i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
483 (?\x095c . "(5?i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
484 (?\x095d . "(5@i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
485 (?\x095e . "(5Ii(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
486 (?\x095f . "(5N(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
487 (?\x0960 . "(5*i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
488 (?\x0961 . "(5'i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
489 (?\x0962 . "(5[i(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
490 (?\x0963 . "(5ei(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
491 (?\x0964 . "(5j(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
492 (?\x0965 . "(5jj(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
493 (?\x0966 . "(5q(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
494 (?\x0967 . "(5r(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
495 (?\x0968 . "(5s(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
496 (?\x0969 . "(5t(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
497 (?\x096a . "(5u(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
498 (?\x096b . "(5v(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
499 (?\x096c . "(5w(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
500 (?\x096d . "(5x(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
501 (?\x096e . "(5y(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
502 (?\x096f . "(5z(B")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
503 (?\x0970 . "[U+0970]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
504 (?\x0971 . "[U+0971]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
505 (?\x0972 . "[U+0972]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
506 (?\x0973 . "[U+0973]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
507 (?\x0974 . "[U+0974]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
508 (?\x0975 . "[U+0975]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
509 (?\x0976 . "[U+0976]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
510 (?\x0977 . "[U+0977]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
511 (?\x0978 . "[U+0978]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
512 (?\x0979 . "[U+0979]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
513 (?\x097a . "[U+097a]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
514 (?\x097b . "[U+097b]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
515 (?\x097c . "[U+097c]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
516 (?\x097d . "[U+097d]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
517 (?\x097e . "[U+097e]")
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
518 (?\x097f . "[U+097f]")))
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
519 (ucs-bengali-to-is13194-alist nil)
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
520 (ucs-assamese-to-is13194-alist nil)
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
521 (ucs-gurmukhi-to-is13194-alist nil)
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
522 (ucs-gujarati-to-is13194-alist nil)
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
523 (ucs-oriya-to-is13194-alist nil)
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
524 (ucs-tamil-to-is13194-alist nil)
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
525 (ucs-telugu-to-is13194-alist nil)
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
526 (ucs-malayalam-to-is13194-alist nil))
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
527 (dolist (script '(devanagari bengali assamese gurmukhi gujarati
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
528 oriya tamil telugu malayalam))
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
529 (let ((hashtable (intern (concat "is13194-to-ucs-"
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
530 (symbol-name script) "-hashtbl" )))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
531 (regexp (intern (concat "is13194-to-ucs-"
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
532 (symbol-name script) "-regexp"))))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
533 (set hashtable (make-hash-table :test 'equal :size 128))
89110
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
534 (dolist (x (eval (intern (concat "ucs-" (symbol-name script)
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
535 "-to-is13194-alist"))))
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
536 (put-char-code-property (car x) 'script script)
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
537 (put-char-code-property (car x) 'iscii (cdr x))
baa9de960667 (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 89106
diff changeset
538 (puthash (cdr x) (char-to-string (car x)) (eval hashtable)))
42060
f3b460667d31 (range): Function deleted.
Richard M. Stallman <rms@gnu.org>
parents: 42056
diff changeset
539 (set regexp (indian-regexp-of-hashtbl-keys (eval hashtable))))))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
540
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
541 (defvar ucs-to-is13194-regexp
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
542 ;; only Devanagari is supported now.
88620
04b31cd7acc5 Avoid decode-char.
Dave Love <fx@gnu.org>
parents: 42111
diff changeset
543 (concat "[" (char-to-string #x0900)
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
544 "-" (char-to-string #x097f) "]")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
545 "Regexp that matches to conversion")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
546
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
547 (defun ucs-to-iscii-region (from to)
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
548 "Converts the indian UCS characters in the region to ISCII.
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
549 Returns new end position."
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
550 (interactive "r")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
551 ;; only Devanagari is supported now.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
552 (save-excursion
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
553 (save-restriction
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
554 (narrow-to-region from to)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
555 (goto-char (point-min))
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
556 (let* ((current-repertory is13194-default-repertory))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
557 (while (re-search-forward ucs-to-is13194-regexp nil t)
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
558 (replace-match
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
559 (get-char-code-property (string-to-char (match-string 0))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
560 'iscii))))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
561 (point-max))))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
562
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
563 (defun iscii-to-ucs-region (from to)
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
564 "Converts the ISCII characters in the region to UCS.
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
565 Returns new end position."
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
566 (interactive "r")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
567 ;; only Devanagari is supported now.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
568 (save-excursion
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
569 (save-restriction
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
570 (narrow-to-region from to)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
571 (goto-char (point-min))
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
572 (let* ((current-repertory is13194-default-repertory)
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
573 (current-hashtable
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
574 (intern (concat "is13194-to-ucs-"
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
575 (symbol-name current-repertory) "-hashtbl")))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
576 (current-regexp
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
577 (intern (concat "is13194-to-ucs-"
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
578 (symbol-name current-repertory) "-regexp")))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
579 (re (eval current-regexp))
89106
4b0c0e0d0458 (iscii-to-ucs-region): Fix typo.
Dave Love <fx@gnu.org>
parents: 89094
diff changeset
580 (hash (eval current-hashtable)))
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
581 (while (re-search-forward re nil t)
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
582 (replace-match (gethash (match-string 0) hash ""))))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
583 (point-max))))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
584
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
585 ;;;###autoload
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
586 (defun indian-compose-region (from to)
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
587 "Compose the region according to `composition-function-table'."
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
588 (interactive "r")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
589 (save-excursion
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
590 (save-restriction
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
591 (let ((pos from) newpos func (max to))
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
592 (narrow-to-region from to)
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
593 (while (< pos max)
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
594 (setq func (aref composition-function-table (char-after pos)))
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
595 (if (fboundp func)
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
596 (setq newpos (funcall func pos nil)
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
597 pos (if (and (integerp newpos) (> newpos pos))
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
598 newpos (1+ pos)))
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
599 (setq pos (1+ pos))))))))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
600
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
601 ;;;###autoload
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
602 (defun indian-compose-string (string)
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
603 (with-temp-buffer
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
604 (insert string)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
605 (indian-compose-region (point-min) (point-max))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
606 (buffer-string)))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
607
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
608 ;;;###autoload
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
609 (defun in-is13194-post-read-conversion (len)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
610 (let ((pos (point)) endpos)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
611 (setq endpos (iscii-to-ucs-region pos (+ pos len)))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
612 (indian-compose-region pos endpos)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
613 (- endpos pos)))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
614
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
615 ;;;###autoload
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
616 (defun in-is13194-pre-write-conversion (from to)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
617 (let ((buf (current-buffer)))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
618 (set-buffer (generate-new-buffer " *temp*"))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
619 (if (stringp from)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
620 (insert from)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
621 (insert-buffer-substring buf from to))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
622 (ucs-to-iscii-region (point-min) (point-max))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
623 nil))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
624
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
625
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
626
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
627
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
628 ;;; Backward Compatibility support programs
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
629
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
630 ;; The following provides the conversion from old-implementation of
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
631 ;; Emacs Devanagari script to UCS.
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
632
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
633 (defconst indian-2-colum-to-ucs
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
634 '(
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
635 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
636 ;;2120 $(6!!!"!#!$!%!&!'!(!)!*!+!,!-!.!/(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
637 ("$(6!!(B" . "$,15A(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
638 ("$(6!"(B" . "$,15B(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
639 ("$(6!#(B" . "$,15C(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
640 ("$(6!$(B" . "$,15E(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
641 ("$(6!%(B" . "$,15F(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
642 ("$(6!&(B" . "$,15G(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
643 ("$(6!'(B" . "$,15H(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
644 ("$(6!((B" . "$,15I(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
645 ("$(6!)(B" . "$,15J(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
646 ("$(6!*(B" . "$,15K(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
647 ("$(6!*"p(B" . "$,15p6#(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
648 ("$(6!+(B" . "$,15N(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
649 ("$(6!,(B" . "$,15O(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
650 ("$(6!-(B" . "$,15P(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
651 ("$(6!.(B" . "$,15M(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
652 ("$(6!/(B" . "$,15R(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
653 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
654 ;;2130 $(6!0!1!2!3!4!5!6!7!8!9!:!;!<!=!>!?(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
655 ("$(6!0(B" . "$,15S(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
656 ("$(6!1(B" . "$,15T(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
657 ("$(6!2(B" . "$,15Q(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
658 ("$(6!3(B" . "$,15U(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
659 ("$(6!4(B" . "$,15V(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
660 ("$(6!5(B" . "$,15W(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
661 ("$(6!6(B" . "$,15X(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
662 ("$(6!7(B" . "$,15Y(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
663 ("$(6!8(B" . "$,15Z(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
664 ("$(6!9(B" . "$,15[(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
665 ("$(6!:(B" . "$,15\(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
666 ("$(6!;(B" . "$,15](B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
667 ("$(6!<(B" . "$,15^(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
668 ("$(6!=(B" . "$,15_(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
669 ("$(6!>(B" . "$,15`(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
670 ("$(6!?(B" . "$,15a(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
671 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
672 ;;2140 $(6!@!A!B!C!D!E!F!G!H!I!J!K!L!M!N!O(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
673 ("$(6!@(B" . "$,15b(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
674 ("$(6!A(B" . "$,15c(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
675 ("$(6!B(B" . "$,15d(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
676 ("$(6!C(B" . "$,15e(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
677 ("$(6!D(B" . "$,15f(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
678 ("$(6!E(B" . "$,15g(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
679 ("$(6!F(B" . "$,15h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
680 ("$(6!G(B" . "$,15i(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
681 ("$(6!H(B" . "$,15j(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
682 ("$(6!I(B" . "$,15k(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
683 ("$(6!J(B" . "$,15l(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
684 ("$(6!K(B" . "$,15m(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
685 ("$(6!L(B" . "$,15n(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
686 ("$(6!M(B" . "$,15o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
687 ("$(6!N(B" . "$,16?(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
688 ("$(6!O(B" . "$,15p(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
689 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
690 ;;2150 $(6!P!Q!R!S!T!U!V!W!X!Y!Z![!\!]!^!_(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
691 ("$(6!P(B" . "$,15q(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
692 ("$(6!Q(B" . "$,15r(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
693 ("$(6!R(B" . "$,15s(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
694 ("$(6!S(B" . "$,15t(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
695 ("$(6!T(B" . "$,15u(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
696 ("$(6!U(B" . "$,15v(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
697 ("$(6!V(B" . "$,15w(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
698 ("$(6!W(B" . "$,15x(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
699 ("$(6!X(B" . "$,15y(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
700 ("$(6!Z(B" . "$,15~(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
701 ("$(6![(B" . "$,15(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
702 ("$(6!\(B" . "$,16 (B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
703 ("$(6!](B" . "$,16!(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
704 ("$(6!^(B" . "$,16"(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
705 ("$(6!_(B" . "$,16#(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
706 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
707 ;;2160 $(6!`!a!b!c!d!e!f!g!h!i!j!k!l!m!n!o(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
708 ("$(6!`(B" . "$,16&(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
709 ("$(6!a(B" . "$,16'(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
710 ("$(6!b(B" . "$,16((B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
711 ("$(6!c(B" . "$,16%(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
712 ("$(6!d(B" . "$,16*(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
713 ("$(6!e(B" . "$,16+(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
714 ("$(6!f(B" . "$,16,(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
715 ("$(6!g(B" . "$,16)(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
716 ("$(6!h(B" . "$,16-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
717 ("$(6!i(B" . "$,15|(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
718 ("$(6!j(B" . "$,16D(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
719 ("$(6!j!j(B" . "$,16E(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
720 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
721 ;;2170 $(6!p!q!r!s!t!u!v!w!x!y!z!{!|!}!~(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
722 ("$(6!q(B" . "$,16F(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
723 ("$(6!r(B" . "$,16G(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
724 ("$(6!s(B" . "$,16H(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
725 ("$(6!t(B" . "$,16I(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
726 ("$(6!u(B" . "$,16J(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
727 ("$(6!v(B" . "$,16K(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
728 ("$(6!w(B" . "$,16L(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
729 ("$(6!x(B" . "$,16M(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
730 ("$(6!y(B" . "$,16N(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
731 ("$(6!z(B" . "$,16O(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
732 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
733 ;;2220 $(6"!"""#"$"%"&"'"(")"*"+","-"."/(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
734 ("$(6"!(B" . "$,16;6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
735 ("$(6""(B" . "$,16>6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
736 ("$(6"#(B" . "$,15U6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
737 ("$(6"$(B" . "$,15W6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
738 ("$(6"%(B" . "$,15d6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
739 ("$(6"&(B" . "$,15j6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
740 ("$(6"'(B" . "$,15k6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
741 ("$(6")(B" . "$,15v6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
742 ("$(6",(B" . "$,15p6!(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
743 ("$(6"-(B" . "$,15p6"(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
744 ("$(6".(B" . "$,15q6!(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
745 ("$(6"/(B" . "$,15q6"(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
746 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
747 ;;2230 $(6"0"1"2"3"4"5"6"7"8"9":";"<"=">"?(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
748 ("$(6"3(B" . "$,15U6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
749 ("$(6"4(B" . "$,15V6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
750 ("$(6"5(B" . "$,15W6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
751 ("$(6"6(B" . "$,15X6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
752 ("$(6"8(B" . "$,15Z6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
753 ("$(6"8"q(B" . "$,15Z6-5p6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
754 ("$(6":(B" . "$,15\6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
755 ("$(6";(B" . "$,15]6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
756 ("$(6"<(B" . "$,15^6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
757 ("$(6"<(B" . "$,15^6-(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
758 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
759 ;;2240 $(6"@"A"B"C"D"E"F"G"H"I"J"K"L"M"N"O(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
760 ("$(6"A(B" . "$,15c6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
761 ("$(6"B(B" . "$,15d6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
762 ("$(6"C(B" . "$,15e6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
763 ("$(6"E(B" . "$,15g6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
764 ("$(6"F(B" . "$,15h6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
765 ("$(6"G(B" . "$,15i6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
766 ("$(6"H(B" . "$,15j6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
767 ("$(6"I(B" . "$,15k6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
768 ("$(6"J(B" . "$,15l6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
769 ("$(6"J(B" . "$,15l6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
770 ("$(6"K(B" . "$,15m6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
771 ("$(6"L(B" . "$,15n6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
772 ("$(6"M(B" . "$,15o6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
773 ("$(6"N(B" . "$,16?6-(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
774 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
775 ;;2250 $(6"P"Q"R"S"T"U"V"W"X"Y"Z"["\"]"^"_(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
776 ("$(6"Q(B" . "$,15r6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
777 ("$(6"R(B" . "$,15s6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
778 ("$(6"S(B" . "$,15t6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
779 ("$(6"T(B" . "$,15u6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
780 ("$(6"U(B" . "$,15v6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
781 ("$(6"V(B" . "$,15w6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
782 ("$(6"W(B" . "$,15x6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
783 ("$(6"](B" . "$,16-5o(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
784 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
785 ;;2260 $(6"`"a"b"c"d"e"f"g"h"i"j"k"l"m"n"o(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
786 ("$(6"`(B" . "$,15W6-5p6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
787 ("$(6"a(B" . "$,15X6-5h6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
788 ("$(6"c(B" . "$,15d6-5d6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
789 ("$(6"d(B" . "$,15d6-5p6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
790 ("$(6"e(B" . "$,15g6-5h6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
791 ("$(6"f(B" . "$,15g6-5p6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
792 ("$(6"g(B" . "$,15j6-5d6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
793 ("$(6"h(B" . "$,15v6-5Z6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
794 ("$(6"i(B" . "$,15v6-5p6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
795 ("$(6"j(B" . "$,15v6-5u6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
796 ("$(6"k(B" . "$,15h6-5h6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
797 ("$(6"l(B" . "$,15U6-5w6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
798 ("$(6"m(B" . "$,15\6-5^6-(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
799 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
800 ;;2270 $(6"p"q"r"s"t"u"v"w"x"y"z"{"|"}"~(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
801 ("$(6"p(B" . "$,15p6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
802 ("$(6"q(B" . "$,16-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
803 ("$(6"r(B" . "$,16-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
804 ("$(6"s(B" . "$,1686-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
805 ("$(6"t(B" . "$,1696-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
806 ("$(6"u(B" . "$,16:6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
807 ("$(6"y(B" . "$,16>6-(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
808 ("$(6"z(B" . "$,16;6-(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
809 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
810 ;;2320 $(6#!#"###$#%#&#'#(#)#*#+#,#-#.#/(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
811 ("$(6#!(B" . "$,160(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
812 ("$(6#&(B" . "$,15L(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
813 ("$(6#&"p(B" . "$,15p6$(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
814 ("$(6#'(B" . "$,16A(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
815 ("$(6#'"p(B" . "$,15p6C(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
816 ("$(6#*(B" . "$,16@(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
817 ("$(6#*"p(B" . "$,15p6B(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
818 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
819 ;;2330 $(6#0#1#2#3#4#5#6#7#8#9#:#;#<#=#>#?(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
820 ("$(6#3(B" . "$,168(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
821 ("$(6#4(B" . "$,169(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
822 ("$(6#5(B" . "$,16:(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
823 ("$(6#:(B" . "$,16;(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
824 ("$(6#?(B" . "$,16<(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
825 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
826 ;;2340 $(6#@#A#B#C#D#E#F#G#H#I#J#K#L#M#N#O(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
827 ("$(6#@(B" . "$,16=(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
828 ("$(6#I(B" . "$,16>(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
829 ("$(6#J(B" . "$,15}(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
830 ("$(6#K(B" . "$,16$(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
831 ("$(6#L(B" . "$,16B(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
832 ("$(6#M(B" . "$,16C(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
833 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
834 ;;2350 $(6#P#Q#R#S#T#U#V#W#X#Y#Z#[#\#]#^#_(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
835 ("$(6#P(B" . "$,15n6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
836 ("$(6#Q(B" . "$,15n6-5r(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
837 ("$(6#R(B" . "$,15y6#(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
838 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
839 ;;2360 $(6#`#a#b#c#d#e#f#g#h#i#j#k#l#m#n#o(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
840 ("$(6#`(B" . "$,15r6-5r(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
841 ("$(6#a(B" . "$,15u6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
842 ("$(6#b(B" . "$,15u6-5u(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
843 ("$(6#c(B" . "$,15v6-5Z(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
844 ("$(6#d(B" . "$,15v6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
845 ("$(6#e(B" . "$,15v6-5l(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
846 ("$(6#f(B" . "$,15v6-5r(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
847 ("$(6#g(B" . "$,15v6-5u(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
848 ("$(6#h(B" . "$,15w6-5_6-5p6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
849 ("$(6#i(B" . "$,15w6-5_6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
850 ("$(6#j(B" . "$,15w6-5_6-5u(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
851 ("$(6#k(B" . "$,15w6-5_(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
852 ("$(6#l(B" . "$,15w6-5`(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
853 ("$(6#m(B" . "$,15x6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
854 ("$(6#n(B" . "$,15x6-5p(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
855 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
856 ;;2370 $(6#p#q#r#s#t#u#v#w#x#y#z#{#|#}#~(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
857 ("$(6#p(B" . "$,15y6-5c(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
858 ("$(6#q(B" . "$,15y6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
859 ("$(6#r(B" . "$,15y6-5n(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
860 ("$(6#s(B" . "$,15y6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
861 ("$(6#t(B" . "$,15y6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
862 ("$(6#u(B" . "$,15y6-5r(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
863 ("$(6#v(B" . "$,15y6-5u(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
864 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
865 ;;2420 $(6$!$"$#$$$%$&$'$($)$*$+$,$-$.$/(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
866 ("$(6$!(B" . "$,15U6-5d6-5p6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
867 ("$(6$"(B" . "$,15U6-5d6-5u(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
868 ("$(6$#(B" . "$,15U6-5d6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
869 ("$(6$$(B" . "$,15U6-5h6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
870 ("$(6$%(B" . "$,15U6-5p6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
871 ("$(6$&(B" . "$,15U6-5u6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
872 ("$(6$'(B" . "$,15U6-5U(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
873 ("$(6$((B" . "$,15U6-5d(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
874 ("$(6$)(B" . "$,15U6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
875 ("$(6$*(B" . "$,15U6-5n(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
876 ("$(6$+(B" . "$,15U6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
877 ("$(6$,(B" . "$,15U6-5r(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
878 ("$(6$-(B" . "$,15U6-5u(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
879 ("$(6$.(B" . "$,15U6-5w(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
880 ("$(6$/(B" . "$,15X6-5h(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
881 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
882 ;;2430 $(6$0$1$2$3$4$5$6$7$8$9$:$;$<$=$>$?(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
883 ("$(6$0(B" . "$,15Y6-5U6-5d6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
884 ("$(6$1(B" . "$,15Y6-5U6-5w6-5u(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
885 ("$(6$2(B" . "$,15Y6-5U6-5d(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
886 ("$(6$3(B" . "$,15Y6-5U6-5w(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
887 ("$(6$4(B" . "$,15Y6-5X6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
888 ("$(6$5(B" . "$,15Y6-5U6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
889 ("$(6$6(B" . "$,15Y6-5V6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
890 ("$(6$7(B" . "$,15Y6-5W6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
891 ("$(6$8(B" . "$,15Y6-5X6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
892 ("$(6$9(B" . "$,15Y6-5U(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
893 ("$(6$:(B" . "$,15Y6-5V(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
894 ("$(6$;(B" . "$,15Y6-5W(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
895 ("$(6$<(B" . "$,15Y6-5X(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
896 ("$(6$=(B" . "$,15Y6-5Y(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
897 ("$(6$>(B" . "$,15Y6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
898 ("$(6$?(B" . "$,15Y6-5n(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
899 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
900 ;;2440 $(6$@$A$B$C$D$E$F$G$H$I$J$K$L$M$N$O(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
901 ("$(6$@(B" . "$,15Y6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
902 ("$(6$A(B" . "$,15Z6-5Z(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
903 ("$(6$B(B" . "$,15Z6-5^(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
904 ("$(6$C(B" . "$,15[6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
905 ("$(6$D(B" . "$,15\6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
906 ("$(6$E(B" . "$,15\6-5^(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
907 ("$(6$F(B" . "$,15^6-5Z(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
908 ("$(6$G(B" . "$,15^6-5\(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
909 ("$(6$H(B" . "$,15_6-5U(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
910 ("$(6$I(B" . "$,15_6-5_(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
911 ("$(6$J(B" . "$,15_6-5`(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
912 ("$(6$K(B" . "$,15_6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
913 ("$(6$L(B" . "$,15`6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
914 ("$(6$M(B" . "$,15a6-5W6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
915 ("$(6$N(B" . "$,15a6-5X6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
916 ("$(6$O(B" . "$,15a6-5p6-5o(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
917 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
918 ;;2450 $(6$P$Q$R$S$T$U$V$W$X$Y$Z$[$\$]$^$_(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
919 ("$(6$P(B" . "$,15a6-5W(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
920 ("$(6$Q(B" . "$,15a6-5X(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
921 ("$(6$R(B" . "$,15a6-5a(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
922 ("$(6$S(B" . "$,15a6-5n(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
923 ("$(6$T(B" . "$,15a6-5o(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
924 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
925 ;;2460 $(6$`$a$b$c$d$e$f$g$h$i$j$k$l$m$n$o(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
926 ("$(6$`(B" . "$,15b6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
927 ("$(6$a(B" . "$,15d6-5d(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
928 ("$(6$b(B" . "$,15d6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
929 ("$(6$c(B" . "$,15f6-5f6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
930 ("$(6$d(B" . "$,15f6-5g6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
931 ("$(6$e(B" . "$,15f6-5m6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
932 ("$(6$f(B" . "$,15f6-5p6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
933 ("$(6$g(B" . "$,15f6-5u6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
934 ("$(6$h(B" . "$,15f6-5W6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
935 ("$(6$i(B" . "$,15f6-5X6-5p(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
936 ("$(6$j(B" . "$,15f6-5f6-5u(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
937 ("$(6$k(B" . "$,15f6-5g6-5u(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
938 ("$(6$l(B" . "$,15f6-5W(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
939 ("$(6$m(B" . "$,15f6-5X(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
940 ("$(6$n(B" . "$,15f6-5f(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
941 ("$(6$o(B" . "$,15f6-5g(B")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
942 ;; 0 1 2 3 4 5 6 7 8 9 a b c d e f
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
943 ;;2470 $(6$p$q$r$s$t$u$v$w$x$y$z${$|$}$~(B
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
944 ("$(6$p(B" . "$,15f6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
945 ("$(6$q(B" . "$,15f6-5l(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
946 ("$(6$r(B" . "$,15f6-5m(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
947 ("$(6$s(B" . "$,15f6-5n(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
948 ("$(6$t(B" . "$,15f6-5o(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
949 ("$(6$u(B" . "$,15f6-5u(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
950 ("$(6$v(B" . "$,15g6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
951 ("$(6$w(B" . "$,15h6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
952 ("$(6$x(B" . "$,15j6-5d(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
953 ("$(6$y(B" . "$,15j6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
954 ("$(6$z(B" . "$,15j6-5r(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
955 ("$(6${(B" . "$,15l6-5h(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
956 ("$(6$|(B" . "$,15l6-5l(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
957 ("$(6$}(B" . "$,15l6-5u(B")
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
958 ("$(6$~(B" . "$,15m6-5h(B")))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
959
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
960 (defconst indian-2-column-to-ucs-regexp
89298
e1d0641b8107 (indian-compose-region): Don't call
Kenichi Handa <handa@m17n.org>
parents: 89262
diff changeset
961 "$(6!j!j(B\\|$(6"8"q(B\\|[$(6#&#'!*#*(B]$(6"p(B\\|[$(6!!(B-$(6$~(B]")
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
962
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
963 (put 'indian-2-column-to-ucs-chartable 'char-table-extra-slots 1)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
964 (defconst indian-2-column-to-ucs-chartable
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
965 (let ((table (make-char-table 'indian-2-column-to-ucs-chartable))
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
966 (alist nil))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
967 (dolist (elt indian-2-colum-to-ucs)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
968 (if (= (length (car elt)) 1)
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
969 (aset table (aref (car elt) 0) (cdr elt))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
970 (setq alist (cons elt alist))))
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
971 (set-char-table-extra-slot table 0 alist)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
972 table))
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
973
89262
17709000b5f0 (indian-2-column-to-ucs-region): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents: 89110
diff changeset
974 ;;;###autoload
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
975 (defun indian-2-column-to-ucs-region (from to)
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
976 "Convert old Emacs Devanagari characters to UCS."
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
977 (interactive "r")
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
978 (save-excursion
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
979 (save-restriction
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
980 (let ((pos from)
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
981 (alist (char-table-extra-slot indian-2-column-to-ucs-chartable 0)))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
982 (narrow-to-region from to)
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
983 (decompose-region from to)
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
984 (goto-char (point-min))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
985 (while (re-search-forward indian-2-column-to-ucs-regexp nil t)
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
986 (let ((len (- (match-end 0) (match-beginning 0)))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
987 subst)
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
988 (if (= len 1)
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
989 (setq subst (aref indian-2-column-to-ucs-chartable
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
990 (char-after (match-beginning 0))))
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
991 (setq subst (assoc (match-string 0) alist)))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
992 (replace-match (if subst subst "?"))))
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
993 (indian-compose-region (point-min) (point-max))))))
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
994
89094
4ff0e9aff188 (ucs-devanagari-to-is13194-alist)
Dave Love <fx@gnu.org>
parents: 88620
diff changeset
995 (provide 'ind-util)
42056
6ef6e34cdba4 Don't require cl.
Dave Love <fx@gnu.org>
parents: 41470
diff changeset
996
41470
a43bf477cba7 New file.
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
997 ;;; ind-util.el ends here