Python Bidi layout wrapping the Rust crate unicode-bidi
Overall
score
93%
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.
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