Re: [predefined-counter-styles] Requirements of Alphabetic Counter Styles for Indian languages (#36)

> I want to ask, if we give keyword 'devanagari' with system:numeric than it will automatically generate number list in the devanagari. But for defining Hindi alphabetic listing we have to add 'symbol' keyword that contains the characters code we want as define in readymade counter styles.

Are you referring to the difference between some styles that are supported by the browser already without the user needing to create any CSS code, such as the `devanagari` style?  When the spec author was writing the Counter Styles spec he added those that were supported already by more than one browser to the spec, but it was rather arbitrary as to what was baked in and what wasn't.  (Personally, i didn't think that was a good idea, since it creates a kind of odd situation where you may need to check whether or not you need the CSS code.)  But i think that going forward there are no plans to add more styles to the Counter Styles spec – authors are expected to create them using CSS code.  I also expect several of the styles currently described by the CS spec to be overwritten by authors because they want to use a different prefix/suffix, or use a different set or order of symbols (eg. for Greek).

> Also some languages have more that one scripts say Sindhi, Kashmiri has both Devanagari & Perso-Arabic Script. So in which way we can define counter styles of both languages with the Script in the same code?

In your CSS style sheet you can define styles for each style of list you want.  Different styles may be developed for different scripts, or to support different prefix/suffix, to use a different order for certain types of counter in your doc, or etc.  So you define each style in the stylesheet and give it a name you like (it doesn't have to have the name in the ready-made counter styles doc).  Then, when you define the styling for a particular list, you say list-style-type: myCounterName to apply the style you want to that list (or chapter headings, or figure numbering, etc.)

Am i getting closer to answering your questions?

-- 
GitHub Notification of comment by r12a
Please view or discuss this issue at https://github.com/w3c/predefined-counter-styles/issues/36#issuecomment-818785465 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 13 April 2021 14:33:53 UTC