<div dir="ltr">atm I use groupby() to get all the contiguous runs of emoji codepoints + country code codepoints and then collapse the ZWJ’s. Still causes issues though, because multi-codepoint emojis come out like ligatures when they really should be treated like 1 atomic unit<br><br><img style="margin-right: 0px;" alt="Inline image 1" src="cid:ii_155995acaff5aa04"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 28, 2016 at 7:01 PM, Ebrahim Byagowi <span dir="ltr"><<a href="mailto:ebraminio@gmail.com" target="_blank">ebraminio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div dir="ltr" style="font-size:12.8px">I think <a href="https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/fonts/SymbolsIterator.cpp" target="_blank">this file</a>, specially the SymbolsIterator::consume, contains the logic you are looking for.</div></span><div>(reposting directly sent mail)</div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Jun 28, 2016 at 9:17 AM, Kelvin Ma <span dir="ltr"><<a href="mailto:kelvinsthirteen@gmail.com" target="_blank">kelvinsthirteen@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">Since emojis have to be shaped separately from all the other text, how do I separate out the emojis from the text? Previously I just had an enormous list of unicode emoji codepoints and I would filter them out beforehand, but this doesn’t work with ligature-emojis like family, flag, or skin color emojis, which don’t have singular unicode codepoints. What’s the preferred way for handling emojis in text shaping then?<br></div>
<br></span><span class="">_______________________________________________<br>
HarfBuzz mailing list<br>
<a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/harfbuzz" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/harfbuzz</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>