[PHP] Re: return language of a word

2008-09-29 Thread Nathan Rixham
shahrzad khorrami wrote: hi all, is there any function to return us the lanuage of a word in the sentence? for example : My name is شهرزاد . when it sees شهرزاد notice that is a persian language. Thanks best way i can see it to use the google language detection api [thats what I do] -

[PHP] Re: return language of a word

2008-09-29 Thread Maciek Sokolewicz
shahrzad khorrami wrote: hi all, is there any function to return us the lanuage of a word in the sentence? for example : My name is شهرزاد . when it sees شهرزاد notice that is a persian language. Thanks How exactly would you expect this to work? I can't think of any way to be 100% sure

[PHP] Re: return language of a word

2008-09-29 Thread shahrzad khorrami
Thanks for reply U+103A0 ... U+103DF How can I use of it?

[PHP] Re: return language of a word

2008-09-29 Thread Maciek Sokolewicz
shahrzad khorrami wrote: Thanks for reply U+103A0 ... U+103DF How can I use of it? Something along the lines of: http://www.php.net/manual/en/function.ord.php should return the ordinal, which can then be compared to that. If you really want to do more with unicode and low-level twiddling

[PHP] Re: return language of a word

2008-09-29 Thread Nathan Rixham
Maciek Sokolewicz wrote: shahrzad khorrami wrote: Thanks for reply U+103A0 ... U+103DF How can I use of it? Something along the lines of: http://www.php.net/manual/en/function.ord.php should return the ordinal, which can then be compared to that. note: *but not ord()* [ord is only for