update.
[chise/xemacs-chise.git-] / lisp / utf-2000 / isolated-char.el
1 ;;; isolated-char.el --- Set up isolated-characters.
2
3 ;; Copyright (C) 2001 MORIOKA Tomohiko
4
5 ;; Author: MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
6 ;; Keywords: UTF-2000, UCS-4, character, CCS, multiscript, multilingual
7
8 ;; This file is part of XEmacs UTF-2000.
9
10 ;; XEmacs UTF-2000 is free software; you can redistribute it and/or
11 ;; modify it under the terms of the GNU General Public License as
12 ;; published by the Free Software Foundation; either version 2, or (at
13 ;; your option) any later version.
14
15 ;; XEmacs UTF-2000 is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 ;; General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with XEmacs UTF-2000; see the file COPYING.  If not, write to
22 ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
24
25 ;;; Code:
26
27 (let ((buf (find-file-noselect "../etc/GT-RS.txt")))
28   (with-current-buffer buf
29     (goto-char (point-min))
30     (let (gt-code radical strokes plane code)
31       (while (re-search-forward "\\([0-9]+\\),\\([0-9]+\\),\\([0-9]+\\),GT\\([0-9]+\\),....,\\([0-9A-F][0-9A-F][0-9A-F][0-9A-F]\\)" nil t)
32         (setq gt-code (string-to-int (match-string 1))
33               plane (string-to-int (match-string 4))
34               code (string-to-int (match-string 5) 16))
35         (put-char-attribute (decode-builtin-char 'ideograph-gt gt-code)
36                             (intern (format "ideograph-gt-pj-%d" plane))
37                             code)
38         )))
39   (kill-buffer buf))
40
41 ;;; mime-view.el ends here