This post is very old. It will be great if the OP replies, but I
wouldn't count on it.
AFAIK, we never got the code here on the list.
There have been a number of similar requests in the past, so If you do
come up with anything that works, please let us know.
AutoKey scripts are written in Python3, so automatically translating
from whatever AutoHotKey scripting uses would probably be a lex/yacc
thing - non-trivial.
However, phrases should be more doable.
AutoKey stores each phrase as a pair of files - phrase-name.txt and
.phrase-name.json. The text file (almost always) just contains the
replacement text and the json file contains all the metadata like the
trigger, etc. (and json is a human-readable text file format.) Note that
the json file name begins with a period - which makes it a hidden file.
It should be possible to create one phrase manually and then use the two
files AutoKey creates for it as templates where just a few things need
to be altered for each new phrase.
Once all the phrases are translated, just put them in an AutoKey phrases
directory and it will automatically find them. You just have to close
and reopen the main AutoKey menu and they should appear.
I don't think anyone has done this, but it seems like it wouldn't be too
difficult. A bash script written using awk or sed and input parameter
files would probably be sufficient.
I don't have time to do this from scratch (and I've never looked at
AutoHotKey), but I'm pretty good with the above tools and would be happy
to assist in getting such a translation script to work.
Joe
> --
> You received this message because you are subscribed to the Google
> Groups "autokey-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
autokey-user...@googlegroups.com
> <mailto:
autokey-user...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.