[Home] [By Thread] [By Date] [Recent Entries]
Dear Christian,
At 08:46 AM 9/24/2010, you wrote: I am trying to find a good solution for tagging poems in xsl-fo. The xsl-fo is then to be converted into a PDF with XEP/RenderX. I should think that <fo:block widows="5" orphans="5" hyphenate="false">
<fo:block>Er folgte seinem Regiment</fo:block>
<fo:block>Ins Land, wo hoch die Palmen stehen,</fo:block>
<fo:block>Die Sonne hei_ herniederbrennt</fo:block>
... etc ...would be more "normal" and might even work better. But that is speculation on my part; I haven't tried it. If I set keep-together to "always" another problem comes up. Because if a verse is very long and doesn't fit entirely on the current page, the whole verse is shifted to the next page, leaving a huge amount of white space on the current page. That sounds right. My questions: 1. Is it true that settings for widows and orphans are only working when there are no sub-blocks in a block? There are really two separate questions here: 1. What does the XSL-FO standard say should happen? 2. What actually happens in the engine you are using? It is important that these are different because they bear on what your choices are if things turn out differently from the way you want. That being said, however, I don't know the answer to either question (sorry). I might be able to determine question 1 by looking it up, but then so could you. :-) I could also make an educated guess ... which would go along with trying the code I've offered above ... but why guess? 2. What would be an appropriate tagging for poems in order to achieve my goal (avoiding widows and orphans but NOT placing verses that are too big on the next page)
I suggest you do a bit more research, including: * Consult the XSL Recommendation on widows, orphans and blocks * Try out your code and variations thereof in a different engine to help determine any variance in conformance or interpretation of the FO. Beyond that, this is the kind of question that an XSL-FO expert (not necessarily an XSLT expert) *might* be able to answer off the top of their head. And there's no harm in asking. Good luck, Wendell
|

Cart



