- From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 19 May 2011 22:45:21 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-lists In directory hutz:/tmp/cvs-serv11067 Modified Files: Overview.html Overview.src.html Log Message: Added the longer definitions for several styles, per WG resolution. Index: Overview.html =================================================================== RCS file: /sources/public/csswg/css3-lists/Overview.html,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- Overview.html 19 May 2011 20:36:43 -0000 1.44 +++ Overview.html 19 May 2011 22:45:19 -0000 1.45 @@ -245,8 +245,18 @@ <li><a href="#html4"><span class=secno>10. </span> Sample style sheet for HTML</a> - <li><a href="#ua-stylesheet"><span class=secno>11. </span> Appendix A: - Additional Predefined Counter Styles</a> + <li><a href="#ua-stylesheet"><span class=secno>11. </span> Additional + Predefined Counter Styles</a> + + <li><a href="#optional-extensions"><span class=secno>12. </span> Optional + Extended Counter Styles</a> + <ul class=toc> [...1066 lines suppressed...] <li><string>, <a href="#ltstring" title="<string>"><strong>3.</strong></a> @@ -3931,10 +4935,14 @@ <li>suffix, <a href="#suffix0" title=suffix><strong>9.4.</strong></a> <li>trad-chinese-formal, <a href="#trad-chinese-formal" - title=trad-chinese-formal><strong>8.3.</strong></a> + title=trad-chinese-formal><strong>8.3.</strong></a>, <a + href="#trad-chinese-formal0" + title=trad-chinese-formal><strong>12.1.</strong></a> <li>trad-chinese-informal, <a href="#trad-chinese-informal" - title=trad-chinese-informal><strong>8.3.</strong></a> + title=trad-chinese-informal><strong>8.3.</strong></a>, <a + href="#trad-chinese-informal0" + title=trad-chinese-informal><strong>12.1.</strong></a> <li>type, <a href="#type" title=type><strong>9.1.</strong></a> </ul> Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css3-lists/Overview.src.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- Overview.src.html 19 May 2011 20:36:43 -0000 1.86 +++ Overview.src.html 19 May 2011 22:45:19 -0000 1.87 @@ -1990,7 +1990,7 @@ <!-- ====================================================================== --> <h2 id='ua-stylesheet'> -Appendix A: Additional Predefined Counter Styles</h2> +Additional Predefined Counter Styles</h2> <p>While this specification defines a mechanism to allow authors to define almost any counter style they would want, forcing authors to redefine common @@ -2887,13 +2887,679 @@ } </bdo></code></pre> - <p class=issue>Per <a href="http://www.ethiopic.org/w3c/css/WD-css3-lists-20020220-comments.html#copticlists">http://www.ethiopic.org/w3c/css/WD-css3-lists-20020220-comments.html#armenianlists</a>, we should have upper-coptic, lower-coptic, and coptic-numeric styles. The Coptic script was split out in Unicode 4.1 to occupy the block from U+2C80 to U+2CFF. Which characters should I use for each?</p> - <p class=issue>Per <a href="http://www.ethiopic.org/w3c/css/WD-css3-lists-20020220-comments.html#armenianlists">http://www.ethiopic.org/w3c/css/WD-css3-lists-20020220-comments.html#armenianlists</a>, putting the circumflex above a digit in armenian numbering multiplies the digit by 1000. The draft currently states a 10,000 multiplier. Which is correct? (Having the multiplier be 1000 means that you can potentially write the thousands digit two ways, using either the set of thousands digits or the set of ones digits with a circumflex. The examples given in the note appear to use the former.)</p> <!-- ======================================================================= --> +<h2 id='optional-extensions'> +Optional Extended Counter Styles</h2> + + <p>Some counter styles described in earlier chapters have been limited to an artifically small (though still useful) range to reduce the overall complexity of the spec and the task of implementing those styles. However, some implementations might consider the extra complexity worthwhile for the additional range it offers to authors. To accomodate this, this section describes how to extend the limited counter-styles to a larger range.</p> + + <p>This entirely section is normative, but <strong>optional</strong>. User-agents may ignore it and still be conformant. If a user-agent implements some of the extended forms described in this section, they must be implemented as described here.</p> + + +<h3 id='extended-cjk-longhand'> +Extended CJK Longhand</h3> + + <p>The Chinese longhand styles are defined out to 10k with a <a href='#cjk-counter-styles'>specialized algorithm, while the Japanese and Korean longhand styles are defined similarly as ''additive'' styles. However, these styles are defined out to 10<sup>16</sup> in common usage. The following section describes an alternative algorithm for these styles.</p> + + <p>The Chinese and Japanese styles are defined for all numbers between + -10<sup>16</sup> and 10<sup>16</sup>, exclusive; the Korean styles are + defined for all non-negative numbers less than 10<sup>16</sup>. For numbers + outside this range, the ''cjk-decimal'' style is used. All of the + styles are defined by almost identical algorithms (specified as a single + algorithm here, with the differences called out when relevant), but use + different sets of characters. The list following the algorithm gives the + name of each counter style using this algorithm, and the individual character + sets used by each style.</p> + + <ol> + <li>If the counter value is 0, the representation is the character for 0 + specified for the given counter style. Skip the rest of this algorithm.</li> + + <li>Initially represent the counter value as a decimal number. Starting + from the right (ones place), split the decimal number into groups of + four digits.</li> + + <li>For each group with a non-zero value, append the appropriate group + marker to the group. The ones group has no marker.</li> + + <li>Within each group, for each digit that is not 0, append the appropriate + digit marker to the digit. The ones digit of each group has no marker.</li> + + <li>Drop ones: + <ul> + <li>For the Chinese informal styles, for any group with a value + between ten and nineteen, remove the tens digit (leave the digit + marker).</li> + + <li>For the Japanese informal and Korean informal styles, if any + of the digit markers are preceded by the digit 1, and that digit + is not the first digit of the group, remove the digit (leave the + digit marker).</li> + + <li>For Korean informal styles, if the value of the ten-thousands + group is 1, drop the digit (leave the digit marker).</li> + </ul> + </li> + + <li>Drop zeros: + <ul> + <li>For the Japanese and Korean styles, drop all zero digits.</li> + + <li>For the Chinese styles, drop any trailing zeros for all + non-zero groups and collapse (across groups) each remaining + consecutive group of zeros into a single zero digit.</li> + </ul> + </li> + + <li>For the Korean styles, insert a space (" " U+0020) between each group.</li> + + <li>Replace the digits 0-9 with the appropriate character for the given + counter style. Return the resultant string as the representation of the + counter value.</li> + </ol> + + <p>For all of these counter styles, the <i title='counter-suffix'>suffix descriptor</i> + is "、" U+3001, the <i title='counter-fallback'>fallback descriptor</i> is + ''cjk-decimal'', and the <i title='counter-negative'>negative sign</i> is given in the tables + below, or else is the initial value of the descriptor. For Chinese and Japanese, the + <i title='counter-lower-range'>lower range bound descriptor</i> is -9999 9999 9999 9999 + (-10<sup>16</sup>+1), while for Korean it's 0. For all of them, the + <i title='counter-upper-range'>upper range bound descriptor</i> is 9999 9999 9999 9999 + (10<sup>16</sup>-1).</p> + + <p>The following tables define the characters used in these styles:</p> + + <dl> + <dt><dfn>simp-chinese-informal</dfn></dt> + <dd> + <table> + <thead> + <tr> + <th>Values + <th>Codepoints + </thead> + <tbody> + <tr> + <td>Digit 0 + <td>零 U+96F6 + <tr> + <td>Digit 1 + <td>一 U+4E00 + <tr> + <td>Digit 2 + <td>二 U+4E8C + <tr> + <td>Digit 3 + <td>三 U+4E09 + <tr> + <td>Digit 4 + <td>四 U+56DB + <tr> + <td>Digit 5 + <td>五 U+4E94 + <tr> + <td>Digit 6 + <td>六 U+516D + <tr> + <td>Digit 7 + <td>七 U+4E03 + <tr> + <td>Digit 8 + <td>八 U+516B + <tr> + <td>Digit 9 + <td>九 U+4E5D + <tr> + <td>Second Digit Marker + <td>十 U+5341 + <tr> + <td>Third Digit Marker + <td>百 U+767E + <tr> + <td>Fourth Digit Marker + <td>千 U+5343 + <tr> + <td>Second Group Marker + <td>万 U+4E07 + <tr> + <td>Third Group Marker + <td>亿 U+4EBF + <tr> + <td>Fourth Group Marker + <td>万亿 U+4E07 U+4EBF + <tr> + <td>Negative Sign + <td>负 U+8D1F + </tbody> + </table> + </dd> + + <dt><dfn>simp-chinese-formal</dfn></dt> + <dd> + <table> + <thead> + <tr> + <th>Values + <th>Codepoints + </thead> + <tbody> + <tr> + <td>Digit 0 + <td>零 U+96F6 + <tr> + <td>Digit 1 + <td>壹 U+58F9 + <tr> + <td>Digit 2 + <td>贰 U+8D30 + <tr> + <td>Digit 3 + <td>叁 U+53C1 + <tr> + <td>Digit 4 + <td>肆 U+8086 + <tr> + <td>Digit 5 + <td>伍 U+4F0D + <tr> + <td>Digit 6 + <td>陆 U+9646 + <tr> + <td>Digit 7 + <td>柒 U+67D2 + <tr> + <td>Digit 8 + <td>捌 U+634C + <tr> + <td>Digit 9 + <td>玖 U+7396 + <tr> + <td>Second Digit Marker + <td>拾 U+62FE + <tr> + <td>Third Digit Marker + <td>佰 U+4F70 + <tr> + <td>Fourth Digit Marker + <td>仟 U+4EDF + <tr> + <td>Second Group Marker + <td>万 U+4E07 + <tr> + <td>Third Group Marker + <td>亿 U+4EBF + <tr> + <td>Fourth Group Marker + <td>万亿 U+4E07 U+4EBF + <tr> + <td>Negative Sign + <td>負 U+8D1F + </tbody> + </table> + </dd> + + <dt><dfn>trad-chinese-informal</dfn></dt> + <dd> + <table> + <thead> + <tr> + <th>Values + <th>Codepoints + </thead> + <tbody> + <tr> + <td>Digit 0 + <td>零 U+96F6 + <tr> + <td>Digit 1 + <td>一 U+4E00 + <tr> + <td>Digit 2 + <td>二 U+4E8C + <tr> + <td>Digit 3 + <td>三 U+4E09 + <tr> + <td>Digit 4 + <td>四 U+56DB + <tr> + <td>Digit 5 + <td>五 U+4E94 + <tr> + <td>Digit 6 + <td>六 U+516D + <tr> + <td>Digit 7 + <td>七 U+4E03 + <tr> + <td>Digit 8 + <td>八 U+516B + <tr> + <td>Digit 9 + <td>九 U+4E5D + <tr> + <td>Second Digit Marker + <td>十 U+5341 + <tr> + <td>Third Digit Marker + <td>百 U+767E + <tr> + <td>Fourth Digit Marker + <td>千 U+5343 + <tr> + <td>Second Group Marker + <td>萬 U+842C + <tr> + <td>Third Group Marker + <td>億 U+5104 + <tr> + <td>Fourth Group Marker + <td>兆 U+5146 + <tr> + <td>Negative Sign + <td>負 U+8CA0 + </tbody> + </table> + </dd> + + <dt><dfn>trad-chinese-formal</dfn></dt> + <dd> + <table> + <thead> + <tr> + <th>Values + <th>Codepoints + </thead> + <tbody> + <tr> + <td>Digit 0 + <td>零 U+96F6 + <tr> + <td>Digit 1 + <td>壹 U+58F9 + <tr> + <td>Digit 2 + <td>貳 U+8CB3 + <tr> + <td>Digit 3 + <td>參 U+53C3 + <tr> + <td>Digit 4 + <td>肆 U+8086 + <tr> + <td>Digit 5 + <td>伍 U+4F0D + <tr> + <td>Digit 6 + <td>陸 U+9678 + <tr> + <td>Digit 7 + <td>柒 U+67D2 + <tr> + <td>Digit 8 + <td>捌 U+634C + <tr> + <td>Digit 9 + <td>玖 U+7396 + <tr> + <td>Second Digit Marker + <td>拾 U+62FE + <tr> + <td>Third Digit Marker + <td>佰 U+4F70 + <tr> + <td>Fourth Digit Marker + <td>仟 U+4EDF + <tr> + <td>Second Group Marker + <td>萬 U+842C + <tr> + <td>Third Group Marker + <td>億 U+5104 + <tr> + <td>Fourth Group Marker + <td>兆 U+5146 + <tr> + <td>Negative Sign + <td>負 U+8CA0 + </tbody> + </table> + </dd> + + <dt><dfn>japanese-informal</dfn></dt> + <dd> + <table> + <thead> + <tr> + <th>Values + <th>Codepoints + </thead> + <tbody> + <tr> + <td>Digit 0 + <td>〇 U+3007 + <tr> + <td>Digit 1 + <td>一 U+4E00 + <tr> + <td>Digit 2 + <td>二 U+4E8C + <tr> + <td>Digit 3 + <td>三 U+4E09 + <tr> + <td>Digit 4 + <td>四 U+56DB + <tr> + <td>Digit 5 + <td>五 U+4E94 + <tr> + <td>Digit 6 + <td>六 U+516D + <tr> + <td>Digit 7 + <td>七 U+4E03 + <tr> + <td>Digit 8 + <td>八 U+516B + <tr> + <td>Digit 9 + <td>九 U+4E5D + <tr> + <td>Second Digit Marker + <td>十 U+5341 + <tr> + <td>Third Digit Marker + <td>百 U+767E + <tr> + <td>Fourth Digit Marker + <td>千 U+5343 + <tr> + <td>Second Group Marker + <td>万 U+4E07 + <tr> + <td>Third Group Marker + <td>億 U+5104 + <tr> + <td>Fourth Group Marker + <td>兆 U+5146 + <tr> + <td>Negative Sign + <td>マイナス U+30DE U+30A4 U+30CA U+30B9 + </tbody> + </table> + </dd> + + <dt><dfn>japanese-formal</dfn></dt> + <dd> + <table> + <thead> + <tr> + <th>Values + <th>Codepoints + </thead> + <tbody> + <tr> + <td>Digit 0 + <td>零 U+96F6 + <tr> + <td>Digit 1 + <td>壱 U+58F1 + <tr> + <td>Digit 2 + <td>弐 U+5F10 + <tr> + <td>Digit 3 + <td>参 U+53C2 + <tr> + <td>Digit 4 + <td>四 U+56DB + <tr> + <td>Digit 5 + <td>伍 U+4f0D + <tr> + <td>Digit 6 + <td>六 U+516D + <tr> + <td>Digit 7 + <td>七 U+4E03 + <tr> + <td>Digit 8 + <td>八 U+516B + <tr> + <td>Digit 9 + <td>九 U+4E5D + <tr> + <td>Second Digit Marker + <td>拾 U+62FE + <tr> + <td>Third Digit Marker + <td>百 U+767E + <tr> + <td>Fourth Digit Marker + <td>阡 U+9621 + <tr> + <td>Second Group Marker + <td>萬 U+842C + <tr> + <td>Third Group Marker + <td>億 U+5104 + <tr> + <td>Fourth Group Marker + <td>兆 U+5146 + <tr> + <td>Negative Sign + <td>マイナス U+30DE U+30A4 U+30CA U+30B9 + </tbody> + </table> + </dd> + + <dt><dfn>korean-hangul-formal</dfn></dt> + <dd> + <table> + <thead> + <tr> + <th>Values + <th>Codepoints + </thead> + <tbody> + <tr> + <td>Digit 0 + <td>영 U+C601 + <tr> + <td>Digit 1 + <td>일 U+C77C + <tr> + <td>Digit 2 + <td>이 U+C774 + <tr> + <td>Digit 3 + <td>삼 U+C0BC + <tr> + <td>Digit 4 + <td>사 U+C0AC + <tr> + <td>Digit 5 + <td>오 U+C624 + <tr> + <td>Digit 6 + <td>육 U+C721 + <tr> + <td>Digit 7 + <td>칠 U+CE60 + <tr> + <td>Digit 8 + <td>팔 U+D314 + <tr> + <td>Digit 9 + <td>구 U+AD6C + <tr> + <td>Second Digit Marker + <td>십 U+C2ED + <tr> + <td>Third Digit Marker + <td>백 U+BC31 + <tr> + <td>Fourth Digit Marker + <td>천 U+CC9C + <tr> + <td>Second Group Marker + <td>만 U+B9CC + <tr> + <td>Third Group Marker + <td>억 U+C5B5 + <tr> + <td>Fourth Group Marker + <td>조 U+C870 + </tbody> + </table> + </dd> + + <dt><dfn>korean-hanja-informal</dfn></dt> + <dd> + <table> + <thead> + <tr> + <th>Values + <th>Codepoints' + </thead> + <tbody> + <tr> + <td>Digit 0 + <td>零 U+96F6 + <tr> + <td>Digit 1 + <td>一 U+4E00 + <tr> + <td>Digit 2 + <td>二 U+4E8C + <tr> + <td>Digit 3 + <td>三 U+4E09 + <tr> + <td>Digit 4 + <td>四 U+56DB + <tr> + <td>Digit 5 + <td>五 U+4E94 + <tr> + <td>Digit 6 + <td>六 U+516D + <tr> + <td>Digit 7 + <td>七 U+4E03 + <tr> + <td>Digit 8 + <td>八 U+516B + <tr> + <td>Digit 9 + <td>九 U+4E5D + <tr> + <td>Second Digit Marker + <td>十 U+5341 + <tr> + <td>Third Digit Marker + <td>百 U+767E + <tr> + <td>Fourth Digit Marker + <td>千 U+5343 + <tr> + <td>Second Group Marker + <td>萬 U+842C + <tr> + <td>Third Group Marker + <td>億 U+5104 + <tr> + <td>Fourth Group Marker + <td>兆 U+5146 + </tbody> + </table> + </dd> + + <dt><dfn>korean-hanja-formal</dfn></dt> + <dd> + <table> + <thead> + <tr> + <th>Values + <th>Codepoints' + </thead> + <tbody> + <tr> + <td>Digit 0 + <td>零 U+96F6 + <tr> + <td>Digit 1 + <td>壹 U+58F9 + <tr> + <td>Digit 2 + <td>貳 U+8CB3 + <tr> + <td>Digit 3 + <td>參 U+53C3 + <tr> + <td>Digit 4 + <td>四 U+56DB + <tr> + <td>Digit 5 + <td>五 U+4E94 + <tr> + <td>Digit 6 + <td>六 U+516D + <tr> + <td>Digit 7 + <td>七 U+4E03 + <tr> + <td>Digit 8 + <td>八 U+516B + <tr> + <td>Digit 9 + <td>九 U+4E5D + <tr> + <td>Second Digit Marker + <td>拾 U+62FE + <tr> + <td>Third Digit Marker 百 + <td> U+767E + <tr> + <td>Fourth Digit Marker + <td>仟 U+4EDF + <tr> + <td>Second Group Marker + <td>萬 U+842C + <tr> + <td>Third Group Marker + <td>億 U+5104 + <tr> + <td>Fourth Group Marker + <td>兆 U+5146 + </tbody> + </table> + </dd> + </dl> + +<h3 id='extended-numbered'> +Extended Non-Repeating Numbered Styles</h3> + + <p>Several non-repeating styles are numeric in nature, but are represented by single Unicode characters. As such, they are limited to the range of characters that Unicode saw fit to define for them. However, new glyphs can be generated by the UA over a somewhat extended range.</p> + + <p>All of the following styles are defined over the range 1-99. The glyphs for each counter value must be the unicode glyph already defined for that value in the existing @counter-style rule, or a generated image in the same style with the counter value changed as appropriate:</p> + + <ul> + <li>'circled-decimal' + <li>'dotted-decimal' + <li>'double-circled-decimal' + <li>'filled-circled-decimal' + <li>'parenthesized-decimal' + </ul> + + +<!-- ======================================================================= --> + <h2 class="no-num" id="profiles"> Profiles</h2>
Received on Thursday, 19 May 2011 22:45:23 UTC