c49794a64e542215a6af6e98921cddd6d86fcb1a
[chise/xemacs-chise.git.1] / lisp / utf-2000 / ideograph-subr.el
1 ;;; ideograph-subr.el --- basic lisp subroutines about Ideographs -*- coding: utf-8-er; -*-
2
3 ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
4 ;;   2007, 2008, 2009, 2010 MORIOKA Tomohiko.
5
6 ;; Author: MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
7 ;; Keywords: CHISE, Character Database, ISO/IEC 10646, UCS, Unicode, MULE.
8
9 ;; This file is part of XEmacs CHISE.
10
11 ;; XEmacs CHISE is free software; you can redistribute it and/or
12 ;; modify it under the terms of the GNU General Public License as
13 ;; published by the Free Software Foundation; either version 2, or (at
14 ;; your option) any later version.
15
16 ;; XEmacs CHISE is distributed in the hope that it will be useful,
17 ;; but 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.
20
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with XEmacs CHISE; see the file COPYING.  If not, write to
23 ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
25
26 ;;; Code:
27
28 ;;; @ radical
29 ;;;
30
31 (defconst ideographic-radicals
32   (let ((v (make-vector 215 nil))
33         (i 1))
34     (while (< i 215)
35       (aset v i (decode-char '=ucs (+ #x2EFF i)))
36       (setq i (1+ i)))
37     v))
38
39 ;;;###autoload
40 (defun ideographic-radical (number)
41   "Return character corresponding with Kangxi-radical number."
42   (aref ideographic-radicals number))
43
44
45 ;;; @ end
46 ;;;
47
48 (provide 'ideograph-subr)
49
50 ;;; ideograph-subr.el ends here