Mercurial > emacs
annotate lisp/language/devan-util.el @ 91571:42b5c4e03611
Mention removal of --with-gcc, --with-gtk.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 06 Feb 2008 07:59:09 +0000 |
parents | 606f2d163a64 |
children |
rev | line source |
---|---|
89141 | 1 ;;; devan-util.el --- Support for composing Devanagari characters -*-coding: iso-2022-7bit;-*- |
17052 | 2 |
79711 | 3 ;; Copyright (C) 1997, 1998, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
62396 | 4 ;; Free Software Foundation, Inc. |
79711 | 5 ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
6 ;; 2007, 2008 | |
62396 | 7 ;; National Institute of Advanced Industrial Science and Technology (AIST) |
8 ;; Registration Number H14PRO021 | |
17052 | 9 |
49704
003055ca7e13
Maintainer's mail address changed.
Kenichi Handa <handa@m17n.org>
parents:
49598
diff
changeset
|
10 ;; Maintainer: KAWABATA, Taichi <kawabata@m17n.org> |
41469 | 11 ;; Keywords: multilingual, Devanagari |
17052 | 12 |
13 ;; This file is part of GNU Emacs. | |
14 | |
15 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
16 ;; it under the terms of the GNU General Public License as published by | |
78309
0938de05f510
Restore comma mistakenly removed in last change.
Glenn Morris <rgm@gnu.org>
parents:
78300
diff
changeset
|
17 ;; the Free Software Foundation; either version 3, or (at your option) |
17052 | 18 ;; any later version. |
19 | |
20 ;; GNU Emacs is distributed in the hope that it will be useful, | |
21 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 ;; GNU General Public License for more details. | |
24 | |
25 ;; 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
|
26 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
64085 | 27 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
28 ;; Boston, MA 02110-1301, USA. | |
17052 | 29 |
41469 | 30 ;; Created: Feb. 17. 2001 |
31 | |
17052 | 32 ;;; Commentary: |
33 | |
41469 | 34 ;; This file provides character(Unicode) to glyph(CDAC) conversion and |
35 ;; composition of Devanagari script characters. | |
17052 | 36 |
37 ;;; Code: | |
38 | |
41469 | 39 ;; Devanagari Composable Pattern |
40 ;; C .. Consonants | |
41 ;; V .. Vowel | |
42 ;; H .. Halant | |
43 ;; M .. Matra | |
44 ;; V .. Vowel | |
45 ;; A .. Anuswar | |
46 ;; D .. Chandrabindu | |
47 ;; (N .. Zerowidth Non Joiner) | |
48 ;; (J .. Zerowidth Joiner. ) | |
49 ;; 1. vowel | |
50 ;; V(A/D)? | |
51 ;; 2. syllable : maximum of 5 consecutive consonants. (e.g. kartsnya) | |
41602 | 52 ;; ((CH)?(CH)?(CH)?CH)?C(H|M?(A|D)?)? |
17052 | 53 |
41469 | 54 (defconst devanagari-consonant |
55 "[$,15U(B-$,15y68(B-$,16?(B]") | |
17052 | 56 |
89483 | 57 ;;("$,16B(B" . nil) |
58 ;;("$,16A(B" . nil) | |
59 ;;("$,16C(B" . nil) | |
60 | |
61 | |
41469 | 62 (defconst devanagari-composable-pattern |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
63 (concat |
49709
512864aab842
(devanagari-composable-pattern): Add DANDA character.
Kenichi Handa <handa@m17n.org>
parents:
49704
diff
changeset
|
64 "\\([$,15E(B-$,15T6@6A(B][$,15A5B(B]?\\)\\|[$,15C6D(B]" |
41469 | 65 "\\|\\(" |
66 "\\(?:\\(?:[$,15U(B-$,15y68(B-$,16?(B]$,16-(B\\)?\\(?:[$,15U(B-$,15y68(B-$,16?(B]$,16-(B\\)?\\(?:[$,15U(B-$,15y68(B-$,16?(B]$,16-(B\\)?[$,15U(B-$,15y68(B-$,16?(B]$,16-(B\\)?" | |
67 "[$,15U(B-$,15y68(B-$,16?(B]\\(?:$,16-(B\\|[$,15~(B-$,16-6B6C(B]?[$,15B5A(B]?\\)?" | |
68 "\\)") | |
69 "Regexp matching a composable sequence of Devanagari characters.") | |
17052 | 70 |
89295
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
71 (dolist (range '((#x0903 . #x0903) |
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
72 (#x0905 . #x0939) |
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
73 (#x0958 . #x0961))) |
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
74 (set-char-table-range indian-composable-pattern range |
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
75 devanagari-composable-pattern)) |
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
76 |
56030
c66eebe86159
(devanagari-compose-region): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52517
diff
changeset
|
77 ;;;###autoload |
41469 | 78 (defun devanagari-compose-region (from to) |
17300
01d528c5dd18
Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents:
17087
diff
changeset
|
79 (interactive "r") |
26894 | 80 (save-excursion |
81 (save-restriction | |
82 (narrow-to-region from to) | |
83 (goto-char (point-min)) | |
41469 | 84 (while (re-search-forward devanagari-composable-pattern nil t) |
89096
856a479d9c34
(dev-charseq): Avoid indian-glyph-char.
Dave Love <fx@gnu.org>
parents:
88616
diff
changeset
|
85 (devanagari-compose-syllable-region (match-beginning 0) |
856a479d9c34
(dev-charseq): Avoid indian-glyph-char.
Dave Love <fx@gnu.org>
parents:
88616
diff
changeset
|
86 (match-end 0)))))) |
41469 | 87 (defun devanagari-compose-string (string) |
88 (with-temp-buffer | |
89 (insert (decompose-string string)) | |
90 (devanagari-compose-region (point-min) (point-max)) | |
91 (buffer-string))) | |
92 | |
52517
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
93 ;;;###autoload |
42054
144a811f0590
(devanagari-post-read-conversion): New
Dave Love <fx@gnu.org>
parents:
41602
diff
changeset
|
94 (defun devanagari-post-read-conversion (len) |
144a811f0590
(devanagari-post-read-conversion): New
Dave Love <fx@gnu.org>
parents:
41602
diff
changeset
|
95 (save-excursion |
144a811f0590
(devanagari-post-read-conversion): New
Dave Love <fx@gnu.org>
parents:
41602
diff
changeset
|
96 (save-restriction |
144a811f0590
(devanagari-post-read-conversion): New
Dave Love <fx@gnu.org>
parents:
41602
diff
changeset
|
97 (let ((buffer-modified-p (buffer-modified-p))) |
144a811f0590
(devanagari-post-read-conversion): New
Dave Love <fx@gnu.org>
parents:
41602
diff
changeset
|
98 (narrow-to-region (point) (+ (point) len)) |
144a811f0590
(devanagari-post-read-conversion): New
Dave Love <fx@gnu.org>
parents:
41602
diff
changeset
|
99 (devanagari-compose-region (point-min) (point-max)) |
144a811f0590
(devanagari-post-read-conversion): New
Dave Love <fx@gnu.org>
parents:
41602
diff
changeset
|
100 (set-buffer-modified-p buffer-modified-p) |
144a811f0590
(devanagari-post-read-conversion): New
Dave Love <fx@gnu.org>
parents:
41602
diff
changeset
|
101 (- (point-max) (point-min)))))) |
144a811f0590
(devanagari-post-read-conversion): New
Dave Love <fx@gnu.org>
parents:
41602
diff
changeset
|
102 |
42061
0332665b9445
(devanagari-range): Renamed from `range'. All calls changed.
Richard M. Stallman <rms@gnu.org>
parents:
42054
diff
changeset
|
103 (defun devanagari-regexp-of-hashtbl-keys (hashtbl) |
0332665b9445
(devanagari-range): Renamed from `range'. All calls changed.
Richard M. Stallman <rms@gnu.org>
parents:
42054
diff
changeset
|
104 "Return a regular expression that matches all keys in hashtable HASHTBL." |
41469 | 105 (let ((max-specpdl-size 1000)) |
106 (regexp-opt | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
107 (sort |
41469 | 108 (let (dummy) |
109 (maphash (function (lambda (key val) (setq dummy (cons key dummy)))) hashtbl) | |
110 dummy) | |
111 (function (lambda (x y) (> (length x) (length y)))))))) | |
112 | |
89295
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
113 ;;;###autoload |
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
114 (defun devanagari-composition-function (pos &optional string) |
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
115 "Compose Devanagari characters after the position POS. |
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
116 If STRING is not nil, it is a string, and POS is an index to the string. |
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
117 In this case, compose characters after POS of the string." |
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
118 (if string |
91181
392369adecec
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
91153
diff
changeset
|
119 (if auto-compose-current-font |
392369adecec
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
91153
diff
changeset
|
120 (if (eq (string-match "[$,15@(B-$,16_(B]+" pos) pos) |
91153
e89e6dacdffa
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
121 (or (font-shape-text 0 (match-end 0) auto-compose-current-font |
e89e6dacdffa
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
122 string) |
e89e6dacdffa
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
123 pos))) |
89295
ea8374ccb41f
Register devanagari-composable-pattern
Kenichi Handa <handa@m17n.org>
parents:
89264
diff
changeset
|
124 (goto-char pos) |
91181
392369adecec
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
91153
diff
changeset
|
125 (if auto-compose-current-font |
392369adecec
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
91153
diff
changeset
|
126 (if (looking-at "[$,15@(B-$,16_(B]+") |
91153
e89e6dacdffa
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
127 (or (font-shape-text pos (match-end 0) auto-compose-current-font) |
e89e6dacdffa
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
128 pos) |
91181
392369adecec
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
91153
diff
changeset
|
129 (if (looking-at devanagari-composable-pattern) |
392369adecec
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
91153
diff
changeset
|
130 (prog1 (match-end 0) |
392369adecec
(devanagari-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents:
91153
diff
changeset
|
131 (devanagari-compose-syllable-region pos (match-end 0)))))))) |
41469 | 132 |
133 ;; Notes on conversion steps. | |
17052 | 134 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
135 ;; 1. chars to glyphs |
41469 | 136 ;; |
137 ;; Rules will not be applied to the halant appeared at the end of the | |
138 ;; text. Also, the preceding/following "r" will be treated as special case. | |
139 | |
140 ;; 2. glyphs reordering. | |
141 ;; | |
142 ;; The glyphs are split by halant, and each glyph groups are | |
143 ;; re-ordered in the following order. | |
144 ;; | |
145 ;; Note that `consonant-glyph' mentioned here does not contain the | |
146 ;; vertical bar (right modifier) attached at the right of the | |
147 ;; consonant. | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
148 ;; |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
149 ;; If the glyph-group contains right modifier, |
41469 | 150 ;; (1) consonant-glyphs/vowels, with nukta sign |
151 ;; (2) spacing | |
152 ;; (3) right modifier (may be matra) | |
153 ;; (4) top matra | |
154 ;; (5) preceding "r" | |
155 ;; (6) anuswar | |
156 ;; (7) following "r" | |
157 ;; (8) bottom matra or halant. | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
158 ;; |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
159 ;; Otherwise, |
41469 | 160 ;; (1) consonant-glyph/vowels, with nukta sign |
161 ;; (3) left matra | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
162 ;; (4) top matra |
41469 | 163 ;; (5) preceding "r" |
164 ;; (6) anuswar | |
165 ;; (7) following "r" | |
166 ;; (8) bottom matra or halant. | |
167 ;; (2) spacing | |
168 | |
169 ;; 3. glyph to glyph | |
170 ;; | |
171 ;; For better display, some glyph display would be tuned. | |
172 | |
173 ;; 4. Composition. | |
174 ;; | |
175 ;; left modifiers will be attached at the left. | |
176 ;; others will be attached right. | |
177 | |
178 ;; Problem:: | |
179 ;; Can we generalize this methods to other Indian scripts? | |
17052 | 180 |
41523 | 181 (defvar dev-char-glyph |
182 '(("$,15E(B" . "$,4 K(B") | |
41599 | 183 ("$,15F(B" . "$,4 K")(B") |
184 ("$,15~(B" . "$,4")(B") | |
41523 | 185 ("$,15G(B" . "$,4 \(B") |
41599 | 186 ("$,15(B" . "$,4"*(B") |
187 ("$,155A(B" . "$,4"*(B\$,4"&(B") | |
41523 | 188 ("$,15H(B" . "$,4 \"'(B") |
41599 | 189 ("$,15H5A(B" . "$,4 \"'"&(B") |
190 ("$,16 (B" . "$,4"2(B") | |
191 ("$,16 5A(B" . "$,4"2"&(B") | |
41523 | 192 ("$,15I(B" . "$,4 ](B") |
41599 | 193 ("$,16!(B" . "$,4"6(B") |
194 ("$,15J(B" . "$,4 ^"P(B") | |
195 ("$,16"(B" . "$,4":(B") | |
196 ("$,15K(B" . "$,4 `"Q(B") | |
197 ("$,16#(B" . "$,4">(B") | |
41523 | 198 ;;("$,15L(B" . nil) ; not implemented. |
41599 | 199 ("$,16$(B" . "$,4"?(B") |
200 ("$,15M(B" . "$,4 b"L(B") | |
201 ("$,15M5A(B" . "$,4 b"$(B") | |
202 ("$,15M5B(B" . "$,4 b"$(B") | |
203 ("$,16%(B" . "\$,4"L(B") | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
204 ("$,15N(B" . "$,4 b"@(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
205 ("$,15N5A(B" . "$,4 b"@"&(B") |
41599 | 206 ("$,16&(B" . "\$,4"@(B") |
207 ("$,16&5A(B" . "\$,4"@(B\$,4"&(B") | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
208 ("$,15O(B" . "$,4 b(B") |
41599 | 209 ("$,16'(B" . "\$,4"D(B") |
210 ("$,16'5A(B" . "\$,4"D(B\$,4"&(B") | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
211 ("$,15P(B" . "$,4 b"D(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
212 ("$,15P5A(B" . "$,4 b"D"&(B") |
41599 | 213 ("$,16((B" . "\$,4"H(B") |
214 ("$,16(5A(B" . "\$,4"H(B\$,4"&(B") | |
215 ("$,15Q(B" . "$,4 K")"L(B") ;; special rule for reodering. | |
216 ("$,15Q5A(B" . "$,4 K")"$(B") | |
217 ("$,15Q5B(B" . "$,4 K")"$(B") | |
218 ("$,16)(B" . "\$,4")"L(B") | |
219 ("$,16)5A(B" . "\$,4")"$(B") | |
220 ("$,16)5B(B" . "\$,4")"$(B") | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
221 ("$,15R(B" . "$,4 K")"@(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
222 ("$,15R5A(B" . "$,4 K")"@"&(B") |
41599 | 223 ("$,16*(B" . "\$,4")"@(B") |
224 ("$,16*5A(B" . "\$,4")"@"&(B") | |
225 ("$,15S(B" . "$,4 K")"D(B") | |
226 ("$,15S5A(B" . "$,4 K")"D"&(B") | |
227 ("$,16+(B" . "\$,4")"D(B") | |
228 ("$,16+5A(B" . "\$,4")"D"&(B") | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
229 ("$,15T(B" . "$,4 K")"H(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
230 ("$,15T5A(B" . "$,4 K")"H"&(B") |
41599 | 231 ("$,16,(B" . "\$,4")"H(B") |
232 ("$,16,5A(B" . "\$,4")"H"&(B") | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
233 ("$,16@(B" . "$,4 a"Q(B") |
41523 | 234 ;;("$,16B(B" . nil) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
235 ;;("$,16A(B" . nil) |
41523 | 236 ;;("$,16C(B" . nil) |
41469 | 237 |
41523 | 238 ;; GRUTTALS |
41599 | 239 ("$,15U(B" . "$,4 e"R(B") |
41523 | 240 ("$,15U6-(B" . "$,4 c(B") |
41599 | 241 ("$,15U6-5p(B" . "$,4 g"R(B") |
242 ("$,15U6-5d(B" . "$,4 h"R(B") | |
243 ("$,15U6-5w(B" . "$,4 i")(B") | |
41523 | 244 ("$,15U6-5w6-(B" . "$,4 i(B") |
41469 | 245 |
41599 | 246 ("$,15V(B" . "$,4 j")(B") |
41523 | 247 ("$,15V6-(B" . "$,4 j(B") |
41599 | 248 ("$,15V6-5p(B" . "$,4 l")(B") |
41523 | 249 ("$,15V6-5p6-(B" . "$,4 l(B") |
41469 | 250 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
251 ("$,15W(B" . "$,4 m")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
252 ("$,15W6-(B" . "$,4 m(B") |
41599 | 253 ("$,15W6-5p(B" . "$,4 o")(B") |
41523 | 254 ("$,15W6-5p6-(B" . "$,4 o(B") |
41469 | 255 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
256 ("$,15X(B" . "$,4 p")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
257 ("$,15X6-(B" . "$,4 p(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
258 ("$,15X6-5p(B" . "$,4 q")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
259 ("$,15X6-5p6-(B" . "$,4 q(B") |
41469 | 260 |
41599 | 261 ("$,15Y(B" . "$,4 r"S(B") |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
262 ;; PALATALS |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
263 ("$,15Z(B" . "$,4 s")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
264 ("$,15Z6-(B" . "$,4 s(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
265 ("$,15Z6-5p(B" . "$,4 t")(B") |
41523 | 266 ("$,15Z6-5p6-(B" . "$,4 t(B") |
41469 | 267 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
268 ("$,15[(B" . "$,4 u"T(B") |
41469 | 269 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
270 ("$,15\(B" . "$,4 v")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
271 ("$,15\6-(B" . "$,4 v(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
272 ("$,15\6-5p(B" . "$,4 x")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
273 ("$,15\6-5p6-(B" . "$,4 x(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
274 ("$,15\6-5^(B" . "$,4 y")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
275 ("$,15\6-5^6-(B" . "$,4 y(B") |
17052 | 276 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
277 ("$,15](B" . "$,4 z")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
278 ("$,15]6-(B" . "$,4 z(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
279 ("$,15]6-5p(B" . "$,4 {")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
280 ("$,15]6-5p6-(B" . "$,4 {(B") |
41469 | 281 |
41599 | 282 ("$,15^(B" . "$,4 |")(B") |
41523 | 283 ("$,15^6-(B" . "$,4 |(B") |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
284 ;; CEREBRALS |
41599 | 285 ("$,15_(B" . "$,4 }"U(B") |
286 ("$,15_6-5_(B" . "$,4 ~"U(B") | |
287 ("$,15_6-5`(B" . "$,4 "U(B") | |
41469 | 288 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
289 ("$,15`(B" . "$,4! "V(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
290 ("$,15`6-5`(B" . "$,4!!"V(B") |
41469 | 291 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
292 ("$,15a(B" . "$,4!""W(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
293 ("$,15a6-5a(B" . "$,4!$"W(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
294 ("$,15a6-5b(B" . "$,4!%"W(B") |
41469 | 295 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
296 ("$,15b(B" . "$,4!&"X(B") |
41469 | 297 |
41599 | 298 ("$,15c(B" . "$,4!(")(B") |
41523 | 299 ("$,15c6-(B" . "$,4!((B") |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
300 ;; DENTALS |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
301 ("$,15d(B" . "$,4!)")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
302 ("$,15d6-(B" . "$,4!)(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
303 ("$,15d6-5p(B" . "$,4!*")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
304 ("$,15d6-5p6-(B" . "$,4!*(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
305 ("$,15d6-5d(B" . "$,4!+")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
306 ("$,15d6-5d6-(B" . "$,4!+(B") |
41469 | 307 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
308 ("$,15e(B" . "$,4!,")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
309 ("$,15e6-(B" . "$,4!,(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
310 ("$,15e6-5p(B" . "$,4!-")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
311 ("$,15e6-5p6-(B" . "$,4!-(B") |
41469 | 312 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
313 ("$,15f(B" . "$,4!."Y(B") |
41599 | 314 ("$,15f6#(B" . "$,4!/"Y(B") |
315 ("$,15f6-5p(B" . "$,4!0"Y(B") | |
316 ("$,15f6-5f(B" . "$,4!1"Y(B") | |
317 ("$,15f6-5g(B" . "$,4!2"Y(B") | |
41523 | 318 ("$,15f6-5n(B" . "$,4!3(B") |
319 ("$,15f6-5o(B" . "$,4!4(B") | |
41599 | 320 ("$,15f6-5u(B" . "$,4!5"Y(B") |
17773
f1ece95d00c2
(in-is13194-devanagari-post-read-conversion): New function.
Kenichi Handa <handa@m17n.org>
parents:
17314
diff
changeset
|
321 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
322 ("$,15g(B" . "$,4!6")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
323 ("$,15g6-(B" . "$,4!6(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
324 ("$,15g6-5p(B" . "$,4!7")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
325 ("$,15g6-5p6-(B" . "$,4!7(B") |
41469 | 326 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
327 ("$,15h(B" . "$,4!8")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
328 ("$,15h6-(B" . "$,4!8(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
329 ("$,15h6-5p(B" . "$,4!9")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
330 ("$,15h6-5p6-(B" . "$,4!9")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
331 ("$,15h6-5h(B" . "$,4!:")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
332 ("$,15h6-5h6-(B" . "$,4!:(B") |
41469 | 333 |
41599 | 334 ("$,15i(B" . "$,4!8"#")(B") |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
335 ;; LABIALS |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
336 ("$,15j(B" . "$,4!;")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
337 ("$,15j6-(B" . "$,4!;(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
338 ("$,15j6-5p(B" . "$,4!<")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
339 ("$,15j6-5p6-(B" . "$,4!<(B") |
41469 | 340 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
341 ("$,15k(B" . "$,4!a"[(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
342 ("$,15k6-(B" . "$,4!=(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
343 ("$,15k6-5p(B" . "$,4!c"[(B") |
41469 | 344 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
345 ("$,15l(B" . "$,4!d")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
346 ("$,15l6-(B" . "$,4!d(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
347 ("$,15l6-5p(B" . "$,4!e")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
348 ("$,15l6-5p6-(B" . "$,4!e(B") |
41469 | 349 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
350 ("$,15m(B" . "$,4!f")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
351 ("$,15m6-(B" . "$,4!f(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
352 ("$,15m6-5p(B" . "$,4!g")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
353 ("$,15m6-5p6-(B" . "$,4!g(B") |
41469 | 354 |
41599 | 355 ("$,15n(B" . "$,4!h")(B") |
41523 | 356 ("$,15n6-(B" . "$,4!h(B") |
41599 | 357 ("$,15n6-5p(B" . "$,4!i")(B") |
41523 | 358 ("$,15n6-5p6-(B" . "$,4!i(B") |
359 ;; SEMIVOWELS | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
360 ("$,15o(B" . "$,4!j")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
361 ("$,15o6-(B" . "$,4!j(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
362 ("$,15o6-5p(B" . "$,4!k")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
363 ("$,15o6-5p6-(B" . "$,4!k(B") |
41523 | 364 ("$,16-5o(B" . "$,4!l(B") ;; when every ohter lig. fails. |
41469 | 365 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
366 ("$,15p(B" . "$,4!n"W(B") |
41523 | 367 ;; ("$,15p6-(B" . "\$,4"'(B") ;; special case. only the topmost pos. |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
368 ("$,15q(B" . "$,4!n"#"W(B") |
41523 | 369 ("$,15q6-(B" . "$,4!m(B") ;; IS 13194 speical rule. |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
370 ("$,15p6!(B" . "$,4!o"[(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
371 ("$,15p6"(B" . "$,4!p"\(B") |
17052 | 372 |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
373 ("$,15r(B" . "$,4!q")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
374 ("$,15r6-(B" . "$,4!q(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
375 ("$,15s(B" . "$,4!s(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
376 ("$,15s6-(B" . "$,4!r(B") |
41599 | 377 ("$,15t(B" . "$,4!s"#(B") |
378 ("$,15t6-(B" . "$,4!r"#(B") | |
41469 | 379 |
41599 | 380 ("$,15u(B" . "$,4!t")(B") |
41523 | 381 ("$,15u6-(B" . "$,4!t(B") |
41599 | 382 ("$,15u6-5p(B" . "$,4!u")(B") |
41523 | 383 ("$,15u6-5p6-(B" . "$,4!u(B") |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
384 ;; SIBILANTS |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
385 ("$,15v(B" . "$,4!v")(B") |
41523 | 386 ("$,15v6-(B" . "$,4!v(B") |
41599 | 387 ("$,15v6-5u(B" . "$,4!w")(B") |
41523 | 388 ("$,15v6-5u6-(B" . "$,4!w(B") |
41599 | 389 ("$,15v6-5p(B" . "$,4!x")(B") |
41523 | 390 ("$,15v6-5p6-(B" . "$,4!x(B") |
41469 | 391 |
41599 | 392 ("$,15w(B" . "$,4!y")(B") |
41523 | 393 ("$,15w6-(B" . "$,4!y(B") |
41599 | 394 ("$,15x(B" . "$,4!z")(B") |
41523 | 395 ("$,15x6-(B" . "$,4!z(B") |
41599 | 396 ("$,15x6-5p(B" . "$,4!{")(B") |
41523 | 397 ("$,15x6-5p6-(B" . "$,4!{(B") |
17300
01d528c5dd18
Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents:
17087
diff
changeset
|
398 |
41523 | 399 ("$,15y(B" . "$,4!}(B") |
400 ("$,15y6-(B" . "$,4!|(B") | |
401 ("$,15y6#(B" . "$,4!~(B") | |
402 ("$,15y6-5p(B" . "$,4!(B") | |
41599 | 403 ("$,15y6-5n(B" . "$,4" (B") |
404 ("$,15y6-5o(B" . "$,4"!(B") | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
405 ;; NUKTAS |
41599 | 406 ("$,168(B" . "$,4 f"R"S(B") |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
407 ("$,1686-(B" . "$,4 d(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
408 ("$,169(B" . "$,4 k")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
409 ("$,1696-(B" . "$,4 k(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
410 ("$,16:(B" . "$,4 n")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
411 ("$,16:6-(B" . "$,4 n(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
412 ("$,16;(B" . "$,4 w")(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
413 ("$,16;6-(B" . "$,4 w(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
414 ("$,16<(B" . "$,4!#"W(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
415 ("$,16=(B" . "$,4!'"X(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
416 ("$,16>(B" . "$,4!b"[(B") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
417 ("$,16>6-(B" . "$,4!>(B") |
41599 | 418 ("$,16?(B" . "$,4!j"#")(B") |
41523 | 419 ;; misc modifiers. |
41599 | 420 ("$,15A(B" . "\$,4"$(B") |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
421 ("$,15B(B" . "\$,4"&(B") |
41523 | 422 ("$,15C(B" . "$,4 F(B") |
41599 | 423 ("$,15|(B" . "$,4"#(B") |
41523 | 424 ("$,15}(B" . "$,4 E(B") |
41599 | 425 ("$,16-(B" . "$,4""(B") |
426 ("$,16-5p(B" . "$,4"%(B") ;; following "r" | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
427 ;; ("$,160(B" . "$,4 D(B") |
49709
512864aab842
(devanagari-composable-pattern): Add DANDA character.
Kenichi Handa <handa@m17n.org>
parents:
49704
diff
changeset
|
428 ("$,16D(B" . "$,4 J(B") |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
429 ;; ("$,16F(B" . "") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
430 ;; ("$,16G(B" . "") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
431 ;; ("$,16H(B" . "") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
432 ;; ("$,16I(B" . "") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
433 ;; ("$,16J(B" . "") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
434 ;; ("$,16K(B" . "") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
435 ;; ("$,16L(B" . "") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
436 ;; ("$,16M(B" . "") |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
437 ;; ("$,16N(B" . "") |
41523 | 438 ;; ("$,16O(B" . "") |
439 ) | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
440 "Devanagari characters to glyphs conversion table. |
41523 | 441 Default value contains only the basic rules. You may add your own |
442 preferred rule from the sanskrit fonts." ) | |
41469 | 443 |
444 (defvar dev-char-glyph-hash | |
46222
abba3d3c7e98
(dev-char-glyph-hash, dev-glyph-glyph-hash)
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
42311
diff
changeset
|
445 (let* ((hash (make-hash-table :test 'equal))) |
41469 | 446 (mapc (function (lambda (x) (puthash (car x) (cdr x) hash))) |
447 dev-char-glyph) | |
448 hash)) | |
449 | |
450 (defvar dev-char-glyph-regexp | |
42061
0332665b9445
(devanagari-range): Renamed from `range'. All calls changed.
Richard M. Stallman <rms@gnu.org>
parents:
42054
diff
changeset
|
451 (devanagari-regexp-of-hashtbl-keys dev-char-glyph-hash)) |
41469 | 452 |
453 ;; glyph-to-glyph conversion table. | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
454 ;; it is supposed that glyphs are ordered in |
41469 | 455 ;; [consonant/nukta] - [matra/halant] - [preceding-r] - [anuswar]. |
456 | |
41523 | 457 (defvar dev-glyph-glyph |
41599 | 458 '(("\$,4"'(B\$,4"&(B" . "\$,4"((B") |
459 ("\$,4"'(B\$,4"$(B" . "\$,4"((B") | |
460 ("$,4"*(B\$,4"&(B" . "$,4"+(B") | |
461 ("$,4"*(B\$,4"'(B" . "$,4",(B") | |
462 ("$,4"*(B\$,4"'(B\$,4"&(B" . "$,4"-(B") | |
463 ("$,4"2(B\$,4"&(B" . "$,4"3(B") | |
464 ("$,4"2(B\$,4"'(B" . "$,4"4(B") | |
465 ("$,4"2(B\$,4"'(B\$,4"&(B" . "$,4"5(B") | |
466 ("$,4"#(B\$,4"6(B" . "$,4"7(B") | |
467 ("$,4"%(B\$,4"6(B" . "$,4"8(B") | |
468 ;;("$,4"6(B" . "$,4"9(B") | |
469 ("$,4"#(B\$,4":(B" . "$,4";(B") | |
470 ("$,4"%(B\$,4":(B" . "$,4"<(B") | |
471 ;;("$,4":(B" . "$,4"=(B") | |
472 ("\$,4"@(B\$,4"&(B" . "\$,4"A(B") | |
473 ("\$,4"@(B\$,4"'(B" . "\$,4"B(B") | |
474 ("\$,4"@(B\$,4"'(B\$,4"&(B" . "\$,4"C(B") | |
475 ("\$,4"D(B\$,4"&(B" . "\$,4"E(B") | |
476 ("\$,4"D(B\$,4"'(B" . "\$,4"F(B") | |
477 ("\$,4"D(B\$,4"'(B\$,4"&(B" . "\$,4"G(B") | |
478 ("\$,4"H(B\$,4"&(B" . "\$,4"I(B") | |
479 ("\$,4"H(B\$,4"'(B" . "\$,4"J(B") | |
480 ("\$,4"H(B\$,4"'(B\$,4"&(B" . "\$,4"K(B") | |
481 ("\$,4"L(B\$,4"&(B" . "\$,4"M(B") | |
482 ("\$,4"L(B\$,4"'(B" . "\$,4"N(B") | |
483 ("\$,4"L(B\$,4"'(B\$,4"&(B" . "\$,4"O(B") | |
41523 | 484 )) |
41469 | 485 (defvar dev-glyph-glyph-hash |
46222
abba3d3c7e98
(dev-char-glyph-hash, dev-glyph-glyph-hash)
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
42311
diff
changeset
|
486 (let* ((hash (make-hash-table :test 'equal))) |
41469 | 487 (mapc (function (lambda (x) (puthash (car x) (cdr x) hash))) |
488 dev-glyph-glyph) | |
489 hash)) | |
490 (defvar dev-glyph-glyph-regexp | |
42061
0332665b9445
(devanagari-range): Renamed from `range'. All calls changed.
Richard M. Stallman <rms@gnu.org>
parents:
42054
diff
changeset
|
491 (devanagari-regexp-of-hashtbl-keys dev-glyph-glyph-hash)) |
41469 | 492 |
493 | |
494 ;; yet another glyph-to-glyph conversions. | |
41523 | 495 (defvar dev-glyph-glyph-2 |
41599 | 496 '(("$,4"*(B" . "$,4".(B") |
497 ("$,4"+(B" . "$,4"/(B") | |
498 ("$,4",(B" . "$,4"0(B") | |
499 ("$,4"-(B" . "$,4"1(B"))) | |
41469 | 500 (defvar dev-glyph-glyph-2-hash |
46222
abba3d3c7e98
(dev-char-glyph-hash, dev-glyph-glyph-hash)
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
42311
diff
changeset
|
501 (let* ((hash (make-hash-table :test 'equal))) |
41469 | 502 (mapc (function (lambda (x) (puthash (car x) (cdr x) hash))) |
503 dev-glyph-glyph-2) | |
504 hash)) | |
505 (defvar dev-glyph-glyph-2-regexp | |
42061
0332665b9445
(devanagari-range): Renamed from `range'. All calls changed.
Richard M. Stallman <rms@gnu.org>
parents:
42054
diff
changeset
|
506 (devanagari-regexp-of-hashtbl-keys dev-glyph-glyph-2-hash)) |
41469 | 507 |
508 (defun dev-charseq (from &optional to) | |
509 (if (null to) (setq to from)) | |
89483 | 510 (number-sequence (decode-char 'devanagari-cdac from) |
511 (decode-char 'devanagari-cdac to))) | |
17300
01d528c5dd18
Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents:
17087
diff
changeset
|
512 |
41469 | 513 (defvar dev-glyph-cvn |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
514 (append |
41469 | 515 (dev-charseq #x2b) |
516 (dev-charseq #x3c #xc1) | |
517 (dev-charseq #xc3)) | |
518 "Devanagari Consonants/Vowels/Nukta Glyphs") | |
519 | |
520 (defvar dev-glyph-space | |
521 (dev-charseq #xf0 #xfe) | |
522 "Devanagari Spacing Glyphs") | |
523 | |
524 (defvar dev-glyph-right-modifier | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
525 (append |
41469 | 526 (dev-charseq #xc9) |
527 (dev-charseq #xd2 #xd5)) | |
528 "Devanagari Modifiers attached at the right side.") | |
529 | |
530 (defvar dev-glyph-right-modifier-regexp | |
531 (concat "[" dev-glyph-right-modifier "]")) | |
532 | |
533 (defvar dev-glyph-left-matra | |
534 (dev-charseq #xca #xd1) | |
535 "Devanagari Matras attached at the left side.") | |
536 | |
537 (defvar dev-glyph-top-matra | |
538 (dev-charseq #xe0 #xef) | |
539 "Devanagari Matras attached at the top side.") | |
540 | |
541 (defvar dev-glyph-bottom-modifier | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
542 (append |
41469 | 543 (dev-charseq #xd6 #xdf) |
544 (dev-charseq #xc2)) | |
545 "Devanagari Modifiers attached at the bottom.") | |
546 | |
547 (defvar dev-glyph-order | |
548 `((,dev-glyph-cvn . 1) | |
549 (,dev-glyph-space . 2) | |
550 (,dev-glyph-right-modifier . 3) | |
551 (,dev-glyph-left-matra . 3) ;; processed by reference point. | |
552 (,dev-glyph-top-matra . 4) | |
553 (,(dev-charseq #xc7 #xc8) . 5) | |
52124
f961cd1cd732
(dev-glyph-order): Add an entry for the glyph code #xC4.
Kenichi Handa <handa@m17n.org>
parents:
49709
diff
changeset
|
554 (,(dev-charseq #xc4) . 6) |
41469 | 555 (,(dev-charseq #xc6) . 6) |
556 (,(dev-charseq #xc5) . 7) | |
557 (,dev-glyph-bottom-modifier . 8))) | |
558 | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
559 (mapc |
41469 | 560 (function (lambda (x) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
46222
diff
changeset
|
561 (mapc |
41469 | 562 (function (lambda (y) |
563 (put-char-code-property y 'composition-order (cdr x)))) | |
564 (car x)))) | |
565 dev-glyph-order) | |
566 | |
567 (mapc | |
568 (function (lambda (x) | |
569 (put-char-code-property x 'reference-point '(3 . 5)))) | |
570 dev-glyph-left-matra) | |
571 | |
572 (defun devanagari-compose-syllable-string (string) | |
573 (with-temp-buffer | |
574 (insert (decompose-string string)) | |
575 (devanagari-compose-syllable-region (point-min) (point-max)) | |
576 (buffer-string))) | |
17300
01d528c5dd18
Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents:
17087
diff
changeset
|
577 |
41523 | 578 (defun devanagari-compose-syllable-region (from to) |
579 "Compose devanagari syllable in region FROM to TO." | |
580 (let ((glyph-str nil) (cons-num 0) glyph-str-list | |
52517
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
581 (last-halant nil) (preceding-r nil) (last-modifier nil) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
582 (last-char (char-before to)) match-str |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
583 glyph-block split-pos) |
41523 | 584 (save-excursion |
585 (save-restriction | |
52517
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
586 ;;; *** char-to-glyph conversion *** |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
587 ;; Special rule 1. -- Last halant must be preserved. |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
588 (if (eq last-char ?$,16-(B) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
589 (progn |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
590 (setq last-halant t) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
591 (narrow-to-region from (1- to))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
592 (narrow-to-region from to) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
593 ;; note if the last char is modifier. |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
594 (if (or (eq last-char ?$,15A(B) (eq last-char ?$,15B(B)) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
595 (setq last-modifier t))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
596 (goto-char (point-min)) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
597 ;; Special rule 2. -- preceding "r halant" must be modifier. |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
598 (when (looking-at "$,15p6-(B.") |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
599 (setq preceding-r t) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
600 (goto-char (+ 2 (point)))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
601 ;; translate the rest characters into glyphs |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
602 (while (re-search-forward dev-char-glyph-regexp nil t) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
603 (setq match-str (match-string 0)) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
604 (setq glyph-str |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
605 (concat glyph-str |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
606 (gethash match-str dev-char-glyph-hash))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
607 ;; count the number of consonant-glyhs. |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
608 (if (string-match devanagari-consonant match-str) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
609 (setq cons-num (1+ cons-num)))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
610 ;; preceding-r must be attached before the anuswar if exists. |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
611 (if preceding-r |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
612 (if last-modifier |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
613 (setq glyph-str (concat (substring glyph-str 0 -1) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
614 "$,4"'(B" (substring glyph-str -1))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
615 (setq glyph-str (concat glyph-str "$,4"'(B")))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
616 (if last-halant (setq glyph-str (concat glyph-str "$,4""(B"))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
617 ;;; *** glyph-to-glyph conversion *** |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
618 (when (string-match dev-glyph-glyph-regexp glyph-str) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
619 (setq glyph-str |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
620 (replace-match (gethash (match-string 0 glyph-str) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
621 dev-glyph-glyph-hash) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
622 nil t glyph-str)) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
623 (if (and (> cons-num 1) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
624 (string-match dev-glyph-glyph-2-regexp glyph-str)) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
625 (setq glyph-str |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
626 (replace-match (gethash (match-string 0 glyph-str) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
627 dev-glyph-glyph-2-hash) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
628 nil t glyph-str)))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
629 ;;; *** glyph reordering *** |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
630 (while (setq split-pos (string-match "$,4""(B\\|.$" glyph-str)) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
631 (setq glyph-block (substring glyph-str 0 (1+ split-pos))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
632 (setq glyph-str (substring glyph-str (1+ split-pos))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
633 (setq |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
634 glyph-block |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
635 (if (string-match dev-glyph-right-modifier-regexp glyph-block) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
636 (sort (string-to-list glyph-block) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
637 (function (lambda (x y) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
638 (< (get-char-code-property x 'composition-order) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
639 (get-char-code-property y 'composition-order))))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
640 (sort (string-to-list glyph-block) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
641 (function (lambda (x y) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
642 (let ((xo (get-char-code-property x 'composition-order)) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
643 (yo (get-char-code-property y 'composition-order))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
644 (if (= xo 2) nil (if (= yo 2) t (< xo yo))))))))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
645 (setq glyph-str-list (nconc glyph-str-list glyph-block))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
646 ;; concatenate and attach reference-points. |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
647 (setq glyph-str |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
648 (cdr |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
649 (apply |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
650 'nconc |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
651 (mapcar |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
652 (function (lambda (x) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
653 (list |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
654 (or (get-char-code-property x 'reference-point) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
655 '(5 . 3) ;; default reference point. |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
656 ) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
657 x))) |
549161fcb9cc
(devanagari-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
658 glyph-str-list)))))) |
41523 | 659 (compose-region from to glyph-str))) |
17300
01d528c5dd18
Handle more Devanagari characters correctly.
Kenichi Handa <handa@m17n.org>
parents:
17087
diff
changeset
|
660 |
18309
bd8b521f5218
Provide XXX-util instead of
Kenichi Handa <handa@m17n.org>
parents:
18203
diff
changeset
|
661 (provide 'devan-util) |
42311 | 662 |
52401 | 663 ;;; arch-tag: 9bc4d6e3-f2b9-4110-886e-ff9b66b7eebc |
42311 | 664 ;;; devan-util.el ends here |