After restoring a backup, my Arabic Cloze cards are rendering in the wrong direction during review mode.
In the editor: Text is correctly ordered Right-to-Left (RTL), with c1 on the far right and c4 on the far left.
In review mode: Anki flips the visual order to Left-to-Right (LTR), showing c1 on the far left instead.
I have already tried enabling “Right-to-left language” in field settings.
Thanks beforehand!
?? I know, I did ask in both platforms…
Yes, but the contributors won’t know. Doubled effort is wasted effort.
matta
August 11, 2026, 2:34am
5
What is the HTML/CSS that you use on the cards?
Whenever I use Arabic content on a card (there may be French or English content on the card as well), I enclose the Arabic content in an HTML division (<div>). For example, the following.
<div class=arabic>
{{Front}}
</div>
The “arabic” class has the following CSS on the Styling tab.
@font-face {
font-family: TradArabic;
src: url("_TradArabic.ttf");
}
.arabic {
font-family: TradArabic;
font-size: 40px;
direction: rtl;
}
Yes, you’re right. Sorry, it’s my fist time here
Hello, I just have this issue with ‘Cloze’ cards if it helps…
The html::
{{cloze:Text}}
The css:
.card {
font-family: "Noto Naskh Arabic", sans-serif;
font-size: 50px;
text-align: left;
color: black;
background-color: white;
direction: rtl;
unicode-bidi: isolate;
}
.cloze {
font-weight: bold;
color: blue;
}
.nightMode .cloze {
color: lightblue;
}
matta
August 11, 2026, 7:34am
8
It might be easier, if you have a look at my deck and see how I have done it.
In HTML, you need a block element (e.g. <div>) to control blocks of text such as paragraphs, etc., and thereby sections of the card.
Your card has its direction set to RTL, but the text is specified as left-aligned. This might cause you a problem.
Do you only have Arabic text on the card, or are you using another language as well?
If you could export your deck and place it somewhere, from where I might download it, I can have a look at it for you.
I don’t know if this is relevant to the OP’s issue, but there was a recent change in how Anki determines LTR/RTL direction, based on the first Field in the Note .