Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a new list counter named 'persian-alpha' [css-persian-alpha] #2753

Closed
Huji opened this issue Jun 9, 2018 · 4 comments
Closed
Assignees
Labels
css-counter-styles-4 i18n-alreq Arabic language enablement i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.

Comments

@Huji
Copy link

Huji commented Jun 9, 2018

The https://www.w3.org/TR/css-lists-3/#propdef-list-style-type property accepts several values such as decimal, lower-alpha, armenian, or persian.

In Persian, there are two ways in which footnotes are marked: using a numeric counter (similar to 1, 2, 3, ...) or using an alphabetic counter (similar to a, b, c, ...). The former is already part of CSS3 (list-style-type: persian). I would like to ask for the latter to also be added.

I have created a JSFiddle at https://jsfiddle.net/a8obup7r/8/ which demonstrates the desired output (try it with a Mozilla browser). Since there are thirty two letters in Persian alphabet, there are also thirty two symbols used.

Note that it is customary for the first one to not be a single letter "ا" but rather a three letter spelled-out name of that letter, ie "الف". Note also that it is customary for the 31st one to not be the letter "ه" in its loose form, but to be the character in its attached form "ھ".

@tabatkins
Copy link
Member

The set of predefined counter styles is limited just to those that were predefined in CSS 2.1 (which is a pretty arbitrary set), plus a few that were difficult to reproduce with the @counter-style rule. I don't think implementors are interested in adding new ones.

However, the Predefined Counter Styles doc is where we moved a ton of other styles that can be written with @counter-style, and they'd be glad to accept additions like this.

@tabatkins
Copy link
Member

Nits on your @counter-style rule - you used suffix=" " with a =, rather than a :.

Is this really meant to cyclic, so the 33rd item gets الف as well? Or should it be alphabetic, so the 33rd is الفالف, then 34th is الفب, etc?

@Huji
Copy link
Author

Huji commented Jun 11, 2018

Nits on your @counter-style rule - you used suffix=" " with a =, rather than a :.

Sorry. Removed. It was not necessary.

Is this really meant to cyclic, so the 33rd item gets الف as well? Or should it be alphabetic, so the 33rd is الفالف, then 34th is الفب, etc?

Alphabetic is the right way. jsFiddle updated accordingly.

@Huji
Copy link
Author

Huji commented Jun 11, 2018

However, the Predefined Counter Styles doc is where we moved a ton of other styles that can be written with @counter-style, and they'd be glad to accept additions like this.

Good call. I did not know about that. It already has a persian-alphabetic list, which is close enough to what I had proposed, but I would like to make a suggestion to change it. I will follow that through their own github.

@Huji Huji closed this as completed Jun 11, 2018
@r12a r12a added i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. i18n-alreq Arabic language enablement labels Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-counter-styles-4 i18n-alreq Arabic language enablement i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.
Projects
None yet
Development

No branches or pull requests

5 participants