Re: Rép : Sort, Find, RawKeyDown ... / diacritical problems.

Emmanuel Companys mcompanys at mac.com
Wed Mar 12 11:01:01 EST 2003


I have proposed my solution to this problem in several posts. This  
solution, working for any language (provide we have the appropriate  
script), is used in my stack Polylexis, (9 languages lexicon)  
downloadable from my iDisk public folder.

Upon request I can mail a copy of my posts, and eventually my stack as  
well.


Manuel


Le samedi, 8 mars 2003, à 23:29 Europe/Paris, Pierre Bernaert a écrit :

> Thanks to the readers who already gave me some guide lines.
>
> Of course I didn't went though all of them  yet, but they gave me the  
> feeling that I have to give a more precise idea of what I'm looking  
> for.
>
> I'm not an language specialist but I can give a more precise  
> description of what I'm expecting.
> I look for something coherent, in other words:
>
> For the SORT Command.
>
> After having sorted containers by a sort key, I expect that a logic  
> applied to two sort keys would agree to the fact that Argument 1 is <=  
> to Argument 2 and so on.
>
> This is not the case to day for RR with the Sort Type International  
> (Not mentioned in the Transcript Dictionary):
>
> RR Sort  
> "Elephant,Eléphant,Élephant,Éléphant,èléphant,Œuf,Oeuf,œuf,oeuf,Tigre,z 
> èbre,Zèbre" international gives:
> 	 
> zèbre,Zèbre,Tigre,Oeuf,oeuf,Œuf,œuf,èléphant,Éléphant,Élephant,Eléphant 
> ,Elephant
> 	Comparing each word with the following one gives 8 errors.
>
> RR sort  without international gives:
> 	 
> Elephant,Eléphant,Oeuf,oeuf,Tigre,zèbre,Zèbre,Élephant,Éléphant,èléphan 
> t,Œuf,œuf
> 	Comparing each word with the following one gives no errors but,  
> finding éléphant after zèbre and Zèbre is too bad ! .
>
> HC sort of the same list with International gives:
> 	 
> Elephant,Eléphant,Élephant,Éléphant,èléphant,Œuf,Oeuf,oeuf,œuf,Tigre,Zè 
> bre,zèbre
> 	Comparing each word with the following one gives no errors
>
> HC Sort without international gives :
> 	 
> Elephant,Eléphant,Élephant,Éléphant,èléphant,Oeuf,oeuf,Œuf,œuf,Tigre,zè 
> bre,Zèbre (HC considers Zèbre = zèbre and keeps the original sequence)  
> 	Comparing each word with the following one  gives one error  "oeuf >  
> Œuf ";
>
> To me there is no doubt I can find a useful logic in the way Hypercard  
>  reacts but I wonder how a user will react if I have to tell him that  
> it's normal to find the card "Eléphant " after the card "Tigre" which  
> is after the card "Zèbre" OR to find the card "Eléphant" after the  
> card Zèbre.
>
> For the FIND command I'm  using the fact that FIND can be used to find  
> a word anywhere in any field of a stack (As mentioned into the  
> Transcript Dictionary ) .
>
> As the command Find "éléphant" will not find "Elephant" it just means  
> that I can't trust the reply and I don't see what kind of logic can be  
> applied to bypass it  unless being huge...
> May be I'm wrong and I hope so ...
>
> Thanks to every one for helping
>
> Pierre 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2939 bytes
Desc: not available
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20030312/132228b1/attachment.bin>


More information about the use-livecode mailing list