--- loncom/html/adm/jsMath/jsMath-msie-mac.js 2005/12/07 18:57:45 1.2 +++ loncom/html/adm/jsMath/jsMath-msie-mac.js 2006/03/27 19:32:07 1.3 @@ -7,107 +7,24 @@ * * --------------------------------------------------------------------- * - * jsMath is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * jsMath is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with jsMath; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Copyright 2004-2006 by Davide P. Cervone + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ -/******************************************************************** - * - * Mac MSIE has problems accessing a number of the characters in - * the TeX fonts, so we replace them by other characters when - * possible. - */ - -jsMath.Update.TeXfonts({ - - cmr10: { - '3': {c: 'L', tclass: 'normal'}, - '5': {c: 'P', tclass: 'normal'}, - '10': {c: 'W', tclass: 'normal'}, - '16': {c: 'ı', tclass: 'normal'}, - '20': {c: '­'}, - '22': {c: '¯', tclass: 'normal', w: .3}, - '25': {c: 'ß', tclass: 'normal'}, - '26': {c: 'æ', tclass: 'normal'}, - '27': {c: 'œ', tclass: 'normal'} - }, - - cmmi10: { - '3': {c: 'L', tclass: 'normal'}, - '5': {c: 'P', tclass: 'normal'}, - '10': {c: 'W', tclass: 'normal'}, - '15': {c: 'e', tclass: 'normal'}, - '16': {c: 'z', tclass: 'normal'}, - '20': {c: 'k', tclass: 'normal'}, - '22': {c: 'm', tclass: 'normal'}, - '25': {c: 'p', tclass: 'normal'}, - '26': {c: 'r', tclass: 'normal'}, - '27': {c: 's', tclass: 'normal'} - }, - - cmsy10: { - '3': {c: '*', tclass: 'normal'}, - '5': {c: 'Ή', tclass: 'normal'}, - '10': {c: '⊗', tclass: 'normal'}, - '15': {c: '•', tclass: 'normal'}, - '16': {c: '≍', tclass: 'normal'}, - '20': {c: '≤', tclass: 'normal'}, - '22': {c: '≤', tclass: 'normal'}, - '25': {c: '≈', tclass: 'normal'}, - '26': {c: 'Ì', tclass: 'normal'}, - '27': {c: 'É', tclass: 'normal'} - }, - - cmex10: { - '3': {c: 'i'}, - '5': {c: 'k'}, - '10': {c: 'D'}, - '15': {c: 'Â'}, - '16': {c: 'µ'}, - '20': {c: '"'}, - '22': {c: '$'}, - '25': {c: '\''}, - '26': {c: '('}, - '27': {c: ')'} - }, - - cmti10: { - '3': {c: 'L', tclass: 'normal'}, - '5': {c: 'P', tclass: 'normal'}, - '10': {c: 'W', tclass: 'normal'}, - '16': {c: 'ı', tclass: 'normal'}, - '20': {c: '­'}, - '22': {c: '¯', tclass: 'normal', w: .3}, - '25': {c: 'ß', tclass: 'normal'}, - '26': {c: 'æ', tclass: 'normal'}, - '27': {c: 'œ', tclass: 'normal'} - }, - - cmbx10: { - '3': {c: 'L', tclass: 'normal'}, - '5': {c: 'P', tclass: 'normal'}, - '10': {c: 'W', tclass: 'normal'}, - '16': {c: 'ı', tclass: 'normal'}, - '20': {c: '­'}, - '22': {c: '¯', tclass: 'normal', w: .3}, - '25': {c: 'ß', tclass: 'normal'}, - '26': {c: 'æ', tclass: 'normal'}, - '27': {c: 'œ', tclass: 'normal'} - } -}); +jsMath.Script.Start(); /* * MSIE crashes if it changes the page too quickly, so we add a @@ -123,17 +40,18 @@ jsMath.Add(jsMath,{ Process: function () { // we need to delay a bit before starting to process the page // in order to avoid an MSIE display bug - setTimeout('jsMath.msieProcess()',jsMath.delay); + jsMath.Message.Set("Processing Math: 0%"); + setTimeout('jsMath.msieProcess()',jsMath.Browser.delay); }, ProcessBeforeShowing: function () { // we need to delay a bit before starting to process the page // in order to avoid an MSIE display bug - window.status = "Processing Math..."; - setTimeout('jsMath.msieProcessBeforeShowing()',5*jsMath.delay); + setTimeout('jsMath.msieProcessBeforeShowing()',5*jsMath.Browser.delay); } }); -jsMath.delay = 50; // hope this is enogh of a delay! +jsMath.Browser.delay = 75; // hope this is enough of a delay! +jsMath.Script.End();