On Thu, Jan 06, 2000 at 01:54:10PM +0100, Jean-Marc Lasgouttes wrote:
> >>>>> "Jose" == Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> writes:
> 
> Jose>   No related but... the major difficulty in importing docbook in
> Jose> lyx is the absence of a library to write the lyx format. Only
> Jose> the idea of writing lyx format without help scares. I have done
> Jose> this before with sgml2lyx, but I have lost the courage since
> Jose> then... ;)
> 
> This would indeed be a Good Thing. I wonder how difficult it would be
> to isolate the code which writes lyx files in a separate class. One
> solution is to create the document in LyX (assuming your import
> function is part of LyX) and then wirte it out.
> 
> Now, if you want to do this in perl, for example, you will have to get
> some stuff from reLyX. Amir, how difficult would it be to create a
> stand alone .lyx writer?
> 

I'm not sure I understand what you're asking. I suspect the answer would be
"pretty difficult", because reLyX is I think pretty dependent on the input
being LaTeX. For example, there are places where the code says, "now just
write whatever text was in that argument, since the LaTeX and LyX styles are
similar." I suspect what you're talking about---although I invite
clarification---is something more like RelyxFigure and RelyxTable, which are
OO modules to store LyX figures and tables. I guess those two modules really
have .lyx writers in them (although neither can handle all LyX features, or
LaTeX of course). The rest of the code is mostly a huge switch statement
that says if you get this kind of command, then write it out this way, so it
might be hard to isolate a .lyx writer from it. Not harder than starting
from scratch, probably, but hard.

But couldn't you also start with sgml2lyx?

-Amir

Reply via email to