persian rtl format

    by Dara Kamyar

    2

    Fixes scrambled RTL/LTR rendering when Claude writes Persian text mixed with English words.

    Free

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurf+15 more

    See it in action

    You say

    Translate this to Persian: "The project-folder contains the main.ts file."

    Your agent does

    ‫فایل main.ts در پوشه project-folder قرار دارد.‬

    About this skill

    The problem

    Persian text containing English words or numbers gets scrambled in desktop apps because the base direction defaults to LTR. Sentences reorder, punctuation ends up on the wrong side, and mixed-direction paragraphs become unreadable.

    What it does

    • Wraps every Persian paragraph with U+202B (RLE) and U+202C (PDF) invisible characters to force RTL rendering.
    • Handles mixed-script lines by treating English words as bare LTR islands to prevent bidi algorithm reordering.
    • Replaces standard Markdown list markers with manual RTL numbering to avoid layout breakage.
    • Applies Persian numeral formatting (۱۲۳) within RTL lines while preserving Latin digits for code.
    • Ensures no line starts with a Latin character, preventing the entire block from flipping to LTR.

    Why this beats prompting it yourself

    Manually inserting Unicode directional marks is error-prone and invisible in most editors. This skill handles the precise placement of RLE/PDF marks and manages complex bidi boundary rules that simple one-sentence prompts often ignore.

    Use cases

    • Translating technical documentation from English to Persian.
    • Writing Persian messages that include code snippets or file paths.
    • Explaining programming concepts to Persian-speaking developers.
    • Formatting Persian articles that reference English brand names or terminology.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean today

    • Free forever, no account required

    Listedtoday

    Creator

    Frequently Asked Questions

    Popular in Writing & Content

    Free