"Spartanicu s" <me@privacy.net > wrote in message
news:vnji20dvke 7895d7d6a0f66ms eo0l0lgg5@news. spartanicus.utv internet.ie...[color=blue]
> What is the correct notation for the "degree" symbol as used for angular
> measure?
>
> --
> Spartanicus[/color]
"SamMan" <sam@psfdevri p-it.com> wrote:
[color=blue][color=green]
>> What is the correct notation for the "degree" symbol as used for
>> angular measure?[/color][/color]
- -[color=blue]
> °[/color]
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>.
Jukka K. Korpela wrote:
[color=blue]
> 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>.
>[/color]
This is probably a theoretical question, even if it is in (x)html specs,
but: aren't there such thing as empty characters which signify that
there should be no line-break between the characters they're adjacent to?
"Firas D." <fd-nospam-@firasd.org> wrote:
[color=blue]
> This is probably a theoretical question, even if it is in (x)html
> specs, but: aren't there such thing as empty characters which
> signify that there should be no line-break between the characters
> they're adjacent to?[/color]
There are, but those characters are poorly supported by browsers, and
when they aren't supported, the situation gets bad since there are
spurious symbols like rectangles in the midst of strings. See http://www.cs.tut.fi/~jkorpela/html/nobr.html#wj for details.
In message <Xns948C1D1A211 A6jkorpelacstut fi@193.229.0.31 >, Jukka K.
Korpela <jkorpela@cs.tu t.fi> writes[color=blue]
>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?[/color]
I don't think that's true: certainly a generic XML parser is not
required to validate, and is therefore not required to know about °.
But a browser that claims to understand XHTML should be able to make use
of all of named entities, just as it must follow the XHTML specification
on the semantics of the elements and document structure.
That's my understanding anyway, and it doesn't change the reality of
some browsers not understanding ° or not understanding XHTML full
stop.
"Jukka K. Korpela" <jkorpela@cs.tu t.fi> wrote in
news:Xns948C1D1 A211A6jkorpelac stutfi@193.229. 0.31:
[color=blue]
> "SamMan" <sam@psfdevri p-it.com> wrote:
>[color=green][color=darkred]
>>> What is the correct notation for the "degree" symbol as used for
>>> angular measure?[/color][/color]
> - -[color=green]
>> °[/color][/color]
[color=blue]
> 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.[/color]
And on our website(which by no means purports to be a good
example of how to code HTML ;-) we have the problem of
whether/how things like "50°N 123°W" will break :-)
--
Dave Patton
Canadian Coordinator, Degree Confluence Project
Dave Patton <none@none.co m> wrote:
[color=blue]
> And on our website(which by no means purports to be a good
> example of how to code HTML ;-) we have the problem of
> whether/how things like "50°N 123°W" will break :-)[/color]
Actually I think the most correct notation would use a space between
the degree sign and the letter, since the degree sign associates with
the preceding number and the letter is a separate indicator:
50° N 123° W
This would give even more breaking opportunities, of course. But the
space could be made a no-break space, and it seems that even IE works
right then:
50° N 123° W
You could naturally turn the remaining space a no-break space too.
If the space looks too wide, you could try and make it narrower by
using the CSS property word-spacing with a negative value, though this
means extra markup, e.g.
<span class="coord">5 0° N 123° W </span>
with
.coord { word-spacing: -0.08em; }
If you do that, you might almost as well use normal spaces and just add
.coord { white-space: nowrap; }
It seems "Jukka K. Korpela" wrote in
comp.infosystem s.www.authoring.html:[color=blue]
>Actually I think the most correct notation would use a space between
>the degree sign and the letter, since the degree sign associates with
>the preceding number and the letter is a separate indicator:
>50° N 123° W[/color]
I don't have a cite, but I'm pretty sure I've seen global
coordinates as 50N 123W. Maybe in a military context?
--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
DRAGON222 menjadi link resmi Sportsbook terunggul . Sistem cepat respon, tampilan sangat lancar anti lag, dan kemungkinan menang terjadi pada tekad kuat anda.
Comment