Re: Parsing of <table> & ICU wordWrap

Buganini <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <CAC_-zweghmNYE=0DpHEEWO_w9B8wcia9QkTdBg3nuxg7Coe_DA@mail.gmail.com>
Most features I need and most issues I got are sovled and committed.

Here are my demos for these featues/issues
http://tinder.land/static/demo.zip


breaklinesICU still has minor issue that it over measure the width
seems because extra spaces width are counted in.

2015-11-09 22:37 GMT+08:00 Buganini <[email protected]>:
> 2015-11-08 5:10 GMT+08:00 Robin Becker <[email protected]>:
>> The font name should be 'Helvetica' so some where you have a wrong
>> font specification; styles['Normal'] has the canvas_basefontname set
>> into it (imported from rl_settings.py via rl_config). There are
>> override mechanisms which can alter the default value.
>>
>> $ python
>> Python 2.7.10 (default, Sep  7 2015, 13:51:49)
>> [GCC 5.2.0] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> from reportlab.lib.styles import getSampleStyleSheet
>>>>> styles=getSampleStyleSheet()
>>>>> styles['Normal'].fontName
>> 'Helvetica'
>
>
> Weird, I didn't change anything related to font. Anyway, I'll push
> this issue later...
>
> I found the cause of doubling issue,
> it's around
> tooLong = newLineWidth>maxWidth
> in _splitFragWord(), unbreakable element (image, flowable) is not
> properly handled.
> this issue can be reproduced with <img /> and official code.
>
> For now I change
> if g is not f or tooLong:
> to
> if g is not f or (tooLong and not hasattr(f, 'cbDefn')):
> to solve this issue.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.