Remove extra comma from RANGES (causes IE crash), bump version numbers, and rename IE Greek ranges to work properly with new greek range in 1.1a
This commit is contained in:
parent
5f2d61e96b
commit
8588f02413
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
* ---------------------------------------------------------------------
|
* ---------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* Copyright (c) 2009-2010 Design Science, Inc.
|
* Copyright (c) 2009-2011 Design Science, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function (HTMLCSS) {
|
(function (HTMLCSS) {
|
||||||
var VERSION = "1.0";
|
var VERSION = "1.1";
|
||||||
|
|
||||||
HTMLCSS.allowWebFonts = false;
|
HTMLCSS.allowWebFonts = false;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
* ---------------------------------------------------------------------
|
* ---------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* Copyright (c) 2009 Design Science, Inc.
|
* Copyright (c) 2009-2011 Design Science, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function (HTMLCSS,MML,AJAX) {
|
(function (HTMLCSS,MML,AJAX) {
|
||||||
var VERSION = "1.0.1";
|
var VERSION = "1.1.1";
|
||||||
|
|
||||||
var MAIN = "MathJax_Main",
|
var MAIN = "MathJax_Main",
|
||||||
BOLD = "MathJax_Main-bold",
|
BOLD = "MathJax_Main-bold",
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
RANGES: [
|
RANGES: [
|
||||||
{name: "alpha", low: 0x61, high: 0x7A, offset: "A", add: 32},
|
{name: "alpha", low: 0x61, high: 0x7A, offset: "A", add: 32},
|
||||||
{name: "number", low: 0x30, high: 0x39, offset: "N"},
|
{name: "number", low: 0x30, high: 0x39, offset: "N"},
|
||||||
{name: "greek", low: 0x03B1, high: 0x03F6, offset: "G"},
|
{name: "greek", low: 0x03B1, high: 0x03F6, offset: "G"}
|
||||||
],
|
],
|
||||||
|
|
||||||
RULECHAR: 0x2212,
|
RULECHAR: 0x2212,
|
||||||
|
@ -1411,7 +1411,7 @@
|
||||||
MathJax.Hub.Browser.Select({
|
MathJax.Hub.Browser.Select({
|
||||||
MSIE: function (browser) {
|
MSIE: function (browser) {
|
||||||
|
|
||||||
if (!HTMLCSS.imgFonts && HTMLCSS.config.availableFonts && HTMLCSS.config.availableFonts.length) {
|
if (HTMLCSS.config.availableFonts && HTMLCSS.config.availableFonts.length) {
|
||||||
|
|
||||||
HTMLCSS.FONTDATA.REMAP[0x2C9] = 0xAF; // macron
|
HTMLCSS.FONTDATA.REMAP[0x2C9] = 0xAF; // macron
|
||||||
HTMLCSS.FONTDATA.REMAP[0x2CA] = 0xB4; // acute
|
HTMLCSS.FONTDATA.REMAP[0x2CA] = 0xB4; // acute
|
||||||
|
@ -1421,18 +1421,18 @@
|
||||||
var testString = HTMLCSS.msieCheckGreek =
|
var testString = HTMLCSS.msieCheckGreek =
|
||||||
String.fromCharCode(0x393)+" "+String.fromCharCode(0x3A5)+" "+String.fromCharCode(0x39B);
|
String.fromCharCode(0x393)+" "+String.fromCharCode(0x3A5)+" "+String.fromCharCode(0x39B);
|
||||||
|
|
||||||
HTMLCSS.FONTDATA.RANGES.push({name: "greek", low: 0x03B1, high: 0x03C9, offset: "G", add: 32});
|
HTMLCSS.FONTDATA.RANGES.push({name: "IEgreek", low: 0x03B1, high: 0x03C9, offset: "IEG", add: 32});
|
||||||
HTMLCSS.FONTDATA.RANGES.push({name: "Greek", low: 0x0391, high: 0x03F6, offset: "G"});
|
HTMLCSS.FONTDATA.RANGES.push({name: "IEGreek", low: 0x0391, high: 0x03F6, offset: "IEG"});
|
||||||
|
|
||||||
if (HTMLCSS.Font.testFont({family:"MathJax_Greek", testString: testString})) {
|
if (HTMLCSS.Font.testFont({family:"MathJax_Greek", testString: testString})) {
|
||||||
HTMLCSS.Augment({
|
HTMLCSS.Augment({
|
||||||
FONTDATA: {
|
FONTDATA: {
|
||||||
VARIANT: {
|
VARIANT: {
|
||||||
normal: {offsetG: 0x391, variantG: "-Greek"},
|
normal: {offsetIEG: 0x391, variantIEG: "-Greek"},
|
||||||
"fraktur": {offsetG: 0x391, variantG: "-Greek"},
|
"fraktur": {offsetIEG: 0x391, variantIEG: "-Greek"},
|
||||||
"script": {offsetG: 0x391, variantG: "-Greek"},
|
"script": {offsetIEG: 0x391, variantIEG: "-Greek"},
|
||||||
"-tex-caligraphic": {offsetG: 0x391, variantG: "-Greek"},
|
"-tex-caligraphic": {offsetIEG: 0x391, variantIEG: "-Greek"},
|
||||||
"-tex-oldstyle": {offsetG: 0x391, variantG: "-Greek"},
|
"-tex-oldstyle": {offsetIEG: 0x391, variantIEG: "-Greek"},
|
||||||
"-Greek": {fonts:["MathJax_Greek"]}
|
"-Greek": {fonts:["MathJax_Greek"]}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1463,9 +1463,9 @@
|
||||||
HTMLCSS.Augment({
|
HTMLCSS.Augment({
|
||||||
FONTDATA: {
|
FONTDATA: {
|
||||||
VARIANT: {
|
VARIANT: {
|
||||||
bold: {offsetG: 0x391, variantG: "-Greek-Bold"},
|
bold: {offsetIEG: 0x391, variantIEG: "-Greek-Bold"},
|
||||||
"bold-fraktur": {offsetG: 0x391, variantG: "-Greek-Bold"},
|
"bold-fraktur": {offsetIEG: 0x391, variantIEG: "-Greek-Bold"},
|
||||||
"bold-script": {offsetG: 0x391, variantG: "-Greek-Bold"},
|
"bold-script": {offsetIEG: 0x391, variantIEG: "-Greek-Bold"},
|
||||||
"-Greek-Bold": {fonts:["MathJax_Greek-bold"]}
|
"-Greek-Bold": {fonts:["MathJax_Greek-bold"]}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1497,7 +1497,7 @@
|
||||||
HTMLCSS.Augment({
|
HTMLCSS.Augment({
|
||||||
FONTDATA: {
|
FONTDATA: {
|
||||||
VARIANT: {
|
VARIANT: {
|
||||||
italic: {offsetG: 0x391, variantG: "-Greek-Italic"},
|
italic: {offsetIEG: 0x391, variantIEG: "-Greek-Italic"},
|
||||||
"-Greek-Italic": {fonts:["MathJax_Greek-italic"]}
|
"-Greek-Italic": {fonts:["MathJax_Greek-italic"]}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user