>The other thing I've worked on is in the actual LayoutManager logic. >I've got this concept of a "BreakPosition" and have some code written at >the inline level (text, inline, line). The idea is that instead of an LM >calling generateAreas on its child LM, it repeatedly calls >"getNextBreakPosition". It then uses the returned BreakPosition >information to decide on the best break. Only then does it ask the child >LM to actually make the Areas necessary to break at the point. My goal >is to try to get this stuff ASAP into a state where it will at least >compile and can be put into the current code base.
It might be possible to rule this out at once, on the grounds of its being outside the FO standard, see <URL: http://www.w3.org/TR/2001/REC-xsl-20011015/slice4.html#area-linebuild > and <URL: http://www.idealliance.org/papers/xml2001/papers/html/03-05-06.html > but I have a request based on some experience with writing FO files by hand. Could we have a a line break feature. The layoutmanager should fill a block by stacking lines based on the current line height. It ends lines based on word length and hyphenation. I would like to force a line break with an inline such as <fo:br /> or <fo:newline />. Since this is such an obvious thing to want, I guess that there must be reason why it is not part of the specification. Does anyone know why not? This is simply the difference expressed in TeX terms between \newline, and \par This would be useful in writing addresses exempli gratia: <?xml version="1.0" encoding="UTF-8"?> <fo:root text-align="justified" font-size="12pt" font-family="serif"> <fo:block> Bilbo Baggins,<fo: newline /> Bag End,<fo: newline /> Underhill,<fo: newline /> Hobbiton,<fo: newline /> Westfarthing of the Shire. </fo:block> </fo:root> At present, I can get the effect I want with tables. Ben. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]