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
Liên kết hỗ trợ
Reviews (4)
👍 2021-05-15
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.
👍 2018-01-16
it’s useful
👍 2018-01-10
Greatly simplifies searching for vocabulary.
👍 2015-05-13
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 شكرا جزيلا