3 0
Contact Author Sign in to rate

BiDi Tools

0.01MB. Updated 2022-01-14. Only supports Anki 2.1.x.
The author has shared 16 other item(s).

Description

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 Consider supporting me on Ko-fi if you like my add-ons.

Download

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:

281067366

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

Reviews

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.
on 1642162275
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 πŸ’šπŸ’š