r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Postscript] Emitting Postscript from REBOL

Graham
26-Apr-2006
[882x2]
So, port TeX to Rebol ?
Neat :)
Gabriele
26-Apr-2006
[884]
and of course i plan to document it very well (again, as good as 
TeX) so that everyone will be able to use it
Graham
26-Apr-2006
[885]
How's your literate tool coming along?
Gabriele
26-Apr-2006
[886]
only problem is that this will take time so i'm not sure i can give 
an eta. however, qtask needs pdf output so this should happen soon 
enough.
Graham
26-Apr-2006
[887]
I guess closures will help in programming some like TeX.
Gabriele
26-Apr-2006
[888]
i haven't worked on wetan much in the last weeks. busy with other 
things. but i need it so i hope to be back to it soon.
Graham
26-Apr-2006
[889]
Tracking all those margins , current text positions, translations, 
rotations etc.
Pekr
26-Apr-2006
[890]
so will rebol 3 be able to count presice metrics for fonts etc.?
Graham
26-Apr-2006
[891x2]
surely that's not part of Rebol 3.
It would have to be an add on product.
Gabriele
26-Apr-2006
[893]
hmm, r3 will have rich text, but i don't think there are any plans 
for a real typesetter.
Graham
26-Apr-2006
[894x2]
what's this new typeset! function then :)
just kidding ...
Pekr
26-Apr-2006
[896]
:-)
Gabriele
26-Apr-2006
[897x2]
;)
once you have a typesetter written in rebol, though, you can apply 
it to draw too; draw doesn't offer the low level access to font data 
you need, so that will need to be separate; but if you can do it 
for pdf, you can do it for whatever, if you use the same fonts.
Graham
26-Apr-2006
[899]
So, that also mean creating bitmaps for direct printing?
Gabriele
26-Apr-2006
[900x2]
well.... i guess to image! can help with that.
unless you want to rewrite AGG in rebol ;)
Graham
26-Apr-2006
[902x2]
just a quick question .. was it hard/easy to do images in pdf-maker 
?
I'm guessing the same operations are used to include images in postscript.
Gabriele
26-Apr-2006
[904x2]
you just include the raw rgb data
and, in pdf 1.4, optional alpha channel data
Graham
26-Apr-2006
[906x2]
so, there's no translation involved ?
inverting the image?
Gabriele
26-Apr-2006
[908x3]
in ps you have to encode the data i guess
you need to invert the alpha channel because it's the opposite in 
rebol
but you can do that as a filter in pdf
Graham
26-Apr-2006
[911]
since 0x0 is bottom left in ps, and top left in Rebol ...
Gabriele
26-Apr-2006
[912x2]
but for images samples, the first sample is the top left corner
so i don't have to reorder the pixels in pdf maker if that's what 
you are asking
Graham
26-Apr-2006
[914x2]
Is there anything that can be done for R3/draw  that helps support 
pdf/postscript creation?
A lack of a printing solution after all these years is still a thing 
in my book.
Gabriele
26-Apr-2006
[916x6]
the problem is that printing is a broad term
it may mean printing a document (i.e. typesetting), or just printing 
what you have on screen
the fact that every os has its own way to handle printing doesn't 
help
on unix you usually create ps and send it to the print spooler
on windows you need to use gdi
on osx i guess you need to create a pdf
Graham
26-Apr-2006
[922]
Doesn't OSX have a postscript interpreter in it ?
Henrik
26-Apr-2006
[923]
OSX uses LPR, I think
Graham
26-Apr-2006
[924]
Or did that change?
Gabriele
26-Apr-2006
[925]
henrik, does it take ps too?
Pekr
26-Apr-2006
[926]
I think we don't have many choices - you can to-image your layout, 
or go for external engines, using some make-docs - pdf, postscript, 
html plus css standard ...
Henrik
26-Apr-2006
[927]
postscript works on a different level. it's OS wide in OSX. I think 
it converts everything to PDF before printing, because all graphics 
are PDF centric.
Gabriele
26-Apr-2006
[928]
if windows handled ps i guess we'd have a good solution. it would 
have been easier for me to write a ps maker instead of a pdf maker 
:)
Henrik
26-Apr-2006
[929]
gabriele, I would think it does. I have to convert docs to PS if 
I want them printed under Linux with LPR
Gabriele
26-Apr-2006
[930x2]
lpr, per se, does not mandate a document format
it just spools documents to the printer