"SamMan" <sa*@psfdevrip-it.com> wrote:
What is the correct notation for the "degree" symbol as used for
angular measure?
- - °
Well, yes, that's a correct notation. Another one is the degree sign as
a character, properly encoded in whatever encoding you're using. And
° is yet another, and works marginally better than ° (mainly
in the sense that if you, for some odd reason, wish to use real XHTML,
then browsers are not required to know °, and some of them actually
don't). - But this is mostly in the FAQ, is it not?
But the really nasty thing about the degree sign is that some browsers
have started implementing the worst part of Unicode line breaking
rules. This includes the possibility of breaking a line before or after
a character in situations where it makes no sense.
As far as I can, even IE 6 (which is notorious for breaking lines when
don't want that, see
http://www.cs.tut.fi/~jkorpela/html/nobr.html )
does not break an expression like 90°, so the OP's situation might
be good in this respect. But IE does break e.g. °F into two
characters, the degree sign alone at the end of a line and the letter F
at the start of the next line. The most effective cure is
<nobr>°F</nobr>. It's not allowed in any official HTML
specification, but the officially approved way is even more awkward:
<span style="white-space: nowrap">°F</span>.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html