Re: [docbook-apps] Break long programlisting lines without spaces?

From
Jirka Kosek <>
Date
2011-04-14T19:51:24+00:00
ID
Thread
Re: [docbook-apps] Break long programlisting lines without spaces?
David Cramer wrote:

> I was thinking here at a higher level. As a stylesheet developer, I need
> some way to solve the problem of specifying that in verbatim
> environments, the lines be automatically broken (at a configurable set
> of characters) when they exceed the available space and a special
> character be added to indicate to the user that the line was broken for
> typographical reasons. The hyphenation approach does indeed feel like a
> hack. I think it would be better if I just told the fo renderer what I
> want (break-long-lines="yes" break-at="/*();. "
> break-character="&#x21E6;") and have it decide how to deal with the problem.

Something very similar is part of XSL-FO 2.0 requirements (see
http://www.w3.org/TR/xslfo20-req/#N66916). But it will be long way
before it got implemented.

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail:       http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------