De: Pierre <pierre.bernaert>
Date: Sam 1 mars 2003 09:20:33 Europe/Paris
À: Liste Révolution <[EMAIL PROTECTED]>
Objet: Sort, Find, RawKeyDown ... / diacritical problems.
Hi everyone,
I'm a french and i'm in the process of translating major (For me) applications written with Hypercard to RR 1.1.
The main tools of some of them mainly relies on "HyperText" approach.
I found, using RR, that SORT and FIND commands didn't work with words having diacritical (Lettres accentuées).
Here is a small transcript which demonstrates what I mean for sorting:
On MouseUp
Put "œuf,Elephant,Eléphant,Élephant,Éléphant,èléphant,Tigre," into OriginalValue
Put OriginalValue into SortedValue
Sort Items of line 1 of SortedValue
Answer "Original Value :" && OriginalValue & return & "Sorted Value :" && SortedValue & return & Return & "The correct spelling in french is 'éléphant or Eléphant and œuf', other spellings are mistakes"
End MouseUp
The result is :
,Elephant,Eléphant,Tigre,Élephant,Éléphant,èléphant,œuf
Observing what the result is for "Tigre" and "œuf" shows what the problem is ...
Too bad for the command Find , for example "Find Eléphant" will not find éléphant
I did send a mail to Kevin Miller below is its reply.
----------------------------------------------------------------------------------------------------------------------------
My mail and the Answer from Kevin
De: Kevin Miller <[EMAIL PROTECTED]>
Date: Jeu 20 fév 2003 20:39:03 Europe/Paris
À: <[EMAIL PROTECTED]>
Objet: Rép : Find, Sort and more generally speaking "Diacritical" ...
On 19/2/03 8:25 am, Pierre <[EMAIL PROTECTED]> wrote:
As you surely know, in RR 1.1 diacritical doesn't work as far as:
• At least FIND and SORT commands are concerned.
• I believe "RawKeyDown" is concerned too
In both cases you get wrong answers (This was working fine with HC
using "International" for sorting).
I'm not used to "Unicode", as far as I know it will be implemented in
Version 2.
Will "Unicode" solve this major problem for "Hyper Text" applications ?
Thank to tell me what are the plans on this topic.
You can script around these issues, relatively easily. Unicode supports
entering and display international text. We don't plan to make any further
changes to these functions for 2.0, but could consider revisiting this (at
the scripting level at least) for 2.1. In the mean time, try asking on the
use-revolution mailing list, someone there is bound to be able to help write
a script to overcome these issues.
Kind regards,
Kevin
----------------------------------------------------------------------------------------------------------------------------------------------
As far as I am concerned I don't see how to deal with this, so my question to the members of this list is
Has some members an idea on how to solved this and better has someone made it work ??
Many Thanks
- Re: Sort, Find, RawKeyDown ... / diacritical problems. Pierre
- Re: Sort, Find, RawKeyDown ... / diacritical probl... Jan Schenkel
- Re: Sort, Find, RawKeyDown ... / diacritical probl... Emmanuel Companys
- Re: Sort, Find, RawKeyDown ... / diacritical probl... Jan Schenkel
- Re: Sort, Find, RawKeyDown ... / diacritical p... erik hansen
- Re: Sort, Find, RawKeyDown ... / diacritic... Emmanuel Companys
