<div dir="ltr">Thank you Khaled and Behdad, the examples are demonstrating the point clearly.<div><br></div><div>I created a new mini-project for testing "language-specific features":</div><div><a href="http://goo.gl/oI2j5X">http://goo.gl/oI2j5X</a><br>
</div><div><br></div><div>As you can see in the screenshot, success is only partial:</div><div><br></div><div>1. Russian vs Serbian: only the first letter is different</div><div>Text: бгдпт</div><div>Script: HB_SCRIPT_CYRILLIC</div>
<div>Left lang: ru; Right lang: sr</div><div><br></div><div>2. English vs Romanian: works as intended</div><div>Text: şţ</div><div>Script: HB_SCRIPT_LATIN</div><div>Left lang: en; Right lang: ro</div><div><br></div><div>
3. Arabic vs Sindhi: no differences</div>
<div>Text: ههه<span class=""> </span>۴۵۶۷</div><div>Script: HB_SCRIPT_ARABIC</div><div>Left lang: ar; Right lang: sd (also tried "snd")</div><div><br></div><div>Should I activate some "special features" beyond hb_script_t and hb_language_t?</div>
<div><br>Thanks,</div><div>Ariel</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 15, 2013 at 8:39 PM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 13-12-15 10:02 AM, Khaled Hosny wrote:<br>
>> The first question I'm asking is therefore: what is the purpose<br>
>> > of hb_buffer_set_language()?<br>
>> > Or in other words: is there a combination which require both the language<br>
>> > and script values to be defined?<br>
> Many fonts have language-specific features, for example:<br>
> <a href="https://bugs.webkit.org/show_bug.cgi?id=37984" target="_blank">https://bugs.webkit.org/show_bug.cgi?id=37984</a><br>
<br>
</div>See for example:<br>
<br>
<a href="http://en.wikipedia.org/wiki/Pango" target="_blank">http://en.wikipedia.org/wiki/Pango</a><br>
<br>
<a href="http://scripts.sil.org/cms/scripts/page.php?item_id=Scheherazade" target="_blank">http://scripts.sil.org/cms/scripts/page.php?item_id=Scheherazade</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
behdad<br>
<a href="http://behdad.org/" target="_blank">http://behdad.org/</a><br>
</font></span></blockquote></div><br></div>