With latin characters you mean ã, ñ, õ, é, etc, right?
And you want to block the limit of characters to 10 or you can't type more than 10?
If you want to block up to 10 characters and the latin letters that you mentioned are the ones above, go to the node inspector and set the
Max Length to 10.
To check if the text contains a latin letter, what you could do were link the
text_changed to its script and use the
find() method to see if the text contains the letters that you want to check.
To be more pratical, I would suggest using a
for loop, like this:
var latin_characters = ["ã", "ñ", "ó"] #Add all the characters that you want to look for
for letter in latin_characters:
if new_text.find(letter) > 0: #If it's not present, return -1
print("Latin character %s found!"%letter)