I have a very long document containing lots of svg images created using the extension TexMaths. This extension uses the latex installation to create svg image of the inputted equation (or set of equations). The latex code for each equation (or set of equations) is embedded in the image as part of its Description. Such a Description can be accessed by right clicking the svg image and choosing the option Description.

I want to replace all the svg images using a suitable macro, by the embedded descriptions.

e.g. from

The Einstein's famous equation, [svg embedded equation :

E=mc^{2}], tells us that mass can be converted to energy and vice-versa.

To

The Einstein's famous equation, E = mc^2, tells us that mass can be converted to energy and vice-versa.

This will allow me to convert by hand the odt file containing numerous TexMaths equations to LaTeX.