Bidirectional Paired Bracket Type

Unicode Version 18.0

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.