Sexagesimal Eyes

By Vaer Last update Mar 20, 2009 — Installed 62 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Script Summary:
Converts all numbers on the page into Sexagesimal for easy reading.
Recently Updated TopicsPosts
Comparison of Sexagesimal D...1
Test Cases1

this script has 2 topics, 2 posts

Review Summary
5 stars
1 reviews (1)
4 stars
0 reviews (0)
3 stars
0 reviews (0)
2 stars
0 reviews (0)
1 star
0 reviews (0)

this script has 1 review

Overview

This extension converts base-ten decimal numbers into Sexageismal base-sixty numbers. Without the proper font installed it won't work, by default the font needs to be called "Sexagesimal" but it's easy to change if you have another font.

You can get fonts and read more about Community Standard Sexagesimal, the fictional number system used in the Autonomy series, here.

If anyone knows of any other sexageismal fonts please post in the discussion and I'll add a link to them. Also if there's any interest I can update this to work with the Unicode Cuneiform characters that the Babylonian number system uses.

Images / Features

The Table of divisors on wikipedia:



The Table of divisors on wikipedia without a working font installed:



Updates

18 March 2009: Initial build.
18 March 2009: Fixed number separator bug.
20 March 2009: Copying numbers should now copy the original decimal numbers.
20 March 2009: Slight speed improvments.
20 March 2009: Added suffix support.

ToDo/Bug List

Unicode

Using 0-9A-Za-x as characters for sexageismal is way to cumbersome on sites that use javascript. The best solution is to use unicode, either somewhere in the private range or using (probably better) the current space for Cuneiform characters(cuneiform unicode isn't a single range).

Optimisation

Right now it can get very slow, specially where there are lots of numbers.

Percentage Conversion, Hex numbers & Version strings

Percentages should either not be converted or should be changed to have the correct ratio as normal percentages.

Numbers beginning with a '#' should be treated as hexadecimal and not be changed.

Version strings are problematic. i.e. "Firefox 3.1" means major version three and minor version one not version three and one tenth.

Parse strings like "12k" as 12,000 rounded up to the nearest 3,600?

Titles

Make it convert titles and image alt attributes.

Nomenclature

Convert number names (one, two, a hundred, etc) into Standard or Purist Sexageimal Nomenclature.

Ajax & javascript

Numbers that are created by javascript don't display correctly.
Maybe modify Number.prototype.toString to parse it as sexagesimal? Would parseInt need to be changed also? Would this cause more problems than it solves? (Not an option)

Input sexagesimal

A way to input sexagesimal into text fields having it automatically converted to decimal. This really can't be added until unicode support is added.
The best idea I've had on the actual input method was inspired by Thumbscript. A single sexagesimal unit would be entered by typing two decimal numbers. For example :54: would by typed by typing a 4 then a 5.

[Stuff finished]

Copying of sexagesimal (Added)

When sexagesimal numbers are copied they should retain their original form. This will also fix plain text urls that get broken currently.
This would also prevent trouble with phone numbers.

Numbers inside words (Decided)

Decide what to do about numbers that are inside words. i.e. "pdf2html converter", "john1654@gmail.com" and such. As well as numbers that are parts of words like "12:30PM"

There will be a list of common suffixes (in, ft, pm, am, etc) as well as SI suffixes and base units that when following a decimal the number will be converted to sexagesimal. If there's not a match the number will be left alone.