Python Bidi layout wrapping the Rust crate unicode-bidi
Overall
score
93%
A tool for analyzing bidirectional text with debug output showing algorithm execution details.
@generates
def analyze_bidirectional_text(text: str, debug: bool = False, uppercase_as_rtl: bool = False) -> str:
"""
Analyzes and reorders bidirectional text.
When debug is True, outputs detailed algorithm execution trace to stderr.
When uppercase_as_rtl is True, treats uppercase letters as RTL for testing.
Args:
text: The input text in logical order
debug: Enable debug trace output (default: False)
uppercase_as_rtl: Treat uppercase as RTL for testing (default: False)
Returns:
The text reordered for visual display
"""
passProvides bidirectional text processing with debug capabilities.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-python-bididocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10