sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15363
Re: [Question #218078]: type() foreign symbol example
Question #218078 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/218078
Status: Open => Answered
RaiMan proposed the following answer:
you do not need a def() "type_german" for that, the dictionary is
sufficient:
e.g.
german = {u"ü":'[', u"ö":';'}
def type_ger(line):
for letter in line:
type(german.get(letter, letter)) # if the letter is not in the dict, the letter itself is typed
# so the dict only needs to contain letters that has to be translated.
type_ger(u"Flöte")
tested on Mac with a textedit window
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.