Letter-Value Matrix in Javascript

Michigan-Claremont-Transliteration to Values Matrix

// gematria matrix by Andreas G. Szabó
// http://www.torakosmos.de

var matrix = new Array(); // simple, alt, full, hidden, atbash

matrix['A'] = new Array(  1,  1,111,110,400);
matrix['B'] = new Array(  2,  2,412,410,300);
matrix['G'] = new Array(  3,  3, 73, 70,200);
matrix['D'] = new Array(  4,  4,434,430,100);
matrix['H'] = new Array(  5,  5, 6,  1, 90);
matrix['V'] = new Array(  6,  6, 12,  6, 80);
matrix['Z'] = new Array(  7,  7, 67, 60, 70);
matrix['X'] = new Array(  8,  8,418,410, 60);
matrix['+'] = new Array(  9,  9,450,441, 50);

matrix['Y'] = new Array( 10, 10, 20, 10, 40);
matrix['K'] = new Array( 20, 20,100, 80, 30);
matrix['L'] = new Array( 30, 30, 74, 44, 20);
matrix['M'] = new Array( 40, 40, 90, 50, 10);
matrix['N'] = new Array( 50, 50,106, 56,  9);
matrix['$'] = new Array( 60, 60,120, 60,  8);
matrix['O'] = new Array( 70, 70,130, 60,  7);
matrix['P'] = new Array( 80, 80, 85,  5,  6);
matrix['C'] = new Array( 90, 90,104, 14,  5);

matrix['Q'] = new Array(100,100,186, 86,  4);
matrix['R'] = new Array(200,200,510,310,  3);
matrix['S'] = new Array(300,300,360, 60,  2);
matrix['s'] = new Array(300,300,360, 60,  2);
matrix['#'] = new Array(300,300,360, 60,  2);
matrix['T'] = new Array(400,400,406,  6,  1);

matrix['k'] = new Array( 20,500,100, 80, 30);
matrix['m'] = new Array( 40,600, 90, 50, 10);
matrix['n'] = new Array( 50,700,106, 56,  9);
matrix['p'] = new Array( 80,800, 85,  5,  6);
matrix['c'] = new Array( 90,900,104, 14,  5);

Michigan-Claremont-Transliteration to Unicode Matrix

// transliteration matrix by Andreas G. Szabó
// http://www.torakosmos.de

var hebrew = {
	'A': 1488,
	'B': 1489,
	'G': 1490,
	'D': 1491,
	'H': 1492,
	'V': 1493,
	'Z': 1494,
	'X': 1495,
	'+': 1496,

	'Y': 1497,
	'K': 1499,
	'L': 1500,
	'M': 1502,
	'N': 1504,
	'$': 1505,
	'O': 1506,
	'P': 1508,
	'C': 1510,

	'Q': 1511,
	'R': 1512,
	'S': 1513,
	's': 1513,
	'#': 1513,
	'T': 1514,

	// sof
	'k': 1498,
	'm': 1501,
	'n': 1503,
	'p': 1507,
	'c': 1509,

	// Maqaf
	'-': 1470
};

Unicode to Values Matrix

// gematria matrix by Andreas G. Szabó
// http://www.torakosmos.de

// simple (outer) value

var vals_simple = {
	1488: 1,
	1489: 2,
	1490: 3,
	1491: 4,
	1492: 5,
	1493: 6,
	1494: 7,
	1495: 8,
	1496: 9,

	1497: 10,
	1499: 20,
	1500: 30,
	1502: 40,
	1504: 50,
	1505: 60,
	1506: 70,
	1508: 80,
	1510: 90,

	1511: 100,
	1512: 200,
	1513: 300,
	1514: 400,

	// sof
	1498: 20,
	1501: 40,
	1503: 50,
	1507: 80,
	1509: 90
};

// alternate value

var vals_simple_sof = {
	1488: 1,
	1489: 2,
	1490: 3,
	1491: 4,
	1492: 5,
	1493: 6,
	1494: 7,
	1495: 8,
	1496: 9,

	1497: 10,
	1499: 20,
	1500: 30,
	1502: 40,
	1504: 50,
	1505: 60,
	1506: 70,
	1508: 80,
	1510: 90,

	1511: 100,
	1512: 200,
	1513: 300,
	1514: 400,

	// sof
	1498: 500,
	1501: 600,
	1503: 700,
	1507: 800,
	1509: 900
};

// full value

var vals_full = {
	1488: 111,
	1489: 412,
	1490: 73,
	1491: 434,
	1492: 6,
	1493: 12,
	1494: 67,
	1495: 418,
	1496: 450,

	1497: 20,
	1499: 100,
	1500: 74,
	1502: 90,
	1504: 106,
	1505: 120,
	1506: 130,
	1508: 85,
	1510: 104,

	1511: 186,
	1512: 510,
	1513: 360,
	1514: 406,

	// sof
	1498: 100,
	1501: 90,
	1503: 106,
	1507: 85,
	1509: 104
};

// hidden value

var vals_hidden = {
	1488: 110,
	1489: 410,
	1490: 70,
	1491: 430,
	1492: 1,
	1493: 6,
	1494: 60,
	1495: 410,
	1496: 441,

	1497: 10,
	1499: 80,
	1500: 44,
	1502: 50,
	1504: 56,
	1505: 60,
	1506: 60,
	1508: 5,
	1510: 14,

	1511: 86,
	1512: 310,
	1513: 60,
	1514: 6,

	// sof
	1498: 80,
	1501: 50,
	1503: 56,
	1507:  5,
	1509: 14
};

// atbash value

var vals_atbash = {
	1488: 400,
	1489: 300,
	1490: 200,
	1491: 100,
	1492: 90,
	1493: 80,
	1494: 70,
	1495: 60,
	1496: 50,

	1497: 40,
	1499: 30,
	1500: 20,
	1502: 10,
	1504: 9,
	1505: 8,
	1506: 7,
	1508: 6,
	1510: 5,

	1511: 4,
	1512: 3,
	1513: 2,
	1514: 1,

	// sof
	1498: 30,
	1501: 10,
	1503: 9,
	1507: 6,
	1509: 5
};