Re: Adding dispspecs
Roberto Rosselli Del Turco <[email protected]> Mon, 16 Feb 2004 12:31:45 +0100
| Newsgroups | gmane.editors.conglomerate.general |
|---|---|
| Message-ID | <[email protected]> |
Il lun, 2004-02-16 alle 11:37, Geert Stappers ha scritto: > On Mon, Feb 16, 2004 at 10:40:16AM +0100, Roberto Rosselli Del Turco wrote: > > Hi all, > > while playing with different dispspecs and the latest 12.pre > > Conglomerate, I noticed that if I add a dispspec in the appropriate > > directory, Conge goes and try to load it when loading a suitable > > document. Unfortunately, the few documents I tried to load crashed > > costantly: is it because Conglomerate needs to be compiled with the > > dispspec name in the makefile? It would be nice to be able to modify > > current dispspecs, then drop the modified versions in the dispspec > > directory and have them work automagically; especially with complex DTDs > > like TEI, where, as I hinted in the past, you can have lots of custom > > subset-DTDs base on the main one. > > AFAIK Conglomerate loads the XDS files only during startup. Indeed, this is the output on the command line: ** Message: Loading xds files from "/home/roby/.conglomerate/dispspecs" CongDispspecRegistry contains 14 dispspec(s) ds[0] = "Experimental "cnxml" format" ds[1] = "Name of this document type" ds[2] = "Experimental "readme" format" ds[3] = "RELAX NG" ds[4] = "Website Layout" ds[5] = "Webpage" ds[6] = "XSL stylesheet" ds[7] = "DocBook" ds[8] = "Conglomerate Display Specification" ds[9] = "Apache Documentation DTD v1.2" ds[10] = ""Kernel Traffic" Newsletter" ds[11] = "XHTML 1.0 (strict)" ds[12] = "TEI Lite" ds[13] = "Digital Scriptorium" The 13th dispspec (Digital Scriptorium) is the one I added before launching C. > IIRC there is _in_ conge a display spec file edit function, > that can reload the fresh edited dot xds. Having to restart Conglomerate in case you add a new dispspec doesn't look particularly cumbersome, provided that dropping it in the appropriate directory and restarting the program actually means having the dispspec working. In fact, this is what happens when I try to load a DS document: ** Message: coverage of TEI Lite = 0,838710 ** Message: coverage of Digital Scriptorium = 0,991935 Here Conglomerate identifies the DS dispspec as being the closest one to the document, then prints these lines ** Message: searching for "paragraph" found "admonition" ** Message: searching for "paragraph" found "listitem" ** Message: searching for "paragraph" found "paragraph" And dies. For one of my sample documents I also get this: ** (conglomerate:4118): WARNING **: unable to convert attribute end index 4 ** (conglomerate:4118): WARNING **: unable to convert attribute end index 4 I wonder if it's because of some mistakes I could have done in modifying the TEI lite dispspec to generate the DS one. Ciao -- Roberto Rosselli Del Turco roberto.rossellidelturco at unito.it Dipartimento di Scienze rosselli at ling.unipi.it del Linguaggio Then spoke the thunder DA Universita' di Torino Datta: what have we given? (TSE) Hige sceal the heardra, heorte the cenre, mod sceal the mare, the ure maegen litlath. (Maldon 312-3)