From 621d6bda0e5f8bc54c875f267d6e08892448b45a Mon Sep 17 00:00:00 2001 From: tomo Date: Mon, 15 Sep 2008 18:05:34 +0000 Subject: [PATCH] (char-attribute-name<): Regard partial coded-charset which has final-byte as ISO registered coded-charset. --- lisp/utf-2000/char-db-util.el | 59 ++++++++++++++++++++++++++++++----------- 1 file changed, 43 insertions(+), 16 deletions(-) diff --git a/lisp/utf-2000/char-db-util.el b/lisp/utf-2000/char-db-util.el index 9a7e22b..b50c2ff 100644 --- a/lisp/utf-2000/char-db-util.el +++ b/lisp/utf-2000/char-db-util.el @@ -155,31 +155,58 @@ ) ((find-charset ka) (if (find-charset kb) - (if (<= (charset-id ka) 1) - (if (<= (charset-id kb) 1) + (if (or (<= (charset-id ka) 1) + (and (charset-final ka) + (>= (charset-final ka) ?@))) + (if (or (<= (charset-id kb) 1) + (and (charset-final kb) + (>= (charset-final kb) ?@))) (cond ((= (charset-dimension ka) (charset-dimension kb)) - (> (charset-id ka)(charset-id kb))) + (if (and (<= (charset-id ka) 1) + (<= (charset-id kb) 1)) + (> (charset-id ka)(charset-id kb)) + (if (and (charset-final ka) + (charset-final kb)) + (cond + ((= (charset-final ka)(charset-final kb)) + (if (<= (charset-id ka) 1) + (if (<= (charset-id kb) 1) + (> (charset-id ka)(charset-id kb)) + t) + (if (<= (charset-id kb) 1) + nil + (< (charset-id ka)(charset-id kb)))) + ) + ((< (charset-final ka)(charset-final kb)) + )) + (if (<= (charset-id ka) 1) + (if (<= (charset-id kb) 1) + (> (charset-id ka)(charset-id kb)) + t) + (if (<= (charset-id kb) 1) + nil + (cond ((and (charset-final ka) + (>= (charset-final ka) ?@)) + t) + ((and (charset-final kb) + (>= (charset-final kb) ?@)) + nil) + (t + (< (charset-id ka)(charset-id kb)) + )))))) + ) (t (> (charset-dimension ka) (charset-dimension kb)) )) t) - (if (<= (charset-id kb) 1) + (if (or (<= (charset-id kb) 1) + (and (charset-final kb) + (>= (charset-final kb) ?@))) nil - (cond - ((and (charset-final ka) - (>= (charset-final ka) ?@)) - (if (and (charset-final kb) - (>= (charset-final kb) ?@)) - (< (charset-final ka)(charset-final kb)) - t)) - ((and (charset-final kb) - (>= (charset-final kb) ?@)) - nil) - (t - (< (charset-id ka)(charset-id kb)))))) + (< (charset-id ka)(charset-id kb)))) nil)) ((find-charset kb) t) -- 1.7.10.4