Difference between revisions of "Template:Bidi Class (Unicode)"
Jump to navigation
Jump to search
Bidirectional character type (Unicode character property Bidi_Class)Template:Ref label
imported>Frietjes (update to better match Template:Whitespace (Unicode)) |
imported>Drmccreedy (Fix sorting on 1st, 3rd, and last columns. Skip putting actual control characters in last column. Other changes.) |
||
| Line 4: | Line 4: | ||
| titlestyle = text-align: center; | | titlestyle = text-align: center; | ||
| title = {{float|left|{{navbar|Template:Bidi Class (Unicode)|mini=1}}}} {{resize|120%|Bidirectional character type<small> ([[Unicode]] [[Unicode character property|character property]] Bidi_Class)</small>{{ref label|Bidi_UAX9|1}}}} | | title = {{float|left|{{navbar|Template:Bidi Class (Unicode)|mini=1}}}} {{resize|120%|Bidirectional character type<small> ([[Unicode]] [[Unicode character property|character property]] Bidi_Class)</small>{{ref label|Bidi_UAX9|1}}}} | ||
| − | | contentstyle = font-size:105%; text-align: | + | | contentstyle = font-size:105%; text-align: left; |
}} | }} | ||
{| class="wikitable sortable collapsible " style="width:100%;" | {| class="wikitable sortable collapsible " style="width:100%;" | ||
|- | |- | ||
| − | ! Type{{ref label|Bidi_Class|2}} !! Description !! | + | ! Type{{ref label|Bidi_Class|2}} !! Description !! Strength !! Directionality !! General scope !! Bidi_Control character{{ref label|Bidi_Control|3}} |
| − | |||
|- | |- | ||
| − | + | | L || Left-to-Right || {{sort|01|Strong}} || L-to-R || Most alphabetic and syllabic characters, Han ideographs, non-European or non-Arabic digits, LRM character, ... || {{sort|8206|U+200E LEFT-TO-RIGHT MARK (LRM)}} | |
|- | |- | ||
| − | + | | R || Right-to-Left || {{sort|02|Strong}} || R-to-L || Hebrew, Mandaic, Mende Kikakui, N'Ko, Samaritan, ancient scripts like Kharoshthi and Nabataean, RLM character, ... || {{sort|8207|U+200F RIGHT-TO-LEFT MARK (RLM)}} | |
|- | |- | ||
| − | | {{sort|03| | + | | AL || Arabic Letter || {{sort|03|Strong}} || R-to-L || Arabic, Syriac, and Thaana alphabets, and most punctuation specific to those scripts, ALM character, ... || {{sort|1564|U+061C ARABIC LETTER MARK (ALM)}} |
|- | |- | ||
| − | + | | EN || European Number || {{sort|04|Weak}} || || European digits, Eastern Arabic-Indic digits, Coptic epact numbers, ... || | |
|- | |- | ||
| − | + | | ES || European Separator || {{sort|05|Weak}} || || {{smallcaps|plus sign}}, {{smallcaps|minus sign}}, ... || | |
|- | |- | ||
| − | + | | ET || European Number Terminator || {{sort|06|Weak}} || || {{smallcaps|degree sign}}, currency symbols, ... || | |
|- | |- | ||
| − | + | | AN || Arabic Number || {{sort|07|Weak}} || || Arabic-Indic digits, Arabic decimal and thousands separators, Rumi digits, ... || | |
|- | |- | ||
| − | + | | CS || Common Number Separator || {{sort|08|Weak}} || || {{smallcaps|colon}}, {{smallcaps|comma}}, {{smallcaps|full stop}}, {{Smallcaps|no-break space}}, ... || | |
|- | |- | ||
| − | + | | NSM || Nonspacing Mark || {{sort|09|Weak}} || || Characters in General Categories Mark, nonspacing, and Mark, enclosing (Mn, Me) || | |
|- | |- | ||
| − | + | | BN || Boundary Neutral || {{sort|10|Weak}} || || Default ignorables, non-characters, control characters other than those explicitly given other types || | |
| − | |||
|- | |- | ||
| − | + | | B || Paragraph Separator || {{sort|11|Neutral}} || || {{smallcaps|paragraph separator}}, appropriate Newline Functions, higher-level protocol paragraph determination || | |
|- | |- | ||
| − | + | | S || Segment Separator || {{sort|12|Neutral}} || || Tabs || | |
|- | |- | ||
| − | | {{sort| | + | | WS || Whitespace || {{sort|13|Neutral}} || || {{smallcaps|space}}, {{smallcaps|figure space}}, {{smallcaps|line separator}}, {{smallcaps|form feed}}, General Punctuation block spaces (smaller set than the [[Unicode character property#Whitespace|Unicode whitespace]] list) || |
|- | |- | ||
| − | + | | ON || Other Neutrals || {{sort|14|Neutral}} || || All other characters, including {{smallcaps|object replacement character}} || | |
| − | |||
|- | |- | ||
| − | + | | LRE || Left-to-Right Embedding || {{sort|15|Explicit}} || L-to-R || LRE character only || {{sort|8234|U+202A LEFT-TO-RIGHT EMBEDDING (LRE)}} | |
|- | |- | ||
| − | + | | LRO || Left-to-Right Override || {{sort|16|Explicit}} || L-to-R || LRO character only || {{sort|8237|U+202D LEFT-TO-RIGHT OVERRIDE (LRO)}} | |
|- | |- | ||
| − | + | | RLE || Right-to-Left Embedding || {{sort|17|Explicit}} || R-to-L || RLE character only || {{sort|8235|U+202B RIGHT-TO-LEFT EMBEDDING (RLE)}} | |
|- | |- | ||
| − | + | | RLO || Right-to-Left Override || {{sort|18|Explicit}} || R-to-L || RLO character only || {{sort|8238|U+202E RIGHT-TO-LEFT OVERRIDE (RLO)}} | |
|- | |- | ||
| − | + | | PDF || Pop Directional Format || {{sort|19|Explicit}} || || PDF character only || {{sort|8236|U+202C POP DIRECTIONAL FORMATTING (PDF)}} | |
|- | |- | ||
| − | + | | LRI || Left-to-Right Isolate || {{sort|20|Explicit}} || L-to-R || LRI character only || {{sort|8294|U+2066 LEFT-TO-RIGHT ISOLATE (LRI)}} | |
|- | |- | ||
| − | + | | RLI || Right-to-Left Isolate || {{sort|21|Explicit}} || R-to-L || RLI character only || {{sort|8295|U+2067 RIGHT-TO-LEFT ISOLATE (RLI)}} | |
|- | |- | ||
| − | + | | FSI || First Strong Isolate || {{sort|22|Explicit}} || || FSI character only || {{sort|8296|U+2068 FIRST STRONG ISOLATE (FSI)}} | |
|- | |- | ||
| − | + | | PDI || Pop Directional Isolate || {{sort|23|Explicit}} || || PDI character only || {{sort|8297|U+2069 POP DIRECTIONAL ISOLATE (PDI)}} | |
| − | |||
|- | |- | ||
| − | + | ! colspan="6" style="text-align:left;font-weight:normal" | '''Notes''' | |
| − | :1. {{note|Bidi_UAX9}}[http://www.unicode.org/reports/tr9 Unicode Bidirectional Algorithm (UAX#9)], As of version | + | :1.{{note|Bidi_UAX9}}[http://www.unicode.org/reports/tr9 Unicode Bidirectional Algorithm (UAX#9)], As of Unicode version 8.0 |
| − | :2.{{note|Bidi_Class}}[http://www.unicode.org/reports/tr9/#Bidirectional_Character_Types Possible Bidirectional character types] for character property: Bidi_Class or 'type' | + | :2.{{note|Bidi_Class}}[http://www.unicode.org/reports/tr9/#Bidirectional_Character_Types Possible Bidirectional character types] for character property: Bidi_Class or 'type' |
| − | :3.{{note|Bidi_Control}}[http://www.unicode.org/reports/tr9/#Directional_Formatting_Codes Bidi_Control characters]: Twelve Bidi_Control formatting characters are defined. They are invisible, and have no effect apart from directionality. Nine of them have a unique, overruling BiDi-type that is used by the algorithm. Their type is also their acronym (e.g. character 'LRE' has BiDi type 'LRE'). | + | :3.{{note|Bidi_Control}}[http://www.unicode.org/reports/tr9/#Directional_Formatting_Codes Bidi_Control characters]: Twelve Bidi_Control formatting characters are defined. They are invisible, and have no effect apart from directionality. Nine of them have a unique, overruling BiDi-type that is used by the algorithm. Their type is also their acronym (e.g. character 'LRE' has BiDi type 'LRE'). |
|} | |} | ||
{{hidden end}}<noinclude> | {{hidden end}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 20:38, 20 February 2016
| TypeTemplate:Ref label | Description | Strength | Directionality | General scope | Bidi_Control characterTemplate:Ref label |
|---|---|---|---|---|---|
| L | Left-to-Right | Strong | L-to-R | Most alphabetic and syllabic characters, Han ideographs, non-European or non-Arabic digits, LRM character, ... | U+200E LEFT-TO-RIGHT MARK (LRM) |
| R | Right-to-Left | Strong | R-to-L | Hebrew, Mandaic, Mende Kikakui, N'Ko, Samaritan, ancient scripts like Kharoshthi and Nabataean, RLM character, ... | U+200F RIGHT-TO-LEFT MARK (RLM) |
| AL | Arabic Letter | Strong | R-to-L | Arabic, Syriac, and Thaana alphabets, and most punctuation specific to those scripts, ALM character, ... | U+061C ARABIC LETTER MARK (ALM) |
| EN | European Number | Weak | European digits, Eastern Arabic-Indic digits, Coptic epact numbers, ... | ||
| ES | European Separator | Weak | Template:Smallcaps, Template:Smallcaps, ... | ||
| ET | European Number Terminator | Weak | Template:Smallcaps, currency symbols, ... | ||
| AN | Arabic Number | Weak | Arabic-Indic digits, Arabic decimal and thousands separators, Rumi digits, ... | ||
| CS | Common Number Separator | Weak | Template:Smallcaps, Template:Smallcaps, Template:Smallcaps, Template:Smallcaps, ... | ||
| NSM | Nonspacing Mark | Weak | Characters in General Categories Mark, nonspacing, and Mark, enclosing (Mn, Me) | ||
| BN | Boundary Neutral | Weak | Default ignorables, non-characters, control characters other than those explicitly given other types | ||
| B | Paragraph Separator | Neutral | Template:Smallcaps, appropriate Newline Functions, higher-level protocol paragraph determination | ||
| S | Segment Separator | Neutral | Tabs | ||
| WS | Whitespace | Neutral | Template:Smallcaps, Template:Smallcaps, Template:Smallcaps, Template:Smallcaps, General Punctuation block spaces (smaller set than the Unicode whitespace list) | ||
| ON | Other Neutrals | Neutral | All other characters, including Template:Smallcaps | ||
| LRE | Left-to-Right Embedding | Explicit | L-to-R | LRE character only | U+202A LEFT-TO-RIGHT EMBEDDING (LRE) |
| LRO | Left-to-Right Override | Explicit | L-to-R | LRO character only | U+202D LEFT-TO-RIGHT OVERRIDE (LRO) |
| RLE | Right-to-Left Embedding | Explicit | R-to-L | RLE character only | U+202B RIGHT-TO-LEFT EMBEDDING (RLE) |
| RLO | Right-to-Left Override | Explicit | R-to-L | RLO character only | U+202E RIGHT-TO-LEFT OVERRIDE (RLO) |
| Pop Directional Format | Explicit | PDF character only | U+202C POP DIRECTIONAL FORMATTING (PDF) | ||
| LRI | Left-to-Right Isolate | Explicit | L-to-R | LRI character only | U+2066 LEFT-TO-RIGHT ISOLATE (LRI) |
| RLI | Right-to-Left Isolate | Explicit | R-to-L | RLI character only | U+2067 RIGHT-TO-LEFT ISOLATE (RLI) |
| FSI | First Strong Isolate | Explicit | FSI character only | U+2068 FIRST STRONG ISOLATE (FSI) | |
| PDI | Pop Directional Isolate | Explicit | PDI character only | U+2069 POP DIRECTIONAL ISOLATE (PDI) | |
Notes
| |||||
Bidi Class is a Unicode character property, also known as Bidirectional character type. The table is defined in Standard Annex #9: "Unicode Bidirectional Algorithm".
Usage
This template does not take any parameters, and the table is collapsed by default.
See also
| The above documentation is transcluded from Template:Bidi Class (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. |