w3c / predefined-counter-styles

Predefined Counter Styles
https://w3c.github.io/predefined-counter-styles/
Other
7 stars 14 forks source link

New counting style proposal: cjk-stem-branch #18

Closed c933103 closed 3 years ago

c933103 commented 6 years ago

Copy from https://github.com/w3c/csswg-drafts/issues/2097

@counter-style cjk-stem-branch {
  system: cyclic;
  symbols:
 "\7532\5B50"" "\4E59\4E11" "\4E19\5BC5" "\4E01\536F" "\620A\8FB0" "\5DF1\5DF3" "\5E9A\5348" "\8F9B\672A" "\58EC\7533" "\7678\9149";
  /* 甲子 乙丑 丙寅 丁卯 戊辰 己巳 庚午 辛未 壬申 癸酉 */
 "\7532\620C" "\4E59\4EA5" "\4E19\5B50"" "\4E01\4E11" "\620A\5BC5" "\5DF1\536F" "\5E9A\8FB0" "\8F9B\5DF3" "\58EC\5348" "\7678\672A";
  /* 甲戌 乙亥 丙子 丁丑 戊寅 己卯 庚辰 辛巳 壬午 癸未 */
 "\7532\7533" "\4E59\9149" "\4E19\620C" "\4E01\4EA5" "\620A\5B50"" "\5DF1\4E11" "\5E9A\5BC5" "\8F9B\536F" "\58EC\8FB0" "\7678\5DF3";
  /* 甲申 乙酉 丙戌 丁亥 戊子 己丑 庚寅 辛卯 壬辰 癸巳 */
 "\7532\5348" "\4E59\672A" "\4E19\7533" "\4E01\9149" "\620A\620C" "\5DF1\4EA5" "\5E9A\5B50"" "\8F9B\4E11" "\58EC\5BC5" "\7678\536F";
  /* 甲午 乙未 丙申 丁酉 戊戌 己亥 庚子 辛丑 壬寅 癸卯 */
 "\7532\8FB0" "\4E59\5DF3" "\4E19\5348" "\4E01\672A" "\620A\7533" "\5DF1\9149" "\5E9A\620C" "\8F9B\4EA5" "\58EC\5B50"" "\7678\4E11";
  /* 甲辰 乙巳 丙午 丁未 戊申 己酉 庚戌 辛亥 壬子 癸丑 */
 "\7532\5BC5" "\4E59\536F" "\4E19\8FB0" "\4E01\5DF3" "\620A\5348" "\5DF1\672A" "\5E9A\7533" "\8F9B\9149" "\58EC\620C" "\7678\4EA5";
  /* 甲寅 乙卯 丙辰 丁巳 戊午 己未 庚申 辛酉 壬戌 癸亥 */
  suffix: "、";
}
r12a commented 5 years ago

Added for review to the ED at http://w3c.github.io/predefined-counter-styles/#cjk-stem-branch with some changes to the syntax.

r12a commented 5 years ago

Could i ask you to confirm that you want this to be cyclic rather than fixed? Cyclic means that the sequence starts over again from the start once the listed items are all used up, ie. after 60 items. Fixed means that after 60 you revert to the default Latin counters (like the circled numbers at http://w3c.github.io/predefined-counter-styles/#circled-decimal).

c933103 commented 5 years ago

Yes it is supposed to be cyclic. After 60 items from 甲子 to 癸亥 it should loop back to 甲子 for the 61st.

r12a commented 3 years ago

This was added to the doc. Thanks.