Re: special character "SM"

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 UTC