Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: Is it possible to automate tasks in Virtaal, e.g. with scripts? #3310

Open
msoutopico opened this issue Nov 21, 2019 · 1 comment
Open

Comments

@msoutopico
Copy link

Hi there!

Often I need to automate some tasks in OmegaT, like transliterating (Latin to Cyrillic or vice versa), or pseudo-translating, or changing Western numerals to Easter-Indic form (in Arabic).

I normally do that with a script written in Groovy, e.g. https://gist.github.com/msoutopico/0336a655ae169e68a17307fa6a44a201

Would it be possible to run Python scripts in the same way in Virtaal?

Thanks. Manuel

@friedelwolff
Copy link
Member

That sounds like plugins would be perfect for this. Much of Virtaal's out-of-the-box functionality is implemented as plugins in python (TM, terminology, autocomplete, autocorrect, etc.). Plugins can add shortcuts and menu entries, change the text in the target, etc. so the things you mention sounds like something that could be done with a plugin. Changing numerals and casing could even be a good addition to Virtaal in general. I fear that transliteration is too language specific, but you can still implement an extension for yourself.

If we have a generic concept of a "select text and transform" type plugin, it might be simple to implement all sorts of different plugins similar to the ones you mention. Maybe this is a good discussion to continue on the mailing list?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants