tessl install tessl/pypi-python-bidi@0.6.0Python Bidi layout wrapping the Rust crate unicode-bidi
Agent Success
Agent success rate when using this tile
93%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.09x
Baseline
Agent success rate without this tile
85%
Create a Python utility that processes multi-paragraph bidirectional text and prepares it for display in a text rendering system. The utility should handle text containing mixed left-to-right (LTR) and right-to-left (RTL) content across multiple paragraphs.
Your implementation should provide a function that:
The processor should correctly handle:
@generates
def process_multi_paragraph_text(text: str) -> str:
"""
Process multi-paragraph bidirectional text for display.
Args:
text: Input text containing one or more paragraphs separated by newlines
Returns:
Processed text with each paragraph properly reordered for display
"""
passProvides bidirectional text processing support for proper display of mixed LTR/RTL text.