Mixing Arabic and English in One Document Without Broken Punctuation
Why full stops and brackets jump in Arabic text with English words, how bidi works, RLM, LRM and isolates, and making DOCX and PDF that stay right.

Mixing Arabic and English in One Document Without Broken Punctuation
Write "تم إطلاق النسخة 2.0 من التطبيق." in a plain text box and the full stop may jump to the left of "2.0". Start an Arabic paragraph with an English brand name and the whole paragraph turns left-to-right. These are not bugs in your keyboard but the Unicode bidirectional algorithm doing its job without enough information. The Arabic RTL Document Editor With Mixed English gives you the controls to fix it.
How the bidi algorithm works
- Letters have a strong direction: Arabic is right-to-left, English left-to-right.
- Digits are weak: they run left to right but take their place from the text around them.
- Punctuation and spaces are neutral: they take the direction of their neighbours.
- A paragraph's base direction comes from its first strong letter, unless it is set.
So an Arabic paragraph that starts with "IT" becomes a left-to-right paragraph, and a full stop after a number at the end of an Arabic sentence sits beside the number.
Fix 1: set the paragraph direction
Each block in the editor has a direction: auto, right to left or left to right. Set Arabic paragraphs that start with an English word to right to left, and English summaries to left to right. In HTML this becomes dir="rtl" or dir="ltr"; in DOCX, a right-to-left paragraph.
Fix 2: invisible marks
- RLM (right-to-left mark, U+200F): an invisible right-to-left letter. Put it after a number or English word at the end of an Arabic sentence, and the full stop goes back to the left side where Arabic readers expect it.
- LRM (left-to-right mark, U+200E): the opposite, inside English text.
- ALM (Arabic letter mark, U+061C): like RLM, designed for Arabic.
Fix 3: isolates
An isolate wraps a piece of text so that its direction cannot affect the words around it. Type an English name, an email, a phone number or a product code in the box and insert it as a left-to-right isolate inside an Arabic paragraph. Isolates are the modern, recommended way to embed one direction in another.
A worked example
The sample document has:
- an Arabic title,
- an Arabic paragraph mentioning the "Marketing" and "IT" teams and "Q1 2027",
- list items with an amount (250,000 ريال) and a web address,
- an English summary that mentions an Arabic name.
Each block keeps its direction, and the punctuation stays in place in the preview, the printed PDF and the Word file.
Fonts
The editor uses the Arabic fonts on your device: Arabic Typesetting or Sakkal Majalla on Windows, Geeza Pro or Baghdad on a Mac, Noto Naskh on Android. Choose one and the body size.
Exporting
- DOCX: each block becomes a Word paragraph, and paragraphs that start in Arabic are marked right-to-left, so they open aligned to the right in Word, LibreOffice or Google Docs.
- PDF: print or save as PDF from the browser.
- HTML: every block carries its dir attribute, ready for a website or a newsletter.
- TXT: plain text with the invisible marks kept.
Tips for clean bilingual writing
- Start each paragraph in its main language.
- Keep English names, codes and links as isolates.
- Use Western digits or Arabic-Indic digits consistently.
- Avoid putting a full stop right after an English word in an Arabic sentence without an RLM.
Limits
This is a focused editor for clean text, not a full word processor: it has no images, tables or comments. Your document is saved only in this browser.


%20Generator&c=%23991b1b&k=documents)
