[wadalabfont-kit] / lisp / test / sort-joint.l  

View of /lisp/test/sort-joint.l

Parent Directory | Revision Log
Revision: 1.1.1.1 - (download) (annotate) (vendor branch)
Thu Dec 28 08:54:19 2000 UTC (23 years, 4 months ago) by ktanaka
Branch: ktanaka, MAIN
CVS Tags: SNAP-20030702, tmp, SNAP-20030624, SNAP-20030630, SNAP-20040518, HEAD
Changes since 1.1: +0 -0 lines
change to CVS wadalab font project
(defun kanjisym ((oblist (oblist)))
  (do ((l oblist (cdr l))(ret))
    ((atom l)ret)
    (and (plusp (logand 128 (sref (car l) 0)))
	 (push (car l) ret))))
(defun sortkanji (l)
  (sort l 'string-lessp))
(defun print-joint ()
  (do ((l (sortkanji (kanjisym (oblist))) (cdr l))(sym)(val))
    ((atom l))
    (setq sym (car l) val nil)
    (cond ((and (boundp sym)
		(consp (setq val (eval sym)))
		(symbolp (car val)))
	   (cond ((memq (car val) '(yoko tate kamae kamae2 nyou tare))
		  (prind `(setq ,sym ',val)))
		 (t 		  
		  (or (memq (car val) '(kana-joint smallkana))
		      (format ";error/n"))
		  (format ";/c/n" sym))))
	  ((and val (symbolp val))
	   (format "(setq /c '/c)/n" sym val))
	  (t (format ";/c/n" sym)))))
(defun out-to-file (filename func)
  (lets ((standard-output (outopen (stream filename))))
    (eval func)))

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help