X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=ids.el;h=8214e834e8ab8e9ccc434e6daec2b1d7c76ded08;hb=2d6e70b282c68b45e51561fe2a4776640fff898a;hp=7ce7a818693f32d92aaebe533c8e8b93c2cdd697;hpb=52e62451e8c5c90378a57e1ed569f605112896ac;p=chise%2Fids.git diff --git a/ids.el b/ids.el index 7ce7a81..8214e83 100644 --- a/ids.el +++ b/ids.el @@ -1,6 +1,6 @@ ;;; ids.el --- Parser and utility for Ideographic Description Sequence. -;; Copyright (C) 2001,2002,2003 MORIOKA Tomohiko +;; Copyright (C) 2001,2002,2003,2005 MORIOKA Tomohiko ;; Author: MORIOKA Tomohiko ;; Keywords: IDS, IDC, Ideographs, UCS, Unicode @@ -29,6 +29,14 @@ ;;; Code: +(require 'ideograph-util) + +(defun ideographic-structure-find-char (structure) + (dolist (product (char-feature (nth 1 structure) 'ideographic-products)) + (if (equal structure + (char-feature product 'ideographic-structure)) + (return product)))) + (defun ids-parse-terminal (string) (if (>= (length string) 1) (let* ((chr (aref string 0))