[Bug 25475] pad example has width instead of pad

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25475

--- Comment #2 from Jim Michaels <jmichae3@yahoo.com> ---
the counter itself would probably be implemented probably an int or int64_t
(c++) or a Number (js) for the case of system:numeric; (implies an integer
counter number I should think?)). the rest is simple number-base conversion. 
the digits you extract from the counter value)

http://jesusnjim.com/programming/number-base-conversion.html#nbc-btb
http://jesusnjim.com/programming/number-base-conversion.html#algorithm-tostring
note the summation equation. it's short (the first part, there are several =
signs...
from what I saw of the examples in the counter-style stuff, it appears to be a
base-n counter where n is the number of symbols. cool stuff.

hope this comment helps someone for implementation.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 28 April 2014 05:03:33 UTC