Fwd: Farsi on AndroidAnki

131 views
Skip to first unread message

Nicolas Raoul

unread,
Jun 6, 2011, 9:04:17 PM6/6/11
to anki-a...@googlegroups.com, MTM
(forwarding to mailing list)

Which applications are showing Farsi correctly?
Could you please send us a screenshot of AnkiDroid?
Thanks!
Nicolas Raoul


---------- Forwarded message ----------
From: Matthew
Date: Tue, Jun 7, 2011 at 12:26 AM
Subject: Re: Farsi on AndroidAnki
To: Nicolas Raoul


Hi Nicolas,

Ok, I downloaded the new beta AnkiDroid and installed it, and it is
still doing the same thing with both Persian/Farsi cards and Arabic
cards: the letters do not show up connected and the letters are out of
order as well.

On another application on my phone (LG Optimus S with Adroid 2.2), the
Persian/Farsi words do display correctly. So I am thinking that it
must be something with the AnkiDroid program that is the problem.

Any other ideas?

Let me know if I can be of any help. I do not really have any
programing expertise, but I do know Persian/Farsi and Arabic so I may
be able to help with that.

Best,
Matt

On 6/6/11 9:59 AM, Nicolas Raoul wrote:
>
> I was talking about the latest beta of AnkiDroid, I uploaded it here today:
> http://code.google.com/p/ankidroid/downloads/list
>
> Cheers!
> Nicolas
>
> On Mon, Jun 6, 2011 at 11:56 PM, Matthew wrote:
>>
>> Dear Nicolas,
>>
>> The latest beta is for desktop Anki, right?
>>
>> The problem that I am having--and it seems that others on the help forum
>> have been having too--is with the AnkiDroid application and its display on
>> Persian/Farsi font. When I use Anki desktop 1.2.8 or AnkiWeb, my
>> Persian/Farsi fonts show up perfect, but when I try to use the same
>> flashcards on the AnkiDroid app then the Persian/Farsi words get scrambled.
>>
>> Any suggestions?
>>
>> Peace,
>> Matt
>>
>> On 6/6/11 9:36 AM, Nicolas Raoul wrote:
>>>
>>> Hi Matt,
>>>
>>> Antoine has been working on Arabic display this month, and got it to
>>> work, it seems.
>>> You should try the latest beta and let us know.
>>>
>>> Cheers!
>>> Nicolas
>>>
>>> On Mon, Jun 6, 2011 at 11:29 PM, MTM
>>>  wrote:
>>>>
>>>> Nicolas,
>>>>
>>>> No, these screenshots are incorrect. The Persian/Farsi letters are not
>>>> connected and appear out of order.
>>>>
>>>> I am having the same problem on my AnkiDroid now too with my Persian/
>>>> Farsi Anki cards.
>>>>
>>>> Has there been any updates since this thread?
>>>>
>>>> Thanks for all of your hard work!
>>>>
>>>> -Matt
>>>>
>>>> On May 11 2010, 8:30 pm, Nicolas_Raoul
>>>> wrote:
>>>>>
>>>>> Hi Ryan,
>>>>>
>>>>> Do these screenshots look like what you
>>>>> want?http://groups.google.com/group/anki-android/browse_thread/thread/e5c5...
>>>>>
>>>>> Feel free to join the discussion with Edu on that thread :-)
>>>>>
>>>>> Thanks for your interest in AnkiDroid!
>>>>> Nicolas
>>>>>
>>>>> --http://groups.google.com/group/ankisrs/topics

Matthew Thomas Miller

unread,
Jun 6, 2011, 9:35:13 PM6/6/11
to Nicolas Raoul, anki-a...@googlegroups.com
Attached are screenshots of both a Persian and Arabic flashcard in the
new beta AnkiDroid on my phone.

The program that is showing the Persian/Farsi script correctly is the
aFarsi Persian dictionary. (I havent tried it on any others yet).

In both the Persian and Arabic flashcards the letters are not connected
as they should be and they are showing up backwords (i.e. left to right,
instead of the correct right to left order).

Please let me know if you have any other questions or if I can be of any
other help....Thanks for all your hard work, Matt

Arabic Anki Flashcard Screenshot.jpg
Persian Anki Flashcard Screenshot.jp2

Antoine Schweitzer-Chaput

unread,
Jun 7, 2011, 2:15:35 AM6/7/11
to anki-a...@googlegroups.com, Nicolas Raoul, anki-a...@googlegroups.com
Hello Matthew,

I added some code in the latest beta to fix exactly this issue with arabic letters.
This code is only activated if you check a new Preference item (in the Others category) called "improve Arabic display".
Could you try that?

With the current beta the connection issue should be solved most or the time, but if your card has several words the word ordering is incorrect.
I submitted some code to Nicolas to fix this as well, hopefully it will be in the next beta.

Please let me know how this is working with your data, I could only test it with a limited number of cards yet and would welcome any feedback.

Antoine

> --
> You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
> To post to this group, send an email to anki-a...@googlegroups.com.
> To unsubscribe from this group, send email to anki-android...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/anki-android?hl=en-GB.
>
> <Arabic Anki Flashcard Screenshot.jpg>
> <Persian Anki Flashcard Screenshot.jp2>

Matthew Thomas Miller

unread,
Jun 7, 2011, 9:07:36 AM6/7/11
to anki-a...@googlegroups.com, Nicolas Raoul
Antoine,

I did enable the "improve Arabic display" preference and that seemed to
help somewhat, but most of the words still do not appear correctly.

There seems to be several problems:

1. some letters do not connect, although others do in the same card.

2. some words appear with their letters ordered from left to right,
although others appear right to left, sometimes both occur in the same
card if there are multiple words.

3. short vowel markers do not always appear, although sometimes they do.

These are the problems that I see. I wish I could be more help on how to
fix them.

-Matt

On 6/7/11 1:15 AM, Antoine Schweitzer-Chaput wrote:
> Hello Matthew,
>
> I added some code in the latest beta to fix exactly this issue with arabic letters.
> This code is only activated if you check a new Preference item (in the Others category) called "improve Arabic display".
> Could you try that?
>
> With the current beta the connection issue should be solved most or the time, but if your card has several words the word ordering is incorrect.
> I submitted some code to Nicolas to fix this as well, hopefully it will be in the next beta.
>
> Please let me know how this is working with your data, I could only test it with a limited number of cards yet and would welcome any feedback.
>
> Antoine
>

> Le 7 juin 2011 � 02:35, Matthew Thomas Miller<matthew.th...@gmail.com> a �crit :

Antoine Schweitzer-Chaput

unread,
Jun 7, 2011, 10:17:57 AM6/7/11
to anki-a...@googlegroups.com, Nicolas Raoul
Could you send me a sample deck with a few cards demonstrating these problems?

Antoine


