CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-python-bidi

Python Bidi layout wrapping the Rust crate unicode-bidi

Overall
score

93%

Overview
Eval results
Files

rubric.jsonevals/scenario-10/

{
  "context": "This criteria evaluates how well the engineer uses the python-bidi package to handle complex bidirectional text scenarios including mathematical expressions, nested quotations with mirroring, and explicit embedding controls. The focus is on correct usage of get_display() function and the upper_is_rtl parameter for testing purposes.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses get_display()",
      "description": "Implementation correctly imports and uses the get_display() function from the bidi package as the primary text processing mechanism.",
      "max_score": 20
    },
    {
      "name": "upper_is_rtl parameter",
      "description": "Implementation correctly passes the upper_is_rtl parameter to get_display() based on the use_uppercase_as_rtl argument to enable debug mode testing.",
      "max_score": 20
    },
    {
      "name": "Mathematical expressions",
      "description": "Implementation correctly handles mathematical expressions with operators (+, -, *, /) and numbers in RTL context, producing the expected reordered output as specified in the test cases.",
      "max_score": 20
    },
    {
      "name": "Nested quotations",
      "description": "Implementation correctly processes quoted text containing nested parentheses and punctuation in RTL context, producing properly mirrored parentheses and correct character order.",
      "max_score": 20
    },
    {
      "name": "Explicit embeddings",
      "description": "Implementation correctly handles Unicode bidirectional embedding characters (LRE U+202A, RLE U+202B, PDF U+202C) to process nested directional contexts.",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-python-bidi

tile.json