Commit Graph

922 Commits

Author SHA1 Message Date
Davide P. Cervone
9ff6d9a321 Fixed problem with pattern in wrapper function that affected Opera when MathJax is minified (discovered by Fred's tests) 2012-02-14 12:02:12 -05:00
Davide P. Cervone
e96dd07e37 Fix SVG problems reported by Fred (error in mtd background colors and maction stretching embelished operators) 2012-02-14 09:39:53 -05:00
Davide P. Cervone
7c58066b7e Fix a problem with NativeMML output where require.push() could cause an error when used in the combined configuration files 2012-02-13 11:57:37 -05:00
Davide P. Cervone
301c7d1f2e Actually delete the previews rather than just hide them (some screen readers don't properly handle them) 2012-02-12 20:08:53 -05:00
Davide P. Cervone
5cafb84908 Add NoMathPlayer parameter to prevent the MathPlayer setup when the page is loaded (users can still switch to NativeMML and the setup will be done at that point). 2012-02-11 10:28:56 -05:00
Davide P. Cervone
30db94c01e Updated character data for STIX v1.1 (one character added since beta version) 2012-02-10 15:03:28 -05:00
Davide P. Cervone
1698f9c33c Make a separate routine to get the contents of a script, and make it work in IE for XHTML files. 2012-02-10 08:21:42 -05:00
Davide P. Cervone
a8e844c1e7 Isolate MathJax images from page's float CSS 2012-02-09 14:20:57 -05:00
Davide P. Cervone
b5ab1e96c0 Move code that prevents numbers from being treated as a unit for super- and subscripts to the super- and subscript routines (instead of prefiltering for it). Resolves issue #192. 2012-02-09 13:27:18 -05:00
Davide P. Cervone
388595f4fe Make mml2jax work better with IE namespaces (IE9 no longer seems to list the xmlns entries on the html element) 2012-02-09 11:31:04 -05:00
Davide P. Cervone
1f5b1854e5 Prevent breaks right before a closing fence or right after an open fence. 2012-02-08 18:05:07 -05:00
Davide P. Cervone
5968ef8b74 Improve linebreaking to work better when the equation doesn't have nesting to help group terms that shouldn't be broken. Also make breaks at large spaces more desireable. 2012-02-08 17:37:07 -05:00
Davide P. Cervone
ac512fd1a7 Make lspace and voffset handle bad unit better in SVG (corresponding correction to HTML-CSS is 6e8ff20e07). Resolves issue #191 for SVG 2012-02-08 16:15:24 -05:00
Davide P. Cervone
fe8c5b9899 Work around Opera's translation of font-weight:normal to font-weight:400 2012-02-08 14:18:45 -05:00
Davide P. Cervone
69bd9305c9 Handle offsets within the fontdata-extra data in SVG output 2012-02-08 13:53:20 -05:00
Davide P. Cervone
1955ebb0d6 Additional changes to fix STIX font problems in Safari (the NonUnicode fonts also needed to be adjusted). Resolves issues #152 and #178. 2012-02-08 11:10:03 -05:00
Davide P. Cervone
e3e843fd7a Fix problem with handling of initial negative spaces when initialSpaceBug is true (Opera and IE). 2012-02-08 10:34:16 -05:00
Davide P. Cervone
29c8ff2b41 In SVG output, remove blackness from HW when looking for delimiter (since the delimiter sizes don't include that). Fixes problem with parens stretching when they should be their natural size (in some of Fred's tests). 2012-02-08 09:36:39 -05:00
Davide P. Cervone
d21d075463 Handle conflicts between inherited mathvariant and fontfamily properly. (Fixes problem with ms having default mathvariant='monospace' when fontfamily is specified). Fix bold for stretched operators when weight is specified numerically. 2012-02-08 09:03:00 -05:00
Davide P. Cervone
0b1f9dc0c3 Handle mixed mathvariant and styles in SVG output (like in HTML-CSS) and make explicit fontfamily, fontweight, or fontstyle (even inherited) override style setting. Finally, handle numeric font-wieght (Opera converts bold that 700) 2012-02-07 19:17:52 -05:00
Davide P. Cervone
db4f476301 Fix font message for SVG output 2012-02-07 18:28:02 -05:00
Davide P. Cervone
54c6d43140 Handle mixing of mathvariant with style settings better (but this does mean that variants without the proper weight or style will remain unchanged) 2012-02-07 18:10:31 -05:00
Davide P. Cervone
6e8ff20e07 Make lspace and voffset handle bad unit better 2012-02-07 11:59:43 -05:00
Davide P. Cervone
49e7bc5e9e Handle mode='display' attribute on math elements properly, now that is has been moved to a separate attr property internally 2012-02-07 09:59:36 -05:00
Davide P. Cervone
81c9070044 Fix mtable align parameter to be the default (rather than center) when it is incorrectly specified (resolves error in issue #165) 2012-02-07 09:49:11 -05:00
Davide P. Cervone
0fe2bbfa52 Fixed an alignment problem when mpadded is used (and its contents has a removeable <g> contatining a <rect>) 2012-02-06 15:28:58 -05:00
Davide P. Cervone
93a2905024 Fix SVG's mpadded container to not be removable, since the size no longer corresponds to the contents 2012-02-06 13:39:49 -05:00
Davide P. Cervone
bbac5d10ac Use z-index=0 rather than 1 for Opera (that seems to be the default for positioned elements, but it needs to be specified for colored backgrounds to show up properly) 2012-02-06 11:51:27 -05:00
Davide P. Cervone
cc1c05bdd2 Use mathvariant rather than fontfamily to set the font for <ms> elements (make it consistent with SVG jax) 2012-02-06 10:30:16 -05:00
Davide P. Cervone
10399b42b7 Add a missing space in the font warning message (spotted by Fred) 2012-02-06 09:34:43 -05:00
Davide P. Cervone
fc4ce3748f Adjust for extra pixels above and below (now that they are added to the SVG object), and remove font-size CSS since it is handled in the scaling of the text by hand. 2012-02-05 19:23:35 -05:00
Davide P. Cervone
0a070ff628 Allow background colors to be shown properly in Opera (this may need additional checks) 2012-02-05 18:47:45 -05:00
Davide P. Cervone
5b7b698202 Fix problem with <ms> not passing the svg element to handleSpace() 2012-02-05 16:52:26 -05:00
Davide P. Cervone
77c52073b1 Fix centering for forced linebreaks in SVG output when linebreaking isn't specified. Still need to work out how to make this work better ifor in-line math, and for parts of equations (like fraction numerators, etc.) 2012-02-05 14:13:25 -05:00
Davide P. Cervone
3c18798e50 Fix a spacing problem in SVG output introduced by the previous commit. 2012-02-05 14:11:11 -05:00
Davide P. Cervone
ef50282a32 Fix a problem with the vertical size of mspace when it has a background color. Don't add colored backgrounds for semantics elements. 2012-02-05 13:21:03 -05:00
Davide P. Cervone
f30f917c22 Fix problem with size of colored background when padding-left is present (discovered from Fred's testing). 2012-02-04 17:48:51 -05:00
Davide P. Cervone
db4640d1f4 Fix problem with forced linebreaks in SVG mode, and a typo in one of the variable names 2012-02-04 17:33:31 -05:00
Davide P. Cervone
028d280a7d Fix HTML-CSS tooltip to be work properly when a restart occurs within the tooltip. 2012-02-04 12:36:28 -05:00
Davide P. Cervone
daa1f31403 Fix SVG tooltip to be able to style the padding, to fix typo with name of SetData() method, and to make restarting work when it occurs within the tooltip. 2012-02-04 12:27:46 -05:00
Davide P. Cervone
2b991b95e9 Fix problem with size of tooltip box (needed to change the em and ex measurements to use height not width of test divs, since the direction was changed) 2012-02-03 21:49:12 -05:00
Davide P. Cervone
99bb83a86f Fix typo that causes italics to be lost in some circumstances 2012-02-02 19:08:45 -05:00
Davide P. Cervone
a9a3635ec0 Get scaling correct when fontfamily is specified (need two spans so that fontsize can be multiplied by factor to adjust for scaling of math) 2012-02-02 18:54:34 -05:00
Davide P. Cervone
99d7828839 Get size to work properly when style sets the font size 2012-02-02 16:29:46 -05:00
Davide P. Cervone
5694332a99 Another try at getting elements with text coming from multiple fonts to work properly. 2012-02-02 16:12:36 -05:00
Davide P. Cervone
0d2d066b37 Make \ulcorner, etc. use more approprate unicode positions, and remap those positions to the locations in the MathJax_AMS fonts. 2012-02-01 16:15:30 -05:00
Davide P. Cervone
e25e07a8ba Add xmlns attribute for all browsers (not just Chrome), since Safari and IE seem also to leave it out 2012-02-01 09:21:11 -05:00
Davide P. Cervone
4b21f3a8e0 A second try at fixing the FF callback error. Had the null in the wrong place, and apparently null doesn't do it anyway (though I could have sworn it had worked in testing). In any case, empty object for callback will work. 2012-02-01 09:07:22 -05:00
Davide P. Cervone
90e23901cd Fix problem with Firefox getting errors about not being able to make callbacks (it was due to Gecko passing an extra parameter to the funciton called by setTiemout) 2012-02-01 08:57:36 -05:00
Davide P. Cervone
6cfecb6700 Delete the loading data for preloaded files when they call loadComplete() 2012-01-31 17:52:19 -05:00