Bidirectional Class - Pop Directional Format
Pop Directional Format is a special marker used in bidirectional text to indicate that a directional override or embedding, once opened by a matching push character, should now be closed and its effect terminated. When a parser encounters this value, it pops the most recent directional status from its stack, thereby restoring the previous embedding level and directionality for subsequent characters. This allows for proper nesting and cleanup of explicit directional formatting, ensuring that isolated runs of right-to-left or left-to-right text do not leak their influence beyond their intended boundaries. It is essential for correctly handling complex scripts and embedded quotations, as it signals the end of a controlled directional context without implying any inherent character direction itself.