version 1.2, 2005/12/07 18:57:45
|
version 1.4, 2006/05/17 22:19:27
|
Line 7
|
Line 7
|
* |
* |
* --------------------------------------------------------------------- |
* --------------------------------------------------------------------- |
* |
* |
* jsMath is free software; you can redistribute it and/or modify |
* Copyright 2004-2006 by Davide P. Cervone |
* it under the terms of the GNU General Public License as published by |
* |
* the Free Software Foundation; either version 2 of the License, or |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* (at your option) any later version. |
* you may not use this file except in compliance with the License. |
* |
* You may obtain a copy of the License at |
* jsMath is distributed in the hope that it will be useful, |
* |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* http://www.apache.org/licenses/LICENSE-2.0 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* |
* GNU General Public License for more details. |
* Unless required by applicable law or agreed to in writing, software |
* |
* distributed under the License is distributed on an "AS IS" BASIS, |
* You should have received a copy of the GNU General Public License |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* along with jsMath; if not, write to the Free Software |
* See the License for the specific language governing permissions and |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* 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: '<FONT FACE="Symbol">L</FONT>', tclass: 'normal'}, |
|
'5': {c: '<FONT FACE="Symbol">P</FONT>', tclass: 'normal'}, |
|
'10': {c: '<FONT FACE="Symbol">W</FONT>', 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: '<I><FONT FACE="Symbol">L</FONT></I>', tclass: 'normal'}, |
|
'5': {c: '<I><FONT FACE="Symbol">P</FONT></I>', tclass: 'normal'}, |
|
'10': {c: '<I><FONT FACE="Symbol">W</FONT></I>', tclass: 'normal'}, |
|
'15': {c: '<I><FONT FACE="Symbol">e</FONT></I>', tclass: 'normal'}, |
|
'16': {c: '<I><FONT FACE="Symbol">z</FONT></I>', tclass: 'normal'}, |
|
'20': {c: '<I><FONT FACE="Symbol">k</FONT></I>', tclass: 'normal'}, |
|
'22': {c: '<I><FONT FACE="Symbol">m</FONT></I>', tclass: 'normal'}, |
|
'25': {c: '<I><FONT FACE="Symbol">p</FONT></I>', tclass: 'normal'}, |
|
'26': {c: '<I><FONT FACE="Symbol">r</FONT></I>', tclass: 'normal'}, |
|
'27': {c: '<I><FONT FACE="Symbol">s</FONT></I>', tclass: 'normal'} |
|
}, |
|
|
|
cmsy10: { |
|
'3': {c: '<SPAN STYLE="vertical-align:-.3em">*</SPAN>', 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: '<FONT FACE="Symbol">Ì</FONT>', tclass: 'normal'}, |
|
'27': {c: '<FONT FACE="Symbol">É</FONT>', tclass: 'normal'} |
|
}, |
|
|
|
cmex10: { |
|
'3': {c: '<SPAN STYLE="font-size: 67%">i</SPAN>'}, |
|
'5': {c: '<SPAN STYLE="font-size: 67%">k</SPAN>'}, |
|
'10': {c: '<SPAN STYLE="font-size: 67%">D</SPAN>'}, |
|
'15': {c: '<SPAN STYLE="font-size: 55%">Â</SPAN>'}, |
|
'16': {c: '<SPAN STYLE="font-size: 83%">µ</SPAN>'}, |
|
'20': {c: '<SPAN STYLE="font-size: 83%">"</SPAN>'}, |
|
'22': {c: '<SPAN STYLE="font-size: 83%">$</SPAN>'}, |
|
'25': {c: '<SPAN STYLE="font-size: 83%">\'</SPAN>'}, |
|
'26': {c: '<SPAN STYLE="font-size: 83%">(</SPAN>'}, |
|
'27': {c: '<SPAN STYLE="font-size: 83%">)</SPAN>'} |
|
}, |
|
|
|
cmti10: { |
|
'3': {c: '<I><FONT FACE="Symbol">L</FONT></I>', tclass: 'normal'}, |
|
'5': {c: '<I><FONT FACE="Symbol">P</FONT></I>', tclass: 'normal'}, |
|
'10': {c: '<I><FONT FACE="Symbol">W</FONT></I>', tclass: 'normal'}, |
|
'16': {c: '<I>ı</I>', tclass: 'normal'}, |
|
'20': {c: '<I>­</I>'}, |
|
'22': {c: '<I>¯</I>', tclass: 'normal', w: .3}, |
|
'25': {c: '<I>ß</I>', tclass: 'normal'}, |
|
'26': {c: '<I>æ</I>', tclass: 'normal'}, |
|
'27': {c: '<I>œ</I>', tclass: 'normal'} |
|
}, |
|
|
|
cmbx10: { |
|
'3': {c: '<B><FONT FACE="Symbol">L</FONT></B>', tclass: 'normal'}, |
|
'5': {c: '<B><FONT FACE="Symbol">P</FONT></B>', tclass: 'normal'}, |
|
'10': {c: '<B><FONT FACE="Symbol">W</FONT></B>', tclass: 'normal'}, |
|
'16': {c: '<B>ı</B>', tclass: 'normal'}, |
|
'20': {c: '<B>­</B>'}, |
|
'22': {c: '<B>¯</B>', tclass: 'normal', w: .3}, |
|
'25': {c: '<B>ß</B>', tclass: 'normal'}, |
|
'26': {c: '<B>æ</B>', tclass: 'normal'}, |
|
'27': {c: '<B>œ</B>', tclass: 'normal'} |
|
} |
|
}); |
|
|
|
/* |
/* |
* MSIE crashes if it changes the page too quickly, so we add a |
* MSIE crashes if it changes the page too quickly, so we add a |
Line 123 jsMath.Add(jsMath,{
|
Line 38 jsMath.Add(jsMath,{
|
Process: function () { |
Process: function () { |
// we need to delay a bit before starting to process the page |
// we need to delay a bit before starting to process the page |
// in order to avoid an MSIE display bug |
// 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 () { |
ProcessBeforeShowing: function () { |
// we need to delay a bit before starting to process the page |
// we need to delay a bit before starting to process the page |
// in order to avoid an MSIE display bug |
// in order to avoid an MSIE display bug |
window.status = "Processing Math..."; |
setTimeout('jsMath.msieProcessBeforeShowing()',5*jsMath.Browser.delay); |
setTimeout('jsMath.msieProcessBeforeShowing()',5*jsMath.delay); |
|
} |
} |
|
|
}); |
}); |
|
|
jsMath.delay = 50; // hope this is enogh of a delay! |
jsMath.Browser.delay = 75; // hope this is enough of a delay! |
|
|