Problem with combining right-to-left languages with English

164 views
Skip to first unread message

Maya z

unread,
Nov 23, 2020, 9:57:39 AM11/23/20
to public...@ankidroid.org
Hi,
I'm using a right-to-left language (Hebrew) and often combine my cards with English words.
When I write the card everything is okay but once the card is displayed the whole order of the sentence is ruined.
I'm attaching here an example.

Correct order:
image.png


What appears when I see the card:
image.png

image.png
Thank you for the help,
Maya

David Allison

unread,
Nov 23, 2020, 5:12:40 PM11/23/20
to anki-a...@googlegroups.com, public-forum
Hi Maya, thanks for getting in touch

Could you copy/paste the text you input into the Note Editor so we can test this out?

All the best,

David

--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/CANhJHBQZLeKx5fpv%2Bsx9bkF79xKYNOeMjm5unzs6CCaCz9wuLw%40mail.gmail.com.

David Allison

unread,
Nov 24, 2020, 3:35:49 AM11/24/20
to anki-a...@googlegroups.com, public-forum
Hi Maya,

We are discussing this issue: https://github.com/ankidroid/Anki-Android/issues/7767

For now, to resolve your problem:
  • Edit a card
  • Click "Cards"
  • You will see a template (for example: "{{cloze::Text}}") on the front template of the card.
  • Change this to: <span dir="rtl">{{cloze::Text}}</span>
  • The preview and cards should now render correctly
  • You'll need to do this once per card template - maybe 4/5 times if you use different types
All the best,

David

Maya z

unread,
Nov 24, 2020, 6:19:38 AM11/24/20
to AnkiDroid
A huge thank you! It did resolve the problem!

Dotan Cohen

unread,
Nov 24, 2020, 10:39:29 AM11/24/20
to AnkiDroid
Note that setting span dir="rtl" on the regular cloze template will manifest in problems with LTR cloze cards. Additionally, it does not resolve the issue of the text appearing wrong when creating the card.

I use a separate RTL cloze note type, with the cloze field marked as RTL. I see that AnkiDroid does not have facility for marking fields as RTL, so either you can create this type on the desktop or I can send to you an empty deck with this note type for you to import.
Reply all
Reply to author
Forward
0 new messages