Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: another piece for pdf-dialect

From: robert:muench:robertmuench at: 30-Jul-2001 9:35

> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of > Gabriele Santilli > Sent: Saturday, July 28, 2001 3:30 PM > To: [rebol-list--rebol--com] > Subject: [REBOL] Re: another piece for pdf-dialect > But how could you now where the text will be wrapped? :-) > I think I can hack a multi-textbox typesetter in not too much > time; it won't be as good as TeX though... :)
Hi, AFAIK does TeX use such a multi-box approach. Each character uses a defined 2D space, depending on the font settings. TeX sums all those boxes and knows the size of the page, therefore it should be possible to calculate a page break. Do you have access to Donald Knuth's book about TeX? The basic algorithm isn't that hard I have heard. And let's face it: I don't expect a TeX quality type-setting at the moment, would be nice to be able to create "good-enough" PDFs for the start. Robert