Matthew Thomas Miller <matthew.th...@gmail.com> a écrit :
Antoine, I did enable the "improve Arabic display" preference and that seemed to help somewhat, but most of the words still do not appear correctly. There seems to be several problems: 1. some letters do not connect, although others do in the same card. 2. some words appear with their letters ordered from left to right, although others appear right to left, sometimes both occur in the same card if there are multiple words. 3. short vowel markers do not always appear, although sometimes they do. These are the problems that I see. I wish I could be more help on how to fix them. -Matt On 6/7/11 1:15 AM, Antoine Schweitzer-Chaput wrote: > Hello Matthew, > > I added some code in the latest beta to fix exactly this issue with arabic letters. > This code is only activated if you check a new Preference item (in the Others category) called "improve Arabic display". > Could you try that? > > With the current beta the connection issue should be solved most or the time, but if your card has several words the word ordering is incorrect. > I submitted some code to Nicolas to fix this as well, hopefully it will be in the next beta. > > Please let me know how this is working with your data, I could only test it with a limited number of cards yet and would welcome any feedback. > > Antoine > > Le 7 juin 2011 à 02:35, Matthew Thomas Miller<matthew.th...@gmail.com> a écrit : > >> Attached are screenshots of both a Persian and Arabic flashcard in the new beta AnkiDroid on my phone. >> >> The program that is showing the Persian/Farsi script correctly is the aFarsi Persian dictionary. (I havent tried it on any others yet). >> >> In both the Persian and Arabic flashcards the letters are not connected as they should be and they are showing up backwords (i.e. left to right, instead of the correct right to left order). >> >> Please let me know if you have any other questions or if I can be of any other help....Thanks for all your hard work, Matt >> >> >> On 6/6/11 8:04 PM, Nicolas Raoul wrote: >>> (forwarding to mailing list) >>> >>> Which applications are showing Farsi correctly? >>> Could you please send us a screenshot of AnkiDroid? >>> Thanks! >>> Nicolas Raoul >>> >>> >>> ---------- Forwarded message ---------- >>> From: Matthew >>> Date: Tue, Jun 7, 2011 at 12:26 AM >>> Subject: Re: Farsi on AndroidAnki >>> To: Nicolas Raoul >>> >>> >>> Hi Nicolas, >>> >>> Ok, I downloaded the new beta AnkiDroid and installed it, and it is >>> still doing the same thing with both Persian/Farsi cards and Arabic >>> cards: the letters do not show up connected and the letters are out of >>> order as well. >>> >>> On another application on my phone (LG Optimus S with Adroid 2.2), the >>> Persian/Farsi words do display correctly. So I am thinking that it >>> must be something with the AnkiDroid program that is the problem. >>> >>> Any other ideas? >>> >>> Let me know if I can be of any help. I do not really have any >>> programing expertise, but I do know Persian/Farsi and Arabic so I may >>> be able to help with that. >>> >>> Best, >>> Matt >>> >>> On 6/6/11 9:59 AM, Nicolas Raoul wrote: >>>> I was talking about the latest beta of AnkiDroid, I uploaded it here today: >>>> http://code.google.com/p/ankidroid/downloads/list >>>> >>>> Cheers! >>>> Nicolas >>>> >>>> On Mon, Jun 6, 2011 at 11:56 PM, Matthew wrote: >>>>> Dear Nicolas, >>>>> >>>>> The latest beta is for desktop Anki, right? >>>>> >>>>> The problem that I am having--and it seems that others on the help forum >>>>> have been having too--is with the AnkiDroid application and its display on >>>>> Persian/Farsi font. When I use Anki desktop 1.2.8 or AnkiWeb, my >>>>> Persian/Farsi fonts show up perfect, but when I try to use the same >>>>> flashcards on the AnkiDroid app then the Persian/Farsi words get scrambled. >>>>> >>>>> Any suggestions? >>>>> >>>>> Peace, >>>>> Matt >>>>> >>>>> On 6/6/11 9:36 AM, Nicolas Raoul wrote: >>>>>> Hi Matt, >>>>>> >>>>>> Antoine has been working on Arabic display this month, and got it to >>>>>> work, it seems. >>>>>> You should try the latest beta and let us know. >>>>>> >>>>>> Cheers! >>>>>> Nicolas >>>>>> >>>>>> On Mon, Jun 6, 2011 at 11:29 PM, MTM >>>>>> wrote: >>>>>>> Nicolas, >>>>>>> >>>>>>> No, these screenshots are incorrect. The Persian/Farsi letters are not >>>>>>> connected and appear out of order. >>>>>>> >>>>>>> I am having the same problem on my AnkiDroid now too with my Persian/ >>>>>>> Farsi Anki cards. >>>>>>> >>>>>>> Has there been any updates since this thread? >>>>>>> >>>>>>> Thanks for all of your hard work! >>>>>>> >>>>>>> -Matt >>>>>>> >>>>>>> On May 11 2010, 8:30 pm, Nicolas_Raoul >>>>>>> wrote: >>>>>>>> Hi Ryan, >>>>>>>> >>>>>>>> Do these screenshots look like what you >>>>>>>> want?http://groups.google.com/group/anki-android/browse_thread/thread/e5c5... >>>>>>>> >>>>>>>> Feel free to join the discussion with Edu on that thread :-) >>>>>>>> >>>>>>>> Thanks for your interest in AnkiDroid! >>>>>>>> Nicolas >>>>>>>> >>>>>>>> --http://groups.google.com/group/ankisrs/topics >> -- >> You received this message because you are subscribed to the Google Groups "AnkiDroid" group. >> To post to this group, send an email to anki-a...@googlegroups.com. >> To unsubscribe from this group, send email to anki-android...@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/anki-android?hl=en-GB. >> >> <Arabic Anki Flashcard Screenshot.jpg> >> <Persian Anki Flashcard Screenshot.jp2> -- You received this message because you are subscribed to the Google Groups "AnkiDroid" group. To post to this group, send an email to anki-a...@googlegroups.com. To unsubscribe from this group, send email to anki-android...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/anki-android?hl=en-GB.

Matthew Thomas Miller

unread,
Jun 7, 2011, 2:31:50 PM6/7/11
to anki-a...@googlegroups.com
Do you want screen shots of the decks on my phone or just the deck in general?

-Matt

Antoine Schweitzer-Chaput

