isolate_foreign
Fix RTL rendering of foreign text in Arabic content by wrapping phone numbers, URLs, and Latin words with Unicode bidi isolates.
Instructions
Wrap foreign/LTR runs (phone numbers, Latin text, URLs) inside Arabic text with Unicode bidi isolates so they render correctly in RTL contexts (e.g. "اتصل على +1 (555) 234-5678 الآن").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The mixed-direction text to process. |