1: /*
2: * jsMath-fallback-mac-msie.js
3: *
4: * Part of the jsMath package for mathematics on the web.
5: *
6: * This file makes changes needed by Internet Explorer on the Mac
7: * for when the TeX fonts are not available.
8: *
9: * ---------------------------------------------------------------------
10: *
11: * Copyright 2004-2006 by Davide P. Cervone
12: *
13: * Licensed under the Apache License, Version 2.0 (the "License");
14: * you may not use this file except in compliance with the License.
15: * You may obtain a copy of the License at
16: *
17: * http://www.apache.org/licenses/LICENSE-2.0
18: *
19: * Unless required by applicable law or agreed to in writing, software
20: * distributed under the License is distributed on an "AS IS" BASIS,
21: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22: * See the License for the specific language governing permissions and
23: * limitations under the License.
24: */
25:
26:
27:
28: /********************************************************************
29: *
30: * Fix the default non-TeX-font characters to work with MSIE
31: *
32: */
33:
34: jsMath.Script.Start();
35:
36: jsMath.Update.TeXfonts({
37: cmr10: {
38: '0': {c: 'G', tclass: 'greek'},
39: '1': {c: 'D', tclass: 'greek'},
40: '2': {c: 'Q', tclass: 'greek'},
41: '3': {c: 'L', tclass: 'greek'},
42: '4': {c: 'X', tclass: 'greek'},
43: '5': {c: 'P', tclass: 'greek'},
44: '6': {c: 'S', tclass: 'greek'},
45: '7': {c: '¡', tclass: 'greek'},
46: '8': {c: 'F', tclass: 'greek'},
47: '9': {c: 'Y', tclass: 'greek'},
48: '10': {c: 'W', tclass: 'greek'},
49: '22': {c: '<span style="position:relative; top:.1em">`</span>', tclass: 'symbol3'}
50: },
51:
52: cmti10: {
53: '0': {c: 'G', tclass: 'igreek'},
54: '1': {c: 'D', tclass: 'igreek'},
55: '2': {c: 'Q', tclass: 'igreek'},
56: '3': {c: 'L', tclass: 'igreek'},
57: '4': {c: 'X', tclass: 'igreek'},
58: '5': {c: 'P', tclass: 'igreek'},
59: '6': {c: 'S', tclass: 'igreek'},
60: '7': {c: '¡', tclass: 'igreek'},
61: '8': {c: 'F', tclass: 'igreek'},
62: '9': {c: 'Y', tclass: 'igreek'},
63: '10': {c: 'W', tclass: 'igreek'},
64: '22': {c: '<span style="position:relative; top:.1em">`</span>', tclass: 'symbol3'}
65: },
66:
67: cmbx10: {
68: '0': {c: 'G', tclass: 'bgreek'},
69: '1': {c: 'D', tclass: 'bgreek'},
70: '2': {c: 'Q', tclass: 'bgreek'},
71: '3': {c: 'L', tclass: 'bgreek'},
72: '4': {c: 'X', tclass: 'bgreek'},
73: '5': {c: 'P', tclass: 'bgreek'},
74: '6': {c: 'S', tclass: 'bgreek'},
75: '7': {c: '¡', tclass: 'bgreek'},
76: '8': {c: 'F', tclass: 'bgreek'},
77: '9': {c: 'Y', tclass: 'bgreek'},
78: '10': {c: 'W', tclass: 'bgreek'},
79: '22': {c: '<span style="position:relative; top:.1em">`</span>', tclass: 'symbol3'}
80: },
81: cmmi10: {
82: '0': {c: 'G', tclass: 'igreek'},
83: '1': {c: 'D', tclass: 'igreek'},
84: '2': {c: 'Q', tclass: 'igreek'},
85: '3': {c: 'L', tclass: 'igreek'},
86: '4': {c: 'X', tclass: 'igreek'},
87: '5': {c: 'P', tclass: 'igreek'},
88: '6': {c: 'S', tclass: 'igreek'},
89: '7': {c: '¡', tclass: 'igreek'},
90: '8': {c: 'F', tclass: 'igreek'},
91: '9': {c: 'Y', tclass: 'igreek'},
92: '10': {c: 'W', tclass: 'igreek'},
93: '11': {c: 'a', tclass: 'greek'},
94: '12': {c: 'b', tclass: 'greek'},
95: '13': {c: 'g', tclass: 'greek'},
96: '14': {c: 'd', tclass: 'greek'},
97: '15': {c: 'e', tclass: 'greek'},
98: '16': {c: 'z', tclass: 'greek'},
99: '17': {c: 'h', tclass: 'greek'},
100: '18': {c: 'q', tclass: 'greek'},
101: '19': {c: 'i', tclass: 'greek'},
102: '20': {c: 'k', tclass: 'greek'},
103: '21': {c: 'l', tclass: 'greek'},
104: '22': {c: 'm', tclass: 'greek'},
105: '23': {c: 'n', tclass: 'greek'},
106: '24': {c: 'x', tclass: 'greek'},
107: '25': {c: 'p', tclass: 'greek'},
108: '26': {c: 'r', tclass: 'greek'},
109: '27': {c: 's', tclass: 'greek'},
110: '28': {c: 't', tclass: 'greek'},
111: '29': {c: 'u', tclass: 'greek'},
112: '30': {c: 'f', tclass: 'greek'},
113: '31': {c: 'c', tclass: 'greek'},
114: '32': {c: 'y', tclass: 'greek'},
115: '33': {c: 'w', tclass: 'greek'},
116: // '41': // leftharpoondown
117: // '43': // rightharpoondown
118: // '44': // hook left
119: // '45': // hook right
120: // '92': // natural
121: '94': {c: '<span style="position:relative; top:.3em">︶</span>'},
122: '95': {c: '<span style="position:relative; top:-.2em">︵</span>'}
123: // '127': // half-circle down accent?
124: },
125:
126: cmsy10: {
127: '0': {c: '–', tclass: 'normal'},
128: '11': {c: '<span style="font-size: 70%">◯</span><span style="position:relative; margin-left:-.5em; top:.1em; margin-right:.3em">/</span>', tclass: 'normal'},
129: '16': {c: '<span style="position:relative;top:-.1em; font-size: 67%">︵</span><span style="position:relative;top:.1em;font-size:67%;margin-left:-1em">︶</span>', tclass: 'normal'},
130: '48': {c: '<span style="font-size: 133%; margin-left:-.1em; margin-right: -.6em; position: relative; top:.4em">′</span>'},
131: '93': {c: '∪<span style="font-size: 50%; margin-left:-1.3em; position: relative; top:-.3em; margin-right:.6em">+</span>'},
132: '96': {c: '<span style="font-size:67%; position:relative; top:-.3em;">|</span><span style="position:relative; top:-.15em; margin-left:-.1em">–</span>', tclass: 'normal'},
133: '104': {c: '<span style="position:relative; top:.2em; margin-left:-.6em">〈</span>'},
134: '105': {c: '<span style="position:relative; top:.2em; margin-right:-.6em">〉</span>'},
135: '109': {c: '⇑<span style="position:relative; top:.1em; margin-left:-1em">⇓</span>'},
136: '110': {c: '\\', d:0, tclass: 'normal'}
137: // '111': // wr
138: //, '113': // amalg
139: // '116': // sqcup
140: // '117': // sqcap
141: // '118': // sqsubseteq
142: // '119': // sqsupseteq
143: },
144:
145: cmex10: {
146: '10': {c: '<span style="position:relative; top:.1em; margin-left:-.6em">〈</span>'},
147: '11': {c: '<span style="position:relative; top:.1em; margin-right:-.6em">〉</span>'},
148: '14': {c: '/'}, '15': {c: '\\'},
149: '28': {c: '<span style="position:relative; top:.05em; margin-left:-.6em">〈</span>'},
150: '29': {c: '<span style="position:relative; top:.05em; margin-right:-.6em">〉</span>'},
151: '30': {c: '/'}, '31': {c: '\\'},
152: '42': {c: '<span style="margin-left:-.6em">〈</span>'},
153: '43': {c: '<span style="margin-right:-.6em">〉</span>'},
154: '44': {c: '/'}, '45': {c: '\\'},
155: '46': {c: '/'}, '47': {c: '\\'},
156: '68': {c: '<span style="margin-left:-.6em">〈</span>'},
157: '69': {c: '<span style="margin-right:-.6em">〉</span>'},
158: // '70': // sqcup
159: // '71': // big sqcup
160: '72': {ic: 0}, '73': {ic: 0},
161: '82': {tclass: 'bigop1cx', ic: .15}, '90': {tclass: 'bigop2cx', ic:.6},
162: '85': {c: '∪<span style="font-size: 50%; margin-left:-1.25em; position: relative; top:-.3em; margin-right:.6em">+</span>'},
163: '93': {c: '∪<span style="font-size: 50%; margin-left:-1.25em; position: relative; top:-.3em; margin-right:.6em">+</span>'},
164: // '96': // coprod
165: // '97': // big coprod
166: '98': {c: '︿', h: 0.722, w: .58, tclass: 'wide1'},
167: '99': {c: '︿', h: 0.722, w: .58, tclass: 'wide2'},
168: '100': {c: '︿', h: 0.722, w: .58, tclass: 'wide3'},
169: '101': {c: '~', h: 0.722, w: .42, tclass: 'wide1a'},
170: '102': {c: '~', h: 0.8, w: .73, tclass: 'wide2a'},
171: '103': {c: '~', h: 0.8, w: 1.1, tclass: 'wide3a'}
172: }
173:
174: });
175:
176: jsMath.Setup.Styles({
177: '.typeset .arrow1': "font-family: Osaka; position: relative; top: .125em; margin: -1px",
178: '.typeset .arrow2': "font-family: Osaka; position: relative; top: .1em; margin:-1px",
179: '.typeset .bigop1': "font-family: Symbol; font-size: 110%; position:relative; top: .8em; margin:-.05em",
180: '.typeset .bigop1b': "font-family: Symbol; font-size: 140%; position: relative; top: .8em; margin:-.1em",
181: '.typeset .bigop1c': "font-family: Osaka; font-size: 125%; position:relative; top: .85em; margin:-.3em",
182: '.typeset .bigop1cx': "font-family: 'Apple Chancery'; font-size: 125%; position:relative; top: .7em; margin:-.1em",
183: '.typeset .bigop2': "font-family: Symbol; font-size: 175%; position:relative; top: .8em; margin:-.07em",
184: '.typeset .bigop2a': "font-family: Baskerville; font-size: 175%; position: relative; top: .65em",
185: '.typeset .bigop2b': "font-family: Symbol; font-size: 175%; position: relative; top: .8em; margin:-.07em",
186: '.typeset .bigop2c': "font-family: Osaka; font-size: 230%; position:relative; top: .85em; margin:-.35em",
187: '.typeset .bigop2cx': "font-family: 'Apple Chancery'; font-size: 250%; position:relative; top: .6em; margin-left:-.1em; margin-right:-.2em",
188: '.typeset .delim1b': "font-family: Times; font-size: 150%; position:relative; top:.8em",
189: '.typeset .delim2b': "font-family: Times; font-size: 210%; position:relative; top:.75em;",
190: '.typeset .delim3b': "font-family: Times; font-size: 300%; position:relative; top:.7em;",
191: '.typeset .delim4b': "font-family: Times; font-size: 400%; position:relative; top:.65em;",
192: '.typeset .symbol3': "font-family: Symbol",
193: '.typeset .wide1': "font-size: 50%; position: relative; top:-1.1em",
194: '.typeset .wide2': "font-size: 80%; position: relative; top:-.7em",
195: '.typeset .wide3': "font-size: 125%; position: relative; top:-.5em",
196: '.typeset .wide1a': "font-size: 75%; position: relative; top:-.5em",
197: '.typeset .wide2a': "font-size: 133%; position: relative; top: -.15em",
198: '.typeset .wide3a': "font-size: 200%; position: relative; top: -.05em",
199: '.typeset .greek': "font-family: Symbol",
200: '.typeset .igreek': "font-family: Symbol; font-style:italic",
201: '.typeset .bgreek': "font-family: Symbol; font-weight:bold"
202: });
203:
204: jsMath.Script.End();
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>