[FriBidi] "fribidi_remove_special_chars" function?
Behdad Esfahbod
behdad at behdad.org
Tue Aug 13 15:26:13 PDT 2013
On 13-08-13 04:24 PM, Evgeny Grin wrote:
> Thanks!
> I'm using it in XBMC (http://xbmc.org).
> What should I do to convert logical paragraph to visual?
> I'm going to implement it in the following way:
> * convert to UTF-32
> * call fribidi_get_bidi_types
> * call fribidi_get_par_embedding_levels
> * call fribidi_get_joining_types
> * call fribidi_join_arabic
> * call fribidi_shape
> * split result into lines, for each line call fribidi_reorder_line, combine resulting lines back to paragraph
You need fribidi_reorder_line() here.
Check out fribidi_log2vis() implementation.
> * call fribidi_remove_bidi_marks
> * convert result to needed encoding (UTF-8 in my case)
> * use result for display
> Correct?
>
> Is it possible to detect on early stage ability to skip arabic joining and shaping?
No. I suggest you don't worry about performance. It wouldn't make any
measurable difference.
Cheers,
behdad
> Best wishes,
> Evgeny
>
>
> 13.08.2013, 20:56, "Behdad Esfahbod" <behdad at behdad.org>:
>> The docs are wrong. Use the "deprecated" one.
>>
>> On 13-08-12 08:43 PM, Evgeny Grin wrote:
>>
>>> Hello!
>>>
>>> I see that "fribidi_remove_bidi_marks" function is deprecated and "fribidi_remove_special_chars" is recommended replacement.
>>> But I can't find any function with similar name.
>>> What's supposed to be used as non-deprecated function for removing special chars?
>>>
>>> Best Wishes,
>>> Evgeny
>>> _______________________________________________
>>> fribidi mailing list
>>> fribidi at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/fribidi
>>
>> --
>> behdad
>> http://behdad.org/
>
--
behdad
http://behdad.org/
More information about the fribidi
mailing list