1 ;;; chartblxmas.el --- display table of charset by pop-up menu
3 ;; Copyright (C) 1997 MORIOKA Tomohiko
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6 ;; Version: $Id: chartblxmas.el,v 1.1.1.1 1998-01-14 06:35:19 steve Exp $
7 ;; Keywords: character, XEmacs/mule
9 ;; This file is part of XEmacs.
11 ;; XEmacs is free software; you can redistribute it and/or modify it
12 ;; under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
16 ;; XEmacs is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ;; General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with XEmacs; see the file COPYING. If not, write to the Free
23 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
31 (defun classify-charsets-by-dimension-and-chars (charset-list)
34 (let* ((charset (car charset-list))
35 (chars (charset-chars charset))
36 (dim (charset-dimension charset))
37 (dim-alist (cdr (assq dim dest)))
43 (cdr (assq chars dim-alist)))
47 (setq charset-list (cdr charset-list))
53 (defun view-charset-by-menu ()
54 "Display character table of CHARSET by pop-up menu."
65 (vector (charset-doc-string charset)
66 `(view-charset ',charset)
72 (string< (aref a 0)(aref b 0))
76 (classify-charsets-by-dimension-and-chars (charset-list))
84 (n (int-to-string (car p)))
88 (setq s (concat s " x " n))
90 (set-alist 'dest (concat s " character set") (cdr p)))
93 (setq rest (cdr rest)))
95 (function (lambda (a b)
96 (string< (car a)(car b))
100 ;;; chartblxmas.el ends here