File:
[LON-CAPA] /
loncom /
html /
adm /
jsMath /
jsMath-fallback-mac-mozilla.js
Revision
1.4:
download - view:
text,
annotated -
select for diffs
Wed May 17 22:19:27 2006 UTC (18 years, 5 months ago) by
albertel
Branches:
MAIN
CVS tags:
version_2_9_X,
version_2_9_99_0,
version_2_9_1,
version_2_9_0,
version_2_8_X,
version_2_8_99_1,
version_2_8_99_0,
version_2_8_2,
version_2_8_1,
version_2_8_0,
version_2_7_X,
version_2_7_99_1,
version_2_7_99_0,
version_2_7_1,
version_2_7_0,
version_2_6_X,
version_2_6_99_1,
version_2_6_99_0,
version_2_6_3,
version_2_6_2,
version_2_6_1,
version_2_6_0,
version_2_5_X,
version_2_5_99_1,
version_2_5_99_0,
version_2_5_2,
version_2_5_1,
version_2_5_0,
version_2_4_X,
version_2_4_99_0,
version_2_4_2,
version_2_4_1,
version_2_4_0,
version_2_3_X,
version_2_3_99_0,
version_2_3_2,
version_2_3_1,
version_2_3_0,
version_2_2_X,
version_2_2_99_1,
version_2_2_99_0,
version_2_2_2,
version_2_2_1,
version_2_2_0,
version_2_1_99_3,
version_2_1_99_2,
version_2_1_99_1,
version_2_1_99_0,
version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
version_2_11_1,
version_2_11_0_RC3,
version_2_11_0_RC2,
version_2_11_0_RC1,
version_2_11_0,
version_2_10_X,
version_2_10_1,
version_2_10_0_RC2,
version_2_10_0_RC1,
version_2_10_0,
loncapaMITrelate_1,
language_hyphenation_merge,
language_hyphenation,
bz6209-base,
bz6209,
bz5969,
bz2851,
PRINT_INCOMPLETE_base,
PRINT_INCOMPLETE,
HEAD,
GCI_3,
GCI_2,
GCI_1,
BZ5971-printing-apage,
BZ5434-fox,
BZ4492-merge,
BZ4492-feature_horizontal_radioresponse
- jsmath 3.3
1: /*
2: * jsMath-fallback-mac-mozilla.js
3: *
4: * Part of the jsMath package for mathematics on the web.
5: *
6: * This file makes changes needed by Mozilla-based browsers 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 Mozilla
31: *
32: */
33:
34: jsMath.Update.TeXfonts({
35: cmmi10: {
36: // '41': // leftharpoondown
37: // '43': // rightharpoondown
38: '44': {c: '<span style="position:relative; top:.15em; margin-right:-.1em; margin-left:-.2em">˓</span>'},
39: '45': {c: '<span style="position:relative; top:.15em; margin-right:-.1em; margin-left:-.2em">˒</span>'},
40: '47': {c: '<span style="font-size:60%">◁</span>'},
41: // '92': // natural
42: '126': {c: '<span style="position:relative; left: .3em; top: -.7em; font-size: 50%">→</span>'}
43: },
44:
45: cmsy10: {
46: '0': {c: '–', tclass: 'normal'},
47: '11': {c: '<span style="font-size: 70%">◯</span><span style="position:relative; margin-left:-.5em; top:.1em; margin-right:.3em">/</span>', tclass: 'normal'},
48: '42': {c: '⥣'}, '43': {c: '⥥'},
49: '48': {c: '<span style="font-size: 133%; margin-right: -.75em; position: relative; top:.4em">′</span>', tclass: 'normal'},
50: '93': {c: '∪<span style="font-size: 50%; margin-left:-1.3em; position: relative; top:-.3em; margin-right:.6em">+</span>'},
51: '104': {c: '<span style="position:relative; top:.15em; margin-left:-.6em">〈</span>'},
52: '105': {c: '<span style="position:relative; top:.15em; margin-right:-.6em">〉</span>'},
53: '109': {c: '⥣<span style="position:relative; top:.1em; margin-left:-1em">⥥</span>'}
54: //, '116': // sqcup
55: // '117': // sqcap
56: // '118': // sqsubseteq
57: // '119': // sqsupseteq
58: },
59:
60: cmex10: {
61: '10': {c: '<span style="position:relative; top:.1em; margin-left:-.6em">〈</span>'},
62: '11': {c: '<span style="position:relative; top:.1em; margin-right:-.6em">〉</span>'},
63: '14': {c: '/'}, '15': {c: '\\'},
64: '28': {c: '<span style="position:relative; top:.1em; margin-left:-.6em">〈</span>'},
65: '29': {c: '<span style="position:relative; top:.1em; margin-right:-.6em">〉</span>'},
66: '30': {c: '/'}, '31': {c: '\\'},
67: '42': {c: '<span style="position:relative; top:.1em; margin-left:-.6em">〈</span>'},
68: '43': {c: '<span style="position:relative; top:.1em; margin-right:-.6em">〉</span>'},
69: '44': {c: '/'}, '45': {c: '\\'},
70: '46': {c: '/'}, '47': {c: '\\'},
71: '68': {c: '<span style="position:relative; top:.1em; margin-left:-.6em">〈</span>'},
72: '69': {c: '<span style="position:relative; top:.1em; margin-right:-.6em">〉</span>'},
73: // '70': // sqcup
74: // '71': // big sqcup
75: '72': {ic: .194}, '73': {ic: .444},
76: '82': {tclass: 'bigop1cx', ic: .15}, '90': {tclass: 'bigop2cx', ic:.6},
77: '85': {c: '∪<span style="font-size: 50%; margin-left:-1.3em; position: relative; top:-.3em; margin-right:.6em">+</span>'},
78: '93': {c: '∪<span style="font-size: 50%; margin-left:-1.3em; position: relative; top:-.3em; margin-right:.6em">+</span>'}
79: }
80:
81: });
82:
83: jsMath.Setup.Styles({
84: '.typeset .symbol': "font-family: Osaka",
85: '.typeset .arrow1': "font-family: Osaka; position: relative; top: .125em; margin: -1px",
86: '.typeset .arrow2': "font-family: AppleGothic; font-size: 100%; position:relative; top: .11em; margin:-1px",
87: '.typeset .bigop1': "font-family: AppleGothic; font-size: 110%; position:relative; top: .9em; margin:-.05em",
88: '.typeset .bigop1b': "font-family: Osaka; font-size: 140%; position: relative; top: .8em; margin:-.1em",
89: '.typeset .bigop1c': "font-family: AppleGothic; font-size: 125%; position:relative; top: .85em; margin:-.3em",
90: '.typeset .bigop1cx': "font-family: 'Apple Chancery'; font-size: 125%; position:relative; top: .7em; margin:-.1em",
91: '.typeset .bigop2': "font-family: AppleGothic; font-size: 175%; position:relative; top: .85em; margin:-.1em",
92: '.typeset .bigop2b': "font-family: Osaka; font-size: 200%; position: relative; top: .75em; margin:-.15em",
93: '.typeset .bigop2c': "font-family: AppleGothic; font-size: 300%; position:relative; top: .75em; margin:-.35em",
94: '.typeset .bigop2cx': "font-family: 'Apple Chancery'; font-size: 250%; position:relative; top: .7em; margin-left:-.1em; margin-right:-.2em",
95: '.typeset .delim1b': "font-family: Times; font-size: 150%; position:relative; top:.8em; margin:.01em",
96: '.typeset .delim2b': "font-family: Times; font-size: 210%; position:relative; top:.8em; margin:.01em",
97: '.typeset .delim3b': "font-family: Times; font-size: 300%; position:relative; top:.75em; margin:.01em",
98: '.typeset .delim4b': "font-family: Times; font-size: 400%; position:relative; top:.725em; margin:.01em"
99: });
100:
101:
102: /*
103: * replace \not and \joinrel with better dimensions
104: */
105:
106: jsMath.Macro('not','\\mathrel{\\rlap{\\kern 3mu/}}');
107: jsMath.Macro('joinrel','\\mathrel{\\kern-3mu}');
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>