PPTools/Ppgen/Break-Wrap-Example

From DPWiki
< PPTools‎ | Ppgen
Jump to navigation Jump to search

You can use the break-wrap-at named-register to allow ppgen to break lines at characters other than a blank. This can be especially helpful in some cases such as tables (perhaps allow breaking on hyphens) or long--chapter--sumaries--strung--together--by--em-dashes.

Here's one real-life example: In one recent book that used ppgen, the chapter summary in the text version appears this way without using this new support:

   Technical terms—Sun-dried clay and unburnt bricks—Use of these in
     Greece—Methods of manufacture—Roof-tiles and architectural
     decorations in terracotta—Antefixal ornaments—Sicilian and Italian
     systems—Inscribed tiles—Sarcophagi—Braziers—Moulds—Greek
     lamps—Sculpture in terracotta—Origin of art—Large statues in
     terracotta—Statuettes—Processes of
     manufacture—Moulding—Colouring—Vases with plastic
     decoration—Reliefs—Toys—Types and uses of statuettes—Porcelain and
     enamelled wares—Hellenistic and Roman enamelled fabrics.

With the new support, specifying .nr break-wrap-at "—" it looks much more even, like this:

   Technical terms—Sun-dried clay and unburnt bricks—Use of these in
     Greece—Methods of manufacture—Roof-tiles and architectural
     decorations in terracotta—Antefixal ornaments—Sicilian and Italian
     systems—Inscribed tiles—Sarcophagi—Braziers—Moulds—Greek lamps—
     Sculpture in terracotta—Origin of art—Large statues in terracotta—
     Statuettes—Processes of manufacture—Moulding—Colouring—Vases with
     plastic decoration—Reliefs—Toys—Types and uses of statuettes—
     Porcelain and enamelled wares—Hellenistic and Roman enamelled
     fabrics.