From divanov at aha.ru Tue Feb 1 16:26:08 2011 From: divanov at aha.ru (Dmitriy Ivanov) Date: Tue, 1 Feb 2011 19:26:08 +0300 Subject: [cl-typesetting-devel] Added condition cannot-fit and cannot-fit-on-line Message-ID: <000001cbc22c$bf3a4e10$8100a8c0@digo> Hello folks, I have introduced a couple of condition classes. These allow the programmer to customize the error messages the end user can be hardly barred from. Please update carefully. -- Sincerely, Dmitriy Ivanov lisp.ystok.ru From attila.lendvai at gmail.com Tue Feb 1 22:42:06 2011 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Tue, 1 Feb 2011 23:42:06 +0100 Subject: [cl-typesetting-devel] Added condition cannot-fit and cannot-fit-on-line In-Reply-To: <000001cbc22c$bf3a4e10$8100a8c0@digo> References: <000001cbc22c$bf3a4e10$8100a8c0@digo> Message-ID: > I have introduced a couple of condition classes. > These allow the programmer to customize the error messages the end user can > be hardly barred from. does it mean that finally we will get an error if something doesn't fit instead of silently not displaying it? if so, then thanks a whole lot for this change! it was causing us annoying headaches... -- ?attila Notice your eroding (digital) freedom, and do something about it! PGP: 2FA1 A9DC 9C1E BA25 A59C ?963F 5D5F 45C7 DFCD 0A39 OTR XMPP: 8647EEAC EA30FEEF E1B55146 573E52EE 21B1FF06 From divanov at aha.ru Wed Feb 2 06:54:23 2011 From: divanov at aha.ru (Dmitriy Ivanov) Date: Wed, 2 Feb 2011 09:54:23 +0300 Subject: [cl-typesetting-devel] Added condition cannot-fit and cannot-fit-on-line References: <000001cbc22c$bf3a4e10$8100a8c0@digo> Message-ID: <000001cbc2b0$a2155210$8100a8c0@digo> Attila Lendvai wrote on Tue, 1 Feb 2011 23:42:06 +0100 01:42: | does it mean that finally we will get an error if something doesn't | fit instead of silently not displaying it? | | if so, then thanks a whole lot for this change! it was causing us | annoying headaches... No, the condition has just replaced the vague error message "cannot fit anything". The cases when nothing is displayed need more investigation. -- Sincerely, Dmitriy Ivanov lisp.ystok.ru From ch-lisp at bobobeach.com Sat Feb 26 15:52:07 2011 From: ch-lisp at bobobeach.com (Cyrus Harmon) Date: Sat, 26 Feb 2011 08:52:07 -0700 Subject: [cl-typesetting-devel] PNG Support Patches Message-ID: <8DD9FD6A-A65C-4263-9A7A-61EE9D5F141A@bobobeach.com> I seem to recall some discussion of this a few years back, and there is some support for PNG images in cl-pdf, but there is currently no way to embed a PNG document in a cl-typesetting document. The following patches provide support for PNG images in cl-typesetting. Any chance of seeing this (or similar code) accepted into the repository? Thanks, Cyrus -------------- next part -------------- A non-text attachment was scrubbed... Name: cl-pdf-png-support.patch Type: application/octet-stream Size: 1470 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cl-typesetting-png-support.patch Type: application/octet-stream Size: 2561 bytes Desc: not available URL: -------------- next part -------------- From ch-lisp at bobobeach.com Sun Feb 27 08:10:18 2011 From: ch-lisp at bobobeach.com (Cyrus Harmon) Date: Sun, 27 Feb 2011 00:10:18 -0800 Subject: [cl-typesetting-devel] paragraph backgrounds? Message-ID: <2A4D2B7C-801E-418E-8D9D-D6B156E8FEBB@bobobeach.com> Is there a way to set a background-color for a paragraph? The obvious :background-color arg seems to work for table cells, but not for paragraphs. Of course it's quite possible that I'm missing something obvious. Has anyone tried colored backgrounds for regular paragraphs? thanks, Cyrus From divanov at aha.ru Sun Feb 27 08:58:18 2011 From: divanov at aha.ru (Dmitriy Ivanov) Date: Sun, 27 Feb 2011 11:58:18 +0300 Subject: [cl-typesetting-devel] paragraph backgrounds? References: <2A4D2B7C-801E-418E-8D9D-D6B156E8FEBB@bobobeach.com> Message-ID: <004001cbd65e$45bf35a0$8100a8c0@digo> Cyrus Harmon wrote on Sun, 27 Feb 2011 00:10:18 -0800 11:10: | Is there a way to set a background-color for a paragraph? The obvious | :background-color arg seems to work for table cells, but not for | paragraphs. Of course it's quite possible that I'm missing something | obvious. Has anyone tried colored backgrounds for regular paragraphs? No. It does not work for regular paragraphs. -- Sincerely, Dmitriy Ivanov lisp.ystok.ru From divanov at aha.ru Sun Feb 27 09:10:55 2011 From: divanov at aha.ru (Dmitriy Ivanov) Date: Sun, 27 Feb 2011 12:10:55 +0300 Subject: [cl-typesetting-devel] [cl-pdf-devel] PNG Support Patches References: <8DD9FD6A-A65C-4263-9A7A-61EE9D5F141A@bobobeach.com> Message-ID: <004101cbd65e$46f9ff90$8100a8c0@digo> Cyrus Harmon wrote on Sat, 26 Feb 2011 08:52:07 -0700 18:52: | I seem to recall some discussion of this a few years back, and there is | some support for PNG images in cl-pdf, but there is currently no way to | embed a PNG document in a cl-typesetting document. The following | patches provide support for PNG images in cl-typesetting. Any chance of | seeing this (or similar code) accepted into the repository? Thanks. I use a similar code in my "internal version": (defclass image-box (soft-box) ((file :accessor file :initform nil :initarg :file) ; pathname or bitmap-image (pdf-image :accessor pdf-image :initarg :pdf-image :initform nil))) (defmethod stroke ((box image-box) x y) (let ((pdf-image (or (pdf-image box) (setf (pdf-image box) (pdf:make-image (file box)))))) (pdf:add-images-to-page pdf-image) (pdf:draw-image pdf-image x (+ (- y (dy box))(offset box)) (dx box)(dy box) 0 t))) (defun image (&rest args &key inline &allow-other-keys) (if inline (add-box (apply 'make-instance 'image-box :allow-other-keys t args)) (let ((hbox (make-instance 'hbox :boxes (list (make-hfill-glue) (apply 'make-instance 'image-box :allow-other-keys t args) (make-hfill-glue)) :adjustable-p t))) (compute-natural-box-size hbox) (add-box hbox)))) I consider the class jpeg-box (and png-box offered) useless. Additionally, the background-jpeg-box class could also be replaced with a more general background-box. Does anybody specialize on them? -- Sincerely, Dmitriy Ivanov lisp.ystok.ru