Il 21/03/22 11:49, Daniel ha scritto:
On 2022-03-21 10:55, Lorenzo Bertini wrote:
There is some degree of duplication between Docbook and LyXHTML code.
I think its because the latter is much older and Thibaut had to write
its own to produce Docbook. This has been brought up also when
addressing MathML production. I agree LyX needs more standard XML
generating functions.
Its part of a larger theme about XML production, and there was a talk
sometime ago about using a library for this.
I might be misunderstanding your comment. But actually, I wanted to
point not to the way XML is generated but more to the actual content,
for example, the specific attributes of an element which seem to be
duplicated. But maybe that problem is somehow dependent on the general
generation of XML?
Daniel
Sorry, I meant that code duplication is probably due to the different
maintainers for the two formats and the fact that one is much older and
has been untouched for a long (LyXHTML). I remember Thibaut saying he
branched from LyXHTML knowingly, even if it would have meant rewriting
some stuff. Looking at your examples, this might be the case.
I think a common interface to write XML elements like tables, tags, etc,
would help reduce this, but it will be a lot of effort. I'll wait for
Thibaut and Richard to chime in on this.
Lorenzo
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel