A Simple Character Entity Chart

原文出自http://evolt.org/entities#h-24.2

For those who use characters in their copy that don't normally appear on the keyboard, it's always been a hit-and-miss game of tracking down the ISO character entity and choosing between the named and numeric value. In fact, so many books on HTML, as well as online resources, have provided the wrong entities for so long, few knew it until the W3C validator started throwing them back as errors. You can't imagine how many em-dashes I had to find and convert from — to the correct —.

The W3C character entity reference is certainly definitive, but not practical. It offers no display of how these entities might be rendered, leaving you to copy and paste based on descriptions until you find the right one.

Well, I got sick of guessing, so I took the W3C documentation and turned it into a handy chart for my staff. Now it sits on our intranet for all to enjoy. Oh... and here... now... as well.

For those who might not normally use character entities, or who've never heard of The Elements of Typographic Style, you might not have been exposed to reasons why you would even care about characters not on your keyboard. I'd suggest you surf over to the A List Apart article The Trouble With EM 'n EN.

By the way, if you need to know what browsers support what character entities, just view this page and look for the characters in the tables. One column shows the character as called by its numeric entity, and one shows it as called by its named entity. This is the chart for HTML 4.x, but also applies to XHTML 1.x.

table.data { border-top: 1px solid #000000 ; border-right: 0px ; border-bottom: 0px ; border-left: 1px solid #000000 ; } table.data th, table.data td { border-top: 0px ; border-right: 1px solid #000000 ; border-bottom: 1px solid #000000 ; border-left: 0px ; padding: 3px 3px 3px 3px ; }

Character entity references in HTML 4

The charts below will allow you to copy and paste the appropriate character and numeric entities for your documents. To be sure a particular browser supports the entities (both named and numeric), simply open your browser to this pages and view the charts. If the character you want doesn't appear in the target browser, it doesn't work (simple, huh?).

What you'll find below is the copy of the character entity specification from the W3C with my tabled versions of the entities interspersed.

24.1 Introduction to character entity references

A character entity reference is an SGML construct that references a character of the document character set.

HTML 4.x, as well as XHTML 1.x, supports several sets of character entity references:

The following sections present the complete lists of character entity references.

ISO 8859-1

24.2 Character entity references for ISO 8859-1 characters

The character entity references in this section produce characters whose numeric equivalents should already be supported by conforming HTML 2.0 user agents. Thus, the character entity reference ÷ is a more convenient form than ÷ for obtaining the division sign (÷).

To support these named entities, user agents need only recognize the entity names and convert them to characters that lie within the repertoire of [ISO88591].

Character 65533 (FFFD hexadecimal) is the last valid character in UCS-2. 65534 (FFFE hexadecimal) is unassigned and reserved as the byte-swapped version of ZERO WIDTH NON-BREAKING SPACE for byte-order detection purposes. 65535 (FFFF hexadecimal) is unassigned.

24.2.1 The list of characters
Character
Entity
Numeric
Entity
CharNumEntity
Description
    non-breaking space
¡¡¡¡inverted exclamation mark
¢¢¢¢cent sign
££££pound sign
¤¤¤¤ currency sign
¥¥¥¥yen sign
¦¦¦¦broken bar
§§§§section sign
¨¨¨¨diaeresis
©©©©copyright sign
ªªªªfeminine ordinal indicator
««««left-pointing double angle quotation mark
¬¬¬¬not sign
­­­­soft hyphen
®®®®registered sign
¯¯¯¯macron
°°°°degree sign
±±±±plus-minus sign
²²²²superscript two
³³³³superscript three
´´´´acute accent
µµµµmicro sign
¶pilcrow sign
····middle dot
¸¸¸¸cedilla
¹¹¹¹superscript one
ººººmasculine ordinal indicator
»»»»right-pointing double angle quotation mark
¼¼¼¼vulgar fraction one quarter
½½½½vulgar fraction one half
¾¾¾¾vulgar fraction three quarters
¿¿¿¿inverted question mark
ÀÀÀÀlatin capital letter A with grave
ÁÁÁÁlatin capital letter A with acute
ÂÂÂÂlatin capital letter A with circumflex
ÃÃÃÃlatin capital letter A with tilde
ÄÄÄÄ latin capital letter A with diaeresis
ÅÅÅÅlatin capital letter A with ring above
ÆÆÆÆlatin capital letter AE
ÇÇÇÇlatin capital letter C with cedilla
ÈÈÈÈlatin capital letter E with grave
ÉÉÉÉlatin capital letter E with acute
ÊÊÊÊlatin capital letter E with circumflex
ËËËËlatin capital letter E with diaeresis
ÌÌÌÌlatin capital letter I with grave
ÍÍÍÍlatin capital letter I with acute
ÎÎÎÎlatin capital letter I with circumflex
ÏÏÏÏlatin capital letter I with diaeresis
ÐÐÐÐlatin capital letter ETH
ÑÑÑÑlatin capital letter N with tilde
ÒÒÒÒlatin capital letter O with grave
ÓÓÓÓlatin capital letter O with acute
ÔÔÔÔlatin capital letter O with circumflex
ÕÕÕÕlatin capital letter O with tilde
ÖÖÖÖlatin capital letter O with diaeresis
××××multiplication sign
ØØØØlatin capital letter O with stroke
ÙÙÙÙlatin capital letter U with grave
ÚÚÚÚlatin capital letter U with acute
ÛÛÛÛlatin capital letter U with circumflex
ÜÜÜÜlatin capital letter U with diaeresis
ÝÝÝÝlatin capital letter Y with acute
ÞÞÞÞlatin capital letter THORN
ßßßßlatin small letter sharp s
ààààlatin small letter a with grave
áááá latin small letter a with acute
ââââlatin small letter a with circumflex
ããããlatin small letter a with tilde
äääälatin small letter a with diaeresis
åååålatin small letter a with ring above
æææælatin small letter ae
ççççlatin small letter c with cedilla
èèèèlatin small letter e with grave
éééélatin small letter e with acute
êêêêlatin small letter e with circumflex
ëëëëlatin small letter e with diaeresis
ììììlatin small letter i with grave
íííílatin small letter i with acute
îîîîlatin small letter i with circumflex
ïïïïlatin small letter i with diaeresis
ððððlatin small letter eth
ññññlatin small letter n with tilde
òòòòlatin small letter o with grave
óóóólatin small letter o with acute
ôôôôlatin small letter o with circumflex
õõõõlatin small letter o with tilde
öööölatin small letter o with diaeresis
÷÷÷÷division sign
øøøølatin small letter o with stroke
ùùùùlatin small letter u with grave
úúúúlatin small letter u with acute
ûûûûlatin small letter u with circumflex
üüüülatin small letter u with diaeresis
ýýýýlatin small letter y with acute
þþþþlatin small letter thorn
ÿÿÿÿlatin small letter y with diaeresis

Symbols, Mathematical Symbols, and Greek Letters

24.3 Character entity references for symbols, mathematical symbols, and Greek letters

The character entity references in this section produce characters that may be represented by glyphs in the widely available Adobe Symbol font, including Greek characters, various bracketing symbols, and a selection of mathematical operators such as gradient, product, and summation symbols.

To support these entities, user agents may support full [ISO10646] or use other means. Display of glyphs for these characters may be obtained by being able to display the relevant [ISO10646] characters or by other means, such as internally mapping the listed entities, numeric character references, and characters to the appropriate position in some font that contains the requisite glyphs.

When to use Greek entities. This entity set contains all the letters used in modern Greek. However, it does not include Greek punctuation, precomposed accented characters nor the non-spacing accents (tonos, dialytika) required to compose them. There are no archaic letters, Coptic-unique letters, or precomposed letters for Polytonic Greek. The entities defined here are not intended for the representation of modern Greek text and would not be an efficient representation; rather, they are intended for occasional Greek letters used in technical and mathematical works.

24.3.1 The list of characters
Character
Entity
Numeric
Entity
CharNumEntity
Description
ƒƒƒƒlatin small f with hook
ΑΑΑΑgreek capital letter alpha
ΒΒΒΒgreek capital letter beta
ΓΓΓΓgreek capital letter gamma
ΔΔΔΔgreek capital letter delta
ΕΕΕΕgreek capital letter epsilon
ΖΖΖΖgreek capital letter zeta
ΗΗΗΗgreek capital letter eta
ΘΘΘΘgreek capital letter theta
ΙΙΙΙgreek capital letter iota
ΚΚΚΚgreek capital letter kappa
ΛΛΛΛgreek capital letter lambda
ΜΜΜΜgreek capital letter mu
ΝΝΝΝgreek capital letter nu
ΞΞΞΞgreek capital letter xi
ΟΟΟΟgreek capital letter omicron
ΠΠΠΠgreek capital letter pi
ΡΡΡΡgreek capital letter rho
ΣΣΣΣgreek capital letter sigma
ΤΤΤΤgreek capital letter tau
ΥΥΥΥgreek capital letter upsilon
ΦΦΦΦgreek capital letter phi
ΧΧΧΧgreek capital letter chi
ΨΨΨΨgreek capital letter psi
ΩΩΩΩgreek capital letter omega
ααααgreek small letter alpha
ββββgreek small letter beta
γγγγgreek small letter gamma
δδδδgreek small letter delta
εεεεgreek small letter epsilon
ζζζζgreek small letter zeta
ηηηηgreek small letter eta
θθθθgreek small letter theta
ιιιιgreek small letter iota
κκκκgreek small letter kappa
λλλλgreek small letter lambda
μμμμgreek small letter mu
ννννgreek small letter nu
ξξξξgreek small letter xi
οοοοgreek small letter omicron
ππππgreek small letter pi
ρρρρgreek small letter rho
ςςςςgreek small letter final sigma
σσσσgreek small letter sigma
ττττgreek small letter tau
υυυυgreek small letter upsilon
φφφφgreek small letter phi
χχχχgreek small letter chi
ψψψψgreek small letter psi
ωωωωgreek small letter omega
ϑϑϑϑgreek small letter theta symbol
ϒϒϒϒgreek upsilon with hook symbol
ϖϖϖϖgreek pi symbol
•bullet
…horizontal ellipsis
′primeminutes
″double prime
‾overline
⁄fraction slash
℘script capital P
ℑblackletter capital I
ℜblackletter capital R
™trade mark sign
ℵalef symbol
←leftwards arrow
↑upwards arrow
→rightwards arrow
↓downwards arrow
↔left right arrow
↵downwards arrow with corner leftwards
⇐leftwards double arrow
⇑upwards double arrow
⇒rightwards double arrow
⇓downwards double arrow
⇔left right double arrow
∀for all
∂partial differential
∃there exists
∅empty set
∇nabla
∈element of
∉not an element of
∋contains as member
∏n-ary product
∑n-ary sumation
−minus sign
∗asterisk operator
√square root
∝proportional to
∞infinity
∠angle
∧logical and
∨logical or
∩intersection
∪union
∫integral
∴therefore
∼tilde operator
≅approximately equal to
≈almost equal to
≠not equal to
≡identical to
≤less-than or equal to
≥greater-than or equal to
⊂subset of
⊃superset of
⊄not a subset of
⊆subset of or equal to
⊇superset of or equal to
⊕circled plus
⊗circled times
⊥up tack
⋅dot operator
⌈left ceiling
⌉right ceiling
⌊left floor
⌋right floor
⟨left-pointing angle bracket
⟩right-pointing angle bracket
◊lozenge
♠black spade suit
♣black club suit
♥black heart suit
♦black diamond suit

Markup-Significant and Internationalization Characters

24.4 Character entity references for markup-significant and internationalization characters

The character entity references in this section are for escaping markup-significant characters (these are the same as those in HTML 2.0 and 3.2), for denoting spaces and dashes. Other characters in this section apply to internationalization issues such as the disambiguation of bidirectional text (see the section on bidirectional text for details).

Entities have also been added for the remaining characters occurring in CP-1252 which do not occur in the HTMLlat1 or HTMLsymbol entity sets. These all occur in the 128 to 159 range within the CP-1252 charset. These entities permit the characters to be denoted in a platform-independent manner.

To support these entities, user agents may support full [ISO10646] or use other means. Display of glyphs for these characters may be obtained by being able to display the relevant [ISO10646] characters or by other means, such as internally mapping the listed entities, numeric character references, and characters to the appropriate position in some font that contains the requisite glyphs.

24.4.1 The list of characters
Character
Entity
Numeric
Entity
CharNumEntity
Description
""""quotation mark
&&&&ampersand
&lt;<<<less-than sign
&gt;>>>greater-than sign
&OElig;ŒŒŒlatin capital ligature OE
&oelig;œœœlatin small ligature oe
&Scaron;ŠŠŠlatin capital letter S with caron
&scaron;šššlatin small letter s with caron
&Yuml;ŸŸŸlatin capital letter Y with diaeresis
&circ;ˆˆˆmodifier letter circumflex accent
&tilde;˜˜˜ small tilde
&ensp;en space
&emsp;em space
&thinsp;thin space
&zwnj;zero width non-joiner
&zwj;zero width joiner
&lrm;left-to-right mark
&rlm;right-to-left mark
&ndash;en dash
&mdash; em dash
&lsquo;left single quotation mark
&rsquo;right single quotation mark
&sbquo;single low-9 quotation mark
&ldquo;left double quotation mark
&rdquo;right double quotation mark
&bdquo;double low-9 quotation mark
&dagger; dagger
&Dagger;double dagger
&permil;per mille sign
&lsaquo;single left-pointing angle quotation mark
&rsaquo;single right-pointing angle quotation mark
&euro;euro sign

转载于:https://www.cnblogs.com/suchangyu/archive/2009/09/10/1563770.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值