From: Gilles D. <gr...@sc...> - 2001-11-01 21:19:19
|
According to Wolfgang Mueller: > On Tuesday 30 October 2001 19:06, Geoff Hutchison wrote: > > On Tue, 30 Oct 2001, Wolfgang Mueller wrote: > > > E.g. are you using GNU Emacs for indenting? > > > > Yes, but there's no set policy. I try to uphold indenting near the code > > itself, or use the standard Emacs indenting for C++ mode. > > > > -Geoff > Hi, > I just found out that for what I want to do (a htdig plugin for the GIFT) I > have to do very very little because of the great configurability of htdig > (congrats and thanks to you): > > So in fact, what I am going to do is to call a very slightly modified version > of htsearch (stripped of the CGI stuff, slightly stripped display routines) > with a config file that produces MRML (the GIFT's communication protocol, > XML-based), which I will popen, and parse into XML to integrate it with the > GIFT's other query results. Before you go stripping out code from htsearch and end up having to maintain another search program in parallel to htsearch, be sure you fully investigate the template capabilities of htsearch. There's almost nothing in the output that you can change through some template file and/or config attribute. In fact, I recently committed to the 3.1.6 development code a number of new attributes that take care of the last few remaining areas that weren't configurable. See the new attribute search_results_contenttype in this coming Sunday's 3.1.6 snapshot, as well as the existing add_anchors_to_excerpt attribute. > What I would like to know: the summary strings you generate, are they > well-formed XML (in particular is there for each opening tag also a closing > tag? ) You probably want to turn off anchors in excerpts (although they are well-formed HTML/XHTML), and all the rest is under control of the template files. I think the distributed templates are all well-formed with closing tags. Exceptions to this right now are the <br>, <hr>, <img>, <input> and <option> tags in the header, footer, nomatch, syntax and wrapper HTML files, but you're going to change them anyway. Oh, there's also a non-self-terminating <br> tag in long.html and short.html that you may want to change to <br/> or remove. -- Gilles R. Detillieux E-mail: <gr...@sc...> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 |