- From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 02 Jun 2011 02:22:17 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-lists In directory hutz:/tmp/cvs-serv18667 Modified Files: Overview.src.html Log Message: Switched the symbolic type's description to use a numbered list rather than a paragraph for description. Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css3-lists/Overview.src.html,v retrieving revision 1.104 retrieving revision 1.105 diff -u -d -r1.104 -r1.105 --- Overview.src.html 2 Jun 2011 01:33:12 -0000 1.104 +++ Overview.src.html 2 Jun 2011 02:22:15 -0000 1.105 @@ -1084,14 +1084,22 @@ alphabetic-style lists for a slightly different presentation than what the ''alphabetic'' type presents.</p> - <p>To construct the representation, let <var>length</var> be the length of - the list of <i>counter glyph</i>s, <var>value</var> initially be the counter - value, <var>S</var> initially be the empty string, and <code>glyph(n)</code> - be the nth <i>counter glyph</i> in the list of <i>counter glyph</i>s - (0-indexed). Append <code class='inline'>glyph( <var>value</var> mod <var>length</var> )</code> - to <var>S</var> <code class='inline'>floor( (<var>value</var> - 1) / <var>length</var> )</code> - times, then return <var>S</var>.</p> + <p>To construct the representation, run the following algorithm. Let + <var>length</var> be the length of the list of <i>counter glyph</i>s, + <var>value</var> initially be the counter value, <var>S</var> initially + be the empty string, and <var>glyph(n)</var> be the nth <i>counter glyph</i> + in the list of <i>counter glyph</i>s (0-indexed).</p> + + <ol> + <li>Let the <var>chosen glyph</var> be <code class='inline'>glyph(<var>value</var> mod <var>length</var>)</code>.</li> + + <li>Let the <var>representation length</var> be <code class='inline'>floor( (<var>value</var> - 1) / <var>length</var> )</code>. + <li>Append the <var>chosen glyph</var> to <var>S</var> a number of times equal to the <var>representation length</var>.</li> + </ol> + + <p>Finally, return <var>S</var>.</p> + <div class=example> <p>An "unary" counter style can be defined as:</p>
Received on Thursday, 2 June 2011 02:22:18 UTC