Hi John, Sorry about the mis-statement. In my case I have a unicode character, and I need to find out what script it belongs to. Is it possible to determine this using a single Unicode character?
Thanks, Gaurav --- "Boncek, John" <[EMAIL PROTECTED]> wrote: > This is not a well-defined problem. What if your > text contains Thai, > Latin, Hebrew, and Japanese? How could any function > return a single > script in that case? > > Regards, > John Boncek > [EMAIL PROTECTED] > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Gaurav Jain > Sent: Friday, October 21, 2005 10:04 AM > To: gtk-app-devel-list@gnome.org > Subject: How to determine Script from given Unicode > text? > > Hi, > > I need to find a way to determine the "best script" > corresponding to a given Unicode string/char. For > example, if I have some unicode text containing Thai > characters, I want to be able to say that it is > "thai". And if the text contains latin characters, > I > need to be able to say it is "latin". > > Is there a method provided by glib/gtk to determine > this? Pango provides an API called > pango_find_base_dir() which does the job of guessing > the direction of a unicode text, which is close, but > not exactly what I want. > > Thanks in advance, > Gaurav > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list