Difference between revisions of "Template:Bidi Class (Unicode)/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 3: Line 3:
 
|-
 
|-
 
! Type{{ref label|Bidi_Class|2}} !! Description !! Strong/{{zwsp}}Weak/{{zwsp}}Neutral effect  !! Directionality !! General scope !! Bidi_Control character{{ref label|Bidi_Control|3}}
 
! Type{{ref label|Bidi_Class|2}} !! Description !! Strong/{{zwsp}}Weak/{{zwsp}}Neutral effect  !! Directionality !! General scope !! Bidi_Control character{{ref label|Bidi_Control|3}}
 +
 
|-
 
|-
 
| {{sort|01|L}} || Left-to-Right || Strong || L-to-R || Most alphabetic and syllabic characters, Han ideographs, non-European or non-Arabic digits, LRM character, ... || {{unichar|200E|Left-to-right mark|link=|note=LRM}}
 
| {{sort|01|L}} || Left-to-Right || Strong || L-to-R || Most alphabetic and syllabic characters, Han ideographs, non-European or non-Arabic digits, LRM character, ... || {{unichar|200E|Left-to-right mark|link=|note=LRM}}
|-
 
| {{sort|02|LRE}} || Left-to-Right Embedding || Strong || L-to-R || LRE character only || {{unichar|202A|Left-to-Right Embedding|note=LRE}}
 
|-
 
| {{sort|03|LRO}} || Left-to-Right Override || Strong || L-to-R || LRO character only || {{unichar|202D|Left-to-Right Override|note=LRO}}
 
 
|-
 
|-
 
| {{sort|04|R}} || Right-to-Left || Strong || R-to-L || Hebrew alphabet and related punctuation, RLM character || {{unichar|200F|Right-to-left mark|link=|note=RLM}}
 
| {{sort|04|R}} || Right-to-Left || Strong || R-to-L || Hebrew alphabet and related punctuation, RLM character || {{unichar|200F|Right-to-left mark|link=|note=RLM}}
 
|-
 
|-
 
| {{sort|05|AL}} || Right-to-Left Arabic || Strong || R-to-L || Arabic, Thaana and Syriac alphabets, and most punctuation specific to those scripts ||
 
| {{sort|05|AL}} || Right-to-Left Arabic || Strong || R-to-L || Arabic, Thaana and Syriac alphabets, and most punctuation specific to those scripts ||
|-
 
| {{sort|06|RLE}} || Right-to-Left Embedding || Strong || R-to-L || RLE character only || {{unichar|202B|&#x202D;Right-to-Left Embedding|note=RLE}}<!--needs 202D LRO to prevent RTL-writing -->
 
|-
 
| {{sort|07|RLO}} || Right-to-Left Override || Strong || R-to-L || RLO character only || {{unichar|202E|&#x202D;Right-to-Left Override|note=RLO}}<!--needs 202D LRO to prevent RTL-writing -->
 
|-
 
| {{sort|11|PDF}} || Pop Directional Format || Weak || || PDF character only || {{unichar|202C|Pop Directional Formatting|note=PDF}}
 
 
|-
 
|-
 
| {{sort|12|EN}} || European Number || Weak || || European digits, Eastern Arabic-Indic digits, ... ||
 
| {{sort|12|EN}} || European Number || Weak || || European digits, Eastern Arabic-Indic digits, ... ||
Line 33: Line 24:
 
|-
 
|-
 
| {{sort|18|BN}} || Boundary Neutral || Weak || || Default ignorables, non-characters, control characters other than those explicitly given other types ||
 
| {{sort|18|BN}} || Boundary Neutral || Weak || || Default ignorables, non-characters, control characters other than those explicitly given other types ||
 +
 +
 
|-
 
|-
 
| {{sort|21|B}} || Paragraph Separator || Neutral || || {{smallcaps|paragraph separator}}, appropriate Newline Functions, higher-level protocol paragraph determination ||
 
| {{sort|21|B}} || Paragraph Separator || Neutral || || {{smallcaps|paragraph separator}}, appropriate Newline Functions, higher-level protocol paragraph determination ||
Line 41: Line 34:
 
|-
 
|-
 
| {{sort|23|ON}} || Other Neutrals || Neutral || || All other characters, including {{smallcaps|object replacement character}} ||
 
| {{sort|23|ON}} || Other Neutrals || Neutral || || All other characters, including {{smallcaps|object replacement character}} ||
 +
 +
|-
 +
| {{sort|02|LRE}} || Left-to-Right Embedding || Explicit || L-to-R || LRE character only || {{unichar|202A|Left-to-Right Embedding|note=LRE}}
 +
|-
 +
| {{sort|03|LRO}} || Left-to-Right Override || Explicit || L-to-R || LRO character only || {{unichar|202D|Left-to-Right Override|note=LRO}}
 +
|-
 +
| {{sort|06|RLE}} || Right-to-Left Embedding || Explicit || R-to-L || RLE character only || {{unichar|202B|&#x202D;Right-to-Left Embedding|note=RLE}}<!--needs 202D LRO to prevent RTL-writing -->
 +
| {{sort|07|RLO}} || Right-to-Left Override || Explicit || R-to-L || RLO character only || {{unichar|202E|&#x202D;Right-to-Left Override|note=RLO}}<!--needs 202D LRO to prevent RTL-writing -->
 +
|-
 +
| {{sort|11|PDF}} || Pop Directional Format || Explicit || || PDF character only || {{unichar|202C|Pop Directional Formatting|note=PDF}}
 
|-
 
|-
 
| colspan="6" | '''Notes'''
 
| colspan="6" | '''Notes'''

Revision as of 13:06, 16 October 2013

Bidirectional character type (Unicode character property Bidi_Class)Template:Ref label
TypeTemplate:Ref label Description Strong/​Weak/​Neutral effect 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, ... Template:Unichar
R Right-to-Left Strong R-to-L Hebrew alphabet and related punctuation, RLM character Template:Unichar
AL Right-to-Left Arabic Strong R-to-L Arabic, Thaana and Syriac alphabets, and most punctuation specific to those scripts
EN European Number Weak European digits, Eastern Arabic-Indic digits, ...
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, ...
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 Tab
WS Whitespace Neutral Template:Smallcaps, Template:Smallcaps, Template:Smallcaps, Template:Smallcaps, General Punctuation block spaces This set is smaller than 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 Template:Unichar
LRO Left-to-Right Override Explicit L-to-R LRO character only Template:Unichar
RLE Right-to-Left Embedding Explicit R-to-L RLE character only Template:Unichar RLO Right-to-Left Override Explicit R-to-L RLO character only Template:Unichar
PDF Pop Directional Format Explicit PDF character only Template:Unichar
Notes
1. ^ Unicode Bidirectional Algorithm (UAX#9), As of version 6.0.0
2.^ Possible Bidirectional character types for character property: Bidi_Class or 'type'
3.^ Bidi_Control characters: Seven Bidi_Control formatting characters are defined. They are invisible, and have no effect apart from directionality. Five 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').
Template documentation[view] [edit] [history] [purge]

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

Template:Unicode templates