Text display order involving Hebrew no longer works properly

I recently updated to the latest version (26.09.3), and a bug seems to have appeared when I use a deck that includes Hebrew. Specifically, punctuation appears in the wrong place. This happens even if the field in question has no Hebrew in it.

I attach two screenshots: one of a note in the database, with all the text displaying correctly in each field. The second is how the card appears when testing. Notice that every question mark is in the wrong place, even in fields that have no Hebrew text in them (such as the “Glosses” field).

This happens on multiple windows devices, and remains after restarting anki and rebooting the computer, over several days. I have been using this deck with my students for years and have never had this problem before. I haven’t changed the content of the database, and this is happening on every card.

Any advice?

Many thanks!

Click on “Cards…”, find the field replacements, and surround them with something like this:

<div dir=ltr>{{English field}}</div>

<div dir=rtl>{{Hebrew field}}</div>

<div dir=auto>{{I don't care}}</div>

See also Should dir="auto" continue to be set?.

Thanks, but unfortunately that makes no difference at all.

Besides which, the problem is apparent just as much in fields that have no Hebrew as those that do, such as “where?” turning into “?where”.

Any other ideas out there?

You have to surround all field replacements with the appropriate direction code.

If it still doesn’t work, copy paste the template here.

Some further info: I have just reverted to some older backups of my profile, from times when this problem wasn’t happening. The problem appears there too.

So the only thing that has changed is my update to the latest version of anki a few days ago. Before that, it worked fine. Now, databases that worked fine before are broken.

This seems like a bug in the latest release to me.

I’m new to this forum, so please forgive this question: can anyone advise me on how to bring this to the attention of the developers?

Many thanks!

It’s not a bug and the developers are well aware of it. You can see the discussion in the link I gave above.

Here’s a way to get the old behavior back without surrounding individual field replacements:

Add this to the top of the front and back templates:

<div hidden>hi</div>

I really appreciate your time in getting back to me, thank you!

That works a treat.

Whether I’ll remember it if I ever create a new card design is another matter. :slight_smile: