Re: Good News



* Owen Taylor (otaylor@redhat.com) wrote at 19:11 on 28/08/00:
> 
> Ali Abdin <aliabdin@aucegypt.edu> writes:
> 
> > &hellip; and &mdash; do not work. I do not know if they will work at all. We
> > can 'special case' them though and do something like:
> > if (g_strcasecmp (name, "hellip")
> > 	g_print ("...");
> 
> Where do you expect the definitions to come from, thin air?

I was not thinking straight :) I was half asleep/tired when I wrote the mail
:)
 
> Basically, the definitions have to be somewhere, and it might
> as well be a table in your source code - just have a table
> in your source code that maps from entity to replacement text.
> 
> You can initialize a hash table from the static table to
> avoid doing too many strcmps.

Yup - hash table would work beautifully for this :)

> BTW - it probably would be a good strategy to pass through 
> unrecognized entities - many entities, including &hellip;
> are shared between Docbook and HTML.

Yeah - I was told this today by John Fleck. I tried &hellip; and &mdash; in
Netscape - they didn't render so I didn't think they were HTML entities. But
apparently they render in Mozilla. 

We use gtkhtml right now which seems to be a bit too 'lightweight' for
gnome-db2html2.

Regards,
Ali





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]