Bidirectional Paired Bracket Type
Bidirectional Paired Bracket Type is a character attribute that classifies bracket characters, such as parentheses, square brackets, and curly braces, into one of four categories: open, close, none, or other. This classification works alongside the Unicode Bidirectional Algorithm to ensure that paired brackets display correctly in mixed-direction text, particularly when left-to-right and right-to-left scripts are combined. When a bracket is marked as open or close, it can be matched with its corresponding counterpart, allowing the algorithm to determine the appropriate visual orientation and nesting order, even if the direction of the surrounding text changes. This prevents mismatched bracket pairing and maintains logical readability in bidirectional contexts, such as Arabic or Hebrew text containing English numerals or quoted segments.
- Abbr
- o
- Count
- 65
Open is the classification for an opening bracket character, like “(”, which pairs with its matching closing counterpart in bidirectional text.
- Abbr
- c
- Count
- 65
Close is the value that marks the paired bracket character which closes or ends a bracket pair, such as "]" or ")".
- Abbr
- n
- Count
- 310211
None is used when a character has no paired bracket counterpart, indicating it is not part of any bracket pairing.