Re: widows and orphans (poor typography) in asciidoctor-pdf
Posted by
mojavelinux on
URL: https://discuss.asciidoctor.org/widows-and-orphans-poor-typography-in-asciidoctor-pdf-tp7531p8352.html
Heiko,
Unfortunately not. It's an exceptionally complex issue to solve given how the PDF generation is handled (by Prawn). Once content is written to the PDF stream, it cannot be unwritten. So unless we know what content is coming next, we cannot anticipate whether or not to advance to the next page. And checking for content ahead of the current block, line, or character is a rabbit hole that ends up having side effects (and likely a major redesign of the converter, if it's even achievable).
This is one of those features that's probably not going to make it into Asciidoctor PDF, but that we'll be looking at for Asciidoctor Web PDF. The difference between these two is that Asciidoctor Web PDF uses a browser engine to render and layout the content, giving us much more powerful reflow controls.
Best Regards,
-Dan
On Thu, Nov 19, 2020 at 12:31 AM heiwil [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Dan,
I'm just starting to use Asciidoctor and Asciidoctor PDF for producing operator manuals and machine documentations. Beside missing text flow around images, the only unsolvable issue I found until now is the handling of page breaks (Hurenkinder and Schusterjungen in German) as Ralf described above.
You wrote you try to implement a better solution. Was it successful?
Can I help (testing, coding)?
Heiko
--