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

Pierre Bernaert pierre.bernaert at mac.com
Tue Mar 11 04:06:03 EST 2003


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éphant 
,Œ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èb 
re,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èb 
re,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: 2515 bytes
Desc: not available
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20030311/27c28597/attachment.bin>


More information about the use-livecode mailing list