Replace accents
John Dixon
dixonja at hotmail.co.uk
Tue May 10 09:14:33 EDT 2016
err... it does work under LC8.. just tried it
MacBook Pro, El Capitan, OSX 10.11.4
on mouseUp
put "öõÓÔÒÕÖúùû" into mytext
put "áàâäãåÄÅÀÃéèêëÊËÈÉíìîïÍÎÏÌóòôöõÓÔÒÕÖúùûüÚÛÙÜÑñçÇ'" into accent
put "aaaaaaAAAAeeeeEEEEiiiiIIIIoooooOOOOOuuuuUUUUNncC_" into noaccent
put 0 into cpt
repeat for each char i in accent
add 1 to cpt
replace i with char cpt of noaccent in myText
end repeat
put mytext
end mouseUp
it returned ...
ooooooouuu
> From: ludovic.thebault at laposte.net
> Subject: Replace accents
> Date: Tue, 10 May 2016 14:59:12 +0200
> To: use-livecode at lists.runrev.com
>
> Hello,
>
> This little scrip don't word with Livecode 7 and 8. I guess this is because Livecode work directly in unicode (the script work with Livecode 6).
> But how handle it in my script ?
>
> put "áàâäãåÄÅÀÃéèêëÊËÈÉíìîïÍÎÏÌóòôöõÓÔÒÕÖúùûüÚÛÙÜÑñçÇ'" into accent
> put "aaaaaaAAAAeeeeEEEEiiiiIIIIoooooOOOOOuuuuUUUUNncC_" into noaccent
> put 0 into cpt
> repeat for each char i in accent
> add 1 to cpt
> replace i with char cpt of noaccent in myText
> end repeat
>
> I've tried with uniDecode and uniencode without success
>
> Thanks
> _______________________________________________
> 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