- From: Masayasu Ishikawa <mimasa@w3.org>
- Date: Tue, 09 Oct 2001 23:44:31 +0900 (JST)
- To: ij@w3.org
- Cc: ddorsey@progress.com, site-comments@w3.org
"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, ℠ represents the "sm" (letterlike) character. > > So in an HTML or XHTML document, you can write: > > <p>This is my service mark<sup>ࡈ</sup>.</p> No, ℠ or ℠. And you should not use the "sup" element, since "SERVICE MARK" character in Unicode is defined to have superscript glyph. > 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 (℠), and of course if you have an appropriate font. 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, ® is recognized as the registered > trade mark sign (whose hex representation is Ŵ). Its hex representation is ®. 174 is decimal. > [0] http://www.unicode.org/ > [1] http://www.w3.org/TR/html401/charset > [2] http://www.unicode.org/charts/ > [3] http://www.unicode.org/charts/PDF/U2100.pdf > [4] http://www.w3.org/TR/html401/sgml/entities.html Regards, -- Masayasu Ishikawa / mimasa@w3.org W3C - World Wide Web Consortium
Received on Tuesday, 9 October 2001 10:44:40 UTC