Script Summary: Converts the site-generated numbers on Dozensonline into dozenal, as they should be.
Version: 1.6.2
Copyright: 2011, James Wood
Note: this is a work in progress, and a few pages aren't supported.
As said above, this script converts the decimal numbers on Dozensonline into dozenal. However, it has specifically been chosen not to convert numbers in users' posts.
This script is fairly easy to customise in terms of character set and radix point. It's default settings for these are to use XE characters for ten and elve, and to use the Humphrey point (;) as the radix point. You may want to change these, and fortunately I've made that fairly simple. To change the radix point to, say, the grave accent ( `, my personal choice) change var point = ';'; into var point = '`';. Changing the digits is also fairly simple, and is done by changing any of the characters in the line var zChars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'X', 'E'];. For the purposes of the rounding algorithm both of these must be single characters.
As of v1.5.1, the radix point after an integer is optional. By default, it is set to display the point. To change this, change var addPoint = true; to var addPoint = false;. It is true by default because not all of the site is supported, and it may be useful to know what has been converted and what hasn't.
New to v1.5.2 is the ability to add prefixes. I don't like them personally, but some people do. To add a prefix, just write something inside the apostrophes in var intPrefix = ''; and var fractPrefix = '';. These are self-explanatory.
v1.6 supports the TGM time format on the main page. I will get round to other pages at a later date. As always, settings can be found near the top of the source file.
An informal change log/discussion which started on a completely different subject can be found here.



