W3C home > Mailing lists > Public > site-comments@w3.org > October 2001

Re: special character "SM"

From: Ian B. Jacobs <ij@w3.org>
Date: Tue, 09 Oct 2001 10:48:00 -0400
Message-ID: <3BC30E20.258744B4@w3.org>
To: Masayasu Ishikawa <mimasa@w3.org>
CC: ddorsey@progress.com, site-comments@w3.org
Masayasu Ishikawa wrote:
> 
> "Ian B. Jacobs" <ij@w3.org> wrote:
> 
> >   The chart tells me that "tm" has character code 2122 and "sm"
> >   has character code 2120. These are hex numbers.
> >
> > Chapter 5 [1] of the HTML 4.01 spec explains how to represent
> > Unicode characters when you know their hex character codes.
> > For instance, &#x2120; represents the "sm" (letterlike) character.
> >
> > So in an HTML or XHTML document, you can write:
> >
> >  <p>This is my service mark<sup>&#2120;</sup>.</p>
> 
> No, &#x2120; 

Sorry about that: I left out the "x" in the example. 

> or &#8480;.  And you should not use the "sup" element,
> since "SERVICE MARK" character in Unicode is defined to have
> superscript glyph.

Thanks Mimasa, I didn't know that.
 
> > However, I doubt that many browsers will actually render the
> > desired "sm" character.
> 
> Mozilla / Netscape 6 rendered SM on Mac / Windows, Netscape
> Communicator 4.78 rendered it on Windows 2000 it a document is
> served as UTF-8, and even Netscape Communicator 4.08 can render
> it if you use decimal numeric character reference (&#8480;), and
> of course if you have an appropriate font.

Do you have any data on whether this is true "in general": that
browsers are more likely to handle correctly when represented
in decimal form?

>   Mozilla on FreeBSD
> rendered it as "^(SM)", maybe just because I don't have an
> appropriate font.  Neither IE 6 on Windows nor IE 5 on Mac seems
> to work, nor does Opera.
> 
> > Chapter 24 of HTML 4.01 includes some abbreviations for
> > frequently used characters (called "character entity
> > references"). Thus, &reg; is recognized as the registered
> > trade mark sign (whose hex representation is &#x174;).
> 
> Its hex representation is &#xAE;.  174 is decimal.

Sorry again for the sloppy response. Thanks Mimasa,

 - Ian

-- 
Ian Jacobs (ij@w3.org)   http://www.w3.org/People/Jacobs
Tel:                     +1 718 260-9447
Received on Tuesday, 9 October 2001 10:49:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 24 October 2012 16:21:26 GMT