Unix Programming - How to determine Script from given Unicode text?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > October 2005 > How to determine Script from given Unicode text?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to determine Script from given Unicode text?
Gaurav Jain

2005-10-24, 3:48 pm

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 Linux API (or some library) that can help me determine this? On
Windows I think we do it by looking up the code pages corresponding to the
unicode characters.

Thanks in advance,

Gaurav



Måns Rullgård

2005-10-24, 3:48 pm

"Gaurav Jain" <gaurav.anywhere@gmail.com> writes:

> 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".


http://www.unicode.org/Public/UNIDATA/Scripts.txt

--
Måns Rullgård
mru@inprovide.com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com