Sort, Find, RawKeyDown ... / diacritical problems.
Pierre
pierre.bernaert at www.runrev.com
Tue Mar 4 00:50:36 EST 2003
De: Pierre <pierre.bernaert>
Date: Sam 1 mars 2003 09:20:33 Europe/Paris
À: Liste Révolution <use-revolution at lists.runrev.com>
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 <kevin at runrev.com>
Date: Jeu 20 fév 2003 20:39:03 Europe/Paris
À: <pierre.bernaert at wanadoo.fr>
Objet: Rép : Find, Sort and more generally speaking "Diacritical" ...
On 19/2/03 8:25 am, Pierre <pierre.bernaert at www.runrev.com> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3394 bytes
Desc: not available
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20030304/abb3f6ee/attachment.bin>
More information about the use-livecode
mailing list