[pyicu-dev] BiDi support
Steven R. Loomis
srl at icu-project.org
Thu Feb 23 07:43:42 PST 2012
Yes it's more of an icu-support question. ubidi is the UBA (unicode
bidi algorithm), but ushape shapes complex scripts into presentation
form (bits and pieces). It's designed for targetting Arabic terminal
emulators and the like. What is it you are trying to do?
On 02/23/2012 01:02 AM, Yuriy Asyutin wrote:
> 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?
> 2012/2/22 Andi Vajda <vajda at osafoundation.org
> <mailto:vajda at osafoundation.org>>
> On Feb 22, 2012, at 3:52, Yuriy Asyutin <yasyutin at gmail.com
> <mailto:yasyutin at gmail.com>> wrote:
>> Thank you for the responses.
>> Looks like except ubidi I need binding to ushape->u_shapeArabic
>> for proper rendering of Arabic text, am I right?
> Sorry, I'm not sure what you're asking about ?
>> Yuriy Asyutin
>> 2012/2/21 srl <srl at icu-project.org <mailto:srl at icu-project.org>>
>> ICU Layout and ubidi.h are not related.
>> On Tue, 21 Feb 2012 10:38:26 -0800 (PST), Andi Vajda
>> <vajda at osafoundation.org <mailto: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
>> >> 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
>> > 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...
More information about the pyicu-dev