|
From: Adam C. <ad...@ch...> - 2002-07-11 02:17:56
|
On Wed, 10 Jul 2002 21:59:53 -0400 David Goodger <go...@us...> wrote: > > ... I want to do have news items on the same page for which I > > intended to utilize the bibliographic fields repeatedly (once for > > each news item, for since the author of each news item can vary and > > definately the date). > > Be careful: although you can use "field lists" repeatedly in a > document, only the first field list (before anything but the document > title/subtitle) is converted into a **bibliographic** field list. Yes, I know. The idea is that every news item will be a separate reST file (I need that anyway, for easy separation into current and old news) so the fields will be counted as bibliographic ones. Ofcourse, I will be wanting a totally different layout of these fields than the HTML writer does, so this will definately be a custom writer/frontend. > >> I can think of several ways to do what you describe: > ... > >> Which were you thinking of? > > > > Something along the lines of (1), although I did not intend to write > > the index page in reST with special directives but rather write a > > script that calls the docutils tools to generate the full documents > > and extract the abstracts into files, which would then be > > concatenated with some extra HTML inserted before/after and between > > them. > > Sounds reasonable. You'll still need a specialized front-end to write > out both the full processed file and just the abstract. No need for a > "transform" per se. Perhaps a subclass of the HTML writer, which > knows how to special-case the abstract. Either way, it would be a > customization that probably only you would use, and therefore doesn't > belong in Docutils. I would think it could be useful for more people, but YMMV ofcourse (and nobody else has said anything, so...). Perhaps this would fit into the sandbox, or perhaps some other area of "contributed extras"? That might be usefull anyhow, when docutils starts to get used a little more and people write their own modifications. [writer.body] Thanks for the info! [decorations] > Or a templating engine. Yes, but that's a bit overkill for my needs right now. --- Adam Chodorowski <ad...@ch...> nohup rm -fr /& |