[HarfBuzz] Guessing the script of a string.
Behdad Esfahbod
behdad at behdad.org
Fri Jun 24 06:07:08 PDT 2011
On 06/24/11 05:27, Grigori Goronzy wrote:
>> > Wouldn't it be more usefull to guess the script based on the Unicode
>> > ranges the chars are in based on the http://www.unicode.org/charts table?
>> >
> HarfBuzz should do this automatically if you don't explicitly set the
> script of a hb_buffer. This seems to work fine for me here, at least.
Correct.
The way to get to that functionality more directly is to call
hb_unicode_funcs_get_default(), and with the returned object call
hb_unicode_get_script(). That works on a single Unicode character.
behdad
More information about the HarfBuzz
mailing list