new build system: build in /build, dev version in /dev; split up Ox.js; fix tests
This commit is contained in:
parent
bbef38f0a9
commit
d0fe279a0f
366 changed files with 8165 additions and 161926 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -1,58 +0,0 @@
|
|||
table { border-spacing: 0; border-collapse: collapse;
|
||||
border-style: solid; border-color: black; border-width: 1px; }
|
||||
th, td { border-spacing: 0;
|
||||
border-style: solid; border-color: teal; border-width: 1px;
|
||||
color: black; vertical-align: top; }
|
||||
td { font-size: 120%; text-align: Center; vertical-align: top; width: 48px }
|
||||
|
||||
table.headerTable {
|
||||
border-color: white;
|
||||
border-width: 0px;
|
||||
font-size: 120%;
|
||||
width: 100%;
|
||||
}
|
||||
td.headerLeft {
|
||||
border-color: white;
|
||||
border-width: 0px;
|
||||
text-align: left;
|
||||
font-size: 120%;
|
||||
}
|
||||
td.headerCenter {
|
||||
border-color: white;
|
||||
border-width: 0px;
|
||||
text-align: center;
|
||||
font-size: 120%;
|
||||
}
|
||||
td.headerRight {
|
||||
border-color: white;
|
||||
border-width: 0px;
|
||||
text-align: right;
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
td.new, td.cellwnew, td.cellnew {
|
||||
background-color: #FFFFCC;
|
||||
}
|
||||
|
||||
chart {background-color: red;}
|
||||
|
||||
td.p { color: #000000; background-color: #7777FF }
|
||||
td.s { color: #000000; background-color: #BBBBFF }
|
||||
td.t { color: #000000; background-color: #DDDDFF }
|
||||
td.q { color: #000000; background-color: #FFFFFF }
|
||||
td.ep { color: #000000; background-color: #FF5555 }
|
||||
td.es { color: #000000; background-color: #FF7777 }
|
||||
td.et { color: #000000; background-color: #FF9999 }
|
||||
td.eq { color: #000000; background-color: #FFBBBB }
|
||||
th { vertical-align: top; font-weight: bold }
|
||||
th.x { vertical-align: top; font-weight: regular; text-align: Left }
|
||||
tt { font-size: 50% }
|
||||
|
||||
td.name { text-align: left; vertical-align: middle; width: 96% }
|
||||
body { background-color: #FFFFFF; }
|
||||
|
||||
td.g { font-size: 120%; text-align: Center; width: 72px; color: #808080; }
|
||||
td.n { font-size: 120%; text-align: Center; width: 72px; color: #000000; background-color: #CCCCFF; }
|
||||
td.z { font-size: 120%; text-align: Center; width: 72px; font-weight: bold; background-color: #EEEEEE; }
|
||||
td.h { font-size: 120%; text-align: Left; color: #000000; background-color: #EEEEEE; }
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
||||
<script type="text/javascript" src="../../build/js/jquery-1.3.2.js"></script>
|
||||
<script type="text/javascript" src="../../build/js/ox.js"></script>
|
||||
<script type="text/javascript" src="unicode.js"></script>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
|
|
@ -1,84 +0,0 @@
|
|||
/*
|
||||
http://unicode.org/charts/collation/chart_Latin.html
|
||||
*/
|
||||
|
||||
$(function() {
|
||||
var $body = $("body"),
|
||||
latin = [];
|
||||
$.each("ABCDEFGHIJKLMNOPQRSTUVWXYZ", function(i, v) {
|
||||
latin.push(v);
|
||||
});
|
||||
$.each(["AE", "DZ", "NJ", "OE", "SZ"], function(i, v) {
|
||||
latin.push(v);
|
||||
});
|
||||
var unicode = {};
|
||||
$.each(latin, function(i, v) {
|
||||
unicode[v] = [];
|
||||
});
|
||||
$.each(latin, function(i, v) {
|
||||
unicode[v.toLowerCase()] = [];
|
||||
});
|
||||
$.get("chart_Latin.html", function(data) {
|
||||
data = "<table>" + data.split("<table>")[1].split("</table>")[0] + "</table>";
|
||||
$("body").append(data);
|
||||
$("td").each(function() {
|
||||
var $this = $(this);
|
||||
var title = $this.attr('title').split(":")[0].replace("SHARP S", "SZ");
|
||||
var words = title.split(" ");
|
||||
if (title.substr(-2, 1) != " "
|
||||
&& words[0] == "LATIN"
|
||||
&& $.inArray(words[1], ["CAPITAL", "SMALL"]) > -1
|
||||
&& $.inArray(words[2], ["LETTER", "LIGATURE"]) > -1
|
||||
&& $.inArray(words[3], latin) > -1) {
|
||||
var character = words[1] == "CAPITAL" ? words[3] : words[3].toLowerCase();
|
||||
unicode[character].push({
|
||||
character: "\\u" + $(this).children().eq(1).html(),
|
||||
comment: title.replace("SZ", "SHARP S")
|
||||
});
|
||||
}
|
||||
});
|
||||
$body.empty();
|
||||
$.each(unicode, function(k, v) {
|
||||
unicode[k].sort(function(a, b) {
|
||||
a = a.character.substr(2);
|
||||
b = b.character.substr(2);
|
||||
return (a < b) * -1 + (a > b);
|
||||
});
|
||||
});
|
||||
$div = $("<div/>")
|
||||
.css({
|
||||
fontFamily: "Consolas",
|
||||
fontSize: "12px"
|
||||
})
|
||||
.html(
|
||||
$.map(Ox.keys(unicode), function(v) {
|
||||
return v + ": [<br/>" + Ox.repeat(" ", 4) + $.map(unicode[v], function(v_, i) {
|
||||
return '"' + v_.character + '"' + (i < unicode[v].length - 1 ? "," : " ") + " // " + v_.comment;
|
||||
}).join("<br/>" + Ox.repeat(" ", 4));
|
||||
}).join("<br/>],<br/>") + "<br/>]"
|
||||
)
|
||||
.appendTo($body);
|
||||
/*
|
||||
$.each(unicode, function(k, v) {
|
||||
$div.append(k + ": [<br/>");
|
||||
var length = v.length;
|
||||
$.each(v, function(i, v_) {
|
||||
$div.append(" \"" + v_.character + "\"" + (i < v.length - 1 ? "," : " ") + " // " + v_.comment + "<br/>")
|
||||
});
|
||||
$div.append("]" + (k != 'sz' ? "," : "") + "<br/>");
|
||||
});
|
||||
*/
|
||||
$div = $("<div/>").css({
|
||||
fontFamily: "Lucida Grande",
|
||||
fontSize: "24px"
|
||||
}).appendTo($body);
|
||||
$.each(unicode, function(k, v) {
|
||||
$div.append(k + ": ");
|
||||
$.each(v, function(i, v_) {
|
||||
console.log(v_)
|
||||
$div.append("<span title=\"" + v_.comment + "\">&#x" + v_.character.substr(2) + ";</span>");
|
||||
});
|
||||
$div.append("<br/>");
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue