So I'm going to try to do this. Here's an outline for discussion before I start. When I start, I don't know. Maybe bits and pieces soon.

There are more and less complicated ways to do this. You could have a new format, like DocBook, but I think what's really wanted is something that would work more like plaintext, so that you can output any document as HTML. So we'd have a set of ashtml() routines in the insets, etc, pretty much everywhere we have latex() and plaintext(), and the overall structure would be the same.

We obviously do not want to hardcode everything. In particular, to have this work with custom styles, we need a bit of information in the layouts about what HTML corresponds e.g. to "noun". This is fairly easy, though it could be made more complicated, in ways at which Jose gestured. I think we start with easy.

That said, it might be worth having a layout that was specifically designed for HTML output. That would make LyX usable as a kind of WYSIWYM HTML editor, as someone else mentioned.

Comments, as said, welcome.

Richard

Reply via email to