<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 13, 2014 at 5:48 AM, Behdad Esfahbod <span dir="ltr"><<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><br>
</div>In short: You shape the whole paragraph using HarfBuzz, then create a<br>
line-break iterator with ICU and walk the text and glyph string together and<br>
find the best break opportunity to fill the line.  That can be<br>
mid-HarfBuzz-cluster.  After that, you reshape the line, but can continue with<br>
the original shaped-paragraph for the next lines.<br></blockquote><div><br></div><div>I was wondering how this is supposed to deal with hyphenated Arabic text. The css3-text spec says: "When shaping scripts such as Arabic are allowed to break within words due to hyphenation, the characters must still be shaped as if the word were not broken."  When the line after the hyphenated break is reshaped, how do you get the first character to be shaped as a medial rather than an initial?</div>


</div><div class="gmail_quote"><br></div><div class="gmail_quote">James </div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br><div><br></div><div> </div></div></div></div>