<p dir="ltr">You got it mostly right. I'll reply to you in detail next week. Traveling right now.</p>
<div class="gmail_quote">On Oct 30, 2013 3:56 PM, "eduardo" <<a href="mailto:eduardo@brainstorm.es">eduardo@brainstorm.es</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
BiDi/harfbuzz integration code samples are also welcome<br>
<br>
On Mon, 28 Oct 2013 12:48:09 +0100, Eduardo Castineyra wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I have an unicode string with the bidi already solved, but I don't<br>
know exactly how to feed harfbuzz with the result. There is a list of<br>
things I don't know and finally my guess on how this should be solved:<br>
<br>
1) Given the friBiDi already switched the order of the glyhs, do I<br>
still need to set the buffer direction to RTL ?<br>
2) Do I have to shape each unidirectional segment separately? How do<br>
I manage the clusters?<br>
3) How do I combine the L_to_V output from friBiDi with the hb clusters?<br>
<br>
Could you please correct me if I got something wrong with this algorithm?<br>
<br>
from friBiDi, I'm using only the l2v, v2l and RTL props, and<br>
completely discarding the glyhps:<br>
<br>
1) friBiDi pass<br>
2) Using the l2v list identify the direction of every character<br>
3) Split the original text into monodirectional runs.<br>
4) For each run, we save the lowest visual position (LVP) and the<br>
lowest logical position (LLP)<br>
5) Shape every segment separately (setting the appropriate buffer direction).<br>
6) Sort the segments based on their LVP<br>
7) Add the LLP to the cluster of every glyph.<br>
<br>
Isn't there an easier way to do this?<br>
<br>
Thanks!<br>
______________________________<u></u>_________________<br>
HarfBuzz mailing list<br>
<a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/harfbuzz" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/harfbuzz</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
HarfBuzz mailing list<br>
<a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/harfbuzz" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/harfbuzz</a><br>
</blockquote></div>