Unicode sorting

Dar Scott dsc at swcp.com
Tue May 30 23:20:05 EDT 2006


On May 30, 2006, at 5:08 PM, Devin Asay wrote:

> ## Devin's changes - it turns out leaving the code points in  
> decimal works perfectly,
> ##  and I only had to make a couple of adjustments.
>   if unicodePoint > 1039 and unicodePoint < 1072 then -- ignore case
>     add 32 to unicodePoint
>   else if unicodePoint = 1105 then -- sort 'yo' with 'ye'
>     put 1077 into unicodePoint
>   end if
> ##

But the rest of it assumes sortCodeFromRussianChar returns 1 to 255.   
You might want to shift the Cyrillic to the upper range of that and  
leave the ASCII in the lower.

Dar





More information about the Use-livecode mailing list