FW: How to determine Script from given Unicode text?



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
JBoncek Hunter Com

-----Original Message-----
From: gtk-app-devel-list-bounces gnome org
[mailto:gtk-app-devel-list-bounces gnome org] 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]