All products

Format mixed Persian and English chat text with AI

Stabilise right-to-left Persian lines in a chat interface while keeping standalone Latin commands, URLs and file paths easy to copy.

You can format mixed Persian and English chat text with AI when an otherwise correct message displays in a confusing order. A short Persian instruction might contain an English button label and a version number, with the full stop appearing in an unexpected place. The persian-rtl-format skill uses Unicode direction controls around Persian lines to make their reading direction explicit.

The same marks do not belong inside a command that someone needs to copy. The guide gives standalone English text, paths and code their own lines. It is aimed at chat containers that handle mixed text poorly, where you often cannot set paragraph direction directly.

What it does

  • Keep a short English control label inside Persian instructions.
  • Make the base direction of each Persian paragraph explicit.
  • Separate a Latin file path from surrounding Persian punctuation.
  • Use Persian digits for a numbered instruction in chat.
  • Check that a code sample remains a clean, independent block.

Install and use

  1. Load the skill in a supported chat or Claude Code environment. It requires no additional application or account.
  2. Give the agent the mixed-language message and identify any command or URL that must remain copyable.
  3. Review the result in the actual receiving chat and copy the command separately to check it.

FAQ

Source

Made by mrkamyar. Original skill: persian-rtl-format, published on GitHub under the MIT licence.

View on GitHub