"degrees" notation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Spartanicus

    "degrees" notation

    What is the correct notation for the "degree" symbol as used for angular
    measure?

    --
    Spartanicus
  • SamMan

    #2
    Re: "degrees&q uot; notation

    "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]


    &deg;

    --
    SamMan
    Rip it to reply


    Comment

    • Jukka K. Korpela

      #3
      Re: &quot;degrees&q uot; notation

      "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]
      > &deg;[/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
      &#176; is yet another, and works marginally better than &deg; (mainly
      in the sense that if you, for some odd reason, wish to use real XHTML,
      then browsers are not required to know &deg;, 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&deg;, so the OP's situation might
      be good in this respect. But IE does break e.g. &deg;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>&deg;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">&deg;F</span>.

      --
      Yucca, http://www.cs.tut.fi/~jkorpela/
      Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

      Comment

      • Firas D.

        #4
        Re: &quot;degrees&q uot; notation

        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&deg;, so the OP's situation might
        > be good in this respect. But IE does break e.g. &deg;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>&deg;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">&deg;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?

        Comment

        • Jukka K. Korpela

          #5
          Re: &quot;degrees&q uot; notation

          "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.

          --
          Yucca, http://www.cs.tut.fi/~jkorpela/
          Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

          Comment

          • George Lund

            #6
            Re: &quot;degrees&q uot; notation

            In message <Xns948C1D1A211 A6jkorpelacstut fi@193.229.0.31 >, Jukka K.
            Korpela <jkorpela@cs.tu t.fi> writes[color=blue]
            >And
            >&#176; is yet another, and works marginally better than &deg; (mainly
            >in the sense that if you, for some odd reason, wish to use real XHTML,
            >then browsers are not required to know &deg;, 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 &deg;.
            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 &deg; or not understanding XHTML full
            stop.

            --
            George Lund

            Comment

            • Dave Patton

              #7
              Re: &quot;degrees&q uot; notation

              "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]
              >> &deg;[/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&deg;, so the OP's situation might
              > be good in this respect. But IE does break e.g. &deg;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&deg;N 123&deg;W" will break :-)

              --
              Dave Patton
              Canadian Coordinator, Degree Confluence Project

              My website: http://members.shaw.ca/davepatton/

              Comment

              • Jukka K. Korpela

                #8
                Re: &quot;degrees&q uot; notation

                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&deg;N 123&deg;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&deg; N 123&deg; 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&deg;&nbsp;N 123&deg;&nbsp;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&deg;&nbsp;N 123&deg;&nbsp;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; }

                --
                Yucca, http://www.cs.tut.fi/~jkorpela/
                Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

                Comment

                • Stan Brown

                  #9
                  Re: &quot;degrees&q uot; notation

                  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&deg; N 123&deg; W[/color]

                  I don't have a cite, but I'm pretty sure I've seen global
                  coordinates as 50N&nbsp;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.

                  HTML 4.01 spec: http://www.w3.org/TR/html401/
                  validator: http://validator.w3.org/
                  CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
                  2.1 changes: http://www.w3.org/TR/CSS21/changes.html
                  validator: http://jigsaw.w3.org/css-validator/

                  Comment

                  Working...