On Wed, Sep 20, 2000 at 03:29:47PM +0100, Jose Abilio Oliveira Matos wrote:

>   If I try to export a linuxdoc document the result is always left at the
> temp dir. Any solution?

I'm guessing that you are talking about export to html: for the file foo.sgml,
the generated file are foo.html, foo-1.html, foo-2.html ... foo-k.html
(k is the number of sections).
Currently, these files are generated in the temp dir, and then only foo.html
is moved to the destination dir. There are several possible ways to fix this:

(Suppose we are exporting foo.lyx to html using sgml2html,
and destdir is the directory of foo.lyx)

1. Add a flag to the sgml->html converter, that tells that this converter
  creates many output files. After running the converter, we 
  do 'mv foo*.html destdir' (or even 'mv *.html destdir') instead of
  'mv foo.html destdir'
2. Do (1) for all converters.
3. Add a flag to the sgml->html converter, that tells to run the converter
  from destdir, i.e. we chdir to destdir and run 'sgml2latex tempdir/foo.sgml'.
  The html files will be generated in destdir.

(2) is the easier for the user, as no flag is needed.

>   BTW, I will change the name used by the exporter from sgml to linuxdoc
> since that is the same as to say that zoology only studies elephants.
> On the other hand the name is wrong since we don't export sgml.

This won't work: If you have file foo.linuxdoc, and then you run 
"sgml2latex -o dvi foo.linuxdoc", the result dvi is "foo.linuxdoc.dvi",
which is not what we need ("foo.dvi").
Is the same happens with docbook ? (what happens when you run
'sgmltools -b dvi foo.docbook" ?)

>   It is why I think that "document type" != "document extension"

I first want to make the export code 100% functional, and then I'll see
what I can do to change this.

Reply via email to