On Tue, 20 Apr 2004, Matheson, David A. (JUS) wrote:

> I have one more question, then I promise to stop bugging you.  I emailed the
> following to Tony 2 weeks ago and he responded as follows:
> 
> At 03:34 on Wednesday, 07 Apr 2004, Matheson, David A. (JUS) wrote:
> 
> > Hi there,
> >
> >
> > I have a question about the search results output page.  Whenever I  
> > perform
> > a search, the results page uses what looks like to be both Arial and  
> > Times
> > New Roman fonts.  I was wondering if you know what might be causing this  
> > and
> > what I have to set to force Arial as the output font.  You can see what  
> > I'm
> > talking about by running a search on something at
> > http://www.fidus.ca/test_search_index.htm
> > <http://www.fidus.ca/test_search_index.htm> .  I tried modifying the
> > style.css file in the htdig directory but that doesn't seem to make a
> > difference.  Thanks for any help you can give me.
> 
> all but the first result are enclosed in <tt> tags (the first has and end  
> </tt> but not a beginning
> 
> where are they coming from?
> 
> 2 choices:
> 
> find where you've added <tt> in a results template (long.html?)
> 
> or apply a style to <tt> in your CSS
> 
> I'm still having this problem.  I have no <tt> in my long.html but I tried
> adding them in and it didn't seem to have any effect - my output still used
> Arial and Times New Roman.  If you click on the link above you can see what
> I'm talking about.

The problems you are seeing are due to the fact that your 'tt' elements
are often as not ending up unbalanced. If you page through results for a
few different queries, you will mostly likely see that the excerpt text is
changing back and forth between your regular font and whatever font you
have associated with the 'tt' element.

It looks like the cause of the problem is incorrect settings for your
start_ellipses and end_ellipses attributes. You appear to be using '<tt>
<b>EXCERPT :</b>' for start_ and '</tt>' for end_. Although the attributes
weren't really meant to be used this way, this would work OK for cases
where the excerpt is not at the beginning or end of the document. However
in all other cases you only have ellipses at the beginning *or* the end of
the excerpt. If they are only at the beginning, you have an opening 'tt'
with no corresponding close. If they are only at the end, you get the
opposite case.

The assumption with the *_ellipses attributes is that any element that you
open in a given attribute is also closed in that attribute. If I
understand correctly what you are trying to accomplish, you will want to
get rid of all 'tt' elements, both in your output template and your
*_ellipses attributes.

Jim




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to