in Atto Editor, the numerical ordered list, I want to have Farsi/Arabic Numbers

in Atto Editor, the numerical ordered list, I want to have Farsi/Arabic Numbers

by Reza Mirdamadi -
Number of replies: 4

Hi

After the latest upgrade, in Atto Editor in RTL version of my moodle which is in Farsi language, when I use ordered list  I am getting English numbers. I want to have Farsi numbers instead of as we used to have Farsi numbers before too. But somehow after the upgrade, it is not giving us the Farsi numbers. (۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹ )‌

I am using XM Yekan which is a Farsi Font and it has the Farsi Numbers too but still no chance. 

Average of ratings: -
In reply to Reza Mirdamadi

Re: in Atto Editor, the numerical ordered list, I want to have Farsi/Arabic Numbers

by Daniel Thies -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hello Reza,

The Atto editor plugin creates an ordered with the standard HTML tags <ol><li>. It does not control how it is displayed. That is set with the theme (font). I would assume that something is different there with the way previous site was configured.

Is it possible that it was using something other that XM Yekan for that, which renders Latin numbers in Farsi. What versions did you upgrade from/to? did you change the theme?

In reply to Daniel Thies

Re: in Atto Editor, the numerical ordered list, I want to have Farsi/Arabic Numbers

by Reza Mirdamadi -
Hi Daniel,

Thanks for your reply. I have upgraded from 3.5 to 3.9 and due to incompatibility of our previous theme (essential) with the latest version of Moodle, I had to change our theme too. We are now using Lambda theme.
Regarding the Font, I checked the Essential Font Setting before our upgrade and it was only using XM Yekan. So what I did was to use the same exact font for our new theme.

Do you think using another Farsi Font would help?
In reply to Reza Mirdamadi

Re: in Atto Editor, the numerical ordered list, I want to have Farsi/Arabic Numbers

by Daniel Thies -
Picture of Core developers Picture of Plugin developers Picture of Testers

I found that it works to add some CSS.

ol {
list-style-type: arabic-indic;
}

See https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type. Some thing like this may have been included in you previous theme.

Average of ratings: Useful (1)
In reply to Daniel Thies

Re: in Atto Editor, the numerical ordered list, I want to have Farsi/Arabic Numbers

by Reza Mirdamadi -

Thanks so much Daniel, 

It solved my problem. 

much appreciated.