--- loncom/html/adm/jsMath/jsMath-fallback-mac-msie.js 2005/12/07 18:57:44 1.2 +++ loncom/html/adm/jsMath/jsMath-fallback-mac-msie.js 2006/03/27 19:32:07 1.3 @@ -8,19 +8,19 @@ * * --------------------------------------------------------------------- * - * 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. */ @@ -31,6 +31,8 @@ * */ +jsMath.Script.Start(); + jsMath.Update.TeXfonts({ cmr10: { '0': {c: 'G', tclass: 'greek'}, @@ -44,50 +46,50 @@ jsMath.Update.TeXfonts({ '8': {c: 'F', tclass: 'greek'}, '9': {c: 'Y', tclass: 'greek'}, '10': {c: 'W', tclass: 'greek'}, - '22': {c: '`', tclass: 'symbol3'} + '22': {c: '`', tclass: 'symbol3'} }, cmti10: { - '0': {c: 'G', tclass: 'greek'}, - '1': {c: 'D', tclass: 'greek'}, - '2': {c: 'Q', tclass: 'greek'}, - '3': {c: 'L', tclass: 'greek'}, - '4': {c: 'X', tclass: 'greek'}, - '5': {c: 'P', tclass: 'greek'}, - '6': {c: 'S', tclass: 'greek'}, - '7': {c: '¡', tclass: 'greek'}, - '8': {c: 'F', tclass: 'greek'}, - '9': {c: 'Y', tclass: 'greek'}, - '10': {c: 'W', tclass: 'greek'}, - '22': {c: '`', tclass: 'symbol3'} + '0': {c: 'G', tclass: 'igreek'}, + '1': {c: 'D', tclass: 'igreek'}, + '2': {c: 'Q', tclass: 'igreek'}, + '3': {c: 'L', tclass: 'igreek'}, + '4': {c: 'X', tclass: 'igreek'}, + '5': {c: 'P', tclass: 'igreek'}, + '6': {c: 'S', tclass: 'igreek'}, + '7': {c: '¡', tclass: 'igreek'}, + '8': {c: 'F', tclass: 'igreek'}, + '9': {c: 'Y', tclass: 'igreek'}, + '10': {c: 'W', tclass: 'igreek'}, + '22': {c: '`', tclass: 'symbol3'} }, cmbx10: { - '0': {c: 'G', tclass: 'greek'}, - '1': {c: 'D', tclass: 'greek'}, - '2': {c: 'Q', tclass: 'greek'}, - '3': {c: 'L', tclass: 'greek'}, - '4': {c: 'X', tclass: 'greek'}, - '5': {c: 'P', tclass: 'greek'}, - '6': {c: 'S', tclass: 'greek'}, - '7': {c: '¡', tclass: 'greek'}, - '8': {c: 'F', tclass: 'greek'}, - '9': {c: 'Y', tclass: 'greek'}, - '10': {c: 'W', tclass: 'greek'}, - '22': {c: '`', tclass: 'symbol3'} + '0': {c: 'G', tclass: 'bgreek'}, + '1': {c: 'D', tclass: 'bgreek'}, + '2': {c: 'Q', tclass: 'bgreek'}, + '3': {c: 'L', tclass: 'bgreek'}, + '4': {c: 'X', tclass: 'bgreek'}, + '5': {c: 'P', tclass: 'bgreek'}, + '6': {c: 'S', tclass: 'bgreek'}, + '7': {c: '¡', tclass: 'bgreek'}, + '8': {c: 'F', tclass: 'bgreek'}, + '9': {c: 'Y', tclass: 'bgreek'}, + '10': {c: 'W', tclass: 'bgreek'}, + '22': {c: '`', tclass: 'symbol3'} }, cmmi10: { - '0': {c: 'G', tclass: 'greek'}, - '1': {c: 'D', tclass: 'greek'}, - '2': {c: 'Q', tclass: 'greek'}, - '3': {c: 'L', tclass: 'greek'}, - '4': {c: 'X', tclass: 'greek'}, - '5': {c: 'P', tclass: 'greek'}, - '6': {c: 'S', tclass: 'greek'}, - '7': {c: '¡', tclass: 'greek'}, - '8': {c: 'F', tclass: 'greek'}, - '9': {c: 'Y', tclass: 'greek'}, - '10': {c: 'W', tclass: 'greek'}, + '0': {c: 'G', tclass: 'igreek'}, + '1': {c: 'D', tclass: 'igreek'}, + '2': {c: 'Q', tclass: 'igreek'}, + '3': {c: 'L', tclass: 'igreek'}, + '4': {c: 'X', tclass: 'igreek'}, + '5': {c: 'P', tclass: 'igreek'}, + '6': {c: 'S', tclass: 'igreek'}, + '7': {c: '¡', tclass: 'igreek'}, + '8': {c: 'F', tclass: 'igreek'}, + '9': {c: 'Y', tclass: 'igreek'}, + '10': {c: 'W', tclass: 'igreek'}, '11': {c: 'a', tclass: 'greek'}, '12': {c: 'b', tclass: 'greek'}, '13': {c: 'g', tclass: 'greek'}, @@ -116,21 +118,21 @@ jsMath.Update.TeXfonts({ // '44': // hook left // '45': // hook right // '92': // natural - '94': {c: ''}, - '95': {c: ''} + '94': {c: ''}, + '95': {c: ''} // '127': // half-circle down accent? }, cmsy10: { '0': {c: '–', tclass: 'normal'}, - '11': {c: '/', tclass: 'normal'}, - '16': {c: '', tclass: 'normal'}, - '48': {c: ''}, - '93': {c: '∪+'}, - '96': {c: '|', tclass: 'normal'}, - '104': {c: ''}, - '105': {c: ''}, - '109': {c: '⇑'}, + '11': {c: '/', tclass: 'normal'}, + '16': {c: '', tclass: 'normal'}, + '48': {c: ''}, + '93': {c: '∪+'}, + '96': {c: '|', tclass: 'normal'}, + '104': {c: ''}, + '105': {c: ''}, + '109': {c: '⇑'}, '110': {c: '\\', d:0, tclass: 'normal'} // '111': // wr //, '113': // amalg @@ -141,24 +143,24 @@ jsMath.Update.TeXfonts({ }, cmex10: { - '10': {c: ''}, - '11': {c: ''}, + '10': {c: ''}, + '11': {c: ''}, '14': {c: '/'}, '15': {c: '\\'}, - '28': {c: ''}, - '29': {c: ''}, + '28': {c: ''}, + '29': {c: ''}, '30': {c: '/'}, '31': {c: '\\'}, - '42': {c: ''}, - '43': {c: ''}, + '42': {c: ''}, + '43': {c: ''}, '44': {c: '/'}, '45': {c: '\\'}, '46': {c: '/'}, '47': {c: '\\'}, - '68': {c: ''}, - '69': {c: ''}, + '68': {c: ''}, + '69': {c: ''}, // '70': // sqcup // '71': // big sqcup '72': {ic: 0}, '73': {ic: 0}, '82': {tclass: 'bigop1cx', ic: .15}, '90': {tclass: 'bigop2cx', ic:.6}, - '85': {c: '∪+'}, - '93': {c: '∪+'}, + '85': {c: '∪+'}, + '93': {c: '∪+'}, // '96': // coprod // '97': // big coprod '98': {c: '︿', h: 0.722, w: .58, tclass: 'wide1'}, @@ -171,31 +173,32 @@ jsMath.Update.TeXfonts({ }); -jsMath.Update.Styles({ - '.arrow1': "font-family: Osaka; position: relative; top: .125em; margin: -1px", - '.arrow2': "font-family: Osaka; position: relative; top: .1em; margin:-1px", - '.bigop1': "font-family: Symbol; font-size: 110%; position:relative; top: .8em; margin:-.05em", - '.bigop1b': "font-family: Symbol; font-size: 140%; position: relative; top: .8em; margin:-.1em", - '.bigop1c': "font-family: Osaka; font-size: 125%; position:relative; top: .85em; margin:-.3em", - '.bigop1cx': "font-family: 'Apple Chancery'; font-size: 125%; position:relative; top: .7em; margin:-.1em", - '.bigop2': "font-family: Symbol; font-size: 175%; position:relative; top: .8em; margin:-.07em", - '.bigop2a': "font-family: Baskerville; font-size: 175%; position: relative; top: .65em", - '.bigop2b': "font-family: Symbol; font-size: 175%; position: relative; top: .8em; margin:-.07em", - '.bigop2c': "font-family: Osaka; font-size: 230%; position:relative; top: .85em; margin:-.35em", - '.bigop2cx': "font-family: 'Apple Chancery'; font-size: 250%; position:relative; top: .6em; margin-left:-.1em; margin-right:-.2em", - '.delim1b': "font-family: Times; font-size: 150%; position:relative; top:.8em", - '.delim2b': "font-family: Times; font-size: 210%; position:relative; top:.75em;", - '.delim3b': "font-family: Times; font-size: 300%; position:relative; top:.7em;", - '.delim4b': "font-family: Times; font-size: 400%; position:relative; top:.65em;", - '.symbol3': "font-family: Symbol", - '.wide1': "font-size: 50%; position: relative; top:-1.1em", - '.wide2': "font-size: 80%; position: relative; top:-.7em", - '.wide3': "font-size: 125%; position: relative; top:-.5em", - '.wide1a': "font-size: 75%; position: relative; top:-.5em", - '.wide2a': "font-size: 133%; position: relative; top: -.15em", - '.wide3a': "font-size: 200%; position: relative; top: -.05em", - '.greek': "font-family: Symbol" +jsMath.Setup.Styles({ + '.typeset .arrow1': "font-family: Osaka; position: relative; top: .125em; margin: -1px", + '.typeset .arrow2': "font-family: Osaka; position: relative; top: .1em; margin:-1px", + '.typeset .bigop1': "font-family: Symbol; font-size: 110%; position:relative; top: .8em; margin:-.05em", + '.typeset .bigop1b': "font-family: Symbol; font-size: 140%; position: relative; top: .8em; margin:-.1em", + '.typeset .bigop1c': "font-family: Osaka; font-size: 125%; position:relative; top: .85em; margin:-.3em", + '.typeset .bigop1cx': "font-family: 'Apple Chancery'; font-size: 125%; position:relative; top: .7em; margin:-.1em", + '.typeset .bigop2': "font-family: Symbol; font-size: 175%; position:relative; top: .8em; margin:-.07em", + '.typeset .bigop2a': "font-family: Baskerville; font-size: 175%; position: relative; top: .65em", + '.typeset .bigop2b': "font-family: Symbol; font-size: 175%; position: relative; top: .8em; margin:-.07em", + '.typeset .bigop2c': "font-family: Osaka; font-size: 230%; position:relative; top: .85em; margin:-.35em", + '.typeset .bigop2cx': "font-family: 'Apple Chancery'; font-size: 250%; position:relative; top: .6em; margin-left:-.1em; margin-right:-.2em", + '.typeset .delim1b': "font-family: Times; font-size: 150%; position:relative; top:.8em", + '.typeset .delim2b': "font-family: Times; font-size: 210%; position:relative; top:.75em;", + '.typeset .delim3b': "font-family: Times; font-size: 300%; position:relative; top:.7em;", + '.typeset .delim4b': "font-family: Times; font-size: 400%; position:relative; top:.65em;", + '.typeset .symbol3': "font-family: Symbol", + '.typeset .wide1': "font-size: 50%; position: relative; top:-1.1em", + '.typeset .wide2': "font-size: 80%; position: relative; top:-.7em", + '.typeset .wide3': "font-size: 125%; position: relative; top:-.5em", + '.typeset .wide1a': "font-size: 75%; position: relative; top:-.5em", + '.typeset .wide2a': "font-size: 133%; position: relative; top: -.15em", + '.typeset .wide3a': "font-size: 200%; position: relative; top: -.05em", + '.typeset .greek': "font-family: Symbol", + '.typeset .igreek': "font-family: Symbol; font-style:italic", + '.typeset .bgreek': "font-family: Symbol; font-weight:bold" }); -jsMath.Setup.Styles(); - +jsMath.Script.End();