@@ -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