On Fri, Oct 13, 2000 at 04:39:06PM +0200, Idar Tollefsen wrote:
> >4.6 docbook
> >Found: no
> >CTAN: N/A
> >WWW: Url:http://www.sgmltools.org
> >Notes: The class docbook is not a LaTeX document class.
> >It is designed to produce Docbook SGML documents, which, in turn, can be
> >exported as HTML, RTF, text, or dvi (through jadetex). You need the
> >sgmltools v2.0 package installed to use this.
The initial search to detect docbook is for sgmltools or db2html scripts,
I am really aware that you can use it without those wrappers. They call the
tools you have.
This could be changed, there are several possible ways to do it.
I would like to hear suggestion. How about to search for (open)jade?
> I have a Windows NT envrioment set up with OpenJade, JadeTex,
> DocBook, stylesheets and whatever else is in here.
> so I can performe the desired conversion as long as LyX exports a
> sgml file for me.
Yes.
> >I guess that's why it doesn't show up as an available class in the menu
> >Layout \ Document \ Class.
> >It wasn't clear whether in your case, docbook DOES show as an available
> >class or not?
>
> It does show up. As "DocBook Article". When exported to sgml, this has
> a doctype of DocBook 3.1. And I have a feeling that LyX does not provide
> all the elements of DocBook in the mentioned layout,
For 1.1.6 there is also docbook-book. It needs some work but the basis are
there.
> >If I try to start a new document from that docbook.layout file and go "view
> >dvi" it gives me a LaTeX error even before I've changed or set anything.
> >That's why I think that the docbook.layout file is just "for instance" and
> >isn't capable of compiling anything. In any case, in my installation, with
> >the "docbook" template file, I can not import or export anything more
> >relevant than ASCII, so surely the engine room is empty no?
What version do you have (lyx)?
It is possible to configure the way docbook is converted to any of those
formats.
> I require conversion to html, pdf and rtf. And I have that. Not from
> withing LyX, but that is probably just a matter of configuring LyX
> properly. I do it by hand or load the sgml file into Emacs.
> By doing it this way, I also get a valid DVI file, no errors, trough
> JadeTex. Based on this, I think the docbook.layout file is
> working as intented by its authors.
>
> What I do need, and don't have is complete support for
> DocBook 4.1 (sgml, not xml) in LyX. Not 3.1. And I need someone
> to tell me that the support for this is complete, not a subset.
The support is not complete, is work in progress. We are missing mainly
the inline elements, that will be supported as soon as the Logical
Characther Styles are implemented.
I have thought about the limitations regarding the availability of the
different versions of docbook available, 3.0, 3.1, 3.1.x, 4.0, 4.1.x...
And these versions have different flavours, sgml/xml.
It is possible to have all those cases to be configured via lyxrc in
~/.lyx that would help alot.
Example:
\dtd docbook "PUBLIC" "-//OASIS//DTD DocBook V3.1//EN"
\dtd docbook-xml "PUBLIC" "-//Norman Walsh//DTD DocBk XML V3.1.7//EN" "docbookx.dtd"
\dtd website "SYSTEM" "/usr/lib/sgml/dtd/website.dtd"
The first parameter after the dtd would be present in the layout files.
Also using the new converter from 1.1.6 we could specify different
transformations for different formats, something like:
\convert docbook dvi "method1"
\convert docbook-xml ps "method2"
\convert website html "method3"
> I don't know how to acomplish this. I am guessing that an edit of
> the LyX layout file (docbook.layout) is required, but beyound that
> I don't have a clue. And quite frankely, I don't care to find out either
> because I don't have the time for it. I'm currently, as I stated previously,
> using Emacs with psgml and I will continue to do this unitll somebody
> gets around to fix the DocBook document class for LyX.
Presently the version of the docbook dtd used is hardcoded in src/buffer.C
Any help to improve the docbook support is welcome.
>
> - IT
--
Jos