On 14-03-10 01:52 PM, Richard Hughes wrote:
On 10 March 2014 17:50, Behdad Esfahbod <behdad(a)behdad.org>
wrote:
> pango_language_get_sample_string().
Looks good as a fallback, thanks.
By design pango_language_get_sample_string() is exactly what you want.
If the implementation isn't, submit patches!
Would g_utf8_substring(value,0,2) give me sane results for a icon?
Don't think so. For that I suggest you get the sample char for all the
scripts involved in the language (pango_language_get_scripts()):
https://docs.google.com/spreadsheet/ccc?key=0AqRLrRqNEKv-dG53NFlnbWg5TEp6...
You can try upper/lower-casing the sample char and if the script is cased, use
upper followed by lower.
Richard.
--
behdad
http://behdad.org/