annotate lisp/language/mlm-util.el @ 50410:fff8e0eb547c

(refill-fill-paragraph-at): Don't preserve the trailing space since fill.el doesn't remove it anymore. (refill-mode): Reset fill-paragraph-function even if it was nil.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 02 Apr 2003 23:57:17 +0000
parents bd6fa6f622f2
children 695cf19ef79e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
1 ;;; mlm-util.el --- support for composing malayalam characters -*-coding: iso-2022-7bit;-*-
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
2
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
3 ;; Copyright (C) 2003 Free Software Foundation, Inc.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
4
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
5 ;; Maintainer: KAWABATA, Taichi <kawabata@m17n.org>
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
6 ;; Keywords: multilingual, Malayalam
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
7
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
9
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
13 ;; any later version.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
14
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
18 ;; GNU General Public License for more details.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
19
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
23 ;; Boston, MA 02111-1307, USA.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
24
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
25 ;; Created: Feb. 11. 2003
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
26
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
27 ;;; Commentary:
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
28
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
29 ;; This file provides character(Unicode) to glyph(CDAC) conversion and
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
30 ;; composition of Malayalam script characters.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
31
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
32 ;;; Code:
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
33
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
34 ;; Malayalam Composable Pattern
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
35 ;; C .. Consonants
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
36 ;; V .. Vowel
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
37 ;; H .. Halant
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
38 ;; M .. Matra
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
39 ;; V .. Vowel
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
40 ;; A .. Anuswar
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
41 ;; D .. Chandrabindu
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
42 ;; (N .. Zerowidth Non Joiner)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
43 ;; (J .. Zerowidth Joiner. )
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
44 ;; 1. vowel
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
45 ;; V(A|visargam)?
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
46 ;; 2. syllable : maximum of 5 consecutive consonants. (e.g. kartsnya)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
47 ;; ((CH)?(CH)?(CH)?CH)?C(H|M?(A|D)?)?
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
48
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
49 (defconst malayalam-consonant
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
50 "[$,1@5(B-$,1@Y(B]")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
51
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
52 (defconst malayalam-composable-pattern
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
53 (concat
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
54 "\\([$,1@%(B-$,1@4(B][$,1@"(B]?\\)\\|$,1@#(B"
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
55 "\\|\\("
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
56 "\\(?:\\(?:[$,1@5(B-$,1@Y(B]$,1@m(B\\)?\\(?:[$,1@5(B-$,1@Y(B]$,1@m(B\\)?\\(?:[$,1@5(B-$,1@Y(B]$,1@m(B\\)?[$,1@5(B-$,1@Y(B]$,1@m(B\\)?"
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
57 "[$,1@5(B-$,1@Y(B]\\(?:$,1@m(B\\|[$,1@^(B-$,1@c@f@g@h@j@j@k@l(B]?[$,1@"@m(B]?\\)?"
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
58 "\\)")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
59 "Regexp matching a composable sequence of Malayalam characters.")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
60
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
61 ;;;###autoload
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
62 (defun malayalam-compose-region (from to)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
63 (interactive "r")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
64 (save-excursion
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
65 (save-restriction
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
66 (narrow-to-region from to)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
67 (goto-char (point-min))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
68 (while (re-search-forward malayalam-composable-pattern nil t)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
69 (malayalam-compose-syllable-region (match-beginning 0)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
70 (match-end 0))))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
71 (defun malayalam-compose-string (string)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
72 (with-temp-buffer
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
73 (insert (decompose-string string))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
74 (malayalam-compose-region (point-min) (point-max))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
75 (buffer-string)))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
76
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
77 (defun malayalam-post-read-conversion (len)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
78 (save-excursion
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
79 (save-restriction
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
80 (let ((buffer-modified-p (buffer-modified-p)))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
81 (narrow-to-region (point) (+ (point) len))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
82 (malayalam-compose-region (point-min) (point-max))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
83 (set-buffer-modified-p buffer-modified-p)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
84 (- (point-max) (point-min))))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
85
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
86 (defun malayalam-range (from to)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
87 "Make the list of the integers of range FROM to TO."
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
88 (let (result)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
89 (while (<= from to) (setq result (cons to result) to (1- to))) result))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
90
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
91 (defun malayalam-regexp-of-hashtbl-keys (hashtbl)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
92 "Return a regular expression that matches all keys in hashtable HASHTBL."
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
93 (let ((max-specpdl-size 1000))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
94 (regexp-opt
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
95 (sort
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
96 (let (dummy)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
97 (maphash (function (lambda (key val) (setq dummy (cons key dummy)))) hashtbl)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
98 dummy)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
99 (function (lambda (x y) (> (length x) (length y))))))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
100
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
101
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
102 ;;;###autoload
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
103 (defun malayalam-composition-function (from to pattern &optional string)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
104 "Compose Malayalam characters in REGION, or STRING if specified.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
105 Assume that the REGION or STRING must fully match the composable
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
106 PATTERN regexp."
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
107 (if string (malayalam-compose-syllable-string string)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
108 (malayalam-compose-syllable-region from to))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
109 (- to from))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
110
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
111 ;; Register a function to compose Malayalam characters.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
112 (mapc
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
113 (function (lambda (ucs)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
114 (aset composition-function-table (decode-char 'ucs ucs)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
115 (list (cons malayalam-composable-pattern
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
116 'malayalam-composition-function)))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
117 (nconc '(#x0d02 #x0d03) (malayalam-range #x0d05 #x0d39)))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
118
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
119 ;; Notes on conversion steps.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
120
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
121 ;; 1. chars to glyphs
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
122 ;;
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
123 ;; Simple replacement of characters to glyphs is done.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
124
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
125 ;; 2. glyphs reordering.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
126 ;;
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
127 ;; Two special reordering rule takes place.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
128 ;; a. following "$,46[(B" goes to the front.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
129 ;; b. following "$,46S6S(B", "$,46S(B" or "$,46T(B" goes to the front.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
130 ;; This reordering occurs only to the last cluster of consonants.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
131 ;; Preceding consonants with halant characters are not affected.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
132
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
133 ;; 3. Composition.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
134 ;;
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
135 ;; left modifiers will be attached at the left.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
136 ;; others will be attached right.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
137
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
138 (defvar mlm-char-glyph
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
139 '(;; various signs
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
140 ("$,1@"(B" . "$,46W(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
141 ("$,1@#(B" . "$,46X(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
142 ;; Independent Vowels
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
143 ("$,1@%(B" . "$,46!(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
144 ("$,1@&(B" . "$,46"(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
145 ("$,1@'(B" . "$,46#(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
146 ("$,1@((B" . "$,46#6U(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
147 ("$,1@)(B" . "$,46$(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
148 ("$,1@*(B" . "$,46$6U(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
149 ("$,1@+(B" . "$,46%(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
150 ("$,1@,(B" . "nil") ;; not in present use, not supported.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
151 ("$,1@.(B" . "$,46&(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
152 ("$,1@/(B" . "$,46'(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
153 ("$,1@0(B" . "$,46S6&(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
154 ("$,1@2(B" . "$,46((B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
155 ("$,1@3(B" . "$,46(6M(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
156 ("$,1@4(B" . "$,46(6U(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
157 ;; Consonants
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
158 ("$,1@5(B" . "$,46)(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
159 ("$,1@5@m@5(B" . "$,47!(B")
49955
15e3ed34db0a (mlm-char-glyph): Fix several composing rules.
Kenichi Handa <handa@m17n.org>
parents: 49943
diff changeset
160 ("$,1@5@m@S(B" . "$,47"(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
161 ("$,1@5@m@W(B" . "$,47#(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
162 ("$,1@5@m@?(B" . "$,47N(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
163 ("$,1@5@m@D(B" . "$,47`(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
164 ("$,1@5@a(B" . "$,47f(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
165 ("$,1@5@m@5@a(B" . "$,47g(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
166 ("$,1@5@a(B" . "$,47f(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
167 ("$,1@5@m@5@a(B" . "$,47g(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
168
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
169 ("$,1@6(B" . "$,46*(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
170
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
171 ("$,1@7(B" . "$,46+(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
172 ("$,1@7@m@7(B" . "$,47$(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
173 ("$,1@7@m@R(B" . "$,47%(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
174 ("$,1@7@m@N(B" . "$,47\(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
175 ("$,1@7@m@H(B" . "$,47a(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
176
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
177 ("$,1@8(B" . "$,46,(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
178
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
179 ("$,1@9(B" . "$,46-(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
180 ("$,1@9@m@5(B" . "$,47&(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
181 ("$,1@9@m@9(B" . "$,47'(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
182 ("$,1@9@m@5@a(B" . "$,47h(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
183
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
184 ("$,1@:(B" . "$,46.(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
185 ("$,1@:@m@:(B" . "$,47((B") ;; duplicate
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
186 ("$,1@:@m@;(B" . "$,47Q(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
187
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
188 ("$,1@;(B" . "$,46/(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
189
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
190 ("$,1@<(B" . "$,460(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
191 ("$,1@<@m@<(B" . "$,47V(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
192 ("$,1@<@m@>(B" . "$,47Z(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
193
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
194 ("$,1@=(B" . "$,461(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
195
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
196 ("$,1@>(B" . "$,462(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
197 ("$,1@>@m@:(B" . "$,47)(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
198 ("$,1@>@m@>(B" . "$,47*(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
199
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
200 ("$,1@?(B" . "$,463(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
201 ("$,1@?@m@?(B" . "$,47+(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
202
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
203 ("$,1@@(B" . "$,464(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
204 ("$,1@A(B" . "$,465(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
205 ("$,1@A@m@A(B" . "$,47M(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
206 ("$,1@B(B" . "$,466(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
207
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
208 ("$,1@C(B" . "$,467(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
209 ("$,1@C@a@m(B" . "$,47,(B") ;; half consonant
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
210 ("$,1@C@m@?(B" . "$,47-(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
211 ("$,1@C@m@C(B" . "$,47.(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
212 ("$,1@C@m@N(B" . "$,47W(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
213 ("$,1@C@m@A(B" . "$,47^(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
214 ("$,1@C@a(B" . "$,47i(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
215
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
216 ("$,1@D(B" . "$,468(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
217 ("$,1@D@m@D(B" . "$,47/(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
218 ("$,1@D@m@E(B" . "$,470(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
219 ("$,1@D@m@X(B" . "$,47U(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
220 ("$,1@D@m@M(B" . "$,47[(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
221 ("$,1@D@m@N(B" . "$,47_(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
222
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
223 ("$,1@E(B" . "$,469(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
224
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
225 ("$,1@F(B" . "$,46:(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
226 ("$,1@F@m@F(B" . "$,471(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
227 ("$,1@F@m@G(B" . "$,472(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
228
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
229 ("$,1@G(B" . "$,46;(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
230
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
231 ("$,1@H(B" . "$,46<(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
232 ("$,1@H@a@m(B" . "$,473(B") ;; half consonant
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
233 ("$,1@H@m@D(B" . "$,474(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
234 ("$,1@H@m@F(B" . "$,475(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
235 ("$,1@H@m@H(B" . "$,476(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
236 ("$,1@H@m@N(B" . "$,477(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
237 ("$,1@H@m@G(B" . "$,47T(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
238 ("$,1@H@m@E(B" . "$,47Y(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
239 ("$,1@H@m@Q(B" . "$,47b(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
240 ("$,1@H@a(B" . "$,47k(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
241 ("$,1@H@m@H@a(B" . "$,47l(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
242
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
243 ("$,1@J(B" . "$,46=(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
244 ("$,1@J@m@J(B" . "$,478(B") ;; duplicate
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
245 ("$,1@J@m@R(B" . "$,479(B") ;; lakar
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
246
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
247 ("$,1@K(B" . "$,46>(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
248
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
249 ("$,1@L(B" . "$,46?(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
250 ("$,1@L@m@L(B" . "$,47:(B") ;; duplicate
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
251 ("$,1@L@m@R(B" . "$,47;(B") ;; lakar
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
252 ("$,1@L@m@G(B" . "$,47O(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
253 ("$,1@L@m@F(B" . "$,47P(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
254
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
255 ("$,1@M(B" . "$,46@(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
256
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
257 ("$,1@N(B" . "$,46A(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
258 ("$,1@N@m@J(B" . "$,47<(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
259 ("$,1@N@m@N(B" . "$,47=(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
260 ("$,1@N@m@R(B" . "$,47>(B") ;; lakar
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
261
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
262 ("$,1@O(B" . "$,46B(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
263 ("$,1@O@m@O(B" . "$,47?(B") ;; duplicate
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
264 ("$,1@O@m@5@m@5(B" . "$,47m(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
265
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
266 ("$,1@P(B" . "$,46C(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
267 ("$,1@P@a@m(B" . "$,47@(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
268 ("$,1@P@a(B" . "$,47j(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
269
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
270 ("$,1@Q(B" . "$,46D(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
271 ("$,1@Q@m(B" . "$,47@(B") ;; same glyph as "$,1@P@m(B"
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
272 ("$,1@Q@a@m(B" . "$,47@(B") ;; same glyph as "$,1@P@m(B"
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
273 ;;("$,1@Q@m@Q(B" . "$,47A(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
274 ("$,1@Q@m@Q(B" . "$,47d(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
275
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
276 ("$,1@R(B" . "$,46E(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
277 ("$,1@R@a@m(B" . "$,47B(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
278 ("$,1@R@m@R(B" . "$,47C(B") ;; lakar
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
279 ("$,1@R@m@J(B" . "$,47e(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
280
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
281 ("$,1@S(B" . "$,46F(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
282 ("$,1@S@a@m(B" . "$,47D(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
283 ("$,1@S@m@S(B" . "$,47E(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
284
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
285 ("$,1@T(B" . "$,46G(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
286
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
287 ("$,1@U(B" . "$,46H(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
288 ("$,1@U@m@U(B" . "$,47F(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
289
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
290 ("$,1@V(B" . "$,46I(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
291 ("$,1@V@m@R(B" . "$,47G(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
292 ("$,1@V@m@V(B" . "$,47H(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
293 ("$,1@V@m@:(B" . "$,47](B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
294
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
295 ("$,1@W(B" . "$,46J(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
296 ("$,1@W@m@?(B" . "$,47c(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
297
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
298 ("$,1@X(B" . "$,46K(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
299 ("$,1@X@m@R(B" . "$,47I(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
300 ("$,1@X@m@X(B" . "$,47J(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
301 ("$,1@X@m@Q@m@Q(B" . "$,47L(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
302 ("$,1@X@m@E(B" . "$,47X(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
303
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
304 ("$,1@Y(B" . "$,46L(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
305 ("$,1@Y@m@R(B" . "$,47K(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
306 ("$,1@Y@m@N(B" . "$,47R(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
307 ("$,1@Y@m@H(B" . "$,47S(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
308
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
309 ;; Dependent vowel signs
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
310 ("$,1@^(B" . "$,46M(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
311 ("$,1@_(B" . "$,46N(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
312 ("$,1@`(B" . "$,46O(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
313 ("$,1@a(B" . "$,46P(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
314 ("$,1@b(B" . "$,46Q(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
315 ("$,1@c(B" . "$,46R(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
316 ("$,1@f(B" . "$,46S(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
317 ("$,1@g(B" . "$,46T(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
318 ("$,1@h(B" . "$,46S6S(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
319 ("$,1@j(B" . "$,46S6M(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
320 ("$,1@k(B" . "$,46T6M(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
321 ("$,1@l(B" . "$,46U(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
322 ;; Various signs
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
323 ("$,1@m(B" . "$,46V(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
324 ("$,1@m@O(B" . "$,46Y(B") ;; yakar
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
325 ("$,1@m@O@a(B" . "$,46\(B") ;; yakar + u
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
326 ("$,1@m@O@b(B" . "$,46](B") ;; yakar + uu
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
327 ("$,1@m@U(B" . "$,46Z(B") ;; vakar modifier
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
328 ("$,1@m@P(B" . "$,46[(B") ;; rakar modifier is the same to rra modifier.
49943
f70ce138a267 (mlm-char-glyph): Add entries for "halant +
Kenichi Handa <handa@m17n.org>
parents: 49702
diff changeset
329 ("$,1@m@P@m(B" . "$,46R(B") ;; halant + rakar + halant
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
330 ("$,1@m@Q(B" . "$,46[(B") ;; rrakar modifier
49943
f70ce138a267 (mlm-char-glyph): Add entries for "halant +
Kenichi Handa <handa@m17n.org>
parents: 49702
diff changeset
331 ("$,1@m@Q@m(B" . "$,46R(B") ;; halant + rrakar + halant
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
332 ("$,1@m@m(B" . "$,46V(B") ;; double omission sign to stop forming half consonant.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
333 ("$,1@w(B" . "$,46U(B") ;; not in present use, already at 0D4C.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
334 ))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
335
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
336 (defvar mlm-char-glyph-hash
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
337 (let* ((hash (make-hash-table :test 'equal)))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
338 (mapc (function (lambda (x) (puthash (car x) (cdr x) hash)))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
339 mlm-char-glyph)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
340 hash))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
341
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
342 (defvar mlm-char-glyph-regexp
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
343 (malayalam-regexp-of-hashtbl-keys mlm-char-glyph-hash))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
344
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
345 ;; Malayalam languages needed to be reordered in a complex mannar.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
346
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
347 (defvar mlm-consonants
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
348 (concat
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
349 "$,46)6*6+6,6-6.6/606162636465666768696:6;6<6=6>6?6@6A6B6C6D6E6F6G6H6I6J6K6L(B"
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
350 "$,47!7"7#7$7%7&7'7(7)7*7+7,7-7.7/707172737475767778797:7;7<7=7>7?7@7A7B7C7D7E7F7G7H7I7J7K7L7M7N7O7P7Q7R7S7T7U7V7W7X7Y7Z7[7\7]7^7_7`7a7b7c7d7e(B"
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
351 ))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
352
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
353 (defvar mlm-consonants-regexp
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
354 (concat "\\($,46[(B?[" mlm-consonants "][$,46Y6Z(B]?\\)"))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
355
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
356 (defvar mlm-glyph-reorder-key-glyphs "[$,46[6S6T(B]")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
357
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
358 (defvar mlm-glyph-reordering-regexp-list
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
359 `((,(concat "\\([" mlm-consonants "][$,46Y6Z(B]?\\)$,46[(B") . "$,46[(B\\1")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
360 (,(concat mlm-consonants-regexp "$,46S6S(B") . "$,46S6S(B\\1")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
361 (,(concat mlm-consonants-regexp "$,46S(B") . "$,46S(B\\1")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
362 (,(concat mlm-consonants-regexp "$,46T(B") . "$,46T(B\\1")))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
363
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
364 (defun malayalam-compose-syllable-string (string)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
365 (with-temp-buffer
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
366 (insert (decompose-string string))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
367 (malayalam-compose-syllable-region (point-min) (point-max))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
368 (buffer-string)))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
369
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
370 (defun malayalam-compose-syllable-region (from to)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
371 "Compose malayalam syllable in region FROM to TO."
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
372 (let (glyph-str
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
373 match-str
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
374 glyph-reorder-regexps
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
375 glyph-reorder-replace
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
376 glyph-reorder-regexp)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
377 (save-excursion
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
378 (save-restriction
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
379 (narrow-to-region from to)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
380 (goto-char (point-min))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
381 ;; char-glyph-conversion
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
382 (while (re-search-forward mlm-char-glyph-regexp nil t)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
383 (setq match-str (match-string 0))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
384 (setq glyph-str
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
385 (concat glyph-str (gethash match-str mlm-char-glyph-hash))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
386 (when (string-match mlm-glyph-reorder-key-glyphs glyph-str)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
387 ;; glyph reordering
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
388 (setq glyph-reorder-regexps mlm-glyph-reordering-regexp-list)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
389 (while glyph-reorder-regexps
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
390 (setq glyph-reorder-regexp (caar glyph-reorder-regexps))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
391 (setq glyph-reorder-replace (cdar glyph-reorder-regexps))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
392 (setq glyph-reorder-regexps (cdr glyph-reorder-regexps))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
393 (if (string-match glyph-reorder-regexp glyph-str)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
394 (setq glyph-str
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
395 (replace-match glyph-reorder-replace nil nil
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
396 glyph-str)))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
397 ;; concatenate and attach reference-points.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
398 (setq glyph-str
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
399 (cdr
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
400 (apply
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
401 'nconc
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
402 (mapcar
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
403 (function
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
404 (lambda (x) (list '(5 . 3) x))) ;; default ref. point.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
405 glyph-str))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
406 (compose-region from to glyph-str)))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
407
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
408 (provide 'mlm-util)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
409
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
410 ;;; devan-util.el ends here