Re: Unicode text Direction Detection

2005-08-17 Thread Mark Leisher
Gaurav Jain wrote: Could you give me some tips on how to go about implementing a "naive" version of such an algorithm? Suppose I have a unicode character, what's the simplest way to know if it is a LTR directional character or a RTL directional character? Try http://crl.nmsu.edu/~mleisher/ucd

Re: Unicode text Direction Detection

2005-08-17 Thread Behdad Esfahbod
On Wed, 17 Aug 2005, Gaurav Jain wrote: > Could you give me some tips on how to go about implementing a "naive" > version of such an algorithm? Suppose I have a unicode character, > what's the simplest way to know if it is a LTR directional character > or a RTL directional character? Here it is

Re: Unicode text Direction Detection

2005-08-17 Thread Behdad Esfahbod
On Wed, 17 Aug 2005, Gaurav Jain wrote: > Hi, > > I have a Unicode text, and I need to detect its direction by some BiDi > algorithm (i.e., whether it is Left-to-right or Right-to-left). For > example, I need to look for the first "strong" directional character > in the text, and find out its dir

Re: Unicode text Direction Detection

2005-08-17 Thread Gaurav Jain
Thanks Behdad. On 8/17/05, Behdad Esfahbod <[EMAIL PROTECTED]> wrote: > On Wed, 17 Aug 2005, Gaurav Jain wrote: > > > Hi, > > > > I have a Unicode text, and I need to detect its direction by some BiDi > > algorithm (i.e., whether it is Left-to-right or Right-to-left). For > > example, I need t

Re: Unicode text Direction Detection

2005-08-17 Thread Gaurav Jain
Thanks Matthias for the quick response. On 8/17/05, Matthias Clasen <[EMAIL PROTECTED]> wrote: > On Wed, 2005-08-17 at 17:32 +0530, Gaurav Jain wrote: > > Hi, > > > > I have a Unicode text, and I need to detect its direction by some BiDi > > algorithm (i.e., whether it is Left-to-right or Right-to

Re: Unicode text Direction Detection

2005-08-17 Thread Matthias Clasen
On Wed, 2005-08-17 at 17:32 +0530, Gaurav Jain wrote: > Hi, > > I have a Unicode text, and I need to detect its direction by some BiDi > algorithm (i.e., whether it is Left-to-right or Right-to-left). For > example, I need to look for the first "strong" directional character > in the text, and fi

Unicode text Direction Detection

2005-08-17 Thread Gaurav Jain
Hi, I have a Unicode text, and I need to detect its direction by some BiDi algorithm (i.e., whether it is Left-to-right or Right-to-left). For example, I need to look for the first "strong" directional character in the text, and find out its direction. Is there a way I can do that using some GTK