[HarfBuzz] Guessing the script of a string.

Konstantin Ritt ritt.ks at gmail.com
Fri Jul 1 09:33:54 PDT 2011


except of that's *not* easy at all, that's also definitely not a text
shaping library's job. moreover, this makes the Harfbuzz itself more
flexible in use and future maintenance.
that's my IMHO though...

regards,
Konstantin



2011/7/1 Eduardo Castiñeyra <eduardo at brainstorm.es>

>  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
>
> I have been reviewing the code, and I don't find a relationship between
> codepoint ranges and all the unicode scripts in any part of the code. The
> hb_unicode_get_script_nil function, which seems to be the internal one, is
> empty. Does it mean that one needs icu or glib to compile harfbuzz?
>
> Would it be that hard to make a lookup a table with Unicode ranges and
> scripts to not having to use external libraries? Or isn't it that easy?
>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20110701/930803d4/attachment.html>


More information about the HarfBuzz mailing list