Thank's for the help Kerry. With a little modifications your script worked
perfectly.

on 2/9/04 5:09 PM, Kerry Thompson at [EMAIL PROTECTED] wrote:

>> Hi,
>> 
>> I'm developing a game (hangman). But in Brazilian Portuguese.
>> How can I make the director recognize chars like "á", "ã" or
>> "ê" for example. To minimize the problem I've built a
>> keyboard in the game with the alphabet, so I'd like to click
>> "A" and compare all the possibilities like "A","Ã","ã".
> 
> I'd build a handler to check the ANSI value. Something like this
> (untested e-mail Lingo):
> 
> on convertToAscii aString
> localString = aString
> repeat with i = 1 to aString.length
>   -- check for high ANSI characters
>   tempChar = charToNum(aString.char[i])
>   if tempChar > 127 then
>     case TRUE of
>       (tempChar >= 224) and (tempChar <= 229): put "a" into
> aString.char[i]
>       --other cases
>     end case
>   end if
> end repeat
> return localString
> end
> 
> Cordially,
> 
> Kerry Thompson
> 
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
> [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is
> for learning and helping with programming Lingo.  Thanks!]
> 



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to