annotate lisp/language/mlm-util.el @ 91951:d42fe75822fe

* vc.el (vc-status-menu, vc-status-menu-map-filter): New functions. (vc-status-mode-menu): Add a :filter. (vc-status-printer): Add faces. * vc-hg.el (vc-hg-extra-status-menu): New function. (vc-hg-dir-status): Clean up the buffer before using it.
author Dan Nicolaescu <dann@ics.uci.edu>
date Tue, 19 Feb 2008 07:10:33 +0000
parents 606f2d163a64
children
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
79711
b5d3fc1c4afe Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 78236
diff changeset
3 ;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
b5d3fc1c4afe Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 78236
diff changeset
4 ;; Free Software Foundation, Inc.
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
5
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
6 ;; Maintainer: KAWABATA, Taichi <kawabata@m17n.org>
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
7 ;; Keywords: multilingual, Malayalam
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
8
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
9 ;; This file is part of GNU Emacs.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
10
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
12 ;; it under the terms of the GNU General Public License as published by
78236
9355f9b7bbff Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75347
diff changeset
13 ;; the Free Software Foundation; either version 3, or (at your option)
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
14 ;; any later version.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
15
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
16 ;; GNU Emacs is distributed in the hope that it will be useful,
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
19 ;; GNU General Public License for more details.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
20
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
64085
18a818a2ee7c Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52518
diff changeset
23 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18a818a2ee7c Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52518
diff changeset
24 ;; Boston, MA 02110-1301, USA.
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
25
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
26 ;; Created: Feb. 11. 2003
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
27
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
28 ;;; Commentary:
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
29
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
30 ;; This file provides character(Unicode) to glyph(CDAC) conversion and
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
31 ;; composition of Malayalam script characters.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
32
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
33 ;;; Code:
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
34
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
35 ;; Malayalam Composable Pattern
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
36 ;; C .. Consonants
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
37 ;; V .. Vowel
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
38 ;; H .. Halant
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
39 ;; M .. Matra
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
40 ;; V .. Vowel
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
41 ;; A .. Anuswar
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
42 ;; D .. Chandrabindu
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
43 ;; (N .. Zerowidth Non Joiner)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
44 ;; (J .. Zerowidth Joiner. )
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
45 ;; 1. vowel
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
46 ;; V(A|visargam)?
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
47 ;; 2. syllable : maximum of 5 consecutive consonants. (e.g. kartsnya)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
48 ;; ((CH)?(CH)?(CH)?CH)?C(H|M?(A|D)?)?
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
49
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
50 (defconst malayalam-consonant
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
51 "[$,1@5(B-$,1@Y(B]")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
52
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
53 (defconst malayalam-composable-pattern
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
54 (concat
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
55 "\\([$,1@%(B-$,1@4(B][$,1@"(B]?\\)\\|$,1@#(B"
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
56 "\\|\\("
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
57 "\\(?:\\(?:[$,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
58 "[$,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
59 "\\)")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
60 "Regexp matching a composable sequence of Malayalam characters.")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
61
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
62 ;;;###autoload
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
63 (defun malayalam-compose-region (from to)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
64 (interactive "r")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
65 (save-excursion
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
66 (save-restriction
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
67 (narrow-to-region from to)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
68 (goto-char (point-min))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
69 (while (re-search-forward malayalam-composable-pattern nil t)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
70 (malayalam-compose-syllable-region (match-beginning 0)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
71 (match-end 0))))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
72 (defun malayalam-compose-string (string)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
73 (with-temp-buffer
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
74 (insert (decompose-string string))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
75 (malayalam-compose-region (point-min) (point-max))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
76 (buffer-string)))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
77
52518
88807cd5407c (malayalam-post-read-conversion): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents: 52401
diff changeset
78 ;;;###autoload
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
79 (defun malayalam-post-read-conversion (len)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
80 (save-excursion
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
81 (save-restriction
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
82 (let ((buffer-modified-p (buffer-modified-p)))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
83 (narrow-to-region (point) (+ (point) len))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
84 (malayalam-compose-region (point-min) (point-max))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
85 (set-buffer-modified-p buffer-modified-p)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
86 (- (point-max) (point-min))))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
87
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
88 (defun malayalam-range (from to)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
89 "Make the list of the integers of range FROM to TO."
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
90 (let (result)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
91 (while (<= from to) (setq result (cons to result) to (1- to))) result))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
92
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
93 (defun malayalam-regexp-of-hashtbl-keys (hashtbl)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
94 "Return a regular expression that matches all keys in hashtable HASHTBL."
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
95 (let ((max-specpdl-size 1000))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
96 (regexp-opt
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
97 (sort
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
98 (let (dummy)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
99 (maphash (function (lambda (key val) (setq dummy (cons key dummy)))) hashtbl)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
100 dummy)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
101 (function (lambda (x y) (> (length x) (length y))))))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
102
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
103
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
104 ;;;###autoload
89483
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
105 (defun malayalam-composition-function (pos &optional string)
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
106 "Compose Malayalam characters after the position POS.
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
107 If STRING is not nil, it is a string, and POS is an index to the string.
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
108 In this case, compose characters after POS of the string."
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
109 (if string
91198
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
110 (if auto-compose-current-font
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
111 (if (eq (string-match "[$,1@ (B-$,1A?(B]+" pos) pos)
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
112 (or (font-shape-text 0 (match-end 0) auto-compose-current-font
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
113 string)
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
114 pos)))
89483
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
115 (goto-char pos)
91198
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
116 (if auto-compose-current-font
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
117 (if (looking-at "[$,1@ (B-$,1A?(B]+")
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
118 (or (font-shape-text pos (match-end 0) auto-compose-current-font)
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
119 pos)
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
120 (if (looking-at malayalam-composable-pattern)
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
121 (prog1 (match-end 0)
34fe548702cc (malayalam-composition-function): Use
Kenichi Handa <handa@m17n.org>
parents: 90996
diff changeset
122 (malayalam-compose-syllable-region pos (match-end 0))))))))
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
123
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
124 ;; Notes on conversion steps.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
125
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
126 ;; 1. chars to glyphs
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
127 ;;
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
128 ;; Simple replacement of characters to glyphs is done.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
129
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
130 ;; 2. glyphs reordering.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
131 ;;
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
132 ;; Two special reordering rule takes place.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
133 ;; a. following "$,46[(B" goes to the front.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
134 ;; b. following "$,46S6S(B", "$,46S(B" or "$,46T(B" goes to the front.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
135 ;; This reordering occurs only to the last cluster of consonants.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
136 ;; Preceding consonants with halant characters are not affected.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
137
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
138 ;; 3. Composition.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
139 ;;
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
140 ;; left modifiers will be attached at the left.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
141 ;; others will be attached right.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
142
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
143 (defvar mlm-char-glyph
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
144 '(;; various signs
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
145 ("$,1@"(B" . "$,46W(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
146 ("$,1@#(B" . "$,46X(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
147 ;; Independent Vowels
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
148 ("$,1@%(B" . "$,46!(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" . "$,46#(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
151 ("$,1@((B" . "$,46#6U(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@*(B" . "$,46$6U(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
154 ("$,1@+(B" . "$,46%(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
155 ("$,1@,(B" . "nil") ;; not in present use, not supported.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
156 ("$,1@.(B" . "$,46&(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
157 ("$,1@/(B" . "$,46'(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
158 ("$,1@0(B" . "$,46S6&(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
159 ("$,1@2(B" . "$,46((B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
160 ("$,1@3(B" . "$,46(6M(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
161 ("$,1@4(B" . "$,46(6U(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
162 ;; Consonants
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
163 ("$,1@5(B" . "$,46)(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
164 ("$,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
165 ("$,1@5@m@S(B" . "$,47"(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
166 ("$,1@5@m@W(B" . "$,47#(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
167 ("$,1@5@m@?(B" . "$,47N(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
168 ("$,1@5@m@D(B" . "$,47`(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
169 ("$,1@5@a(B" . "$,47f(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
170 ("$,1@5@m@5@a(B" . "$,47g(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
171 ("$,1@5@a(B" . "$,47f(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
172 ("$,1@5@m@5@a(B" . "$,47g(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
173
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
174 ("$,1@6(B" . "$,46*(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
175
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
176 ("$,1@7(B" . "$,46+(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
177 ("$,1@7@m@7(B" . "$,47$(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
178 ("$,1@7@m@R(B" . "$,47%(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
179 ("$,1@7@m@N(B" . "$,47\(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
180 ("$,1@7@m@H(B" . "$,47a(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
181
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
182 ("$,1@8(B" . "$,46,(B")
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@9(B" . "$,46-(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
185 ("$,1@9@m@5(B" . "$,47&(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
186 ("$,1@9@m@9(B" . "$,47'(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
187 ("$,1@9@m@5@a(B" . "$,47h(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
188
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
189 ("$,1@:(B" . "$,46.(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
190 ("$,1@:@m@:(B" . "$,47((B") ;; duplicate
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
191 ("$,1@:@m@;(B" . "$,47Q(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
192
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
193 ("$,1@;(B" . "$,46/(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
194
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
195 ("$,1@<(B" . "$,460(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
196 ("$,1@<@m@<(B" . "$,47V(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
197 ("$,1@<@m@>(B" . "$,47Z(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
198
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
199 ("$,1@=(B" . "$,461(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
200
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
201 ("$,1@>(B" . "$,462(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
202 ("$,1@>@m@:(B" . "$,47)(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
203 ("$,1@>@m@>(B" . "$,47*(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
204
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
205 ("$,1@?(B" . "$,463(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
206 ("$,1@?@m@?(B" . "$,47+(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@@(B" . "$,464(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
209 ("$,1@A(B" . "$,465(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
210 ("$,1@A@m@A(B" . "$,47M(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
211 ("$,1@B(B" . "$,466(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
212
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
213 ("$,1@C(B" . "$,467(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
214 ("$,1@C@a@m(B" . "$,47,(B") ;; half consonant
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
215 ("$,1@C@m@?(B" . "$,47-(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
216 ("$,1@C@m@C(B" . "$,47.(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
217 ("$,1@C@m@N(B" . "$,47W(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
218 ("$,1@C@m@A(B" . "$,47^(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
219 ("$,1@C@a(B" . "$,47i(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
220
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
221 ("$,1@D(B" . "$,468(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
222 ("$,1@D@m@D(B" . "$,47/(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
223 ("$,1@D@m@E(B" . "$,470(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
224 ("$,1@D@m@X(B" . "$,47U(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
225 ("$,1@D@m@M(B" . "$,47[(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
226 ("$,1@D@m@N(B" . "$,47_(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
227
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
228 ("$,1@E(B" . "$,469(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
229
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
230 ("$,1@F(B" . "$,46:(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
231 ("$,1@F@m@F(B" . "$,471(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
232 ("$,1@F@m@G(B" . "$,472(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
233
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
234 ("$,1@G(B" . "$,46;(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
235
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
236 ("$,1@H(B" . "$,46<(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
237 ("$,1@H@a@m(B" . "$,473(B") ;; half consonant
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
238 ("$,1@H@m@D(B" . "$,474(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
239 ("$,1@H@m@F(B" . "$,475(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
240 ("$,1@H@m@H(B" . "$,476(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
241 ("$,1@H@m@N(B" . "$,477(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
242 ("$,1@H@m@G(B" . "$,47T(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
243 ("$,1@H@m@E(B" . "$,47Y(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
244 ("$,1@H@m@Q(B" . "$,47b(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
245 ("$,1@H@a(B" . "$,47k(B")
68019
b9546af7814e Delete spurious trailing whitespaces.
Kenichi Handa <handa@m17n.org>
parents: 64085
diff changeset
246 ("$,1@H@m@H@a(B" . "$,47l(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
247
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
248 ("$,1@J(B" . "$,46=(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
249 ("$,1@J@m@J(B" . "$,478(B") ;; duplicate
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
250 ("$,1@J@m@R(B" . "$,479(B") ;; lakar
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
251
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
252 ("$,1@K(B" . "$,46>(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
253
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
254 ("$,1@L(B" . "$,46?(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
255 ("$,1@L@m@L(B" . "$,47:(B") ;; duplicate
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
256 ("$,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
257 ("$,1@L@m@G(B" . "$,47O(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
258 ("$,1@L@m@F(B" . "$,47P(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
259
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
260 ("$,1@M(B" . "$,46@(B")
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@N(B" . "$,46A(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
263 ("$,1@N@m@J(B" . "$,47<(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
264 ("$,1@N@m@N(B" . "$,47=(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
265 ("$,1@N@m@R(B" . "$,47>(B") ;; lakar
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
266
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
267 ("$,1@O(B" . "$,46B(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
268 ("$,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
269 ("$,1@O@m@5@m@5(B" . "$,47m(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
270
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
271 ("$,1@P(B" . "$,46C(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
272 ("$,1@P@a@m(B" . "$,47@(B")
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
273 ("$,1@P@a(B" . "$,47j(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
274
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
275 ("$,1@Q(B" . "$,46D(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
276 ("$,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
277 ("$,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
278 ;;("$,1@Q@m@Q(B" . "$,47A(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
279 ("$,1@Q@m@Q(B" . "$,47d(B")
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@R(B" . "$,46E(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
282 ("$,1@R@a@m(B" . "$,47B(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
283 ("$,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
284 ("$,1@R@m@J(B" . "$,47e(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
285
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
286 ("$,1@S(B" . "$,46F(B")
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
287 ("$,1@S@a@m(B" . "$,47D(B")
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
288 ("$,1@S@m@S(B" . "$,47E(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@T(B" . "$,46G(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
291
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
292 ("$,1@U(B" . "$,46H(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
293 ("$,1@U@m@U(B" . "$,47F(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@V(B" . "$,46I(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
296 ("$,1@V@m@R(B" . "$,47G(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
297 ("$,1@V@m@V(B" . "$,47H(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
298 ("$,1@V@m@:(B" . "$,47](B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
299
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
300 ("$,1@W(B" . "$,46J(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
301 ("$,1@W@m@?(B" . "$,47c(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
302
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
303 ("$,1@X(B" . "$,46K(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
304 ("$,1@X@m@R(B" . "$,47I(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
305 ("$,1@X@m@X(B" . "$,47J(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
306 ("$,1@X@m@Q@m@Q(B" . "$,47L(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
307 ("$,1@X@m@E(B" . "$,47X(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 ("$,1@Y(B" . "$,46L(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
310 ("$,1@Y@m@R(B" . "$,47K(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
311 ("$,1@Y@m@N(B" . "$,47R(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
312 ("$,1@Y@m@H(B" . "$,47S(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
313
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
314 ;; Dependent vowel signs
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
315 ("$,1@^(B" . "$,46M(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
316 ("$,1@_(B" . "$,46N(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
317 ("$,1@`(B" . "$,46O(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
318 ("$,1@a(B" . "$,46P(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
319 ("$,1@b(B" . "$,46Q(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
320 ("$,1@c(B" . "$,46R(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
321 ("$,1@f(B" . "$,46S(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
322 ("$,1@g(B" . "$,46T(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
323 ("$,1@h(B" . "$,46S6S(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
324 ("$,1@j(B" . "$,46S6M(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
325 ("$,1@k(B" . "$,46T6M(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
326 ("$,1@l(B" . "$,46U(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
327 ;; Various signs
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
328 ("$,1@m(B" . "$,46V(B")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
329 ("$,1@m@O(B" . "$,46Y(B") ;; yakar
49973
bd6fa6f622f2 (mlm-char-glyph): Fix more rules.
Kenichi Handa <handa@m17n.org>
parents: 49955
diff changeset
330 ("$,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
331 ("$,1@m@O@b(B" . "$,46](B") ;; yakar + uu
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
332 ("$,1@m@U(B" . "$,46Z(B") ;; vakar modifier
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
333 ("$,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
334 ("$,1@m@P@m(B" . "$,46R(B") ;; halant + rakar + halant
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
335 ("$,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
336 ("$,1@m@Q@m(B" . "$,46R(B") ;; halant + rrakar + halant
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
337 ("$,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
338 ("$,1@w(B" . "$,46U(B") ;; not in present use, already at 0D4C.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
339 ))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
340
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
341 (defvar mlm-char-glyph-hash
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
342 (let* ((hash (make-hash-table :test 'equal)))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
343 (mapc (function (lambda (x) (puthash (car x) (cdr x) hash)))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
344 mlm-char-glyph)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
345 hash))
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-char-glyph-regexp
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
348 (malayalam-regexp-of-hashtbl-keys mlm-char-glyph-hash))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
349
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
350 ;; Malayalam languages needed to be reordered in a complex mannar.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
351
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
352 (defvar mlm-consonants
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
353 (concat
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
354 "$,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
355 "$,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
356 ))
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-consonants-regexp
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
359 (concat "\\($,46[(B?[" mlm-consonants "][$,46Y6Z(B]?\\)"))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
360
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
361 (defvar mlm-glyph-reorder-key-glyphs "[$,46[6S6T(B]")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
362
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
363 (defvar mlm-glyph-reordering-regexp-list
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
364 `((,(concat "\\([" mlm-consonants "][$,46Y6Z(B]?\\)$,46[(B") . "$,46[(B\\1")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
365 (,(concat mlm-consonants-regexp "$,46S6S(B") . "$,46S6S(B\\1")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
366 (,(concat mlm-consonants-regexp "$,46S(B") . "$,46S(B\\1")
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
367 (,(concat mlm-consonants-regexp "$,46T(B") . "$,46T(B\\1")))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
368
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
369 (defun malayalam-compose-syllable-string (string)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
370 (with-temp-buffer
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
371 (insert (decompose-string string))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
372 (malayalam-compose-syllable-region (point-min) (point-max))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
373 (buffer-string)))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
374
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
375 (defun malayalam-compose-syllable-region (from to)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
376 "Compose malayalam syllable in region FROM to TO."
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
377 (let (glyph-str
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
378 match-str
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
379 glyph-reorder-regexps
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
380 glyph-reorder-replace
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
381 glyph-reorder-regexp)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
382 (save-excursion
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
383 (save-restriction
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
384 (narrow-to-region from to)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
385 (goto-char (point-min))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
386 ;; char-glyph-conversion
89483
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
387 (while (not (eobp))
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
388 (if (looking-at mlm-char-glyph-regexp)
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
389 (progn
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
390 (setq match-str (match-string 0)
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
391 glyph-str
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
392 (concat glyph-str
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
393 (gethash match-str mlm-char-glyph-hash)))
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
394 (goto-char (match-end 0)))
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
395 (setq glyph-str (concat glyph-str (string (following-char))))
2f877ed80fa6 *** empty log message ***
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
396 (forward-char 1)))
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
397 (when (string-match mlm-glyph-reorder-key-glyphs glyph-str)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
398 ;; glyph reordering
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
399 (setq glyph-reorder-regexps mlm-glyph-reordering-regexp-list)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
400 (while glyph-reorder-regexps
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
401 (setq glyph-reorder-regexp (caar glyph-reorder-regexps))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
402 (setq glyph-reorder-replace (cdar glyph-reorder-regexps))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
403 (setq glyph-reorder-regexps (cdr glyph-reorder-regexps))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
404 (if (string-match glyph-reorder-regexp glyph-str)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
405 (setq glyph-str
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
406 (replace-match glyph-reorder-replace nil nil
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
407 glyph-str)))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
408 ;; concatenate and attach reference-points.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
409 (setq glyph-str
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
410 (cdr
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
411 (apply
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
412 'nconc
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
413 (mapcar
68019
b9546af7814e Delete spurious trailing whitespaces.
Kenichi Handa <handa@m17n.org>
parents: 64085
diff changeset
414 (function
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
415 (lambda (x) (list '(5 . 3) x))) ;; default ref. point.
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
416 glyph-str))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
417 (compose-region from to glyph-str)))))
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
418
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
419 (provide 'mlm-util)
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
420
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49973
diff changeset
421 ;;; arch-tag: 7f25ee67-8f9d-49f2-837b-35c412c00eba
49702
369dbdebd88a New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
422 ;;; devan-util.el ends here