Difference between revisions of "Template:General Category (Unicode)"
Jump to navigation
Jump to search
(class="sortbottom") |
imported>DePiep |
||
| (27 intermediate revisions by 16 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {| class="wikitable sortable collapsible {{{state|{{template other|un}}collapsed}}}" style="width:100%; margin:0;" | + | {|class="wikitable sortable collapsible {{{state|{{template other|un}}collapsed}}}" style="width:100%; margin:0;" |
| − | ! colspan=6 style="border:1px solid grey; line-height:1.75em;" | General Category <small>(Unicode [[Unicode character property#General Category|Character Property]])</small> | + | ! colspan=6 style="border:1px solid grey; line-height:1.75em;" |General Category <small>(Unicode [[Unicode character property#General Category|Character Property]])</small>{{efn|name=fn1|1={{Cite web|url=https://www.unicode.org/versions/Unicode13.0.0/ch04.pdf#G134153|date=March 2020|title=Table 4-4: General Category|publisher=Unicode Consortium|work=The Unicode Standard}}}} {{navbar|General Category (Unicode)|mini=1|style=float:left;padding:2px;}} |
|- | |- | ||
| − | ! Value !! Category Major, minor !! Basic type | + | ! Value !! Category Major, minor !! Basic type{{efn|name=fn2|1={{Cite web|url=https://www.unicode.org/versions/Unicode13.0.0/ch02.pdf#G286941|date=March 2020|title=Table 2-3: Types of code points|publisher=Unicode Consortium|work=The Unicode Standard}}}} !! Character assigned{{efn|name=fn2}} !! Count<br/>{{nowrap|{{nobold|1=(as of 13.0)}}}} !! Remarks |
|- | |- | ||
! | ! | ||
| Line 11: | Line 11: | ||
! | ! | ||
|- | |- | ||
| − | | colspan=6 | | + | |colspan=6 data-sort-value="000" style="font-weight:bold" |L, Letter |
|- | |- | ||
| − | | | + | |data-sort-value="001" |Lu ||Letter, uppercase ||Graphic ||Character || 1,791 || |
|- | |- | ||
| − | | | + | |data-sort-value="002" |Ll ||Letter, lowercase ||Graphic ||Character || 2,155 || |
|- | |- | ||
| − | | | + | |data-sort-value="003" |Lt ||Letter, titlecase ||Graphic ||Character || 31 ||[[Typographic ligature|Ligatures]] containing uppercase followed by lowercase letters (e.g., [[Dž]], [[Lj]], [[Nj]], and [[Dz]]) |
|- | |- | ||
| − | | | + | |data-sort-value="004" |Lm ||Letter, modifier ||Graphic ||Character || 260 || A [[modifier letter]] |
|- | |- | ||
| − | | | + | |data-sort-value="005" |Lo ||Letter, other ||Graphic ||Character || 127,004 || An [[ideograph]] or a letter in a [[unicase alphabet]] |
|- | |- | ||
| − | | colspan=6 | | + | |colspan=6 data-sort-value="010" style="font-weight:bold" |M, Mark |
|- | |- | ||
| − | | | + | |data-sort-value="011" |Mn ||Mark, nonspacing ||Graphic ||Character || 1,839 || |
|- | |- | ||
| − | | | + | |data-sort-value="012" |Mc ||Mark, spacing combining ||Graphic ||Character || 443 || |
|- | |- | ||
| − | | | + | |data-sort-value="013" |Me ||Mark, enclosing ||Graphic ||Character || 13 || |
|- | |- | ||
| − | | colspan=6 | | + | |colspan=6 data-sort-value="020" style="font-weight:bold" |N, Number |
|- | |- | ||
| − | | | + | |data-sort-value="021" |Nd ||Number, decimal digit ||Graphic ||Character || 650 ||All these, and only these, have [[Unicode character property#Numeric values and types|Numeric Type]] = De{{efn|name=fn3|1=[https://www.unicode.org/policies/stability_policy.html#Property_Value Unicode Character Encoding Stability Policies: Property Value Stability] Stability policy: Some gc groups will never change. gc=Nd corresponds with Numeric Type=De (decimal).}} |
|- | |- | ||
| − | | | + | |data-sort-value="022" |Nl ||Number, letter ||Graphic ||Character || 236 ||Numerals composed of letters or letterlike symbols (e.g., [[Roman numerals]]) |
|- | |- | ||
| − | | | + | |data-sort-value="023" |No ||Number, other ||Graphic ||Character || 895 ||E.g., [[fraction (mathematics)|vulgar fractions]], [[superscript]] and [[subscript]] digits |
|- | |- | ||
| − | | colspan=6 | | + | |colspan=6 data-sort-value="030" style="font-weight:bold" |P, Punctuation |
|- | |- | ||
| − | | | + | |data-sort-value="031" |Pc ||Punctuation, connector ||Graphic ||Character || 10 ||Includes "_" [[underscore]] |
|- | |- | ||
| − | | | + | |data-sort-value="032" |Pd ||Punctuation, dash ||Graphic ||Character || 25 ||Includes several [[hyphen]] characters |
|- | |- | ||
| − | | | + | |data-sort-value="033" |Ps ||Punctuation, open ||Graphic ||Character || 75 ||Opening [[bracket]] characters |
|- | |- | ||
| − | | | + | |data-sort-value="034" |Pe ||Punctuation, close ||Graphic ||Character || 73 ||Closing bracket characters |
|- | |- | ||
| − | | | + | |data-sort-value="035" |Pi ||Punctuation, initial quote ||Graphic ||Character || 12 ||Opening [[quotation mark]]. Does not include the ASCII "neutral" quotation mark. May behave like Ps or Pe depending on usage |
|- | |- | ||
| − | | | + | |data-sort-value="036" |Pf ||Punctuation, final quote ||Graphic ||Character || 10 ||Closing quotation mark. May behave like Ps or Pe depending on usage |
|- | |- | ||
| − | | | + | |data-sort-value="037" |Po ||Punctuation, other ||Graphic ||Character || 593 || |
|- | |- | ||
| − | | colspan=6 | | + | |colspan=6 data-sort-value="040" style="font-weight:bold" |S, Symbol |
|- | |- | ||
| − | | | + | |data-sort-value="041" |Sm ||Symbol, math ||Graphic ||Character || 948 ||[[List of mathematical symbols|Mathematical symbols]] (e.g., [[+]], [[−]], [[=]], [[×]], [[÷]], [[√]], [[∊]], [[≠]]). Does not include parentheses and brackets, which are in categories Ps and Pe. Also does not include [[Exclamation mark|!]], [[Asterisk|*]], [[Hyphen-minus|-]], or [[Slash (punctuation)|/]], which despite frequent use as mathematical operators, are primarily considered to be "punctuation". |
|- | |- | ||
| − | | | + | |data-sort-value="042" |Sc ||Symbol, currency ||Graphic ||Character || 62 ||[[Currency symbol]]s |
|- | |- | ||
| − | | | + | |data-sort-value="043" |Sk ||Symbol, modifier ||Graphic ||Character || 123 || |
|- | |- | ||
| − | | | + | |data-sort-value="044" |So ||Symbol, other ||Graphic ||Character || 6,431 || |
|- | |- | ||
| − | | colspan=6 | | + | |colspan=6 data-sort-value="050" style="font-weight:bold" |Z, Separator |
|- | |- | ||
| − | | | + | |data-sort-value="051" |Zs ||Separator, space ||Graphic ||Character || 17 ||Includes the space, but not [[Tab key|TAB]], [[Carriage return|CR]], or [[Newline|LF]], which are Cc |
|- | |- | ||
| − | | | + | |data-sort-value="052" |Zl ||Separator, line ||Format ||Character || 1 ||Only {{unichar|2028|LINE SEPARATOR|note=LSEP}} |
|- | |- | ||
| − | | | + | |data-sort-value="053" |Zp ||Separator, paragraph ||Format ||Character || 1 ||Only {{unichar|2029|PARAGRAPH SEPARATOR|note=PSEP}} |
|- | |- | ||
| − | | colspan=6 | | + | |colspan=6 data-sort-value="060" style="font-weight:bold" |C, Other |
|- | |- | ||
| − | | | + | |data-sort-value="061" |Cc ||Other, control ||Control ||Character || 65 (will never change){{efn|name=fn3}} ||No name,{{efn|name=fn4|1={{Cite web|url=https://www.unicode.org/versions/Unicode13.0.0/ch04.pdf#G135875|date=March 2020|title=Table 4-9: Construction of Code Point Labels|publisher=Unicode Consortium|work=The Unicode Standard}} A ''Code Point Label'' may be used to identify a nameless code point. E.g. <control-''hhhh''>, <control-0088>. The Name remains blank, which can prevent inadvertently replacing, in documentation, a Control Name with a true Control code. Unicode also uses <not a character> for <noncharacter>.}} <control> |
|- | |- | ||
| − | | | + | |data-sort-value="062" |Cf ||Other, format ||Format ||Character || 161||Includes the [[soft hyphen]], joining control characters ([[zero-width non-joiner|zwnj]] and [[zero-width joiner|zwj]]), control characters to support [[bi-directional text]], and [[language tag]] characters |
|- | |- | ||
| − | | | + | |data-sort-value="063" |Cs ||Other, surrogate ||Surrogate ||Not (but abstract) || 2,048 (will never change){{efn|name=fn3}} ||No name,{{efn|name=fn4}} <surrogate> |
|- | |- | ||
| − | | | + | |data-sort-value="064" |Co ||Other, private use ||Private-use ||Not (but abstract) || 137,468 total (will never change){{efn|name=fn3}} ({{nowrap|6,400 in [[Basic Multilingual Plane|BMP]]}}, 131,068 {{nowrap|in [[Private Use Area|Planes 15–16]]}}) ||No name,{{efn|name=fn4}} <private-use> |
|- | |- | ||
| − | | rowspan=2 | | + | |rowspan=2 data-sort-value="065" |Cn ||rowspan=2 |Other, not assigned ||Noncharacter ||Not || 66 (will never change){{efn|name=fn3}} ||No name,{{efn|name=fn4}} <noncharacter> |
|- | |- | ||
| − | | Reserved || Not || | + | |Reserved ||Not || 830,606 ||No name,{{efn|name=fn4}} <reserved> |
|- class="sortbottom" | |- class="sortbottom" | ||
| − | | colspan=6 | | + | |colspan=6 | |
| − | + | {{notelist}} | |
| − | + | ||
| − | |||
| − | |||
|}<noinclude> | |}<noinclude> | ||
{{template reference list}} | {{template reference list}} | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 21:52, 22 January 2021
| General Category (Unicode Character Property)[lower-alpha 1] | |||||
|---|---|---|---|---|---|
| Value | Category Major, minor | Basic type[lower-alpha 2] | Character assigned[lower-alpha 2] | Count (as of 13.0) |
Remarks |
| L, Letter | |||||
| Lu | Letter, uppercase | Graphic | Character | 1,791 | |
| Ll | Letter, lowercase | Graphic | Character | 2,155 | |
| Lt | Letter, titlecase | Graphic | Character | 31 | Ligatures containing uppercase followed by lowercase letters (e.g., Dž, Lj, Nj, and Dz) |
| Lm | Letter, modifier | Graphic | Character | 260 | A modifier letter |
| Lo | Letter, other | Graphic | Character | 127,004 | An ideograph or a letter in a unicase alphabet |
| M, Mark | |||||
| Mn | Mark, nonspacing | Graphic | Character | 1,839 | |
| Mc | Mark, spacing combining | Graphic | Character | 443 | |
| Me | Mark, enclosing | Graphic | Character | 13 | |
| N, Number | |||||
| Nd | Number, decimal digit | Graphic | Character | 650 | All these, and only these, have Numeric Type = De[lower-alpha 3] |
| Nl | Number, letter | Graphic | Character | 236 | Numerals composed of letters or letterlike symbols (e.g., Roman numerals) |
| No | Number, other | Graphic | Character | 895 | E.g., vulgar fractions, superscript and subscript digits |
| P, Punctuation | |||||
| Pc | Punctuation, connector | Graphic | Character | 10 | Includes "_" underscore |
| Pd | Punctuation, dash | Graphic | Character | 25 | Includes several hyphen characters |
| Ps | Punctuation, open | Graphic | Character | 75 | Opening bracket characters |
| Pe | Punctuation, close | Graphic | Character | 73 | Closing bracket characters |
| Pi | Punctuation, initial quote | Graphic | Character | 12 | Opening quotation mark. Does not include the ASCII "neutral" quotation mark. May behave like Ps or Pe depending on usage |
| Pf | Punctuation, final quote | Graphic | Character | 10 | Closing quotation mark. May behave like Ps or Pe depending on usage |
| Po | Punctuation, other | Graphic | Character | 593 | |
| S, Symbol | |||||
| Sm | Symbol, math | Graphic | Character | 948 | Mathematical symbols (e.g., +, −, =, ×, ÷, √, ∊, ≠). Does not include parentheses and brackets, which are in categories Ps and Pe. Also does not include !, *, -, or /, which despite frequent use as mathematical operators, are primarily considered to be "punctuation". |
| Sc | Symbol, currency | Graphic | Character | 62 | Currency symbols |
| Sk | Symbol, modifier | Graphic | Character | 123 | |
| So | Symbol, other | Graphic | Character | 6,431 | |
| Z, Separator | |||||
| Zs | Separator, space | Graphic | Character | 17 | Includes the space, but not TAB, CR, or LF, which are Cc |
| Zl | Separator, line | Format | Character | 1 | Only Template:Unichar |
| Zp | Separator, paragraph | Format | Character | 1 | Only Template:Unichar |
| C, Other | |||||
| Cc | Other, control | Control | Character | 65 (will never change)[lower-alpha 3] | No name,[lower-alpha 4] <control> |
| Cf | Other, format | Format | Character | 161 | Includes the soft hyphen, joining control characters (zwnj and zwj), control characters to support bi-directional text, and language tag characters |
| Cs | Other, surrogate | Surrogate | Not (but abstract) | 2,048 (will never change)[lower-alpha 3] | No name,[lower-alpha 4] <surrogate> |
| Co | Other, private use | Private-use | Not (but abstract) | 137,468 total (will never change)[lower-alpha 3] (6,400 in BMP, 131,068 in Planes 15–16) | No name,[lower-alpha 4] <private-use> |
| Cn | Other, not assigned | Noncharacter | Not | 66 (will never change)[lower-alpha 3] | No name,[lower-alpha 4] <noncharacter> |
| Reserved | Not | 830,606 | No name,[lower-alpha 4] <reserved> | ||
| |||||
References
General Category is a Unicode character property, defined in Chapter 4 of the Unicode Standard: "Character Properties".
Usage
{{General Category (Unicode)|state=}}
- State can be set to any of the wikitable collapsing classes. Default is collapsed.
See also
| The above documentation is transcluded from Template:General Category (Unicode)/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |