Translate LyX document to another language
Paul Smith
phhs80 at gmail.com
Tue Feb 21 14:16:42 UTC 2023
On Tue, Feb 21, 2023 at 12:53 PM Pavel Sanda <sanda at lyx.org> wrote:
> >
> > Is there some way of automatically translating a LyX document, say,
> > from Spanish to English?
>
> Not easy for the whole document. But if you are coder I can see that within
> couple hours you might come up with a script which does something along these lines:
> 1) copy paragraph which is selected in lyx into text file
> 2) seend it to DeepL API via curl
> 3) receive the response
> 4) paste it back into document
>
> Special formatting, equations/ images etc will be gone in this transformation.
>
> But having in LyX some better handling of such exchange for external services
> would be useful. From time to time I am checking grammarly for evolution of their
> API interface, which would be closer to C++/Qt world so we could directly use it...
Thanks, Pavel, for the ideas you have suggested. As soon as I have
some spare time, I will try to implement them in Python.
Paul
More information about the lyx-users
mailing list