Re: How to determine Script from given Unicode text?
- From: Neelesh Bodas <neelesh bodas gmail com>
- To: Gaurav Jain <gaurav_anywhere yahoo com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to determine Script from given Unicode text?
- Date: Fri, 21 Oct 2005 21:08:51 +0530
You may find this useful
http://www.gtk.org/api/2.6/pango/pango-Scripts.html#pango-script-for-unichar
There is a function called pango_script_for_unichar() which does precisely
what you want. it is supported from version 2.6 onwards.
Thanks
Neelesh
On 10/21/05, Gaurav Jain <gaurav_anywhere yahoo com> wrote:
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]