clreq icon indicating copy to clipboard operation
clreq copied to clipboard

Style for counter in ordered list using Chinese character.

Open c933103 opened this issue 8 years ago • 10 comments

As mentioned in https://github.com/w3c/jlreq/issues/12 and https://drafts.csswg.org/css-counter-styles/ , when using Chinese characters to create an ordered list, it should look like: 一、 XXXX 二、 XXXX 三、 XXXX As opposed to 一. XXXX 二. XXXX 三. XXXX in numerous current implementation, which was copying the Latin text layout for a. b. c. and such. Should this different between Latin and Chinese layout be included in clreq?

c933103 avatar Dec 09 '17 22:12 c933103

Yes, it should.

Currently, "、" (顿号/頓號) is mentioned in § 3.1.1.1 Pause or Stop Punctuation Marks and we're planning to add a section about list styling requirements.

xfq avatar Dec 14 '17 15:12 xfq

Fwiw, see the following test results for browsers: https://www.w3.org/International/tests/repo/results/predefined-counter-styles#chinese https://www.w3.org/International/tests/repo/results/custom-counter-styles#chinese

r12a avatar Jan 18 '18 17:01 r12a

Closing, per https://www.w3.org/2018/05/14-clreq-minutes.html

xfq avatar May 14 '18 12:05 xfq

What's the resolution and action here? Nothing is stated in the minutes linked to.

r12a avatar May 23 '18 15:05 r12a

Looking closer, i see above the link to this issue in the minutes:

… propose to move the Chinese and Western mixed text parts in 3.1.1.1.1 to 3.2.1 … or combine them into one paragraph (don't repeat yourself)

Does that indicate the resolution?

Personally, i think it would be better to have a new section related to Lists & Counters (see for example https://w3c.github.io/elreq/#lists_and_counters). Such a section could address this question, list alternative counter styles, and also look at questions of positioning of counters in vertical text (ie. establish the requirement for horizontal numeric sequences + separator at the top of a vertical line of text, something that current implementations fail to do).

r12a avatar May 23 '18 15:05 r12a

Is this helpful as a base to work with for a new section?

Chinese lists & counters

Chinese lists use a number of different counter styles. Patterns for these counter styles are described in the W3C Note Custom Counter Styles. The various types of counter style are named and grouped here per their description in that specification.

Bulleted lists

What is the preferred shape of bullets?

Fixed counter styles

Common counter styles include the use of a fixed set of characters within circles or parentheses. These include:

  • circled-decimal (eg. ⓪ ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⑩ .. ㊿ )
  • circled-ideographic (10 symbols only: ㊀ ㊁ ㊂ ㊃ ㊄ ㊅ ㊆ ㊇ ㊈ ㊉ )
  • parenthesized-ideograph (10 symbols only: ㈠ ㈡ ㈢ ㈣ ㈤ ㈥ ㈦ ㈧ ㈨ ㈩ )

These counters are separated from list items by a space only.

screen shot 2018-05-23 at 17 07 25

Numeric counter styles

The numeric counter system interprets the list of counter symbols as digits to a "place-value" numbering system, similar to the common decimal counter style. The first counter symbol in the list is interpreted as the digit 0, the second as the digit 1, and so on. Counter styles used in Chinese include:

  • decimal (eg. 1 2 3 4 5 6 7 8 9 10 … 23 … 234 )
  • cjk-decimal (eg. 一 二 三 四 五 六 七 八 九 一〇 … 二三 … 二三四 )

The counter style suffix for lists containing Han character counters is 、 [U+3001 IDEOGRAPHIC COMMA]. What about decimal european digits? And are fullwidth digits used?

Alphabetic counter styles

The alphabetic counter system interprets the list of counter symbols as digits to an alphabetic numbering system, similar to the default lower-alpha counter style, which wraps from "a", "b", "c", to "aa", "ab", "ac". Alphabetic numbering systems do not contain a digit representing 0; so the first value when a new digit is added is composed solely of the first digit. Chinese alphabetic counter styles include:

  • cjk-earthly-branch (eg. 子 丑 寅 卯 辰 巳 午 未 申 酉 … 子戌 … 子午巳 )
  • cjk-heavenly-stem (eg. 甲 乙 丙 丁 戊 己 庚 辛 壬 癸 … 乙丙 … 乙丙丁 )

The counter style suffix for lists is 、 [U+3001 IDEOGRAPHIC COMMA].

Other counter styles

These are counter styles that don’t quite fit into the aforementioned categories. The algorithm for computing counters is given in the Counter Styles specification. They include:

  • simp-chinese-informal (eg. 一千一百一十一)
  • simp-chinese-formal (eg. 壹仟壹佰壹拾壹)
  • trad-chinese-informal (eg. 一千一百一十一)
  • trad-chinese-formal(eg. 壹仟壹佰壹拾壹)

The counter style suffix for lists is 、 [U+3001 IDEOGRAPHIC COMMA].

Orientation of counters in vertical lists

Fixed and decimal numeric counters (including their suffixes) generally run horizontally at the start of a vertical line of text.

screen shot 2018-05-23 at 17 44 35

r12a avatar May 23 '18 17:05 r12a

What's the resolution and action here? Nothing is stated in the minutes linked to.

Sorry for the sketchy notes. The part related to #158 is:

https://‌github.com/‌w3c/‌clreq/‌issues/‌158 xfq: propose to close Eric: agreed

I proposed to close this issue, because in § 3.1.1.1 Pause or Stop Punctuation Marks:

U+3001 IDEOGRAPHIC COMMA [、] (slight-pause comma) is usually used to separate items in lists, as a way to show sequence.

However, now I think that sentence is not enough because it does not state the "list-marker of an ordered list" case.

xfq avatar May 24 '18 07:05 xfq

… propose to move the Chinese and Western mixed text parts in 3.1.1.1.1 to 3.2.1 … or combine them into one paragraph (don't repeat yourself)

And this is for #161.

xfq avatar May 24 '18 07:05 xfq

Thanks for the starter text! It's helpful.

xfq avatar May 24 '18 07:05 xfq

U+3001 IDEOGRAPHIC COMMA [、] (slight-pause comma) is usually used to separate items in lists, as a way to show sequence.

Also, i read that sentence and assumed that it related to use in text such as:

this one, and this one, and that one, etc.

It didn't seem to be related to the suffix for a counter, as you say.

r12a avatar May 24 '18 08:05 r12a