unread,
Jun 7, 2011, 2:39:41 PM6/7/11
to anki-a...@googlegroups.com
The deck itself would be great, it would allow me to debug the arabic reshaping routines on your actual data.

Antoine

Matthew Thomas Miller

unread,
Jun 7, 2011, 2:41:05 PM6/7/11
to anki-a...@googlegroups.com
what format do you want me to send them in?

Antoine Schweitzer-Chaput

unread,
Jun 7, 2011, 2:43:19 PM6/7/11
to anki-a...@googlegroups.com
Simply the .anki file.
Either the one from the desktop version, or the one found in the AnkiDroid directory of your phone's sdcard.

Antoine Schweitzer-Chaput

unread,
Jul 10, 2011, 3:21:09 PM7/10/11
to Matthew T. Miller, anki-a...@googlegroups.com
Hello Matthew,

I took a look at your sample decks and I think I identified two different issues:

1) the current arabic display code is disturbed by punctuation marks, or the '|' sign you use to separate verbal forms in some of your cards. I never encountered this before because my decks only contain isolated words or expressions. I'll have to find a proper way to handle this.

2) your persian deck uses some letters that, as far as I know, are not part of the arabic alphabet. I noticed the arabic jim with 3 dots, and some other instances. The arabic reshaper doesn't recognize these letters right now, so every word containing one of these letters is mixed up.
I don't know anything about persian, would you be able to provide me with the list of such letters? Are the connection rules with these letters similar to the arabic ones?
This should be an easy one to fix.

Regards,

Antoine

Le 8 juil. 2011 à 12:47, Matthew T. Miller a écrit :

Antoine,

Here is the email with the decks I sent.

Let me know if you get this one.

And let me know if I can be of any help.

Peace,
Matt

---------- Forwarded message ----------
From: Matthew Thomas Miller <matthew.th...@gmail.com>
Date: Tue, Jun 7, 2011 at 1:57 PM
Subject: Re: [Ankidroid] Re: Fwd: Farsi on AndroidAnki
To: anki-a...@googlegroups.com


Both Arabic and Persian/Farsi decks are attached.

Thanks,
Matt

<Persian Vocab.anki><Arabic Vocabulary.anki>

Matthew Thomas Miller

unread,
Jul 10, 2011, 3:58:06 PM7/10/11
to Antoine Schweitzer-Chaput, anki-a...@googlegroups.com
Antoine,

Thank you so much for your help.

You are correct. Persian uses the Arabic script, PLUS four additional letter: peh(Ù¾), che(Ú†), jheh(Ú˜), and gaf (Ú¯). All four of these use the exact same connection rules as the other Arabic letters they resemble with less dots or lines (with one exception). (Actually, they are just the original Arabic letters with a few added dots or an extra line).

The connection rules for the Persian letter peh(پ) are the same as the connection rules for the Arabic and Persian letter beh ب.

The connection rules for the Persian letter che(چ) are the same as the connection rules for the Arabic and Persian letters jim ج and kha خ.

The connection rules for the Persian letter jheh(ژ) are the same as the connection rules for the Arabic and Persian letter zal ز.

The connection rules for gaf (Ú¯) are the same as the connection rules for arabic kaf (Ú©), with one same exception. The only exception is that in the final position the Arabic kaf (Ú©) becomes vertical, like this: Ùƒ. And the Persian gaf (Ú¯) stays the same as gaf (Ú¯) does in the medial positions: like this Ú¯

Here are a couple of links for the full Persian alphabet: http://www.iranchamber.com/scripts/persian_alphabet.php and http://www.easypersian.com/W1/persian_alphabet.htm .

PLEASE let me know if I can be of any other help.

Peace,
Matt

Antoine Schweitzer-Chaput

unread,
Jul 11, 2011, 3:42:52 PM7/11/11
to Matthew Thomas Miller, anki-a...@googlegroups.com
Hello Matthew,

Thank you very much for your precious indications.
I added support for these 4 letters in my branch. As a side effect this also forced me to dive into the Unicode tables for Arabic which demonstrate a huge amount of characters I had never encountered. Most of them are clearly used only in very specific dialects, but still it's a huge variety...
Anyway, I still have to find a solution for the display mixup caused by non-letter characters.

Would you be interested in testing this intermediate version, even though a large portion of your cards will still display incorrectly?

Regards,

Antoine
Reply all
Reply to author
Forward
0 new messages