Arne <arne.luras (AT) telia (DOT) com> wrote:
Quote:
I would use the entity ″
But since the meter system is what we use, I print out "inch" on those
occasions I have to. :-) |
Originally, entities were introduced into SGML with the idea that
constructs like ″ could have different definitions in different
situations, resulting in different renderings. For example, a primitive
system could use the Ascii quotation mark, an advanced one could use the
double prime character, and a name (in a suitable language) could be used
too.
HTML took just the idea of entities as "named character references" and
gave them fixed meanings.
To make things worse, there's no way to refer to entities (or character
references) in CSS. They basically don't exist in CSS, since CSS "sees"
just the parsed characters.
This means that to get variation in rendering, according to browsing
situations, we would need clumsy constructs like
<span class="Prime">″</span>
with CSS code like
.Prime { content: " inches"; }
or, as the case may be,
.Prime { content: "\22 "; }
And this approach is currently supported by minority browsers only.
(Of course, the use of ″ vs. ″ vs. the double prime as a
charcter is irrelevant here.)
(In fact it might be better to use <span class="Prime">"</span>, since
this would work very robustly in non-CSS situations.)
--
Yucca,
http://www.cs.tut.fi/~jkorpela/