Re: TEI/TEI lite support
Dave Malcolm <[email protected]> 31 Jan 2004 14:09:50 +0000
| Newsgroups | gmane.editors.conglomerate.general |
|---|---|
| Message-ID | <1075558190.2160.231.camel@shirehorse1> |
You may be able to add the support yourself!
If you have a DTD file to hand, then run Conglomerate, and select
File->Import, then browse to the DTD file. You should get a "File
Import Options" dialog. Make sure "Convert DTD into a Conglomerate
Display Specification" is selected and press OK.
Alternatively, load an example document of the type you wish to support,
ideally one with a Document Type Declaration referencing a PUBLIC ID
with a SYSTEM ID referencing the document type definition via http .
Conglomerate will complain that it doesn't recognise the document type,
and ask if you wish to load it anyway. Click on the Force button, and
Conglomerate will generate a display specification as it loads the file.
You can then go to the Tools menu and select Dump Display Spec.
In either case, Conglomerate should create a new "display specification"
file. You should save the file into the examples subdirectory, giving
it a ".xds" extension. You should then edit examples/Makefile.am and add
the filename of the new display specification to dispspec_DATA. You
should then re-run make, then (possibly as root) make install, and
restart conglomerate. Try loading a TEI document; Conglomerate should
now handle it without complaining. Please email the conglomerate-devel
mailing list with a patch that adds the document type, so that we can
add it to CVS, and into the next release.
Once you have a working xds file for a document type, you can fine-tune
it in some of these ways:
* Change whether elements are "structural" or "span" elements. The
display specification generation routine tries to guess this
based upon the example document and on the DTD, but it sometimes
makes mistakes.
* Set up human-readable names for elements, together with
descriptions of what they do. Currently this is in English only,
though we plan to allow localisable versions of these strings
(patches welcome!)
* Set up icons for elements, for use in the menus and in the main
widget.
* Write custom XPath rules for generating the title string to be
used for an element.
* Use plugins to better represent an element. For example, there
are already plugins aimed at rendering paragraphs, and items
within lists. You can even create custom property dialogs for an
element type, those this requires writing some code.
The best thing to do is to look through the examples/docbook.xds file,
which has examples of how to do these things, and to ask on the
conglomerate-devel mailing list.
On Fri, 2004-01-30 at 18:43, Walter H. van Holst wrote:
> Hello,
>
> I'd like to know if any TEI and/or TEI-lite support is planned for
> Conglomerate.
>
> Regards,
>
> Walter