[reportlab-users] Hebrew Support Patch

Robin Becker robin at reportlab.com
Mon Jun 8 13:13:52 EDT 2009


Andy Robinson wrote:

> 2009/6/8 Robin Becker <robin at reportlab.com>:

>> Do we need to have a style setting rather like Andy has used

>> style.wordwrap=='CJK' to test for when we switch to CJK style wrapping? If

>> we use that approach we should be able to put the patch in place more

>> easily.

>

> That's my favourite approach. style.wordwrap='RTL'?

>

>

> I know it's a bit of a hack but so was the CJK, and it's at least

> compatible and consistent. 'wordwrap' is specifying which algorithm

> to use.

>

> I wonder if we should also allow this to be loaded from the config

> file, so that somebody could globally specify RTL or CJK as the

> default for their project?

>

> - Andy

I think the main problem is canvas.drawString where the original patch is doing
an import. Probably we ought to provide some mechanism to modify the method
globally. There are all the string methods in charts etc etc to think of as well.
--
Robin Becker


More information about the reportlab-users mailing list