BiDi Tools for right-to-left languages

AnkiWeb addon 281067366

Adds Anki editor buttons to set selected text or surrounding line to left-to-right or right-to-left, plus options to insert Unicode directionality characters, with English and Arabic localization.
AI-generated summary; may contain mistakes.

formatting

Open on AnkiWeb GitHub Forum topic Ask about alternatives

AnkiWeb

Rating
14 (👍 14 · 👎 0)
Updated
2026-02-22
Anki versions
2.1.65~
Description language
en

Maintenance

stale

  • Last update or commit was 221 days before the snapshot (2026-02-22).

GitHub

Repository
abdnh/anki-bidi-tools · more by abdnh
Stars
⭐ 1 · forks 1 · open issues 0
Last commit
2026-02-15
License
GPL-3.0
Languages
Python, HTML, JavaScript, Makefile
Tests
0

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.222.1.65+2026-02-22
History across monthly snapshots

Loading…

Similar addons

Quick Format--harel

Adds right-click review formatting for color, bold, and Cloze creation, with configurable buttons, undo checkpoints, local-only processing, and strict Cloze conversion limits.

review-flowformattingcloze

Rating 0 👍 0 · 👎 0 Anki 2.1.2~ Updated 2026-07-19
Add Table

Inserts HTML tables via a dialog or by converting selected markdown-like text, with configurable shortcut and styling, but not for editing existing tables.

formattingfork-or-reupload

Rating 144 👍 140 · 👎 4 ⭐ 7 Anki 2.1.65~ Updated 2023-06-18

README

BiDi Tools For Anki

An add-on for Anki 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 already provides an option to set each field's direction under the Fields screen, and modern systems do a decent job handling mixed text thanks to the Unicode Bidirectional Algorithm, but there are cases when it's necessary to explicitly specify the direction of certain parts of the field text because of limitations in what the algorithm can do automatically.

BiDi Intro

You can read some incomplete notes I've written about the BiDi algorithm in technical.md

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.)

Add-on's buttons in the editor

The following actions are available in the editor:

  1. Left-To-Right: Apply left-to-right direction to the HTML block element surrounding the selected text (if any). If you're not familiar with HTML, you can think of this as roughly setting the direction of the entire line where the cursor is currently at.
  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.

AnkiWeb

You can download the add-on from AnkiWeb: https://ankiweb.net/shared/info/281067366

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 me

Consider supporting me on Ko-fi or Patreon if you like my add-ons:

<a href='https://ko-fi.com/U7U8AE997'><img height='36' src='https://cdn.ko-fi.com/cdn/kofi1.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a> <a href="https://www.patreon.com/abdnh"><img height='36' src="https://i.imgur.com/mZBGpZ1.png"></a>

I'm also available for freelance add-on development at Fiverr:

<a href="https://www.fiverr.com/abd_nh/develop-an-anki-addon"><img height='36' src="https://i.imgur.com/0meG4dk.png"></a>