Add header.
[chise/tomoyo-tools.git] / idc.el
diff --git a/idc.el b/idc.el
index aca75e0..c3e7dc9 100644 (file)
--- a/idc.el
+++ b/idc.el
@@ -1,3 +1,34 @@
+;;; idc.el --- Parser and utility for Ideographic Description Sequence.
+
+;; Copyright (C) 2001 MORIOKA Tomohiko
+
+;; Author: MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
+;; Keywords: IDC, Ideographs, UCS, Unicode
+
+;; This file is a part of Tomoyo-Tools.
+
+;; This program is free software; you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation; either version 2, or (at
+;; your option) any later version.
+
+;; This program is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program; see the file COPYING.  If not, write to
+;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+;; Boston, MA 02111-1307, USA.
+
+;;; Commentary:
+
+;; Ideographic Description Sequence is defined in ISO/IEC 10646-1:2000
+;; Annex F.
+
+;;; Code:
+
 (defun idc-parse-terminal (string)
   (if (>= (length string) 1)
       (let* ((chr (aref string 0))
@@ -59,6 +90,7 @@
                 (cons (list (list 'ideographic-structure op arg1 arg2 arg3))
                       (cdr ret)))))))))
 
+;;;###autoload
 (defun idc-parse-string (string)
   (let ((ret (idc-parse-element string)))
     (if (= (length (cdr ret)) 0)
@@ -67,6 +99,7 @@
 
 (require 'idc-util)
 
+;;;###autoload
 (defun idc-read-buffer (buffer)
   (with-current-buffer buffer
     (goto-char (point-min))
                (put-char-attribute ret 'ideographic-structure struct)))
          )))))
 
-;; (idc-read-buffer "IDDef1.txt")
\ No newline at end of file
+;; (idc-read-buffer "IDDef1.txt")
+
+;;; @ End.
+;;;
+
+(provide 'idc)
+
+;;; idc.el ends here