I've got the definitive handle on the reason why the suit symbols look so bad on IE (only < 6.0 - that's OK). Ed Colley, more usually featuring as bridge partner writes;

Here's an explanation of why Mozilla handles the Symbol font the way that it does. First a bit of background: The ASCII (or ISO Latin 1) 8-bit character set uses 97 for "a". The Symbol font has a lower-case alpha character at glyph index 97.

Historically, character numbers and glyph indices were identical (possibly with a choice of "code pages"). So an old application, when attempting to display "a" in the Symbol font will display an alpha.

This was useful behaviour before the wide acceptance of unicode, although limited to people with the same Symbol font, with the same characters at the same indices. In a unicode world, the direct link between character numbers and font glyph indices no longer holds, mainly because very few fonts support all unicode characters.

A unicode-aware application can easily display an alpha by requesting the glyph for entity &alpha; (unicode &#03B1;). The entity &alpha; can be correctly processed by any unicode application.

So if a unicode-aware application is processing a document with the entity &#97; (which corresponds to lower case "a") and the current font is Symbol, what should it do? The backward compatible behaviour is to display glyph 97 from the Symbol font, which is a lower case alpha. The forward-looking behaviour is to attempt to display a latin lower case "a". Since Symbol does not have such a character, a replacement will have to be found from a visually-similar font. This is what Mozilla does when rendering HTML.

Although it can (and is) argued that the Mozilla approach is unhelpful, it is certainly the case that using &alpha; (finally - α) and the like is the way to go.

So there you go...


Some time since the last post, but then again, some time since the last change of substance.

The EADT pages continue to grow week by week but I've now re-written the HTML generation so that there are a few extra features together with some formatting changes. Now I think the suit symbols should appear on all browsers. That said, they may not actually look as good on IE as they used to - an effect of moving from the Symbol font and the hard-coded character codes to the entity codes '&spades;' etc. together with a regular font (I chose Courier).

That's it - happy to take any feedback.

About

Bridge

My Blogs
   New Cat Diary
   Under the Table

Logic

Odds&Ends

Wine

Blogs I've found
   Hemingway
   Pepys Diary

Links not blogs
   Chris Rae

Ecats logo
Valid HTML 4.01!
This page is powered by Blogger. Isn't yours?