[FriBidi] log2vis() misbehaving with Arabic text?

Philip Semanchuk osvenskan at gmail.com
Mon Oct 27 10:47:09 PDT 2014


On Mon, Oct 27, 2014 at 1:26 PM, Behdad Esfahbod <behdad at behdad.org> wrote:
> On 14-10-27 08:39 AM, Philip Semanchuk wrote:
>> I need to play around with it a little, though. For instance, I saw
>> one case where the PDF rendered an unprintable character where
>> log2vis() had inserted a ZWNBSP (0xfeff) into a string. Technically a
>> ZWNBSP should be harmless but...
>
> Right.  FriBidi inserts U+FEFF when it needs to delete a character slot.  The
> FriBidi user should either remove those from the stream or make sure they
> render to nothing.  That sounds like a ReportLab bug.

Yes, one could also argue that it's my PDF viewer that's at fault.
This is one of the things  I need to experiment with.

Removing ZWNBSP is easy enough. Is any other postprocessing needed
after calling log2vis()?

Thanks
Philip


More information about the fribidi mailing list