Re: Support for Templates (Text Snipplets)?
David Malcolm <[email protected]> Wed, 21 Jul 2004 15:18:12 -0400
| Newsgroups | gmane.editors.conglomerate.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2004-07-21 at 16:27 +0200, Kussmaul Michael wrote: > Hi > > Conglomerate looks really nice and good - I looked through your messages Thanks! > archives but could not find a answer if Conglomerate would support > text-templates: > > E.g. to compile different documents which all contain some text-snipplets > from a central repository. This way you can write details > text-snipplets/templates and put them into a repository. Later when writting > the actual documents you could just drag&drop those snipplets into the main > document - this way the Introduction, Overview or Manual could share the > same text-snipplets, just in the overview document contains only of few > snipplets, where the Manual would contain even more and the developer-docu > even more snipplets. If one sniplet would be changed the changes would be > propagated to all documents (so each document would only link to those > snipplets and would not copy them over) > > Not sure, if you have plans to do something similar? Or if it is already > included :-) There are two things you could have: (i) we have some support for template _documents_; these should appear when you do a File->New, so that if your documents always start in a particular way you can handle this. (ii) The "snippets" idea sounds a lot like XML's concept of an "entity". We have the beginnings of support for editing these. Basically, you can create an XML file containing the snippet you want, and reference it as an entity from other files; alternatively you define the entity at the top of a file and reference it in multiple places within that file. Unfortunately various parts of entity support are currently broken in Conglomerate - we don't have a UI for creating/inserting entities (added to Bugzilla as bug #148114), you can edit entities in-place (but Conglomerate doesn't realise they're in a separate file and hence won't save the changes back - added to Conglomerate as bug #148116), and Conglomerate can't load the entities in separate files due to problems with the VFS layer (in Bugzilla as bug #111585, hope to solve this using libgsf); entities defined at the top of the file should work though. Patches gratefully accepted! Dave > > kind regards > Michael > > _______________________________________________ > Conglomerate mailing list > [email protected] > http://lists.copyleft.no/mailman/listinfo/conglomerate