small suggestion for image-reader.lisp
Christian Lynbech
christian at defun.dk
Sun Feb 9 04:31:01 UTC 2003
While mucking around with the image-reader I came up something a
little more robust for handling comments in pnm files. The idea is to
use a readtable with '#' marked as a comment character.
With this patch the three attached sample pnm files should evaluate to
the same image.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-ppm-reader
Type: application/octet-stream
Size: 794 bytes
Desc: patch for image-reader.lisp
URL: <https://mailman.common-lisp.net/pipermail/eclipse-devel/attachments/20030209/e98fbdac/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t0.pnm
Type: image/x-portable-anymap
Size: 982 bytes
Desc: sample pnm image without comments
URL: <https://mailman.common-lisp.net/pipermail/eclipse-devel/attachments/20030209/e98fbdac/attachment.pnm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t1.pnm
Type: image/x-portable-anymap
Size: 993 bytes
Desc: sample pnm image with a simple comment
URL: <https://mailman.common-lisp.net/pipermail/eclipse-devel/attachments/20030209/e98fbdac/attachment-0001.pnm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t2.pnm
Type: image/x-portable-anymap
Size: 1011 bytes
Desc: sample pnm image with a little more sophisticated comments
URL: <https://mailman.common-lisp.net/pipermail/eclipse-devel/attachments/20030209/e98fbdac/attachment-0002.pnm>
-------------- next part --------------
------------------------+-----------------------------------------------------
Christian Lynbech | email: christian at defun.dk
------------------------+-----------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
- petonic at hal.com (Michael A. Petonic)
More information about the eclipse-devel
mailing list