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



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