Hi Prannoy,

Prannoy Pilligundla schrieb:
Initially I was storing information inside the encoding attribute of
annotation tag but even if I have encoding="StarMath 5.0", the annotation
tags in the content.xml are removed when I save the file. Is there any
other way to instruct OpenOffice to keep these annotations as it is?

No, there is no way to do so. Unfortunately other ways don't work too, when the Math document is opened from inside a text document, for example. I have tested:
XML comment --> stripped
meta data of the Math document --> stripped

The only way I found, is to write the information not into the Math document itself, but into the svg:desc attribute of the draw:frame, which holds the link to the Math object.

Kind regards
Regina



On Mon, Jul 28, 2014 at 1:41 PM, Prannoy Pilligundla <[email protected]
wrote:

Hi Everyone,

I am Prannoy and I am working on Roundtrip Conversion from LyX to ODT as a
part of my Google Summer of Code 2014 project.

While doing LyX to ODT conversion I am saving the latex math expression as
it is using the annotation tag so that I can extract it back while
performing ODT to LyX conversion. All annotations are inside the main
content.xml. I am able to extract the math expression back if the file is
not modified and saved in OpenOffice. After modifying and saving the
document, OpenOffice rewrites everything and the annotation tags I had in
content.xml now disappear. Is there any way to stop OpenOffice from
removing the annotation tags in the content.xml?

I can now extract the math from the annotation which OpenOffice writes
inside the content.xml of that particular formula but this is not of much
use as it is a custom notation.

Looking forward to hear everyone's views on this

Thanks and Regards
Prannoy Pilligundla




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to