Re: How to determine Script from given Unicode text?
- From: Gaurav Jain <gaurav_anywhere yahoo com>
- To: Neelesh Bodas <neelesh bodas gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to determine Script from given Unicode text?
- Date: Fri, 21 Oct 2005 21:59:14 -0700 (PDT)
Hi Neelesh,
Yes indeed, that should serve my purpose, but
unfortunately I'm using Gtk 2.4. I'll check to see
how 2.6 is implementing it...
Thanks,
Gaurav
--- Neelesh Bodas <neelesh bodas gmail com> wrote:
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
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]