3 0
Contact Author Sign in to rate

BiDi Tools

0.01MB. Updated 2022-01-14.
The author has shared 18 other item(s).


An add-on that adds some editor tools for bidirectional text (BiDi)β€”text containing different types of alphabets that have different directionalities (e.g. mixed English and Arabic text). Anki provides an option to set each field's direction under the Fields screen, but there are cases when it's necessary to override the direction of certain parts of the field text. Usage The add-on provides buttons to set the direction of the selected text to either LTR (left to right, like the Latin script and most scripts), or RTL (right to left, like in Arabic, Hebrew, Persian, etc.) The following actions are available in the editor:
  1. Left-To-Right: Apply left-to-right direction to the entire line where the cursor is currently at (technically, it modifies the HTML block element surrounding the text)
  2. Right-To-Left: Ditto, but for RTL.
  3. More options under the third icon:
    • LTR Selected: Apply left-to-right to direction to the selected text only.
    • RTL Selected: Ditto, but for RTL.
    • Insert Characters: A menu for inserting common Unicode characters used to affect text directionality. You probably don't need to use any of these as the previous options should cover most cases, but see https://en.wikipedia.org/wiki/Bidirectional_text#Unicode_bidi_support for an explanation of the characters.
Translations The add-on is localized to English and Arabic. You can help translate the add-on to your langauge and send me the translated strings and I will include them (or you can open a PR if you're technical). There are only a few strings to translate. See i18n.py for a list of the strings and how they are defined for each language. Support Please report issues and suggestions on the support page. Support me Consider supporting me on Ko-fi or Patreon if you like my add-ons: I'm also available for freelance add-on development at Fiverr:


As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:


If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author


on 1654817207
The Best add-on Ever, I had faced this problem in writing in Arabic with English words, but Your add-on fixed the problem with a fantastic way
keep on Abdo πŸ’šπŸ’š
on 1645295094
Best Add-On in my Book!
on 1643926706
THIS rescues my life. habitually it drives me nuts when i write arabic and english.