[reportlab-users] Hyphenation
Robin Becker
robin at reportlab.com
Sun Jun 24 13:10:35 EDT 2018
The hyphenator is not being propagated to any split sub pararagraphs. I
think that we don't want to go down the route of supporting large numbers
of optional attributes on the paragraph instances that is what the style is
for. I tried this and it seems to work.
On 24 June 2018 at 16:18, Lele Gaifax <lele at metapensiero.it> wrote:
> Robin Becker <robin at reportlab.com> writes:
>
> > Thanks for these. The gffset is some kind of mistype, you are right the
> > lambda seems not to be required. As for using the longest split I am not
> > sure that is always best; the branch code is looking for a balanced
> split.
> > It's nearly 50 years since I last looked at hyphanation (for a port of
> > troff) so I am no doubt well out of date :)
>
> :-)
>
> I just tried your branch (using Py3.6, fwiw): it works well for "normal"
> paragraphs, but the ImageAndFlowables still behaves oddly. I tried to
> execute
> it under pdb but I have (again! sorry :-\) the feeling that I'm missing
> something in the logic.
>
> Anyway, I'm attaching the sample script I used, and an image showing the
> place
> where the hyphenation does not happen, even when there's plenty of space to
> split the words "semplicemente" and "avanzare".
>
> All the best,
> ciao, lele.
>
>
>
> --
> nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
> real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
> lele at metapensiero.it | -- Fortunato Depero, 1929.
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users
>
>
--
Robin Becker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20180624/42d31a8b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-hyphen.py
Type: text/x-python
Size: 2282 bytes
Desc: not available
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20180624/42d31a8b/attachment-0001.py>
More information about the reportlab-users
mailing list