[reportlab-users] Paragraphs and hyphenation

Robin Becker reportlab-users@reportlab.com
Fri, 28 Nov 2003 15:12:48 +0000

In article <71674BEFF0E2D41196F500600811AA6B5BADEB@TUP-BO1-EXC>, Henning
von Bargen <H.vonBargen@triestram-partner.de> writes

......a bit puzzled about what an unformatted paragraph is :) 
>Based on my experience so far, I would like the hyphenation routine to:
>1) make use of the different rankings by assigning different penalty values
>based on the ranking of the hyphenation position and the unused space in
>the current line;
>2) for a given hyphenation point, tell the breakLines routine if a "shy"
>character 173
>should be added to the first part or not.
>Example: When hyphenating after a "-", there shouldn't be a shy character.
>As a first step, we should only define an interface for the hyphenation
>and a base implementation that only hyphenates after "-" characters.
>Other implementions can then use pyhnj or SiSiSi or whatever.

....seems reasonable

>If someone is interested in my results so far, I could send the files
>paragraph.py, longtables.py
>and the experimental wortzerlegung.py

Please email me the files and I'll certainly have a look.

I think we should have an upload slot, but John who deals with the .org
site is on holiday this week so I can't be too positive.

>BTW Is there any "contrib" place reachable from reportlab.org where one
>could post such files?
Robin Becker