World: r3wp
[Postscript] Emitting Postscript from REBOL
older newer | first last |
Henrik 22-Apr-2006 [815] | is anyone working on higher level stuff for postscript.r? I'm going to work on a table generator |
Graham 22-Apr-2006 [816] | I'm semi-wondering about implementing text that flows from page to page with full justification. |
Henrik 22-Apr-2006 [817] | about DRAW, I'm sure how fit it is for this yet. I had serious problems with it under Linux today (misalignment and crashes too) |
Graham 22-Apr-2006 [818x2] | well, if you have crashes, you need to report them. |
Did I mention that I have three columns of text snaking up and down an A4 page? | |
Henrik 22-Apr-2006 [820x2] | if I could test it... wasn't on my machine and I couldn't get console output |
that sounds interesting? | |
Graham 22-Apr-2006 [822] | that was your runner labeling application? |
Henrik 22-Apr-2006 [823x2] | the centering algorithm I wrote didn't work under Linux either |
because of the stupid differences in font sizes | |
Graham 22-Apr-2006 [825] | Hang on. |
Henrik 22-Apr-2006 [826] | yes, I rewrote the preview to be done with VID. I lost anti alias, but gained proper centering |
Graham 22-Apr-2006 [827x2] | What you should be doing is writing a preview in draw, but have a postscript routine that does centering for you. |
That would work. | |
Henrik 22-Apr-2006 [829x3] | yes it would |
I suppose I should modify postscript.r some more | |
it would also be needed for proper paragraphs in tables | |
Graham 22-Apr-2006 [832] | My aim is to get perfect postscript output .. and at least a rough approximation in draw. |
Henrik 22-Apr-2006 [833] | yes, at least in a clear way to make sure that the postscript is like it should be: that centered output really is centered, font size is completely accurate and such |
Graham 22-Apr-2006 [834x2] | I would have continued to use pdf-maker except there's no easy way to flow text like this. |
And with postscript, you can create your own fonts | |
Henrik 22-Apr-2006 [836] | I just think PDF Maker is a bit too hard to build layouts in |
Graham 22-Apr-2006 [837] | if the ones you need are not supported. |
Henrik 22-Apr-2006 [838] | yes that's a problem. I will need OCR fonts at some point |
Graham 22-Apr-2006 [839x2] | Has anyone looked at the image format for postscript? |
How easy would it be to convert rebol's image format to that needed for postscript? | |
Henrik 22-Apr-2006 [841] | haven't looked at it. some people say that it's "tricky" |
Graham 22-Apr-2006 [842] | I presume it is similar to the way images are handled in pdf ... |
Henrik 22-Apr-2006 [843] | possibly, but it doesn't work properly in PDF Maker |
Graham 22-Apr-2006 [844x2] | Oh ? |
I've created pdfs with jpegs .. and they seemed to be okay. | |
Henrik 22-Apr-2006 [846] | I've tried without luck. that's why I started doing barcodes as vectors |
Graham 22-Apr-2006 [847x4] | http://www.compkarori.com/images/test.pdf |
is a page I created in pdf-maker a few years ago. | |
the image is not correctly apportioned but that was beacause I was lazy. | |
the script was written in 2002. | |
Henrik 22-Apr-2006 [851x2] | pretty neat looking |
but maybe it was because it was an external bitmap and not one created by rebol | |
Graham 22-Apr-2006 [853] | the image there was loaded off a camera |
Henrik 22-Apr-2006 [854x2] | newlines are made with \ |
that should be easy to do... | |
Graham 23-Apr-2006 [856x5] | Looking at algorithms for text justification. One I looked at says, collect all the words that will fit on a line with a space, count the spaces, and the area left over, and allocated part of that extra space to all of those spaces. |
No kerning involved in this one. | |
Text flow, with justification, word wrapping, and footnotes is not a simple task. | |
Since your centering routine didn't work, I just stuck with my original one, and that seems to work for me. | |
I've got a box with text in it, and all the text is centred. I can translate that box to anywhere on the screen. | |
Henrik 23-Apr-2006 [861] | is that in DRAW? |
Graham 23-Apr-2006 [862x2] | Yes. |
and postscript. | |
Graham 24-Apr-2006 [864] | Hmm. Lengths of text strings is different when measured as one string including spaces, or adding the lengths together of each word with a space in a sentence. |
older newer | first last |