From gwking at franz.com Fri Aug 18 16:59:10 2006 From: gwking at franz.com (Gary King) Date: Fri, 18 Aug 2006 12:59:10 -0400 Subject: [cl-pdf-devel] Two very minor cl-pdf patches.... Message-ID: Below are two proposed cl-pdf patches. The first alters the system def so that it tries harder to find the system defs for iterate and salza. In particular, it searches using both the *load-pathname* and the *load-truename*. This helps deal with symbolic links. At least in my case, CL-PDF would not load for me because I was loading a symbolic link to cl-pdf.asd rather than the physical file. The second patch just adds an in-package to the examples file. Please let me know if you have any questions, etc. Index: cl-pdf.asd =================================================================== --- cl-pdf.asd (revision 118) +++ cl-pdf.asd (working copy) @@ -22,10 +22,17 @@ (pushnew :uffi cl:*features*) (print "UFFI loaded.")) -(load (merge-pathnames "iterate/iterate.asd" *load-truename*)) +(flet ((load-if (it) + (when (probe-file it) + (load it)))) + (or (load-if (merge-pathnames "iterate/iterate.asd" *load-pathname*)) + (load-if (merge-pathnames "iterate/iterate.asd" *load-truename*)) + (find-system 'iterate)) -#+use-salza-zlib -(load (merge-pathnames "salza/salza.asd" *load-truename*)) + #+use-salza-zlib + (or (load-if (merge-pathnames "salza/salza.asd" *load-pathname*)) + (load-if (merge-pathnames "salza/salza.asd" *load-truename*)) + (find-system 'salza))) #+clisp (setf *warn-on-floating-point-contagion* nil) Index: examples/examples.lisp =================================================================== --- examples/examples.lisp (revision 118) +++ examples/examples.lisp (working copy) @@ -2,6 +2,8 @@ ;;; You can reach me at marc.battyani at fractalconcept.com or marc at battyani.net ;;; The homepage of cl-pdf is here: http://www.fractalconcept.com/asp/ html/cl-pdf.html +(in-package #:pdf) + (defun example1 (&optional (file #P"/tmp/ex1.pdf")) (pdf:with-document () (pdf:with-page () -- Gary Warren King metabang.com [http://www.metabang.com/] (413) 885 9127 * (206) 338-4052 [Fax] gwking on #lisp (occasionally) From jcm at FreeBSD-uk.eu.org Wed Aug 23 21:49:43 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Wed, 23 Aug 2006 22:49:43 +0100 Subject: [cl-pdf-devel] Problems with international characters Message-ID: <20060823214943.GB56848@dogma.freebsd-uk.eu.org> Hi all, I'm trying to get some non-ascii characters into a pdf report, and I'm getting some odd output. Is there a setting I need somewhere to support all latin characters? Actually, I can't even get copyright and trademark to work either. Is there a font someone can point me to? Jonathon McKitrick -- My other computer is your Windows box. From divanov at aha.ru Thu Aug 24 05:58:31 2006 From: divanov at aha.ru (Dmitriy Ivanov) Date: Thu, 24 Aug 2006 09:58:31 +0400 Subject: [cl-pdf-devel] Problems with international characters References: <20060823214943.GB56848@dogma.freebsd-uk.eu.org> Message-ID: <000201c6c749$3f66a770$8100a8c0@digo> Hello Jonathon, | Hi all, | | I'm trying to get some non-ascii characters into a pdf report, and I'm | getting some odd output. Is there a setting I need somewhere to | support all latin characters? Actually, I can't even get copyright and | trademark to work either. Is there a font someone can point me to? Please take a look at http://lisp.ystok.ru/cl-pdf.html for a starter. -- Sincerely, Dmitriy Ivanov lisp.ystok.ru From jcm at FreeBSD-uk.eu.org Thu Aug 24 17:22:37 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Thu, 24 Aug 2006 18:22:37 +0100 Subject: [cl-pdf-devel] Problems with international characters In-Reply-To: <000201c6c749$3f66a770$8100a8c0@digo> References: <20060823214943.GB56848@dogma.freebsd-uk.eu.org> <000201c6c749$3f66a770$8100a8c0@digo> Message-ID: <20060824172236.GA67324@dogma.freebsd-uk.eu.org> On Thu, Aug 24, 2006 at 09:58:31AM +0400, Dmitriy Ivanov wrote: : Please take a look at http://lisp.ystok.ru/cl-pdf.html for a starter. Very helpful, thank you. Is it necessary to follow this approach for latin1? I can't even figure out how to get copyright and trademark symbols. Maybe I need to use fonts different from the ones included with the source? Jonathon McKitrick -- My other computer is your Windows box. From divanov at aha.ru Fri Aug 25 04:42:30 2006 From: divanov at aha.ru (Dmitriy Ivanov) Date: Fri, 25 Aug 2006 08:42:30 +0400 Subject: [cl-pdf-devel] Problems with international characters References: <20060823214943.GB56848@dogma.freebsd-uk.eu.org> <000201c6c749$3f66a770$8100a8c0@digo> <20060824172236.GA67324@dogma.freebsd-uk.eu.org> Message-ID: <000001c6c801$bd9021e0$8100a8c0@digo> "Jonathon McKitrick" wrote: | On Thu, Aug 24, 2006 at 09:58:31AM +0400, Dmitriy Ivanov wrote: | : Please take a look at http://lisp.ystok.ru/cl-pdf.html for a starter. | | Very helpful, thank you. | | Is it necessary to follow this approach for latin1? I can't even | figure out how to get copyright and trademark symbols. Maybe I need to | use fonts different from the ones included with the source? Have you tried (code-char #xA9) and (code-char #xAE)? As WinAnsiEncoding mentions "copyright" and "registered", you can get them printed with standard fonts, e.g. (defun test (&optional (file (current-pathname "test.pdf"))) (pdf:with-document () (pdf:with-page () (let ((font (pdf:get-font "Helvetica" :win-ansi-encoding))) (pdf:draw-text "cl-pdf: In Helvetica") (pdf:set-text-leading 12) (pdf:show-text-on-next-line ".>-- ????????#\??"))) (pdf:write-document file))) -- Sincerely, Dmitriy Ivanov lisp.ystok.ru From jcm at FreeBSD-uk.eu.org Sat Aug 26 14:55:36 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Sat, 26 Aug 2006 15:55:36 +0100 Subject: [cl-pdf-devel] Problems with unicode fonts Message-ID: <20060826145536.GA85478@dogma.freebsd-uk.eu.org> Hi all, I'm having issues with unicode fonts, and I have a deadline looming, so I'd appreciate any help. All I want to do is find a simple helvetica or arial font that supports all the latin1 characters, as well as copyright/trademark symbols. I used ttf2p1 on a utf8 TT font, and I got a .afm file, not .ufm. I tried it anyway, and the pdf output for that font was garbage... little gray squares. How do I 1. Select a utf8 font that will work with the following steps. 2. Convert said font to something cl-pdf will use. 3. Read said font into cl-pdf. 4. Generate pdf output from utf8 input. I'd happily RTFM here, but there's very little FM to R. I read the list archives back to when unicode was introduced, and that led to the problem in the paragraph above. Has anyone else solved this problem who would be willing to point me in the right direction? If all else fails, I'll apply Dmitriy's patches and try that. Jonathon McKitrick -- My other computer is your Windows box. From jcm at FreeBSD-uk.eu.org Sat Aug 26 16:36:46 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Sat, 26 Aug 2006 17:36:46 +0100 Subject: [cl-pdf-devel] Problems with international characters In-Reply-To: <000201c6c749$3f66a770$8100a8c0@digo> References: <20060823214943.GB56848@dogma.freebsd-uk.eu.org> <000201c6c749$3f66a770$8100a8c0@digo> Message-ID: <20060826163645.GA86734@dogma.freebsd-uk.eu.org> On Thu, Aug 24, 2006 at 09:58:31AM +0400, Dmitriy Ivanov wrote: : Hello Jonathon, : : | Hi all, : | : | I'm trying to get some non-ascii characters into a pdf report, and I'm : | getting some odd output. Is there a setting I need somewhere to : | support all latin characters? Actually, I can't even get copyright and : | trademark to work either. Is there a font someone can point me to? : : Please take a look at http://lisp.ystok.ru/cl-pdf.html for a starter. I'm confused by the different types of font files: afm versus ufm, as well as the different load functions for each. Jonathon McKitrick -- My other computer is your Windows box. From marc.battyani at fractalconcept.com Sat Aug 26 20:09:12 2006 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Sat, 26 Aug 2006 22:09:12 +0200 Subject: [cl-pdf-devel] Problems with unicode fonts References: <20060826145536.GA85478@dogma.freebsd-uk.eu.org> Message-ID: <107801c6c94b$7fd36b50$1402a8c0@marcx2> "Jonathon McKitrick" wrote: > I'm having issues with unicode fonts, and I have a deadline looming, so > I'd > appreciate any help. > > All I want to do is find a simple helvetica or arial font that supports > all > the latin1 characters, as well as copyright/trademark symbols. I used > ttf2p1 > on a utf8 TT font, and I got a .afm file, not .ufm. I tried it anyway, > and > the pdf output for that font was garbage... little gray squares. Using an unicode font is probably not the correct annswer to your problerm. Anyway there is no utf8 fonts. utf8 is an encoding. > How do I > 1. Select a utf8 font that will work with the following steps. > 2. Convert said font to something cl-pdf will use. > 3. Read said font into cl-pdf. > 4. Generate pdf output from utf8 input. > > I'd happily RTFM here, but there's very little FM to R. I read the list > archives back to when unicode was introduced, and that led to the problem > in > the paragraph above. Well unicode is the only thing for which I wrote some help. Look at readme-unicode.txt > Has anyone else solved this problem who would be willing to point me in > the > right direction? Well, have you tested Dmitriy's solution? > If all else fails, I'll apply Dmitriy's patches and try that. Marc From jcm at FreeBSD-uk.eu.org Sat Aug 26 22:16:06 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Sat, 26 Aug 2006 23:16:06 +0100 Subject: [cl-pdf-devel] Isolated a problem... Message-ID: <20060826221606.GA88267@dogma.freebsd-uk.eu.org> Here's the smallest amount of code required to reproduce the problem I am having. I *think* it has to do with the pdf commands out of order, not nested correctly, or a problem with state. You should see an 'A-carat' before the copyright symbol. Some possible clues are that if the 'xxx' text is any shorter than 17, the bug does not occur. If the rectangular bar is not drawn, it does not occur. Sorry for the attachment, but it's a small one. Jonathon McKitrick -- My other computer is your Windows box. -------------- next part -------------- ;; -*- mode: lisp; encoding: utf-8-unix -*- (defun add-page (rpt &key title-page) (declare (ignore rpt)) (let ((margin-left 30) (margin-right 30) (height 841) (width 595) (margin-top 50)) (pdf:with-saved-state (pdf:set-line-width 0.4) (pdf:set-rgb-fill 0.2 0.4 0.6) (pdf:rectangle margin-left (- height (/ margin-top 1.1)) (- width (* margin-right 2)) 4) (pdf:fill-path) (pdf:set-rgb-fill 0 0 0) (pdf:basic-rect margin-left (- height (/ margin-top 1.1) 4) (- width (* margin-right 2)) 4) (pdf:fill-path)) (pdf:in-text-mode (pdf:set-font (pdf::get-font "Helvetica") 26.0) (pdf:set-rgb-fill 0.2 0.4 0.6) (pdf:move-text 30 (- height (/ margin-top 1.6))) (pdf:draw-text "??")) (when title-page (pdf:in-text-mode (pdf:set-font (pdf:get-font "Helvetica-Bold") 16.0) (pdf:move-text 30 (- height (* margin-top 1.4))) (pdf:set-rgb-fill 0 0 0) (pdf:draw-text "xxxxxxxxxxxxxxxxx"))))) (defun test (&optional (file "test.pdf")) (pdf:with-document () (pdf:with-page () (add-page nil :title-page t)) (pdf:write-document file))) ;(test) From marc.battyani at fractalconcept.com Sat Aug 26 22:46:47 2006 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Sun, 27 Aug 2006 00:46:47 +0200 Subject: [cl-pdf-devel] Isolated a problem... References: <20060826221606.GA88267@dogma.freebsd-uk.eu.org> Message-ID: <111e01c6c961$82e53d30$1402a8c0@marcx2> "Jonathon McKitrick" wrote: > Here's the smallest amount of code required to reproduce the problem I am > having. I *think* it has to do with the pdf commands out of order, not > nested > correctly, or a problem with state. You should see an 'A-carat' before > the > copyright symbol. Hum... I don't see why there should be a 'A-carat' at all in this example. > Some possible clues are that if the 'xxx' text is any shorter than 17, the > bug > does not occur. If the rectangular bar is not drawn, it does not occur. > > Sorry for the attachment, but it's a small one. No problem with attachements as long as they are not spam... ;-) Marc From jcm at FreeBSD-uk.eu.org Sat Aug 26 23:05:15 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Sun, 27 Aug 2006 00:05:15 +0100 Subject: [cl-pdf-devel] Isolated a problem... In-Reply-To: <111e01c6c961$82e53d30$1402a8c0@marcx2> References: <20060826221606.GA88267@dogma.freebsd-uk.eu.org> <111e01c6c961$82e53d30$1402a8c0@marcx2> Message-ID: <20060826230515.GA88481@dogma.freebsd-uk.eu.org> On Sun, Aug 27, 2006 at 12:46:47AM +0200, Marc Battyani wrote: : "Jonathon McKitrick" wrote: : : >Here's the smallest amount of code required to reproduce the problem I am : >having. I *think* it has to do with the pdf commands out of order, not : >nested : >correctly, or a problem with state. You should see an 'A-carat' before : >the : >copyright symbol. : : Hum... I don't see why there should be a 'A-carat' at all in this example. Did you see it in the output? After 8 hours of work, it damn well better show up now. ;-) Try deleting an 'x' or 2, and watch it disappear. Jonathon McKitrick -- My other computer is your Windows box. From divanov at aha.ru Sun Aug 27 08:14:11 2006 From: divanov at aha.ru (Dmitriy Ivanov) Date: Sun, 27 Aug 2006 12:14:11 +0400 Subject: [cl-pdf-devel] Problems with international characters References: <20060823214943.GB56848@dogma.freebsd-uk.eu.org> <000201c6c749$3f66a770$8100a8c0@digo> <20060826163645.GA86734@dogma.freebsd-uk.eu.org> Message-ID: <000e01c6c9b0$cbd9e640$8100a8c0@digo> "Jonathon McKitrick" wrote: | : Please take a look at http://lisp.ystok.ru/cl-pdf.html for a starter. | | I'm confused by the different types of font files: afm versus ufm, as well | as the different load functions for each. I generate afms from ttfs by means of ttf2p1. The afms are based on a single-byte encoding. I do not use ufm-based approach. BTW, have you tried to replace utf8 with latin-1, e.g. ;; -*- mode: lisp; encoding: latin-1 -*- ? -- Sincerely, Dmitriy Ivanov lisp.ystok.ru From marc.battyani at fractalconcept.com Sun Aug 27 10:04:36 2006 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Sun, 27 Aug 2006 12:04:36 +0200 Subject: [cl-pdf-devel] Isolated a problem... References: <20060826221606.GA88267@dogma.freebsd-uk.eu.org> <111e01c6c961$82e53d30$1402a8c0@marcx2> <20060826230515.GA88481@dogma.freebsd-uk.eu.org> Message-ID: <123201c6c9c0$34187640$1402a8c0@marcx2> "Jonathon McKitrick" wrote: > On Sun, Aug 27, 2006 at 12:46:47AM +0200, Marc Battyani wrote: > : "Jonathon McKitrick" wrote: > : > : >Here's the smallest amount of code required to reproduce the problem I > am > : >having. I *think* it has to do with the pdf commands out of order, not > : >nested > : >correctly, or a problem with state. You should see an 'A-carat' before > : >the > : >copyright symbol. > : > : Hum... I don't see why there should be a 'A-carat' at all in this > example. > > Did you see it in the output? After 8 hours of work, it damn well better > show > up now. ;-) Well I mean I don't see an 'A-carat' in your source snippet. > Try deleting an 'x' or 2, and watch it disappear. It can't disapper as it's not there ;-) Marc From jcm at FreeBSD-uk.eu.org Sun Aug 27 13:45:38 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Sun, 27 Aug 2006 14:45:38 +0100 Subject: [cl-pdf-devel] Isolated a problem... In-Reply-To: <123201c6c9c0$34187640$1402a8c0@marcx2> References: <20060826221606.GA88267@dogma.freebsd-uk.eu.org> <111e01c6c961$82e53d30$1402a8c0@marcx2> <20060826230515.GA88481@dogma.freebsd-uk.eu.org> <123201c6c9c0$34187640$1402a8c0@marcx2> Message-ID: <20060827134538.GB92847@dogma.freebsd-uk.eu.org> On Sun, Aug 27, 2006 at 12:04:36PM +0200, Marc Battyani wrote: : Well I mean I don't see an 'A-carat' in your source snippet. : : >Try deleting an 'x' or 2, and watch it disappear. : : It can't disapper as it's not there ;-) That's the whole point. ;-) Evaluate (test) and open the pdf. You'll see the A-carat on the first line. Jonathon McKitrick -- My other computer is your Windows box. From jcm at FreeBSD-uk.eu.org Sun Aug 27 13:49:16 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Sun, 27 Aug 2006 14:49:16 +0100 Subject: [cl-pdf-devel] Problems with international characters In-Reply-To: <000e01c6c9b0$cbd9e640$8100a8c0@digo> References: <20060823214943.GB56848@dogma.freebsd-uk.eu.org> <000201c6c749$3f66a770$8100a8c0@digo> <20060826163645.GA86734@dogma.freebsd-uk.eu.org> <000e01c6c9b0$cbd9e640$8100a8c0@digo> Message-ID: <20060827134916.GC92847@dogma.freebsd-uk.eu.org> On Sun, Aug 27, 2006 at 12:14:11PM +0400, Dmitriy Ivanov wrote: : "Jonathon McKitrick" wrote: : : | : Please take a look at http://lisp.ystok.ru/cl-pdf.html for a starter. : | : | I'm confused by the different types of font files: afm versus ufm, as well : | as the different load functions for each. : : I generate afms from ttfs by means of ttf2p1. The afms are based on a : single-byte encoding. I do not use ufm-based approach. Okay, that is helpful. I will have to try that after I figure out how to fix the bug I found. A single byte encoding handles latin *and* cyrillic characters? : BTW, have you tried to replace utf8 with latin-1, e.g. : : ;; -*- mode: lisp; encoding: latin-1 -*- In which source file? The data I am generating is from PostGreSQL, which is set for unicode. Jonathon McKitrick -- My other computer is your Windows box. From marc.battyani at fractalconcept.com Sun Aug 27 14:07:11 2006 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Sun, 27 Aug 2006 16:07:11 +0200 Subject: [cl-pdf-devel] Isolated a problem... References: <20060826221606.GA88267@dogma.freebsd-uk.eu.org> <111e01c6c961$82e53d30$1402a8c0@marcx2> <20060826230515.GA88481@dogma.freebsd-uk.eu.org> <123201c6c9c0$34187640$1402a8c0@marcx2> <20060827134538.GB92847@dogma.freebsd-uk.eu.org> Message-ID: <131f01c6c9e2$17625530$1402a8c0@marcx2> "Jonathon McKitrick" wrote: > : It can't disapper as it's not there ;-) > > That's the whole point. ;-) > > Evaluate (test) and open the pdf. You'll see the A-carat on the first > line. Well no... See the attached pdf. Marc -------------- next part -------------- A non-text attachment was scrubbed... Name: test.pdf Type: application/pdf Size: 1127 bytes Desc: not available URL: From jcm at FreeBSD-uk.eu.org Sun Aug 27 14:39:47 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Sun, 27 Aug 2006 15:39:47 +0100 Subject: [cl-pdf-devel] Isolated a problem... In-Reply-To: <131f01c6c9e2$17625530$1402a8c0@marcx2> References: <20060826221606.GA88267@dogma.freebsd-uk.eu.org> <111e01c6c961$82e53d30$1402a8c0@marcx2> <20060826230515.GA88481@dogma.freebsd-uk.eu.org> <123201c6c9c0$34187640$1402a8c0@marcx2> <20060827134538.GB92847@dogma.freebsd-uk.eu.org> <131f01c6c9e2$17625530$1402a8c0@marcx2> Message-ID: <20060827143947.GA93293@dogma.freebsd-uk.eu.org> On Sun, Aug 27, 2006 at 04:07:11PM +0200, Marc Battyani wrote: : See the attached pdf. See the new attached pdf, and the screenshot just to be sure. Jonathon McKitrick -- My other computer is your Windows box. -------------- next part -------------- A non-text attachment was scrubbed... Name: test.pdf Type: application/pdf Size: 1139 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot-of-pdf.tiff Type: image/tiff Size: 63494 bytes Desc: not available URL: From marc.battyani at fractalconcept.com Sun Aug 27 18:14:16 2006 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Sun, 27 Aug 2006 20:14:16 +0200 Subject: [cl-pdf-devel] Isolated a problem... References: <20060826221606.GA88267@dogma.freebsd-uk.eu.org><111e01c6c961$82e53d30$1402a8c0@marcx2><20060826230515.GA88481@dogma.freebsd-uk.eu.org><123201c6c9c0$34187640$1402a8c0@marcx2><20060827134538.GB92847@dogma.freebsd-uk.eu.org><131f01c6c9e2$17625530$1402a8c0@marcx2> <20060827143947.GA93293@dogma.freebsd-uk.eu.org> Message-ID: <141701c6ca04$9bd1b690$1402a8c0@marcx2> "Jonathon McKitrick" wrote: > On Sun, Aug 27, 2006 at 04:07:11PM +0200, Marc Battyani wrote: > : See the attached pdf. > > See the new attached pdf, and the screenshot just to be sure. Well it works very well on LWW 4.4 ;-) What Lisp/OS are you using? Also, disable the stream compression in cl-pdf so that we can see what is inside the pdf. Marc From jcm at FreeBSD-uk.eu.org Sun Aug 27 19:04:30 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Sun, 27 Aug 2006 20:04:30 +0100 Subject: [cl-pdf-devel] Isolated a problem... In-Reply-To: <141701c6ca04$9bd1b690$1402a8c0@marcx2> References: <20060827143947.GA93293@dogma.freebsd-uk.eu.org> <141701c6ca04$9bd1b690$1402a8c0@marcx2> Message-ID: <20060827190429.GA95304@dogma.freebsd-uk.eu.org> On Sun, Aug 27, 2006 at 08:14:16PM +0200, Marc Battyani wrote: : Well it works very well on LWW 4.4 ;-) You see nothing wrong at all? : What Lisp/OS are you using? SBCL 0.9.15 on a MacBook. : Also, disable the stream compression in cl-pdf so that we can see what is : inside the pdf. You mean this? (defvar *compress-streams* nil "Enables the internal streams compression by zlib") Jonathon McKitrick -- My other computer is your Windows box. From marc.battyani at fractalconcept.com Sun Aug 27 19:50:58 2006 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Sun, 27 Aug 2006 21:50:58 +0200 Subject: [cl-pdf-devel] Isolated a problem... References: <20060827143947.GA93293@dogma.freebsd-uk.eu.org> <141701c6ca04$9bd1b690$1402a8c0@marcx2> <20060827190429.GA95304@dogma.freebsd-uk.eu.org> <144601c6ca0d$2209c8d0$1402a8c0@marcx2> <20060827192526.GA95415@dogma.freebsd-uk.eu.org> Message-ID: <146b01c6ca12$1e2a0450$1402a8c0@marcx2> "Jonathon McKitrick" wrote: > On Sun, Aug 27, 2006 at 09:15:17PM +0200, Marc Battyani wrote: > : (setf pdf:*compress-streams* nil) > > Solved! Now, shall we pursue this further to figure out what the real > issue > is? > > That fixed *everything* including my latin-1 character issue. Great! :) Looks like there is a problem with the compression then. (or with SBCL 0.915) Did you have it with previous SBCL versions? Marc From jcm at FreeBSD-uk.eu.org Sun Aug 27 20:07:09 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Sun, 27 Aug 2006 21:07:09 +0100 Subject: [cl-pdf-devel] Isolated a problem... In-Reply-To: <146b01c6ca12$1e2a0450$1402a8c0@marcx2> References: <20060827143947.GA93293@dogma.freebsd-uk.eu.org> <141701c6ca04$9bd1b690$1402a8c0@marcx2> <20060827190429.GA95304@dogma.freebsd-uk.eu.org> <144601c6ca0d$2209c8d0$1402a8c0@marcx2> <20060827192526.GA95415@dogma.freebsd-uk.eu.org> <146b01c6ca12$1e2a0450$1402a8c0@marcx2> Message-ID: <20060827200708.GA95738@dogma.freebsd-uk.eu.org> On Sun, Aug 27, 2006 at 09:50:58PM +0200, Marc Battyani wrote: : Great! :) I appreciate your help. P.S. do you have any cl-typesetting docs? : Looks like there is a problem with the compression then. (or with SBCL : 0.915) : Did you have it with previous SBCL versions? I've been telling my boss for months now that I just can't get ?? to appear in reports. Now I can tell him it does. So it's been around for a while. Happened under Linux as well. Jonathon McKitrick -- My other computer is your Windows box. From marc.battyani at fractalconcept.com Sun Aug 27 22:34:15 2006 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Mon, 28 Aug 2006 00:34:15 +0200 Subject: [cl-pdf-devel] Isolated a problem... References: <20060827143947.GA93293@dogma.freebsd-uk.eu.org><141701c6ca04$9bd1b690$1402a8c0@marcx2><20060827190429.GA95304@dogma.freebsd-uk.eu.org><144601c6ca0d$2209c8d0$1402a8c0@marcx2><20060827192526.GA95415@dogma.freebsd-uk.eu.org><146b01c6ca12$1e2a0450$1402a8c0@marcx2> <20060827200708.GA95738@dogma.freebsd-uk.eu.org> Message-ID: <14e001c6ca28$ed4962b0$1402a8c0@marcx2> "Jonathon McKitrick" wrote: On Sun, Aug 27, 2006 at 09:50:58PM +0200, Marc Battyani wrote: >P.S. do you have any cl-typesetting docs? Don't duck, Run away! ;-) My biggest problem is the available time. So when I finally have some time, I really prefer to use it for improving the code, applying all the patches I got and adding new functionnalities rather than writing code. (and I must confess that I really dislike writing docs... ;-) >: Looks like there is a problem with the compression then. (or with SBCL >: 0.915) >: Did you have it with previous SBCL versions? > >I've been telling my boss for months now that I just can't get ?? to appear >in >reports. Now I can tell him it does. So it's been around for a while. >Happened under Linux as well. If fact the compression is not used below a minimum size. This is probably why it changed with the number of #\x or rectangles. Marc From jcm at FreeBSD-uk.eu.org Sun Aug 27 23:37:40 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Mon, 28 Aug 2006 00:37:40 +0100 Subject: [cl-pdf-devel] Isolated a problem... In-Reply-To: <14e001c6ca28$ed4962b0$1402a8c0@marcx2> References: <20060827200708.GA95738@dogma.freebsd-uk.eu.org> <14e001c6ca28$ed4962b0$1402a8c0@marcx2> Message-ID: <20060827233740.GA96759@dogma.freebsd-uk.eu.org> On Mon, Aug 28, 2006 at 12:34:15AM +0200, Marc Battyani wrote: : My biggest problem is the available time. So when I finally have some time, : I really prefer to use it for improving the code, applying all the patches : I got and adding new functionnalities rather than writing code. (and I must : confess that I really dislike writing docs... ;-) I don't blame you. If I run into anything I can't figure out from the examples, I can just ask here, right? : If fact the compression is not used below a minimum size. This is probably : why it changed with the number of #\x or rectangles. And why it drove me crazy trying to get a test case. Just when I thought I found the culprit, I'd delete the other code to make a compact test case, and voila! the bug disappeared. Jonathon McKitrick -- My other computer is your Windows box. From jcm at FreeBSD-uk.eu.org Mon Aug 28 02:06:37 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Mon, 28 Aug 2006 03:06:37 +0100 Subject: [cl-pdf-devel] Disabling hyphenation? Message-ID: <20060828020636.GA97739@dogma.freebsd-uk.eu.org> How can I disable hyphenation and only break between words instead? Jonathon McKitrick -- My other computer is your Windows box. From peter at gigamonkeys.com Mon Aug 28 20:32:47 2006 From: peter at gigamonkeys.com (Peter Seibel) Date: Mon, 28 Aug 2006 13:32:47 -0700 Subject: [cl-pdf-devel] Isolated a problem... In-Reply-To: <20060827200708.GA95738@dogma.freebsd-uk.eu.org> References: <20060827143947.GA93293@dogma.freebsd-uk.eu.org> <141701c6ca04$9bd1b690$1402a8c0@marcx2> <20060827190429.GA95304@dogma.freebsd-uk.eu.org> <144601c6ca0d$2209c8d0$1402a8c0@marcx2> <20060827192526.GA95415@dogma.freebsd-uk.eu.org> <146b01c6ca12$1e2a0450$1402a8c0@marcx2> <20060827200708.GA95738@dogma.freebsd-uk.eu.org> Message-ID: On Aug 27, 2006, at 1:07 PM, Jonathon McKitrick wrote: > On Sun, Aug 27, 2006 at 09:50:58PM +0200, Marc Battyani wrote: > : Great! :) > > I appreciate your help. > > P.S. do you have any cl-typesetting docs? > > : Looks like there is a problem with the compression then. (or with > SBCL > : 0.915) > : Did you have it with previous SBCL versions? > > I've been telling my boss for months now that I just can't get ?? > to appear in > reports. Now I can tell him it does. So it's been around for a > while. > Happened under Linux as well. Did you mean to type A-caret copyright in the paragraph above. Because that's what I see. If you didn't, then it seems that maybe you have a data entry problem rather than a problem with cl-pdf/cl- typesetting since it's infecting your emails as well. -Peter -- Peter Seibel * peter at gigamonkeys.com Gigamonkeys Consulting * http://www.gigamonkeys.com/ Practical Common Lisp * http://www.gigamonkeys.com/book/ From jcm at FreeBSD-uk.eu.org Mon Aug 28 22:28:52 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Mon, 28 Aug 2006 23:28:52 +0100 Subject: [cl-pdf-devel] Isolated a problem... In-Reply-To: References: <20060827143947.GA93293@dogma.freebsd-uk.eu.org> <141701c6ca04$9bd1b690$1402a8c0@marcx2> <20060827190429.GA95304@dogma.freebsd-uk.eu.org> <144601c6ca0d$2209c8d0$1402a8c0@marcx2> <20060827192526.GA95415@dogma.freebsd-uk.eu.org> <146b01c6ca12$1e2a0450$1402a8c0@marcx2> <20060827200708.GA95738@dogma.freebsd-uk.eu.org> Message-ID: <20060828222852.GA3524@dogma.freebsd-uk.eu.org> On Mon, Aug 28, 2006 at 01:32:47PM -0700, Peter Seibel wrote: : >I've been telling my boss for months now that I just can't get ?? : >to appear in : >reports. Now I can tell him it does. So it's been around for a : >while. : >Happened under Linux as well. : : Did you mean to type A-caret copyright in the paragraph above. : Because that's what I see. If you didn't, then it seems that maybe : you have a data entry problem rather than a problem with cl-pdf/cl- : typesetting since it's infecting your emails as well. No, I didn't. I thought I had banished A-caret from my system. Jonathon McKitrick -- My other computer is your Windows box. From adia at hellug.gr Tue Aug 29 07:59:27 2006 From: adia at hellug.gr (Alexandros Diamantidis) Date: Tue, 29 Aug 2006 10:59:27 +0300 Subject: [cl-pdf-devel] Isolated a problem... In-Reply-To: <20060828222852.GA3524@dogma.freebsd-uk.eu.org> References: <20060827143947.GA93293@dogma.freebsd-uk.eu.org> <141701c6ca04$9bd1b690$1402a8c0@marcx2> <20060827190429.GA95304@dogma.freebsd-uk.eu.org> <144601c6ca0d$2209c8d0$1402a8c0@marcx2> <20060827192526.GA95415@dogma.freebsd-uk.eu.org> <146b01c6ca12$1e2a0450$1402a8c0@marcx2> <20060827200708.GA95738@dogma.freebsd-uk.eu.org> <20060828222852.GA3524@dogma.freebsd-uk.eu.org> Message-ID: <20060829075927.GA6176@hellug.gr> * Jonathon McKitrick [2006-08-28 23:28]: > On Mon, Aug 28, 2006 at 01:32:47PM -0700, Peter Seibel wrote: > : >I've been telling my boss for months now that I just can't get ?? > : > : Did you mean to type A-caret copyright in the paragraph above. > > No, I didn't. I thought I had banished A-caret from my system. You've probably solved this by now, but in case you haven't... The character "?" in UTF-8 is represented by the bytes #xc2 #xa9, which if interpreted as Latin-1 correspond to "??" - I just tried converting your test-case.lisp to Latin-1 and loading it in sbcl in a Latin-1 locale and it works correctly (no A-caret appears in the output). BTW, I wasn't able to make it work in a UTF-8 locale - if I try to just load the Latin-1 source, it gives the following error: debugger invoked on a SB-INT:STREAM-DECODING-ERROR: decoding error on stream # (:EXTERNAL-FORMAT :UTF-8): the octet sequence (169) cannot be decoded. If I load it with: (load "test-case.lisp" :external-format :latin-1) the A-caret appears again. I'll probably have to read the SBCL manual to be able to tell what's going on :-) Alexandros From jcm at FreeBSD-uk.eu.org Thu Aug 31 18:11:05 2006 From: jcm at FreeBSD-uk.eu.org (Jonathon McKitrick) Date: Thu, 31 Aug 2006 19:11:05 +0100 Subject: [cl-pdf-devel] Hyphenation Message-ID: <20060831181105.GA25167@dogma.freebsd-uk.eu.org> Is there any way to turn off hyphenation? Jonathon McKitrick -- My other computer is your Windows box.