Georg Baum wrote:
Abdelrazak Younes wrote:
But shouldn't that be the goal? I mean, it would make a lot of sense to
me if tex2lyx used the LyX memory model by filling in inset by inset a
lyx::Buffer.
It would be interesting to try that out. It would certainly require some
work, e.g. tex2lyx does not interpret at all some settings such as
language, but simply writes them to the file as a string. If you take this
to the end it would mean that tex2lyx is no standalone program anymore, but
a part of LyX.
That's right but we can pretty much isolate the latex specificities in a
dll (or the other way around: tex2lyx using LyX dll). When you think
about it, that could be true for any format. The actual lyx::Buffer
filling could be formalized in a virtual interface that would be shared
by any importer. Hum... that feels like a fun project!
So much fun projects, not enough time :-(
Abdel.