From e5d28bdfe5f912401e379819decdff518dadff89 Mon Sep 17 00:00:00 2001 From: tomo Date: Mon, 2 May 2005 08:27:58 +0000 Subject: [PATCH] (www-ids-find-tang-chars-file-name): New variable. (www-batch-ids-find): Use `www-ids-find-tang-chars-file-name'. --- www/www-ids-find.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/www/www-ids-find.el b/www/www-ids-find.el index 288bbca..5e53e7c 100644 --- a/www/www-ids-find.el +++ b/www/www-ids-find.el @@ -15,6 +15,9 @@ (concat dest (substring string i)) coding-system)))) +(defvar www-ids-find-tang-chars-file-name + "~tomo/projects/chise/ids/www/tang-chars.udd") + (defun www-batch-ids-find () (let ((components (car command-line-args-left)) is ucs) @@ -85,10 +88,10 @@ (princ (or (if (setq ucs (or (char-ucs c) (encode-char c 'ucs))) - (format "%s" + (format " %s" ucs (cond ((<= ucs #xFFFF) - (format " U+%04X" ucs)) + (format "U+%04X" ucs)) ((<= ucs #x10FFFF) (format "U-%08X" ucs)))) " "))) @@ -100,7 +103,7 @@ (when (and ucs (with-current-buffer (find-file-noselect - "~tomo/projects/chise/ids/www/tang-chars.udd") + www-ids-find-tang-chars-file-name) (goto-char (point-min)) (re-search-forward (format "^%d$" ucs) nil t))) (princ -- 1.7.10.4