changeset 23886:6402c89c30c3

(devanagari-reorder-glyphs-for-decomposition): Fix the way to handle devanagari-decomposition-rules.
author Kenichi Handa <handa@m17n.org>
date Tue, 15 Dec 1998 04:35:38 +0000
parents b08de5b1299c
children 3a4d3e2418dc
files lisp/language/devan-util.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/language/devan-util.el	Tue Dec 15 04:35:38 1998 +0000
+++ b/lisp/language/devan-util.el	Tue Dec 15 04:35:38 1998 +0000
@@ -1166,8 +1166,8 @@
   "This function re-orders glyph list for decomposition."
   (sort glyphlist 
 	'(lambda (x y) 
-	   (let ((xx (assoc x devanagari-decomposition-rules))
-		 (yy (assoc y devanagari-decomposition-rules)))
+	   (let ((xx (nth 1 (assoc x devanagari-decomposition-rules)))
+		 (yy (nth 1 (assoc y devanagari-decomposition-rules))))
 	     (if (null xx) (setq xx 0))
 	     (if (null yy) (setq yy 0))
 	     (< xx yy)))))