On 20 Aug 2009, at 12:10, Georg Datterl wrote:

Hi Georg, Laurent,


Yesterday evening I had a look at the FOP code with your other
proposal about Knuth Sequence in mind. Well, that's too hard
for me yet and I'll take the "easy" (hum) way for the moment.

I don't understand the theory behind it either but if I'm not mistaken, you can look at the sequence of KnuthElements as just a chain of small text areas separated by spaces (=penalties) and break- possibilities. But before I make a complete fool out of myself, I better leave that topics to the experts.

Basically not bad as an interpretation, although KnuthElements are generated that represent border, padding etc. rather than merely 'text fragments'. And OTOH, penalties actually do not correspond to spaces. Penalties represent break-possibilities (or -impossibilities if penalty=INFINITE). Spaces, in the most common case, correspond to KnuthGlue objects, which are a break-possibility only if they are preceded by a KnuthBox. In many cases, FOP generates a sequence of penalty-box-glue for a space (to avoid a break before, or to hint at what happens if there is a break before --i.e. how much width should be added to the line when choosing that possibility as an effective break)



Regards

Andreas

Andreas Delmelle
mailto:andreas.delmelle.AT.telenet.be
jabber: [email protected]
skype: adlm0608

---

Reply via email to