type the label of me

Graham Samuel livfoss at mac.com
Sat Apr 15 11:33:54 EDT 2017


Hi Martin

It appears to me that you have found a bug, probably something to do with the switch to Unicode in the LC engine. 

I ran a similar script in LC 8.1.4 rc1 - on a Mac, as it happens.

In my button the label is “Adélie”. The output resulting from the ‘type’ command is
Adlie

and the count of characters in  the field is 5, not 6 as it should be.

If I capture the characters being ‘typed’ using ‘rawKeyDown’, I get

65
100
16777449
108
105
101

So the accented letter creates what appears to be a Unicode character, except that I can’t find a Unicode character of that value after some rather limited Googling. The other characters correspond to the relevant ASCII characters.

Can someone else confirm this, and it so, I’ll be happy to report it as a bug.

Graham



> On 15 Apr 2017, at 15:11, martin meili via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi
> I’ve got a vocabulary trainer for French.
> 
> To make it easier for the students to produce letters with accents such as „é“ (ascii-code 142), „à“ and „ç“ I’ve a number of buttons the label of which is the accented letter. As long as I use LC < 7.0 the script „type the label of me“ works fine  - producing the accented letter just at the position of the blinking cursor in a textfield -, but doesn’t when I use LC >= 7. With normal letters such as „l“ or „ C’ „ the script works fine using any LC version.
> 
> The script „put "C’ „ after text of field“ also works fine using any version, but here the letter isn’t in every case in its right place.
> 
> Any ideas I should change so that I can make my standalones using LC 8.x.x.?
> 
> Martin
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list