[reportlab-users] MediaWiki's "Download as PDF" feature uses ReportLab but has a problem

Andy Robinson andy at reportlab.com
Mon Jan 2 06:39:21 EST 2012

On 2 January 2012 11:33, Yao Ziyuan <yaoziyuan at gmail.com> wrote:

> So now I'm confused. Is it MediaWiki's or ReportLab's fault for the

> line wrapping problem described in the above bug report

> (https://bugzilla.wikimedia.org/show_bug.cgi?id=33430)?


MediaWiki (actually PediaPress.de) decided to use our library a few years ago;
we did some work to improve inline images to support equations, but
they did not mention Asian line wrapping at the time and I did not know
about this limitation.

I guess they are simply not using our wordwrap=CJK option. Our library
needs to be told "this is Japanese/Chinese, use a different algorithm";
it does not auto-detect based on the encoding.

Also, until some time last year, we could not properly handle mixed text
in the same sentence. We have improved this now.

- Andy

More information about the reportlab-users mailing list