annotate lisp/language/devan-util.el @ 21823:a23ded020234

(HAVE_MOTIF_2_1): Add for consistency with config.in. (RE_TRANSLATE_P): New macro.
author Geoff Voelker <voelker@cs.washington.edu>
date Wed, 29 Apr 1998 04:31:34 +0000
parents b598d28da979
children 901451c61b3f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1 ;;; devan-util.el --- Support for Devanagari Script Composition
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
2
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
3 ;; Copyright (C) 1996 Free Software Foundation, Inc.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
4
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
5 ;; Author: KAWABATA, Taichi <kawabata@is.s.u-tokyo.ac.jp>
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
6
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
7 ;; Keywords: multilingual, Indian, Devanagari
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
8
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
9 ;; This file is part of GNU Emacs.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
10
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
12 ;; it under the terms of the GNU General Public License as published by
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
14 ;; any later version.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
15
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
16 ;; GNU Emacs is distributed in the hope that it will be useful,
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
19 ;; GNU General Public License for more details.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
20
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
17314
f438ebf1c679 Fix FSF address in comment.
Kenichi Handa <handa@m17n.org>
parents: 17300
diff changeset
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
f438ebf1c679 Fix FSF address in comment.
Kenichi Handa <handa@m17n.org>
parents: 17300
diff changeset
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
f438ebf1c679 Fix FSF address in comment.
Kenichi Handa <handa@m17n.org>
parents: 17300
diff changeset
24 ;; Boston, MA 02111-1307, USA.
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
25
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
26 ;;; Commentary:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
27
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
28 ;; History:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
29 ;; 1996.10.18 written by KAWABATA, Taichi <kawabata@is.s.u-tokyo.ac.jp>
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
30 ;; 1997.3.24 fixed some bugs.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
31
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
32 ;; Future work ::
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
33 ;; Decompose the input characters and process them on the character basis.
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
34
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
35 ;; Devanagari script composition rules and related programs.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
36
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
37 ;;; Code:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
38
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
39 ;;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
40 ;;; Steps toward composition of Devanagari Characters.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
41 ;;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
42
17993
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17850
diff changeset
43 ;;;###autoload
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17850
diff changeset
44 (defun setup-devanagari-environment ()
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17850
diff changeset
45 "Setup multilingual environment (MULE) for languages using Devanagari."
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17850
diff changeset
46 (interactive)
20737
df8fab27273f In setup-LANGUAGE-environment functions, adjust for the change of
Kenichi Handa <handa@m17n.org>
parents: 20111
diff changeset
47 (setup-8-bit-environment "Devanagari" nil "devanagari-itrans"))
17993
73869115ae0a Most of setup-LANGUAGE-environment functions are
Kenichi Handa <handa@m17n.org>
parents: 17850
diff changeset
48
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
49 ;;; Basic functions.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
50
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
51 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
52 (defun indian-to-devanagari (ch)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
53 "Convert IS 13194 characters to Devanagari basic characters."
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
54 (let ((charcodes (split-char ch)))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
55 (if (eq (car charcodes) 'indian-is13194)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
56 (make-char 'indian-2-column ?\x21 (nth 1 charcodes))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
57 ch)))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
58
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
59 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
60 (defun devanagari-to-indian (ch)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
61 "Convert Devanagari basic characters to IS 13194 characters."
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
62 (let* ((charcodes (split-char ch))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
63 (charset (car charcodes))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
64 (code-h (car (cdr charcodes))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
65 (if (and (eq (car charcodes) 'indian-2-column)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
66 (= (nth 1 charcodes) ?\x21))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
67 (make-char 'indian-is13194 (nth 2 charcodes))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
68 ch)))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
69
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
70 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
71 (defun indian-to-devanagari-region (from to)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
72 "Convert IS 13194 characters in region to Devanagari basic characters."
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
73 (interactive "r")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
74 (save-restriction
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
75 (narrow-to-region from to)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
76 (goto-char (point-min))
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
77 ; (while (re-search-forward "\\cd" nil t)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
78 (while (re-search-forward "." nil t)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
79 (let* ((devanagari-char (indian-to-devanagari (preceding-char))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
80 (delete-char -1)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
81 (insert devanagari-char)))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
82
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
83 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
84 (defun devanagari-to-indian-region (from to)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
85 "Convert Devanagari basic characters in region to Indian characters."
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
86 (interactive "r")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
87 (save-restriction
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
88 (narrow-to-region from to)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
89 (goto-char (point-min))
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
90 ; (while (re-search-forward "\\cD" nil t) ; Devanagari Character Code.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
91 (while (re-search-forward "." nil t)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
92 (let* ((indian-char (devanagari-to-indian (preceding-char))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
93 (delete-char -1)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
94 (insert indian-char)))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
95
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
96 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
97 (defun indian-to-devanagari-string (str)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
98 "Convert Indian String to Devanagari Basic Character String."
20839
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
99 (let* ((len (length str))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
100 (i 0)
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
101 (vec (make-vector len 0)))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
102 (while (< i len)
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
103 (aset vec i (indian-to-devanagari (aref str i)))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
104 (setq i (1+ i)))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
105 (concat vec)))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
106
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
107 ;; Phase 0 - Determine whether the characters can be composed.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
108 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
109 ;;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
110 ;;; Regular expressions to split characters for composition.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
111 ;;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
112 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
113 ;; Indian script word contains one or more syllables.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
114 ;; In BNF, it can be expressed as follows:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
115 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
116 ;; Word ::= {Syllable} [Cons-Syllable]
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
117 ;; Syllable ::= Cons-Vowel-Syllable | Vowel-Syllable
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
118 ;; Vowel-Syllable ::= V[D]
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
119 ;; Cons-Vowel-Syllable ::= [Cons-Syllable] Full-Cons [M] [D]
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
120 ;; Cons-Syllable ::= [Pure-Cons] [Pure-Cons] [Pure-Cons] Pure-Cons
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
121 ;; Pure-Cons ::= Full-Cons H
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
122 ;; Full-Cons ::= C [N]
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
123 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
124 ;; {} repeat, [] optional
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
125 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
126 ;; C - Consonant ($(5!3!4!5!6!7!8!9!:!;!<!=!>!?!@!A!B!C!D!E(B
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
127 ;; $(5!F!G!H!I!J!K!L!M!N!O!P!Q!R!S!T!U!V!W!X(B)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
128 ;; N - Nukta ($(5!i(B)
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
129 ;; H - Halant($(5!h(B) or Virama
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
130 ;; V - Vowel ($(5!$!%!&!'!(!)!*!+!,!-!.!/!0!1!2#&#'#*(B)
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
131 ;; ("$(5#&#'#*(B" can be obtained by IS13194 vowels with nukta.)
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
132 ;; D - Vowel Modifiers, i.e. Anuswar, Chandrabindu ($(5!!!"(B)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
133 ;; (Visaraga ($(5!#(B) is excluded.)
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
134 ;; M - Matra ($(5!Z![!\!]!^!_!`!a!b!c!d!e!f!g#K#L#M(B)
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
135 ;; ("$(5#K#L#M(B" can be obtained by IS13194 matras with nukta.)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
136 ;;
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
137 ;; In Emacs, one syllable of Indian language is considered to be one
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
138 ;; composite glyph. If we expand the above expression for
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
139 ;; cons-vowel-syllable, it would be:
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
140 ;;
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
141 ;; [[C [N] H] [C [N] H] [C [N] H] C [N] H] C [N] [M] [D]
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
142 ;;
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
143 ;; Therefore, in worst case, the one syllable may contain
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
144 ;; following characters.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
145 ;;
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
146 ;; C N H C N H C N H C N H C N M D
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
147 ;;
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
148 ;; The example is a sanskrit word "kArtsnya", where five consecutive
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
149 ;; consonants appear.
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
150 ;;
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
151 ;; On the other hand, consonant-syllable, which appears at the end of
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
152 ;; the word, would have the following expression:
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
153 ;;
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
154 ;; [C [N] H] [C [N] H] [C [N] H] C [N] H
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
155 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
156 ;; This is acceptable BEFORE proper consonant-syllable is input. The
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
157 ;; string which doesn't match with the above expression is invalid and
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
158 ;; thus must be fixed.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
159 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
160 ;; Note:
21442
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
161 ;; Third case can be considered, which is an acceptable syllable and can
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
162 ;; not add any code more.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
163 ;;
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
164 ;; [[C [N] H] [C [N] H] [C [N] H] C [N] H] C [N] [M] D
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
165 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
166 ;; However, to make editing possible even in this condition, we will
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
167 ;; not consider about this case.
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
168 ;;
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
169 ;; Note:
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
170 ;; Currently, it seems that the only following consonants would have
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
171 ;; Nukta sign attatched.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
172 ;; ($(5!3!4!5!:!?!@!I(B)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
173 ;; Therefore, [$(5!3(B-$(5!X(B]$(5!i(B? can be re-written as
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
174 ;; \\([$(5!3!4!5!:!?!@!I(B]$(5!i(B\\)\\|[$(5!3(B-$(5!X(B]
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
175
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
176 (defconst devanagari-full-cons
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
177 "\\(\\([$(5!3!4!5!:!?!@!I(B]$(5!i(B\\)\\|[$(5!3(B-$(5!X$.$E"%(B]\\)"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
178 "Devanagari full consonant")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
179
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
180 (defconst devanagari-pure-cons
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
181 (concat "\\(" devanagari-full-cons "$(5!h(B\\)")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
182 "Devanagari pure consonant")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
183
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
184 (defconst devanagari-matra
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
185 "\\(\\([$(5!_![!\(B]$(5!i(B\\)\\|[$(5!Z(B-$(5!g#K#L#M(B]\\)"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
186 "Devanagari Matra Signs. '$(5#K#L#M(B' can also be created from the combination
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
187 of '$(5!_![!\(B' and nukta sign.")
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
188
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
189 (defconst devanagari-vowel
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
190 "\\(\\([$(5!*!&!'(B]$(5!i(B\\)\\|[$(5!$(B-$(5!2#&#'#*(B]\\)"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
191 "Devanagari Vowels. '$(5#&#'#*(B' can also be created from the combination
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
192 of '$(5!*!&!'(B' and nukta sign.")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
193
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
194 (defconst devanagari-vowel-syllable
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
195 (concat devanagari-vowel "[$(5!!!"(B]?")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
196 "Devanagari vowel syllable.")
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
197
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
198 (defconst devanagari-cons-syllable
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
199 (concat devanagari-pure-cons "?" devanagari-pure-cons "?"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
200 devanagari-pure-cons "?" devanagari-pure-cons "$")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
201 "Devanagari consonant syllable")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
202
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
203 (defconst devanagari-cons-vowel-syllable
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
204 (concat "\\("
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
205 devanagari-pure-cons "?" devanagari-pure-cons "?"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
206 devanagari-pure-cons "?" devanagari-pure-cons "\\)?"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
207 devanagari-full-cons devanagari-matra "?[$(5!!!"(B]?")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
208 "Devanagari consonant vowel syllable.")
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
209
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
210 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
211 ;; Also, digits and virams should be processed other than syllables.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
212 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
213 ;; In IS 13194, Avagrah is obtained by Nukta after Viram, and
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
214 ;; OM is obtained by Nukta after Chandrabindu
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
215 ;;
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
216
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
217 (defconst devanagari-digit-viram-visarga
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
218 "[$(5!q(B-$(5!z!j!#(B]")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
219 (defconst devanagari-other-sign
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
220 "\\([$(5!!!j(B]$(5!i(B\\)\\|\\([$(5#!#J(B]\\)")
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
221
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
222 (defconst devanagari-composite-glyph-unit
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
223 (concat "\\(" devanagari-cons-syllable
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
224 "\\)\\|\\(" devanagari-vowel-syllable
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
225 "\\)\\|\\(" devanagari-digit-viram-visarga
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
226 "\\)\\|\\(" devanagari-cons-vowel-syllable
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
227 "\\)\\|\\(" devanagari-other-sign "\\)")
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
228 "Regexp matching to Devanagari string to be composed form one glyph.")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
229
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
230 ;;(put-charset-property charset-devanagari-1-column
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
231 ;; 'char-to-glyph 'devanagari-compose-string)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
232 ;;(put-charset-property charset-devanagari-2-column
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
233 ;; 'char-to-glyph 'devanagari-compose-string)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
234
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
235 ;; Sample
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
236 ;;
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
237 ;;(string-match devanagari-cons-vowel-syllable-examine "$(5!X![(B") => 0
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
238 ;;(string-match devanagari-cons-vowel-syllable-examine "$(5!F!h!D!\(B") => 0
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
239 ;;(string-match devanagari-cons-vowel-syllable-examine "$(5!X![!F!h!D!\(B") => 0
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
240
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
241 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
242 ;; Steps toward the composition
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
243 ;; Converting Character Codes to Composite Glyph.
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
244 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
245 ;; Example : $(5!X![(B/$(5!F!h!D!\(B
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
246 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
247 ;; First, convert Characters to appropriate glyphs.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
248 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
249 ;; => $(5!X![(B/$(5"F!D!\(B
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
250 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
251 ;; Then, determine the base glyph, apply-orders and apply-rules.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
252 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
253 ;; => $(5!X(B (ml.mr) $(5![(B / $(5!D(B (ml.mr) $(5"F(B (mr ml) $(5!\(B
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
254 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
255 ;; Finally, convert 2-column glyphs to 1-column glyph
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
256 ;; if such a glyph exist.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
257 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
258 ;; => $(6![(B (ml.mr) $(6!X(B / $(6!D(B (ml.mr) $(6"F(B (mr ml) $(6!\(B
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
259 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
260 ;; Compose the glyph.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
261 ;;
20839
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
262 ;; => 2$(6!X@![(B1/2$(6!D@"FP!\(B1
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
263 ;; => 2$(6!X@![(B12$(6!D@"FP!\(B1
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
264 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
265
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
266 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
267 ;; Phase 1: Converting Character Code to Glyph Code.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
268 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
269 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
270 ;; IMPORTANT:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
271 ;; There may be many rules which you many want to be suppressed.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
272 ;; In that case, please comment out that rule.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
273 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
274 ;; RULES WILL BE EVALUATED FROM FIRST TO LAST.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
275 ;; PUT MORE SPECIFIC RULES FIRST.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
276 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
277 ;; TO DO:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
278 ;; Prepare multiple specific list of rules for each languages
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
279 ;; which adopts Devanagari script.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
280 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
281
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
282 (defconst devanagari-char-to-glyph-rules
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
283 '(
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
284
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
285 ;; `r' at the top of syllable and followed by other consonants.
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
286 ;; ("[^$(5!h(B]\\($(5!O!h(B\\)[$(5!3(B-$(5!X(B]" "$(5"p(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
287 ("^\\($(5!O!h(B\\)[$(5!3(B-$(5!X(B]" "$(5"p(B")
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
288
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
289 ;; Ligature Rules
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
290 ("\\($(5!3!h!B!h!O!h!M(B\\)" "$(5$!(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
291 ("\\($(5!3!h!B!h!T(B\\)" "$(5$"(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
292 ("\\($(5!3!h!B!h!M(B\\)" "$(5$#(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
293 ("\\($(5!3!h!F!h!M(B\\)" "$(5$$(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
294 ("\\($(5!3!h!O!h!M(B\\)" "$(5$%(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
295 ("\\($(5!3!h!O(B\\)" "$(5"#(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
296 ("\\($(5!3!h!T!h!M(B\\)" "$(5$&(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
297 ("\\($(5!3!h(B\\)$(5!3!h(B[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"3(B") ; Special Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
298 ("\\($(5!3!h!3(B\\)" "$(5$'(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
299 ("\\($(5!3!h(B\\)$(5!B!h!O(B" "$(5"3(B") ; Special Rules for "k-tr"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
300 ("\\($(5!3!h!B(B\\)" "$(5$((B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
301 ("\\($(5!3!h!F(B\\)" "$(5$)(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
302 ("\\($(5!3!h!L(B\\)" "$(5$*(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
303 ("\\($(5!3!h!M(B\\)" "$(5$+(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
304 ("\\($(5!3!h!Q(B\\)" "$(5$,(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
305 ("\\($(5!3!h!T(B\\)" "$(5$-(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
306 ("\\($(5!3!h!V!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"l(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
307 ("\\($(5$.!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"l(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
308 ("\\($(5!3!h!V(B\\)" "$(5$.(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
309 ("\\($(5!3!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"3(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
310 ("\\($(5!3!i!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"s(B") ; Nukta Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
311 ("\\($(5!3!i(B\\)" "$(5#3(B") ; Nukta
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
312 ("\\($(5!4!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"4(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
313 ("\\($(5!4!i!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"t(B") ; Nukta Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
314 ("\\($(5!4!i(B\\)" "$(5#4(B") ; Nukta
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
315 ("\\($(5!5!h!O!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"`(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
316 ("\\($(5!5!h!O(B\\)" "$(5"$(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
317 ("\\($(5!5!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"5(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
318 ("\\($(5!5!i!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"u(B") ; Nukta Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
319 ("\\($(5!5!i(B\\)" "$(5#5(B") ; Nukta
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
320 ("\\($(5!6!h!F!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"a(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
321 ("\\($(5!6!h!F(B\\)" "$(5$/(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
322 ; Slot
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
323 ("\\($(5!6!h!O(B\\)" "$(5!6"q(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
324 ("\\($(5!6!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"6(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
325 ("\\($(5!7!h!3!h!B!h!M(B\\)" "$(5$0(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
326 ("\\($(5!7!h!3!h!V!h!T(B\\)" "$(5$1(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
327 ("\\($(5!7!h!3!h!B(B\\)" "$(5$2(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
328 ("\\($(5!7!h!3!h!V(B\\)" "$(5$3(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
329 ("\\($(5!7!h!3!h!O(B\\)" "$(5$9"q(B") ; Special Rule. May be precomposed font needed.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
330 ("\\($(5!7!h!6!h!O(B\\)" "$(5$4(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
331 ("\\($(5!7!h!3!h!M(B\\)" "$(5$5(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
332 ("\\($(5!7!h!4!h!M(B\\)" "$(5$6(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
333 ("\\($(5!7!h!5!h!M(B\\)" "$(5$7(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
334 ("\\($(5!7!h!6!h!M(B\\)" "$(5$8(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
335 ("\\($(5!7!h!3(B\\)" "$(5$9(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
336 ("\\($(5!7!h!4(B\\)" "$(5$:(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
337 ("\\($(5!7!h!5!h!O(B\\)" "$(5$;"q(B") ; Special Rule. May be precomposed font needed.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
338 ("\\($(5!7!h!5(B\\)" "$(5$;(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
339 ("\\($(5!7!h!6(B\\)" "$(5$<(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
340 ("\\($(5!7!h!7(B\\)" "$(5$=(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
341 ("\\($(5!7!h!F(B\\)" "$(5$>(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
342 ("\\($(5!7!h!L(B\\)" "$(5$?(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
343 ("\\($(5!7!h!M(B\\)" "$(5$@(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
344 ("\\($(5!8!h(B\\)[$(5!8!<(B]$(5!h(B" "$(5"8(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
345 ("\\($(5!8!h!8(B\\)" "$(5$A(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
346 ("\\($(5!8!h!<(B\\)" "$(5$B(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
347 ("\\($(5!8!h!O!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"8"q(B") ; Half Form Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
348 ("\\($(5!8!h!O(B\\)" "$(5!8"q(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
349 ("\\($(5!8!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"8(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
350 ("\\($(5!9!h!M(B\\)" "$(5$C(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
351 ("\\($(5!:!h!O(B\\)" "$(5$D(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
352 ("\\($(5!:!h!<!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"m(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
353 ("\\($(5!:!h!<(B\\)" "$(5$E(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
354 ("\\($(5!:!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5":(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
355 ("\\($(5!:!i!h!O(B\\)" "$(5"!(B") ; Nukta Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
356 ("\\($(5!:!i!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"z(B") ; Nukta Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
357 ("\\($(5!:!i(B\\)" "$(5#:(B") ; Nukta
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
358 ("\\($(5!;!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5";(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
359 ("\\($(5!<!h(B\\)$(5!8!h(B[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"<(B") ; Special Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
360 ("\\($(5!<!h!8(B\\)" "$(5$F(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
361 ("\\($(5!<!h(B\\)$(5!:!h(B[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"<(B") ; Special Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
362 ("\\($(5!<!h!:(B\\)" "$(5$G(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
363 ("\\($(5!<!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"<(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
364 ("\\($(5!=!h!3(B\\)" "$(5$H(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
365 ("\\($(5!=!h!=(B\\)" "$(5$I(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
366 ("\\($(5!=!h!>(B\\)" "$(5$J(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
367 ("\\($(5!=!h!M(B\\)" "$(5$K(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
368 ("\\($(5!>!h!M(B\\)" "$(5$L(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
369 ("\\($(5!?!h!5!h!M(B\\)" "$(5$M(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
370 ("\\($(5!?!h!6!h!O(B\\)" "$(5$N(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
371 ("\\($(5!?!h!O!h!M(B\\)" "$(5$O(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
372 ("\\($(5!?!h!5(B\\)" "$(5$P(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
373 ("\\($(5!?!h!6(B\\)" "$(5$Q(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
374 ("\\($(5!?!h!?(B\\)" "$(5$R(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
375 ("\\($(5!?!h!L(B\\)" "$(5$S(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
376 ("\\($(5!?!h!M(B\\)" "$(5$T(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
377 ("\\($(5!?!i(B\\)" "$(5#?(B") ; Nukta
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
378 ("\\($(5!@!h!M(B\\)" "$(5$`(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
379 ("\\($(5!@!i(B\\)" "$(5#@(B") ; Nukta
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
380 ("\\($(5!A!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"A(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
381 ("\\($(5!B!h(B\\)$(5!B!h!O(B" "$(5"B(B") ; Special Rule for "t-tr"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
382 ("\\($(5!B!h!B!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"c(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
383 ("\\($(5!B!h!B(B\\)" "$(5$a(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
384 ("\\($(5!B!h!F(B\\)" "$(5$b(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
385 ("\\($(5!B!h!O!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"d(B") ; Half Form Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
386 ("\\($(5!B!h!O(B\\)" "$(5"%(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
387 ("\\($(5!B!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"B(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
388 ("\\($(5!C!h!O(B\\)" "$(5!C"q(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
389 ("\\($(5!C!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"C(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
390 ("\\($(5!D!h!D!h!M(B\\)" "$(5$c(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
391 ("\\($(5!D!h!E!h!M(B\\)" "$(5$d(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
392 ("\\($(5!D!h!K!h!M(B\\)" "$(5$e(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
393 ("\\($(5!D!h!K!h!O(B\\)" "$(5$r"r(B") ; Special Case for "dbhr" ; ***
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
394 ("\\($(5!D!h!O!h!M(B\\)" "$(5$f(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
395 ("\\($(5!D!h!T!h!M(B\\)" "$(5$g(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
396 ("\\($(5!D!h!5!h!O(B\\)" "$(5$h(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
397 ("\\($(5!D!h!6!h!O(B\\)" "$(5$i(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
398 ("\\($(5!D!h!D!h!T(B\\)" "$(5$j(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
399 ("\\($(5!D!h!E!h!T(B\\)" "$(5$k(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
400 ("\\($(5!D!h(B\\)$(5!E!h(B[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5!D!h(B") ; Special Half Form (for ddhra)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
401 ("\\($(5!D!h!5(B\\)" "$(5$l(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
402 ("\\($(5!D!h!6(B\\)" "$(5$m(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
403 ("\\($(5!D!h!D(B\\)" "$(5$n(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
404 ("\\($(5!D!h!E(B\\)" "$(5$o(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
405 ("\\($(5!D!h!F(B\\)" "$(5$p(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
406 ("\\($(5!D!h(B\\)$(5!J!h(B" "$(5!D!h(B") ; Suppressing "db-"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
407 ("\\($(5!D!h!J(B\\)" "$(5$q(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
408 ("\\($(5!D!h!K(B\\)" "$(5$r(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
409 ("\\($(5!D!h!L(B\\)" "$(5$s(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
410 ("\\($(5!D!h!M(B\\)" "$(5$t(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
411 ("\\($(5!D!h!T(B\\)" "$(5$u(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
412 ("\\($(5!E!h!F!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"e(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
413 ("\\($(5!E!h!F(B\\)" "$(5$v(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
414 ("\\($(5!E!h!O!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"f(B") ; Half Form Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
415 ("\\($(5!E!h!O(B\\)" "$(5!E"q(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
416 ("\\($(5!E!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"E(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
417 ("\\($(5!F!h!F!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"k(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
418 ("\\($(5!F!h!F(B\\)" "$(5$w(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
419 ("\\($(5!F!h!O(B\\)" "$(5!F"q(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
420 ("\\($(5!F!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"F(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
421 ("\\($(5!G!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"G(B") ; Nukta Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
422 ("\\($(5!H!h(B\\)$(5!B!h!O(B" "$(5"H(B") ; Special Rule for "p-tr"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
423 ("\\($(5!H!h!B!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"g(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
424 ("\\($(5!H!h!B(B\\)" "$(5$x(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
425 ("\\($(5!H!h!F(B\\)" "$(5$y(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
426 ("\\($(5!H!h!Q(B\\)" "$(5$z(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
427 ("\\($(5!H!h!O(B\\)" "$(5"&(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
428 ("\\($(5!H!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"H(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
429 ("\\($(5!I!h!O(B\\)" "$(5"'(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
430 ("\\($(5!I!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"I(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
431 ("\\($(5!I!i!h!O(B\\)" "$(5""(B") ; Nukta Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
432 ("\\($(5!I!i!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"y(B") ; Nukta Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
433 ("\\($(5!I!i(B\\)" "$(5#I(B") ; Nukta
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
434 ("\\($(5!J!h(B\\)$(5!F!h(B[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"J(B") ; Special Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
435 ("\\($(5!J!h!F(B\\)" "$(5${(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
436 ("\\($(5!J!h(B\\)$(5!J!h(B[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"J(B") ; Special Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
437 ("\\($(5!J!h!J(B\\)" "$(5$|(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
438 ("\\($(5!J!h(B\\)$(5!T!h(B[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"J(B") ; Special Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
439 ("\\($(5!J!h!T(B\\)" "$(5$}(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
440 ("\\($(5!J!h!O(B\\)" "$(5!J"q(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
441 ("\\($(5!J!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"J(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
442 ("\\($(5!K!h!F(B\\)" "$(5$~(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
443 ("\\($(5!K!h!O(B\\)" "$(5!K"q(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
444 ("\\($(5!K!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"K(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
445 ("\\($(5!L!h!F(B\\)" "$(5#P(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
446 ("\\($(5!L!h!Q(B\\)" "$(5#Q(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
447 ("\\($(5!L!h!O(B\\)" "$(5!L"q(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
448 ("\\($(5!L!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"L(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
449 ("\\($(5!M!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"M(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
450 ("\\($(5!N!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"N(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
451 ;; special form for "ru".
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
452 ("\\($(5!O!](B\\)" "$(5",(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
453 ("\\($(5!O!^(B\\)" "$(5"-(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
454 ("\\($(5!P!](B\\)" "$(5".(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
455 ("\\($(5!P!^(B\\)" "$(5"/(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
456 ;;
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
457 ("\\($(5!Q!h!Q(B\\)" "$(5#`(B" sanskrit)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
458 ("\\($(5!Q!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"Q(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
459 ("\\($(5!R!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"R(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
460 ("\\($(5!S!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"S(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
461 ("\\($(5!T!h!F(B\\)" "$(5#a(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
462 ("\\($(5!T!h!T(B\\)" "$(5#b(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
463 ("\\($(5!T!h!O(B\\)" "$(5!T"q(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
464 ("\\($(5!T!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"T(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
465 ("\\($(5!U!h!8!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"h(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
466 ("\\($(5!U!h!8(B\\)" "$(5#c(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
467 ("\\($(5!U!h!F(B\\)" "$(5#d(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
468 ("\\($(5!U!h!J(B\\)" "$(5#e(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
469 ("\\($(5!U!h!Q(B\\)" "$(5#f(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
470 ("\\($(5!U!h(B\\)$(5!T!h!O(B" "$(5"U(B") ; Special Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
471 ("\\($(5!U!h!T!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"j(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
472 ; ("\\($(5!U!h!T(B\\)" "$(5#g(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
473 ("\\($(5!U!h!O!h!T(B\\)" "$(5#g(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
474 ("\\($(5!U!h!O!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"i(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
475 ("\\($(5!U!h!O(B\\)" "$(5")(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
476 ("\\($(5!U!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"U(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
477 ("\\($(5!V!h!=!h!O!h!M(B\\)" "$(5#h(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
478 ("\\($(5!V!h!=!h!M(B\\)" "$(5#i(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
479 ("\\($(5!V!h!=!h!T(B\\)" "$(5#j(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
480 ("\\($(5!V!h!=(B\\)" "$(5#k(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
481 ("\\($(5!V!h!>(B\\)" "$(5#l(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
482 ("\\($(5!V!h!O(B\\)" "$(5!V"q(B") ; Post "r"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
483 ("\\($(5!V!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"V(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
484 ("\\($(5!W!h!F!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"W"F(B") ; Special Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
485 ("\\($(5!W!h!F(B\\)" "$(5#m(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
486 ("\\($(5!W!h!O(B\\)" "$(5#n(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
487 ("\\($(5!W!h(B\\)[$(5!3(B-$(5!N!P(B-$(5!X(B]" "$(5"W(B") ; Half Form
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
488 ("\\($(5!X!h!A(B\\)" "$(5#p(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
489 ("\\($(5!X!h!F(B\\)" "$(5#q(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
490 ("\\($(5!X!h!L(B\\)" "$(5#r(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
491 ("\\($(5!X!h!M(B\\)" "$(5#s(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
492 ("\\($(5!X!h!O(B\\)" "$(5#t(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
493 ("\\($(5!X!h!Q(B\\)" "$(5#u(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
494 ("\\($(5!X!h!T(B\\)" "$(5#v(B")
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
495 ;; Special Ligature Rules
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
496 ("\\($(5!X!_(B\\)" "$(5#R(B")
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
497
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
498 ;; For consonants other than listed above, glyph-composition will
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
499 ;; be applied. If the consonant which is preceding "$(5!O(B" does not
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
500 ;; have the vertical line (such as "$(5!?(B"), "$(5"r(B" is put beneath the
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
501 ;; consonant.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
502 ;;
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
503 ("[$(5!7!9!=!>!?!@!D!O!P!R!S!X(B]\\($(5!h!O(B\\)" "$(5"r(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
504 ("[$(5!6!8!C!E!F!H!J!K!L!M!T!V(B]\\($(5!h!O(B\\)" "$(5"q(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
505 ("$(5!?!i(B\\($(5!h!O(B\\)" "$(5"r(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
506 ("$(5!@!i(B\\($(5!h!O(B\\)" "$(5"r(B")
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
507
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
508 ;; Nukta with Non-Consonants
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
509 ("\\($(5!!!i(B\\)" "$(5#!(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
510 ("\\($(5!&!i(B\\)" "$(5#&(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
511 ("\\($(5!'!i(B\\)" "$(5#'(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
512 ("\\($(5!*!i(B\\)" "$(5#*(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
513 ("\\($(5![!i(B\\)" "$(5#L(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
514 ("\\($(5!\!i(B\\)" "$(5#M(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
515 ("\\($(5!_!i(B\\)" "$(5#K(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
516 ("\\($(5!j!i(B\\)" "$(5#J(B")
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
517
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
518 ;; Special rule for "r + some vowels"
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
519 ("\\($(5!O!_(B\\)" "$(5!*"p(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
520 ("\\($(5!O#L(B\\)" "$(5#&"p(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
521 ("\\($(5!O#K(B\\)" "$(5#*"p(B")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
522 ("\\($(5!O#M(B\\)" "$(5#'"p(B")
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
523 ;; If everything fails, "y" will connect to the front consonant.
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
524 ("\\($(5!h!M(B\\)" "$(5"](B")
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
525 )
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
526 "Alist of regexps of Devanagari character sequences vs composed characters.")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
527
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
528 (let ((rules devanagari-char-to-glyph-rules))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
529 (while rules
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
530 (let ((rule (car rules))
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
531 (chars) (char) (glyphs) (glyph))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
532 (setq rules (cdr rules))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
533 (string-match "\\\\(\\(.+\\)\\\\)" (car rule))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
534 (setq chars (substring (car rule) (match-beginning 1) (match-end 1)))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
535 (setq char (string-to-char chars))
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
536 (setq glyphs (cdr rule))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
537 (setq glyph (string-to-char (car glyphs)))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
538 (put-char-code-property
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
539 char 'char-to-glyph
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
540 ;; We don't "cons" it since priority is top to down.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
541 (append (get-char-code-property char 'char-to-glyph) (list rule)))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
542
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
543 (if (and (< ?(5z(B glyph) ; Glyphs only.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
544 (null (get-char-code-property glyph 'glyph-to-char)))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
545 ; One glyph may corresponds to multiple characters,
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
546 ; e.g., surrounding vowel in Tamil, etc.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
547 ; but for Devanagari, we put this restriction
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
548 ; to make sure the fact that one glyph corresponds to one char.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
549 (put-char-code-property
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
550 glyph 'glyph-to-char
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
551 (cons (list (car glyphs) chars)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
552 (get-char-code-property glyph 'glyph-to-char)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
553 ))))))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
554
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
555 ;;
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
556 ;; Function used in both characters-to-glyphs conversion and
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
557 ;; glyphs-to-characters conversion.
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
558 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
559
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
560 (defun max-match-len (regexp-str)
20839
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
561 "Return the possible length of matched string of given regexp.
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
562 Only [...] pattern of regexp is recognized.
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
563 The last character of inside of [....] is used for its length."
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
564 (let ((dest-str regexp-str))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
565 (while (string-match "\\[\\([^\]]\\)+\\]" dest-str)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
566 (setq dest-str
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
567 (concat (substring dest-str 0 (match-beginning 0))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
568 (substring dest-str (match-beginning 1) (match-end 1))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
569 (substring dest-str (match-end 0)))))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
570 (length dest-str)))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
571
20839
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
572 ;; Return t iff LIST1 and LIST2 has a same member.
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
573 (defun rule-intersection (list1 list2)
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
574 (let ((found nil))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
575 (while (and list1 (not found))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
576 (if (memq (car list1) list2)
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
577 (setq found t)
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
578 (setq list1 (cdr list1))))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
579 found))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
580
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
581 (defun string-conversion-by-rule (src-str symbol &rest specs)
20839
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
582 "Convert string SRC-STR to a new string according to
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
583 the rules described in the each character's SYMBOL property. The
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
584 rules are described in the forms of '((regexp str <specs>) ...), and
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
585 the character sequence in the string which matches to 'regexp' are
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
586 replaced with str. If SPECS are not specified, only rules with no
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
587 <specs> would be applied. If SPECS are specified, then rules with no
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
588 <specs> specified and rules with <spec> matches with SPECS would be
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
589 applied. Rules are tested in the order of the list, thus more
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
590 specific rules should be placed in front of less important rules. No
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
591 composite character is supported, thus such must be converted by
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
592 decompose-char before applying to this function. If rule is given in
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
593 the forms of regexp '...\\(...\\)...', then inside the parenthesis is
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
594 the subject of the match. Otherwise, the entire expression is the
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
595 subject of the match."
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
596 (let ((pos 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
597 (dst-str ""))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
598 (while (< pos (length src-str))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
599 (let ((found nil)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
600 (rules (get-char-code-property
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
601 (string-to-char
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
602 (substring src-str pos)) symbol)))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
603 (while rules
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
604 (let* ((rule (car rules))
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
605 (regexp (car rule))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
606 (replace-str (car (cdr rule)))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
607 (rule-specs (cdr (cdr rule)))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
608 search-pos)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
609 (if (not (or (null rule-specs)
20839
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
610 (rule-intersection specs rule-specs)))
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
611 (setq rules (cdr rules))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
612 (if (null (string-match "\\\\(.+\\\\)" regexp))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
613 (progn
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
614 (setq regexp (concat "\\(" regexp "\\)"))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
615 (setq search-pos pos))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
616 (setq search-pos (- pos (max-match-len
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
617 (substring regexp
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
618 (string-match "^[^\\\\]*" regexp)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
619 (match-end 0))))))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
620 (if (< search-pos 0) (setq search-pos 0))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
621 (if (string-match regexp src-str search-pos)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
622 (if (= (match-beginning 1) pos)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
623 (progn
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
624 (setq dst-str (concat dst-str replace-str))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
625 (setq rules nil) ; Get out of the loop.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
626 (setq found t)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
627 ;; proceed `pos' for replaced characters.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
628 (setq pos (match-end 1)))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
629 (setq rules (cdr rules)))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
630 (setq rules (cdr rules))))))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
631 ;; proceed to next position
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
632 (if (not found)
20839
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
633 (setq dst-str (concat dst-str (substring src-str pos (1+ pos)))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
634 pos (1+ pos)))))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
635 dst-str))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
636
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
637
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
638 ;;
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
639 ;; Convert Character Code to Glyph Code
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
640 ;;
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
641
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
642 ;;;###autoload
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
643 (defun char-to-glyph-devanagari (src-str &rest langs)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
644 "Convert Devanagari characters in the string to Devanagari glyphs.
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
645 Ligatures and special rules are processed."
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
646 (apply
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
647 'string-conversion-by-rule
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
648 (append (list src-str 'char-to-glyph) langs)))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
649
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
650 ;; Example:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
651 ;;(char-to-glyph-devanagari "$(5!X![!F!h!D!\(B") => "$(5!X!["F!D!\(B"
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
652 ;;(char-to-glyph-devanagari "$(5!O!Z!V!h!=!h!O![!M(B") => ???
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
653
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
654 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
655 ;; Phase 2: Compose Glyphs to form One Glyph.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
656 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
657
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
658 ;; Each list consist of glyph, application-priority and application-direction.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
659 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
660 ;; Glyphs will be ordered from low priority number to high priority number.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
661 ;; If application-priority is omitted, it is assumed to be 0.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
662 ;; If application-direction is omitted, it is asumbed to be '(mr . ml).
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
663
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
664 (defconst devanagari-composition-rules
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
665 '((?$(5!!(B 0 (tr . br))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
666 (?$(5!"(B 0 (mr . mr))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
667 (?$(5!#(B 0)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
668 (?$(5!$(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
669 (?$(5!%(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
670 (?$(5!&(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
671 (?$(5!'(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
672 (?$(5!((B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
673 (?$(5!)(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
674 (?$(5!*(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
675 (?$(5!+(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
676 (?$(5!,(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
677 (?$(5!-(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
678 (?$(5!.(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
679 (?$(5!/(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
680 (?$(5!0(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
681 (?$(5!1(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
682 (?$(5!2(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
683 (?$(5!3(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
684 (?$(5!4(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
685 (?$(5!5(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
686 (?$(5!6(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
687 (?$(5!7(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
688 (?$(5!8(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
689 (?$(5!9(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
690 (?$(5!:(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
691 (?$(5!;(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
692 (?$(5!<(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
693 (?$(5!=(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
694 (?$(5!>(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
695 (?$(5!?(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
696 (?$(5!@(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
697 (?$(5!A(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
698 (?$(5!B(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
699 (?$(5!C(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
700 (?$(5!D(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
701 (?$(5!E(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
702 (?$(5!F(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
703 (?$(5!G(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
704 (?$(5!H(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
705 (?$(5!I(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
706 (?$(5!J(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
707 (?$(5!K(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
708 (?$(5!L(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
709 (?$(5!M(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
710 (?$(5!N(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
711 (?$(5!O(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
712 (?$(5!P(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
713 (?$(5!Q(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
714 (?$(5!R(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
715 (?$(5!S(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
716 (?$(5!T(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
717 (?$(5!U(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
718 (?$(5!V(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
719 (?$(5!W(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
720 (?$(5!X(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
721 (?$(5!Y(B 0)
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
722 (?$(5!Z(B 0)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
723 (?$(5![(B 0 (ml . mr))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
724 (?$(5!\(B 0)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
725 (?$(5!](B 0 (br . tr))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
726 (?$(5!^(B 0 (br . tr))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
727 (?$(5!_(B 0 (br . tr))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
728 (?$(5!`(B 0 (mr . mr)) ; (tc . bc)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
729 (?$(5!a(B 0 (mr . mr))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
730 (?$(5!b(B 0 (mr . mr))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
731 (?$(5!c(B 0 (mr . mr))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
732 (?$(5!d(B 0)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
733 (?$(5!e(B 0)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
734 (?$(5!f(B 0)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
735 (?$(5!g(B 0)
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
736 (?$(5!h(B 0 (br . tr))
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
737 (?$(5!i(B 0 (br . tr))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
738 (?$(5!j(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
739 (nil 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
740 (nil 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
741 (nil 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
742 (nil 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
743 (nil 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
744 (nil 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
745 (?$(5!q(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
746 (?$(5!r(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
747 (?$(5!s(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
748 (?$(5!t(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
749 (?$(5!u(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
750 (?$(5!v(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
751 (?$(5!w(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
752 (?$(5!x(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
753 (?$(5!y(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
754 (?$(5!z(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
755 (nil 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
756 (nil 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
757 (nil 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
758 (nil 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
759 (?$(5"!(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
760 (?$(5""(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
761 (?$(5"#(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
762 (?$(5"$(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
763 (?$(5"%(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
764 (?$(5"&(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
765 (?$(5"'(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
766 (?$(5"((B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
767 (?$(5")(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
768 (?$(5"*(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
769 (?$(5"+(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
770 (?$(5",(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
771 (?$(5"-(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
772 (?$(5".(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
773 (?$(5"/(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
774 (?$(5"0(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
775 (?$(5"1(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
776 (?$(5"2(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
777 (?$(5"3(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
778 (?$(5"4(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
779 (?$(5"5(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
780 (?$(5"6(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
781 (?$(5"7(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
782 (?$(5"8(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
783 (?$(5"9(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
784 (?$(5":(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
785 (?$(5";(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
786 (?$(5"<(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
787 (?$(5"=(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
788 (?$(5">(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
789 (?$(5"?(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
790 (?$(5"@(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
791 (?$(5"A(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
792 (?$(5"B(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
793 (?$(5"C(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
794 (?$(5"D(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
795 (?$(5"E(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
796 (?$(5"F(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
797 (?$(5"G(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
798 (?$(5"H(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
799 (?$(5"I(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
800 (?$(5"J(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
801 (?$(5"K(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
802 (?$(5"L(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
803 (?$(5"M(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
804 (?$(5"N(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
805 (?$(5"O(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
806 (?$(5"P(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
807 (?$(5"Q(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
808 (?$(5"R(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
809 (?$(5"S(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
810 (?$(5"T(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
811 (?$(5"U(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
812 (?$(5"V(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
813 (?$(5"W(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
814 (?$(5"X(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
815 (?$(5"Y(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
816 (?$(5"Z(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
817 (?$(5"[(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
818 (?$(5"\(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
819 (?$(5"](B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
820 (?$(5"^(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
821 (?$(5"_(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
822 (?$(5"`(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
823 (?$(5"a(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
824 (?$(5"b(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
825 (?$(5"c(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
826 (?$(5"d(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
827 (?$(5"e(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
828 (?$(5"f(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
829 (?$(5"g(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
830 (?$(5"h(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
831 (?$(5"i(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
832 (?$(5"j(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
833 (?$(5"k(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
834 (?$(5"l(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
835 (?$(5"m(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
836 (?$(5"n(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
837 (?$(5"o(B 0)
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
838 (?$(5"p(B 10 (mr . mr))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
839 (?$(5"q(B 0 (br . br))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
840 (?$(5"r(B 0 (br . tr))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
841 (?$(5"s(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
842 (?$(5"t(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
843 (?$(5"u(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
844 (?$(5"v(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
845 (?$(5"w(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
846 (?$(5"x(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
847 (?$(5"y(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
848 (?$(5"z(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
849 (?$(5"{(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
850 (?$(5"|(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
851 (?$(5"}(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
852 (?$(5"~(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
853 (?$(5#!(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
854 (?$(5#"(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
855 (?$(5##(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
856 (?$(5#$(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
857 (?$(5#%(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
858 (?$(5#&(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
859 (?$(5#'(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
860 (?$(5#((B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
861 (?$(5#)(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
862 (?$(5#*(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
863 (?$(5#+(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
864 (?$(5#,(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
865 (?$(5#-(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
866 (?$(5#.(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
867 (?$(5#/(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
868 (?$(5#0(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
869 (?$(5#1(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
870 (?$(5#2(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
871 (?$(5#3(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
872 (?$(5#4(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
873 (?$(5#5(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
874 (?$(5#6(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
875 (?$(5#7(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
876 (?$(5#8(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
877 (?$(5#9(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
878 (?$(5#:(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
879 (?$(5#;(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
880 (?$(5#<(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
881 (?$(5#=(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
882 (?$(5#>(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
883 (?$(5#?(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
884 (?$(5#@(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
885 (?$(5#A(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
886 (?$(5#B(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
887 (?$(5#C(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
888 (?$(5#D(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
889 (?$(5#E(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
890 (?$(5#F(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
891 (?$(5#G(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
892 (?$(5#H(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
893 (?$(5#I(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
894 (?$(5#J(B 0)
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
895 (?$(5#K(B 0 (br . tr))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
896 (?$(5#L(B 0 (br . tr))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
897 (?$(5#M(B 0 (br . tr))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
898 (?$(5#N(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
899 (?$(5#O(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
900 (?$(5#P(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
901 (?$(5#Q(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
902 (?$(5#R(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
903 (?$(5#S(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
904 (?$(5#T(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
905 (?$(5#U(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
906 (?$(5#V(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
907 (?$(5#W(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
908 (?$(5#X(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
909 (?$(5#Y(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
910 (?$(5#Z(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
911 (?$(5#[(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
912 (?$(5#\(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
913 (?$(5#](B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
914 (?$(5#^(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
915 (?$(5#_(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
916 (?$(5#`(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
917 (?$(5#a(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
918 (?$(5#b(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
919 (?$(5#c(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
920 (?$(5#d(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
921 (?$(5#e(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
922 (?$(5#f(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
923 (?$(5#g(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
924 (?$(5#h(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
925 (?$(5#i(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
926 (?$(5#j(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
927 (?$(5#k(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
928 (?$(5#l(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
929 (?$(5#m(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
930 (?$(5#n(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
931 (?$(5#o(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
932 (?$(5#p(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
933 (?$(5#q(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
934 (?$(5#r(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
935 (?$(5#s(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
936 (?$(5#t(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
937 (?$(5#u(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
938 (?$(5#v(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
939 (?$(5#w(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
940 (?$(5#x(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
941 (?$(5#y(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
942 (?$(5#z(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
943 (?$(5#{(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
944 (?$(5#|(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
945 (?$(5#}(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
946 (?$(5#~(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
947 (?$(5$!(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
948 (?$(5$"(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
949 (?$(5$#(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
950 (?$(5$$(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
951 (?$(5$%(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
952 (?$(5$&(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
953 (?$(5$'(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
954 (?$(5$((B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
955 (?$(5$)(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
956 (?$(5$*(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
957 (?$(5$+(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
958 (?$(5$,(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
959 (?$(5$-(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
960 (?$(5$.(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
961 (?$(5$/(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
962 (?$(5$0(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
963 (?$(5$1(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
964 (?$(5$2(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
965 (?$(5$3(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
966 (?$(5$4(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
967 (?$(5$5(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
968 (?$(5$6(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
969 (?$(5$7(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
970 (?$(5$8(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
971 (?$(5$9(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
972 (?$(5$:(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
973 (?$(5$;(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
974 (?$(5$<(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
975 (?$(5$=(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
976 (?$(5$>(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
977 (?$(5$?(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
978 (?$(5$@(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
979 (?$(5$A(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
980 (?$(5$B(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
981 (?$(5$C(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
982 (?$(5$D(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
983 (?$(5$E(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
984 (?$(5$F(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
985 (?$(5$G(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
986 (?$(5$H(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
987 (?$(5$I(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
988 (?$(5$J(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
989 (?$(5$K(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
990 (?$(5$L(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
991 (?$(5$M(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
992 (?$(5$N(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
993 (?$(5$O(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
994 (?$(5$P(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
995 (?$(5$Q(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
996 (?$(5$R(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
997 (?$(5$S(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
998 (?$(5$T(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
999 (?$(5$U(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1000 (?$(5$V(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1001 (?$(5$W(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1002 (?$(5$X(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1003 (?$(5$Y(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1004 (?$(5$Z(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1005 (?$(5$[(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1006 (?$(5$\(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1007 (?$(5$](B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1008 (?$(5$^(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1009 (?$(5$_(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1010 (?$(5$`(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1011 (?$(5$a(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1012 (?$(5$b(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1013 (?$(5$c(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1014 (?$(5$d(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1015 (?$(5$e(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1016 (?$(5$f(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1017 (?$(5$g(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1018 (?$(5$h(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1019 (?$(5$i(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1020 (?$(5$j(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1021 (?$(5$k(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1022 (?$(5$l(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1023 (?$(5$m(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1024 (?$(5$n(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1025 (?$(5$o(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1026 (?$(5$p(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1027 (?$(5$q(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1028 (?$(5$r(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1029 (?$(5$s(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1030 (?$(5$t(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1031 (?$(5$u(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1032 (?$(5$v(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1033 (?$(5$w(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1034 (?$(5$x(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1035 (?$(5$y(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1036 (?$(5$z(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1037 (?$(5${(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1038 (?$(5$|(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1039 (?$(5$}(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1040 (?$(5$~(B 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1041 ))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1042
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1043 ;; Determine composition priority and rule of the array of Glyphs.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1044 ;; Sort the glyphs with their priority.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1045
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1046 (defun devanagari-reorder-glyphs-for-composition (glyph-alist)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1047 (let* ((pos 0)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1048 (ordered-glyphs '()))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1049 (while (< pos (length glyph-alist))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1050 (let* ((glyph (aref glyph-alist pos)))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1051 (setq pos (1+ pos))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1052 (setq ordered-glyphs
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1053 (append ordered-glyphs (list (assq glyph devanagari-composition-rules))))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1054 (sort ordered-glyphs '(lambda (x y) (< (car (cdr x)) (car (cdr y)))))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1055
20839
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
1056 ;;(devanagari-compose-to-one-glyph "$(5"5!X![(B") => "2$(6!XP"5@![(B1"
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1057
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1058 (defun devanagari-compose-to-one-glyph (devanagari-string)
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1059 (let* ((o-glyph-list (devanagari-reorder-glyphs-for-composition
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1060 (string-to-vector devanagari-string)))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1061 ;; List of glyphs to be composed.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1062 (cmp-glyph-list (list (car (car o-glyph-list))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1063 (o-glyph-list (cdr o-glyph-list)))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1064 (while o-glyph-list
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1065 (let* ((o-glyph (car o-glyph-list))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1066 (glyph (if (< 2 (length o-glyph))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1067 ;; default composition
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1068 (list (car (cdr (cdr o-glyph))) (car o-glyph))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1069 ;; composition with a specified rule
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1070 (list '(mr . ml) (car o-glyph)))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1071 (setq o-glyph-list (cdr o-glyph-list))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1072 (setq cmp-glyph-list (append cmp-glyph-list glyph))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1073 ;; Before applying compose-chars, convert glyphs to
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1074 ;; 1-column width if possible.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1075 (setq cmp-glyph-list (devanagari-wide-to-narrow cmp-glyph-list))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1076 (if (= (length cmp-glyph-list) 1) (char-to-string (car cmp-glyph-list))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1077 (apply 'compose-chars cmp-glyph-list))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1078
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1079 ;; Utility function for Phase 2.5
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1080 ;; Check whether given glyph is a Devanagari vertical modifier or not.
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1081 ;; If it is a vertical modifier, whether it should be 1-column shape or not
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1082 ;; depends on previous non-vertical modifier.
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1083 ; return nil if it is not vertical modifier.
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1084 (defun devanagari-vertical-modifier-p (glyph)
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1085 (string-match (char-to-string glyph)
21442
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1086 "[$(5!"!]!^!_!`!a!b!c!h!i"p"q"r#K#L#M(B]"))
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1088 (defun devanagari-non-vertical-modifier-p (glyph)
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1089 (string-match (char-to-string glyph)
21442
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1090 ; "[$(5!Z![!\!d!e!f!g(B]"))
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1091 "[$(5![(B]"))
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1092
21442
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1093 (defun devanagari-wide-to-narrow-char (char)
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1094 "Return the corresponding narrow character if it exists."
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1095 (let ((narrow (cdr (assq char devanagari-1-column-char))))
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1096 (if narrow narrow char)))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1097
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1098 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1099 ;; Phase 2.5 Convert Appropriate Character to 1-column shape.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1100 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1101 ;; This is temporary and should be removed out when Emacs supports
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1102 ;; variable width characters.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1103 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1104 ;; This will convert the composing glyphs (2 column glyphs)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1105 ;; to narrow (1 column) glyphs if they exist.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1106 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1107 ;; devanagari-wide-to-narrow-old converts glyphs simply.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1108 ;; devanagari-wide-to-narrow takes care of upper/lower apply-glyphs
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1109 ;; with 2 column base-glyph.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1110 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1111 ;; Execution Examples
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1112 ;;(devanagari-wide-to-narrow '(?$(5!3(B (ml . ml) ?$(5!a(B))
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1113 ;;(devanagari-wide-to-narrow '(?$(5!F(B (ml . ml) ?$(5!a(B))
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1114
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1115 (defun devanagari-wide-to-narrow (src-list)
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1116 (devanagari-wide-to-narrow-iter src-list t))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1117
21442
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1118 (defun devanagari-wide-to-narrow-iter (src-list 2-col-glyph)
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1119 (let ((glyph (car src-list)))
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1120 (cond ((null src-list) '())
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1121 ; not glyph code
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1122 ((not (numberp glyph))
21442
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1123 (cons glyph (devanagari-wide-to-narrow-iter (cdr src-list) 2-col-glyph)))
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1124 ; glyphs to be processed regardless of the value of "2-col-glyph"
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1125 ((devanagari-non-vertical-modifier-p glyph)
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1126 (cons (devanagari-wide-to-narrow-char glyph)
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1127 (devanagari-wide-to-narrow-iter (cdr src-list) 2-col-glyph)))
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1128 ; glyphs which are depends on the value of "2-col-glyph"
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1129 ((devanagari-vertical-modifier-p glyph)
21442
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1130 (if 2-col-glyph
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1131 (cons glyph
21442
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1132 (devanagari-wide-to-narrow-iter (cdr src-list) t))
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1133 (cons (devanagari-wide-to-narrow-char glyph)
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1134 (devanagari-wide-to-narrow-iter (cdr src-list) 2-col-glyph))))
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1135 ; normal glyph
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1136 (t
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1137 (if (cdr (assq glyph devanagari-1-column-char))
21442
b598d28da979 Typos in comment fixed.
Kenichi Handa <handa@m17n.org>
parents: 20839
diff changeset
1138 (cons (devanagari-wide-to-narrow-char glyph)
17087
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1139 (devanagari-wide-to-narrow-iter (cdr src-list) nil))
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1140 (cons glyph
fb13faeea9aa Fix handling of several characters.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
1141 (devanagari-wide-to-narrow-iter (cdr src-list) t)))))))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1142
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1143
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1144 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1145 ;; Summary
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1146 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1147
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1148 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1149 ;; Decomposition of composite font.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1150 ;;
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1151
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1152 (defun devanagari-normalize-narrow-glyph (charlist)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1153 (let ((wide-char (car (rassoc (car charlist) devanagari-1-column-char))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1154 (if (null charlist) nil
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1155 (cons (if (null wide-char) (car charlist) wide-char)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1156 (devanagari-normalize-narrow-glyph (cdr charlist))))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1157
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1158 (defvar devanagari-decomposition-rules
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1159 '(
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1160 (?$(5"p(B -10)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1161 )
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1162 )
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1163
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1164 (defun devanagari-reorder-glyphs-for-decomposition (glyphlist)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1165 "This function re-orders glyph list for decomposition."
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1166 (sort glyphlist
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1167 '(lambda (x y)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1168 (let ((xx (assoc x devanagari-decomposition-rules))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1169 (yy (assoc y devanagari-decomposition-rules)))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1170 (if (null xx) (setq xx 0))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1171 (if (null yy) (setq yy 0))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1172 (< xx yy)))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1173
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1174 (defun devanagari-decompose-char (glyph)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1175 "This function decomposes one Devanagari composite glyph to
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1176 basic Devanagari characters as a string."
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1177 (let ((glyphlist
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1178 (if (eq (car (split-char glyph)) 'composition)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1179 (string-to-list (decompose-composite-char glyph))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1180 (list glyph))))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1181 (setq glyphlist (devanagari-normalize-narrow-glyph glyphlist))
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1182 (setq glyphlist (devanagari-reorder-glyphs-for-decomposition glyphlist))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1183 (string-conversion-by-rule
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1184 (mapconcat 'char-to-string glyphlist "") 'glyph-to-char)))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1185
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1186 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1187 (defun devanagari-decompose-string (str)
20839
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
1188 "Decompose Devanagari glyph string STR to basic Devanagari character string."
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
1189 (let ((len (length str))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
1190 (i 0)
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
1191 (dst ""))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
1192 (while (< i len)
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
1193 (setq dst (concat dst (devanagari-decompose-char (aref str i)))
e933240ee6c0 Do not require `cl'.
Kenichi Handa <handa@m17n.org>
parents: 20737
diff changeset
1194 i (1+ i)))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1195 dst))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1196
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1197 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1198 (defun devanagari-decompose-region (from to)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1199 (interactive "r")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1200 (save-restriction
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1201 (narrow-to-region from to)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1202 (goto-char (point-min))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1203 (while (re-search-forward "." nil t)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1204 (let* ((match-b (match-beginning 0)) (match-e (match-end 0))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1205 (decmps (devanagari-decompose-string (buffer-substring match-b match-e))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1206 (delete-char -1)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1207 (insert decmps)))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1208
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1209 ;;;
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1210 ;;; Composition
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1211 ;;;
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1212
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1213 ;;;###autoload
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1214 (defun devanagari-compose-string (str &rest langs)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1215 (let ((len (length str))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1216 (src (devanagari-decompose-string str)) (dst "") rest match-b match-e)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1217 (while (string-match devanagari-composite-glyph-unit src)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1218 (setq match-b (match-beginning 0) match-e (match-end 0))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1219 (setq dst
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1220 (concat dst
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1221 (substring src 0 match-b)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1222 (devanagari-compose-to-one-glyph
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1223 (apply
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1224 'char-to-glyph-devanagari
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1225 (cons (substring src match-b match-e)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1226 langs)))))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1227 (setq src (substring src match-e)))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1228 (setq dst (concat dst src))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1229 dst))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1230
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1231 ;;;###autoload
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1232 (defun devanagari-compose-region (from to &rest langs)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1233 (interactive "r")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1234 (save-restriction
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1235 (narrow-to-region from to)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1236 (goto-char (point-min))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1237 (while (re-search-forward devanagari-composite-glyph-unit nil t)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1238 (let* ((match-b (match-beginning 0)) (match-e (match-end 0))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1239 (cmps (devanagari-compose-to-one-glyph
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1240 (apply
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1241 'char-to-glyph-devanagari
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1242 (cons (buffer-substring match-b match-e)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1243 langs)))))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1244 (delete-region match-b match-e)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1245 (insert cmps)))))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1246
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1247 ;; For pre-write and post-read conversion
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1248
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1249 ;;;###autoload
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1250 (defun devanagari-compose-from-is13194-region (from to)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1251 "Compose IS 13194 characters in the region to Devanagari characters."
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1252 (interactive "r")
20111
761a83f7cb4e (devanagari-compose-from-is13194-region):
Kenichi Handa <handa@m17n.org>
parents: 18547
diff changeset
1253 (save-excursion
761a83f7cb4e (devanagari-compose-from-is13194-region):
Kenichi Handa <handa@m17n.org>
parents: 18547
diff changeset
1254 (save-restriction
761a83f7cb4e (devanagari-compose-from-is13194-region):
Kenichi Handa <handa@m17n.org>
parents: 18547
diff changeset
1255 (narrow-to-region from to)
761a83f7cb4e (devanagari-compose-from-is13194-region):
Kenichi Handa <handa@m17n.org>
parents: 18547
diff changeset
1256 (indian-to-devanagari-region (point-min) (point-max))
761a83f7cb4e (devanagari-compose-from-is13194-region):
Kenichi Handa <handa@m17n.org>
parents: 18547
diff changeset
1257 (devanagari-compose-region (point-min) (point-max))
761a83f7cb4e (devanagari-compose-from-is13194-region):
Kenichi Handa <handa@m17n.org>
parents: 18547
diff changeset
1258 (- (point-max) (point-min)))))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1259
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1260 ;;;###autoload
17773
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1261 (defun in-is13194-devanagari-post-read-conversion (len)
20111
761a83f7cb4e (devanagari-compose-from-is13194-region):
Kenichi Handa <handa@m17n.org>
parents: 18547
diff changeset
1262 (let ((pos (point))
761a83f7cb4e (devanagari-compose-from-is13194-region):
Kenichi Handa <handa@m17n.org>
parents: 18547
diff changeset
1263 (buffer-modified-p (buffer-modified-p)))
761a83f7cb4e (devanagari-compose-from-is13194-region):
Kenichi Handa <handa@m17n.org>
parents: 18547
diff changeset
1264 (prog1
761a83f7cb4e (devanagari-compose-from-is13194-region):
Kenichi Handa <handa@m17n.org>
parents: 18547
diff changeset
1265 (devanagari-compose-from-is13194-region pos (+ pos len))
761a83f7cb4e (devanagari-compose-from-is13194-region):
Kenichi Handa <handa@m17n.org>
parents: 18547
diff changeset
1266 (set-buffer-modified-p buffer-modified-p))))
17773
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1267
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1268 ;;;###autoload
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1269 (defun devanagari-decompose-to-is13194-region (from to)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1270 "Decompose Devanagari characters in the region to IS 13194 characters."
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1271 (interactive "r")
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1272 (save-restriction
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1273 (narrow-to-region from to)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1274 (devanagari-decompose-region (point-min) (point-max))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1275 (devanagari-to-indian-region (point-min) (point-max))))
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1276
17773
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1277 ;;;###autoload
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1278 (defun in-is13194-devanagari-pre-write-conversion (from to)
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1279 (let ((old-buf (current-buffer))
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1280 (work-buf (get-buffer-create " *devanagari-work*")))
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1281 (set-buffer work-buf)
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1282 (erase-buffer)
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1283 (if (stringp from)
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1284 (insert from)
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1285 (insert-buffer-substring old-buf from to))
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1286 (devanagari-decompose-to-is13194-region (point-min) (point-max))
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1287 ;; Should return nil as annotations.
f1ece95d00c2 (in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents: 17314
diff changeset
1288 nil))
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1289
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1290 ;; For input/output of ITRANS
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1291
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1292 ;;;###autoload
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1293 (defun devanagari-encode-itrans-region (from to)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1294 (interactive "r")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1295 (save-restriction
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1296 (narrow-to-region from to)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1297 (devanagari-decompose-to-is13194-region (point-min) (point-max))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1298 (indian-encode-itrans-region (point-min) (point-max))))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1299
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1300 ;;;###autoload
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1301 (defun devanagari-decode-itrans-region (from to)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1302 (interactive "r")
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1303 (save-restriction
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1304 (narrow-to-region from to)
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1305 (indian-decode-itrans-region (point-min) (point-max))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1306 (devanagari-compose-from-is13194-region (point-min) (point-max))))
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1307
17850
0b163f31c39c Comment change for testing.
Richard M. Stallman <rms@gnu.org>
parents: 17773
diff changeset
1308 ;; Test comment.
0b163f31c39c Comment change for testing.
Richard M. Stallman <rms@gnu.org>
parents: 17773
diff changeset
1309
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1310 ;;
18309
bd8b521f5218 Provide XXX-util instead of
Kenichi Handa <handa@m17n.org>
parents: 18203
diff changeset
1311 (provide 'devan-util)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1312
17300
01d528c5dd18 Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents: 17087
diff changeset
1313 ;;; devan-util.el end here