5 0
Contact Author Sign in to rate

Optionally Strip Arabic/Hebrew/Syriac diacritics in cards

0.01MB. Updated 2020-12-21.
The author has shared 2 other item(s).

Description

v1.2 This plug-in adds support for conditional removal of diacritics in Arabic, Hebrew and Syriac scripts in the card template. It means that with a single field containing diacritics, you can choose to display or not the diacritics when you review a card. A practical use for it is to remove diacritics in the question, but display them in the answer: Q:وصل القطار الى المحطّة الصّغيرة [After a long and tiring trip]. A:بَعْدَ سَفْرَةٍ طَوِيلَةٍ وَمُتْعِبَةٍ وَصَلَ الْقِطَارُ إِلَى الْمَحَطَّةِ الصَّغِيرَةِ. To achieve this, simply add the modifier {{plain_arabic_except(shadda)::Field}} to your card template. Three modifiers are available at first: plain_{arabic,hebrew,syriac}_except(), which strips a field of all its diacritical marks except the one that you will have passed as parameters to the modifier: the one I personally use is {{plain_arabic_except(shadda,hamza):cloze:Text}}. You can easily extend it. Note that since I've added support to Anki for chained modifiers and for modifier parameters, it is possible to apply the modifier to a cloze field. Support for chained modifiers exist in Anki and lets you develop your own modifier add-ons. As for AnkiDroid, it apparently now supports chained modifiers as well (so your cards won't crash, as it used to be the case), but given the lack of support for add-ons, your diacritics will still appear there. For any question, bug report or extra features, email me at julien.baley[@]gmail[.]com

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:

1615485957

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 1621101589
What a great addon! Thank you for this! And just to clarify, so in order for us to bring the diacritics back, we just have to go back into the template and remove the code? Or is there a way to toggle? Thanks.
on 1516060800
it's useful
on 1515542400
Greatly simplifies searching for vocabulary.
on 1507939200
on 1431475200
Great for learning to read Arabic

This is a great add-on when you are learning to read Arabic. I use Arabic letters with diacritics as pronunciation help. To get used to read Arabic I prefer not to use the diacritics. With this add-on I can get both variants with only one note field and use them on different cards. شُكْراً جَزِيلاً or شكرا جزيلا