On Tue, Feb 21, 2023 at 12:53 PM Pavel Sanda <sa...@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
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to