Hello, I’m having a problem where Anki keeps displaying cards in my Arabic → Portuguese deck wrongly, it breaks words, I’ve attached an example image, where half the card ends up at the end when it should be at the beginning. It’s not a size issue with the window because it happens no matter the size, changing the zoom also doesn’t fix it, I’ve already tried on safe mode and nothing happened, so no add-on issue as well. It started happening after the update before this latest one.
Because the contents of your first field are in Arabic, the card is automatically rendered in right-to-left direction. This includes the second field, which is consequently interpreted as fragments of left-to-right Portuguese text inserted into primary right-to-left flow, so the fragments appear in the right-to-left order.
If you want to force the left-to-right direction for the back field, you can wrap it the tag with explicit direction attribute, like this:
<span dir="ltr">{{Back}}<span>
Thanks for the tip, but I’m a total begginer, how do I use the command?
I’m also confused by the fact that it doesn’t happen to every card, cards I created before that update work fine, and sometimes even the “broken” cards display correctly.
Click on “Cards…” then follow this
Direction autodetection may work differently depending on fields contents. Hard to say what exactly happens in your case without specific examples.
When viewing your card in the browse mode, click the Cards... button at the top of the Editor section. There switch to Back Template and put the code instead of {{Back}}.
Alternatively, if you want to be able to control this on card-to-card basis, you can edit the direction specification into individual fields. In order to do that click the <> at the top right corner of your field (it appears when you hover a cursor over it) and similarly wrap the contents in the <span dir="ltr">...<span> tag.
