Re: Where to get 'PangoContext*' from?
- From: Behdad Esfahbod <behdad behdad org>
- To: Petr Tomasek <tomasek etf cuni cz>
- Cc: gtk-i18n-list gnome org
- Subject: Re: Where to get 'PangoContext*' from?
- Date: Thu, 21 Jan 2010 01:42:41 -0500
On 01/21/2010 01:36 AM, Petr Tomasek wrote:
> On Wed, Jan 20, 2010 at 02:28:14PM -0500, Behdad Esfahbod wrote:
>> On 01/20/2010 04:29 AM, Petr Tomasek wrote:
>>>
>>> Hello!
>>>
>>> I'd like to use pango_itemize in a command-line utility to split an
>>> unicode string into parts of same script. I don't need any other pango
>>> functionality (in this utility, of course ;-).
>>
>> Use PangoScriptIter then. Itemization does a lot more than what you need.
>
> Thanks a lot! That's exactly what I need :).
>
> One more question: wouldn't it make sense to have a method
> in pango (or better in glib?) to stringify the PangoScript / GUnicodeScript?
Check g_enum_get_value(). You also need PANGO_TYPE_SCRIPT and g_type_class_ref().
behdad
> This made the trick for me now:
>
> const char *unicode_scripts[] = {
> "zyyy", "qaai", "arab", "armn", "beng", "bopo", "cher", "qaac", "cyrl",
> "dsrt", "deva", "ethi", "geor", "goth", "grek", "gujr", "guru", "hani",
> "hang", "hebr", "hira", "knda", "kana", "khmr", "laoo", "latn", "mlym",
> "mong", "mymr", "ogam", "ital", "orya", "runr", "sinh", "syrc", "taml",
> "telu", "thaa", "thai", "tibt", "cans", "yiii", "tglg", "hano", "buhd",
> "tagb", "brai", "cprt", "limb", "osma", "shaw", "linb", "tale", "ugar",
> "talu", "bugi", "glag", "tfng", "sylo", "xpeo", "khar", "zzzz", "bali",
> "xsux", "phnx", "phag", "nkoo", "kali", "lepc", "rjng", "sund", "saur",
> "cham", "olck", "vaii", "cari", "lyci", "lydi"
> };
>
> But the problem is it changes (is extended) with every unicode
> revision and it would perhaps be usefull for more people?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]