Jump to content

Template:Bidi Class (Unicode) and Template:Bidi Class (Unicode)/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Fix Linter errors. (misnested tags)
 
link= -> nlink= for TM:Unichar
 
Line 1: Line 1:
{| class="wikitable sortable collapsible {{{state|{{template other|un}}collapsed}}}" style="width:100%;"
{{Hidden begin
! colspan=6 style="border:1px solid grey; line-height:1.75em;" | Bidirectional character type<small> ([[Unicode]] [[Unicode character property|character property]] Bidi_Class)</small>{{ref label|Bidi_UAX9|1}} {{navbar|Bidi Class (Unicode)|mini=1|style=float:left;padding:2px;}}
| expanded = {{#ifeq:{{{state|{{template other|un}}collapsed}}}|collapsed||yes}}
| style = overflow:auto; text-align: center; | border = 1px solid #a2a9b1
| titlestyle = text-align: center;
| title = {{navbar|Template:Bidi Class (Unicode)|mini=1|style=float:left}} {{resize|120%|Bidirectional character type<small> {{nobold|1=({{mono|1=Bidi_Class}} Unicode [[Unicode character property|character property]])}}</small>{{ref label|Bidi_UAX9|1}}}}
| contentstyle = font-size:105%; text-align: left;
}}
{| class="wikitable sortable" style="width:100%;"
|-
|-
! Type{{ref label|Bidi_Class|2}} !! Description !! Strength !! Directionality !! General scope !! Bidi_Control character{{ref label|Bidi_Control|3}}
! Type{{ref label|Bidi_Class|2}} !! Description !! Strong/&#x200B;Weak/&#x200B;Neutral<br/>effect, or&nbsp;Explicit !! 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, Chinese characters, non-European or non-Arabic digits, LRM character, ... || {{sort|8206|U+200E LEFT-TO-RIGHT MARK (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|nlink=|note=LRM}}
|-
|-
| R || Right-to-Left || {{sort|02|Strong}} || R-to-L || Adlam, 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|02|R}} || Right-to-Left || Strong || R-to-L || Hebrew alphabet and related punctuation, RLM character || {{unichar|200F|Right-to-left mark|nlink=|note=RLM}}
|-
|-
| AL || Arabic Letter || {{sort|03|Strong}} || R-to-L || Arabic, Hanifi Rohingya, Sogdian, Syriac, and Thaana alphabets, and most punctuation specific to those scripts, ALM character, ... || {{sort|1564|U+061C ARABIC LETTER MARK (ALM)}}
| {{sort|03|AL}} || Right-to-Left Arabic || Strong || R-to-L || Arabic, Thaana and Syriac alphabets, and most punctuation specific to those scripts || {{unichar|061C|&#x202D;ARABIC LETTER MARK|note=ALM}}<!-- char 202D added to prevent text effect -->
|-
|-
| EN || European Number || {{sort|04|Weak}} || || European digits, Eastern Arabic-Indic digits, Coptic epact numbers, ... ||
| {{sort|11|EN}} || European Number || Weak || || European digits, Eastern Arabic-Indic digits, ... ||
|-
|-
| ES || European Separator || {{sort|05|Weak}} || || {{smallcaps|plus sign}}, {{smallcaps|minus sign}}, ... ||
| {{sort|12|ES}} || European Separator || Weak || || {{smallcaps|plus sign}}, {{smallcaps|minus sign}}, ... ||
|-
|-
| ET || European Number Terminator || {{sort|06|Weak}} || || {{smallcaps|degree sign}}, currency symbols, ... ||
| {{sort|13|ET}} || European Number Terminator || Weak || || {{smallcaps|degree sign}}, currency symbols, ... ||
|-
|-
| AN || Arabic Number || {{sort|07|Weak}} || || Arabic-Indic digits, Arabic decimal and thousands separators, Rumi digits, Hanifi Rohingya digits, ... ||
| {{sort|14|AN}} || Arabic Number || Weak || || Arabic-Indic digits, Arabic decimal and thousands separators, ... ||
|-
|-
| CS || Common Number Separator || {{sort|08|Weak}} || || {{smallcaps|colon}}, {{smallcaps|comma}}, {{smallcaps|full stop}}, {{Smallcaps|no-break space}}, ... ||
| {{sort|15|CS}} || Common Number Separator || 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) ||
| {{sort|16|NSM}} || Nonspacing Mark || 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 ||
| {{sort|17|BN}} || Boundary Neutral || 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 ||
| {{sort|21|B}} || Paragraph Separator || Neutral || || {{smallcaps|paragraph separator}}, appropriate Newline Functions, higher-level protocol paragraph determination ||
|-
|-
| S || Segment Separator || {{sort|12|Neutral}} || || Tabs ||
| {{sort|22|S}} || Segment Separator || Neutral || || Tab ||
|-
|-
| 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) ||
| {{sort|23|WS}} || Whitespace || Neutral || || {{smallcaps|space}}, {{smallcaps|figure space}}, {{smallcaps|line separator}}, {{smallcaps|form feed}}, General Punctuation block spaces || This set is smaller than [[Unicode character property#Whitespace|Unicode whitespace]] list
|-
|-
| ON || Other Neutrals || {{sort|14|Neutral}} || || All other characters, including {{smallcaps|object replacement character}} ||
| {{sort|24|ON}} || Other Neutrals || 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)}}
| {{sort|31|LRE}} || Left-to-Right Embedding || Explicit || L-to-R || LRE character only || {{unichar|202A|Left-to-Right Embedding|note=LRE}}
|-
|-
| LRO || Left-to-Right Override || {{sort|16|Explicit}} || L-to-R || LRO character only || {{sort|8237|U+202D LEFT-TO-RIGHT OVERRIDE (LRO)}}
| {{sort|32|LRO}} || Left-to-Right Override || Explicit || L-to-R || LRO character only || {{unichar|202D|Left-to-Right Override|note=LRO}}
|-
|-
| RLE || Right-to-Left Embedding || {{sort|17|Explicit}} || R-to-L || RLE character only || {{sort|8235|U+202B RIGHT-TO-LEFT EMBEDDING (RLE)}}
| {{sort|33|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 -->
|-
|-
| RLO || Right-to-Left Override || {{sort|18|Explicit}} || R-to-L || RLO character only || {{sort|8238|U+202E RIGHT-TO-LEFT OVERRIDE (RLO)}}
| {{sort|34|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 -->
|-
|-
| PDF || Pop Directional Format || {{sort|19|Explicit}} || || PDF character only || {{sort|8236|U+202C POP DIRECTIONAL FORMATTING (PDF)}}
| {{sort|35|PDF}} || Pop Directional Format || Explicit || || PDF character only || {{unichar|202C|Pop Directional Formatting|note=PDF}}
|-
|-
| LRI || Left-to-Right Isolate || {{sort|20|Explicit}} || L-to-R || LRI character only || {{sort|8294|U+2066 LEFT-TO-RIGHT ISOLATE (LRI)}}
| {{sort|36|LRI}} || Left-to-Right Isolate || Explicit || L-to-R || LRI character only || {{unichar|2066|LEFT-TO-RIGHT ISOLATE |note=LRI}}
|-
|-
| RLI || Right-to-Left Isolate || {{sort|21|Explicit}} || R-to-L || RLI character only || {{sort|8295|U+2067 RIGHT-TO-LEFT ISOLATE (RLI)}}
| {{sort|37|RLI}} || Right-to-Left Isolate || Explicit || R-to-L || RLI character only || {{unichar|2067|RIGHT-TO-LEFT ISOLATE |note=RLI}}
|-
|-
| FSI || First Strong Isolate || {{sort|22|Explicit}} || || FSI character only || {{sort|8296|U+2068 FIRST STRONG ISOLATE (FSI)}}
| {{sort|38|FSI}} || First Strong Isolate || Explicit || || FSI character only || {{unichar|2068|FIRST STRONG ISOLATE |note=FSI}}
|-
|-
| PDI || Pop Directional Isolate || {{sort|23|Explicit}} || || PDI character only || {{sort|8297|U+2069 POP DIRECTIONAL ISOLATE (PDI)}}
| {{sort|39|PDI}} || Pop Directional Isolate || Explicit || || PDI character only || {{unichar|2069|POP DIRECTIONAL ISOLATE|note=PDI}}

|-
|-
! colspan="6" style="text-align:left;font-weight:normal" | '''Notes'''
| colspan="6" | '''Notes'''
:1.{{note|Bidi_UAX9}}[https://www.unicode.org/reports/tr9 Unicode Bidirectional Algorithm (UAX#9)], As of Unicode version 12.0
:1. {{note|Bidi_UAX9}}[https://www.unicode.org/reports/tr9 Unicode Bidirectional Algorithm (UAX#9)], As of version 6.3.0<br />
:2.{{note|Bidi_Class}}[https://www.unicode.org/reports/tr9/#Bidirectional_Character_Types Possible Bidirectional character types] for character property: Bidi_Class or 'type'
:2.{{note|Bidi_Class}}[https://www.unicode.org/reports/tr9/#Bidirectional_Character_Types Possible Bidirectional character types] for character property: Bidi_Class or 'type'<br />
:3.{{note|Bidi_Control}}[https://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}}[https://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').<br />
|}<noinclude>
|}
{{hidden end}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>