Anki add-on: BiDi Tools for right-to-left languages

This add-on 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: 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) Right-To-Left : Ditto, but for RTL. 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:

GitHub repository: abdnh/anki-bidi-tools
Repository description: Bidirectional text tools for Anki
Languages: Python, HTML, JavaScript, Makefile
Topics: anki, anki-addon, arabic, bidi