Re: multiline fribidi
Dov Grobgeld <[email protected]> Sun, 9 Jun 2013 16:29:19 +0300
| Newsgroups | gmane.comp.internationalization.fribidi |
|---|---|
| Message-ID | <CA++fsGGhhN2BFi2D7mTvLAmBJ5oCH0ZC3hQcVHv79zv7P-Mb0w@mail.gmail.com> |
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. 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. 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. Regards, Dov On Sun, Jun 9, 2013 at 4:18 PM, Cosmin Apreutesei < [email protected]> wrote: > Hi, > > I want to use fribidi to enable bidi support in my app. I have some > questions, and probably some confused assumptions so please bear with > me. > > I checked out the projects listed on the fribidi webpage and they all > use log2vis() which assumes single line paragraphs. Are there known > projects that use the fribidi API with multi-line paragraphs? > > It seems that pango only uses fribidi to get embedding levels. I was > surprised that pango doesn't use/need the bidi algorithm from fribidi > - how does pango do bidi then? > > Behdad said[1] that fribidi_join_arabic() is optional. Why is that? > > I appreciate any clarification you could give me. > > Cosmin. > > [1] > http://lists.freedesktop.org/archives/fribidi/2005-September/000439.html > _______________________________________________ > fribidi mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/fribidi > _______________________________________________ fribidi mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/fribidi