<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">The bidi algorithm assumes that that line breaking is done *before* reordering. You need to carry the over the paragraph bidirectional direction from line to line, but that is done after the lines have been broken into paragraphs.<br>
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regarding embedding levels, I pango does the reordering on its own. In addition to the characters themself, pango needs to swap around the various character attributes, which the log2vis function won't do for it.<br>
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">And finally I assume that Behdad said that arabic joining is optional as not all RTL languages are arabic and thus do not need joining. Another explanation might be that there is a higher level, like pango, that does the joining, so there is no need for fribid to do it.<br>
<br>Regards,<br>Dov<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jun 9, 2013 at 4:18 PM, Cosmin Apreutesei <span dir="ltr"><<a href="mailto:cosmin.apreutesei@gmail.com" target="_blank">cosmin.apreutesei@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I want to use fribidi to enable bidi support in my app. I have some<br>
questions, and probably some confused assumptions so please bear with<br>
me.<br>
<br>
I checked out the projects listed on the fribidi webpage and they all<br>
use log2vis() which assumes single line paragraphs. Are there known<br>
projects that use the fribidi API with multi-line paragraphs?<br>
<br>
It seems that pango only uses fribidi to get embedding levels. I was<br>
surprised that pango doesn't use/need the bidi algorithm from fribidi<br>
- how does pango do bidi then?<br>
<br>
Behdad said[1] that fribidi_join_arabic() is optional. Why is that?<br>
<br>
I appreciate any clarification you could give me.<br>
<br>
Cosmin.<br>
<br>
[1] <a href="http://lists.freedesktop.org/archives/fribidi/2005-September/000439.html" target="_blank">http://lists.freedesktop.org/archives/fribidi/2005-September/000439.html</a><br>
_______________________________________________<br>
fribidi mailing list<br>
<a href="mailto:fribidi@lists.freedesktop.org">fribidi@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/fribidi" target="_blank">http://lists.freedesktop.org/mailman/listinfo/fribidi</a><br>
</blockquote></div><br></div></div>