Skip to content

Commit 50112fc

Browse files
committed
Switched the symbolic type's description to use a numbered list rather than a paragraph for description.
1 parent 1bc59f2 commit 50112fc

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

css3-lists/Overview.src.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,14 +1084,22 @@ <h4>
10841084
alphabetic-style lists for a slightly different presentation than what the
10851085
''alphabetic'' type presents.</p>
10861086

1087-
<p>To construct the representation, let <var>length</var> be the length of
1088-
the list of <i>counter glyph</i>s, <var>value</var> initially be the counter
1089-
value, <var>S</var> initially be the empty string, and <code>glyph(n)</code>
1090-
be the nth <i>counter glyph</i> in the list of <i>counter glyph</i>s
1091-
(0-indexed). Append <code class='inline'>glyph( <var>value</var> mod <var>length</var> )</code>
1092-
to <var>S</var> <code class='inline'>floor( (<var>value</var> - 1) / <var>length</var> )</code>
1093-
times, then return <var>S</var>.</p>
1087+
<p>To construct the representation, run the following algorithm. Let
1088+
<var>length</var> be the length of the list of <i>counter glyph</i>s,
1089+
<var>value</var> initially be the counter value, <var>S</var> initially
1090+
be the empty string, and <var>glyph(n)</var> be the nth <i>counter glyph</i>
1091+
in the list of <i>counter glyph</i>s (0-indexed).</p>
1092+
1093+
<ol>
1094+
<li>Let the <var>chosen glyph</var> be <code class='inline'>glyph(<var>value</var> mod <var>length</var>)</code>.</li>
1095+
1096+
<li>Let the <var>representation length</var> be <code class='inline'>floor( (<var>value</var> - 1) / <var>length</var> )</code>.
1097+
1098+
<li>Append the <var>chosen glyph</var> to <var>S</var> a number of times equal to the <var>representation length</var>.</li>
1099+
</ol>
10941100

1101+
<p>Finally, return <var>S</var>.</p>
1102+
10951103
<div class=example>
10961104
<p>An "unary" counter style can be defined as:</p>
10971105

0 commit comments

Comments
 (0)