[pyicu-dev] BiDi support

Yuriy Asyutin yasyutin at gmail.com
Thu Feb 23 01:02:34 PST 2012


Probably my question should be directed to ICU devs.
I think, that for valid RTL-support we need bindings for ubidi and ushape
API. ubidi performs BiDi algorithm - reorder into right-to-left RTL-chars.
ushape - performs shaping for Arabic complex scripts based on context
(nearest chars).

Maybe srl can confirm?

Thanks


2012/2/22 Andi Vajda <vajda at osafoundation.org>

>
> On Feb 22, 2012, at 3:52, Yuriy Asyutin <yasyutin at gmail.com> wrote:
>
> Thank you for the responses.
>
> Looks like except ubidi I need binding to ushape->u_shapeArabic<http://icu-project.org/apiref/icu4c/ushape_8h.html#a1f89291c5a24a50b8f6dcad5eb4668f7>()
> for proper rendering of Arabic text, am I right?
>
>
> Sorry, I'm not sure what you're asking about ?
>
> Andi..
>
>
> Thanks,
> Yuriy Asyutin
>
> 2012/2/21 srl <srl at icu-project.org>
>
>> ICU Layout and ubidi.h are not related.
>>
>> -s
>>
>> On Tue, 21 Feb 2012 10:38:26 -0800 (PST), Andi Vajda
>> <vajda at osafoundation.org> wrote:
>> > On Tue, 21 Feb 2012, Yuriy Asyutin wrote:
>> >
>> >> I'm looking for ability to use RTL-support in python library
>> (ReportLab).
>> >> Looks like ICU has BiDi-algorithm implementation according to the API
>> >> http://icu-project.org/apiref/icu4c/ubidi_8h.html.
>> >>
>> >> Does current version of PyICU support bidi bindings? I'd appreciate a
>> >> simple example in python.
>> >
>> > There are no bindings for the code in ubidi.h in PyICU currently.
>> > Patches are welcome.
>> >
>> > Bindings for LayoutEngine were added in the latest version, maybe these
>> > can help ? (see test/test_LayoutEngine.py for examples)
>> >
>> > Andi..
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osafoundation.org/pipermail/pyicu-dev/attachments/20120223/a25e579d/attachment.htm>


More information about the pyicu-dev mailing list