Python Bidi layout wrapping the Rust crate unicode-bidi
Overall
score
93%
{
"context": "This criteria evaluates how well the engineer uses the python-bidi package to handle multi-paragraph bidirectional text processing, focusing on proper use of the get_display() function for paragraph-level text reordering and boundary handling.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses get_display function",
"description": "The implementation imports and uses the get_display() function from the bidi package to process bidirectional text",
"max_score": 25
},
{
"name": "Paragraph-level processing",
"description": "The implementation processes each paragraph independently by splitting the input text and calling get_display() separately for each paragraph, ensuring proper boundary resets between paragraphs",
"max_score": 30
},
{
"name": "Preserves paragraph structure",
"description": "The implementation preserves the original paragraph structure by maintaining newline characters or empty lines between processed paragraphs in the output",
"max_score": 20
},
{
"name": "Handles automatic direction",
"description": "The implementation allows get_display() to automatically detect the base direction for each paragraph without hardcoding direction parameters, enabling proper handling of mixed-direction documents",
"max_score": 15
},
{
"name": "Correct output format",
"description": "The implementation returns a single string containing all processed paragraphs that can be directly used for display purposes",
"max_score": 10
}
]
}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