Commit Graph

912 Commits

Author SHA1 Message Date
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
Davide P. Cervone
23472e3f87 Add U+2032 through U+2037 to the STIX characters that must come from the variants font; don't special case U+2032 in TeX input or STIX font tables. 2012-01-31 14:09:24 -05:00
Davide P. Cervone
8b49255547 Make \dots produce mo with stretchy=false to correspond to the other mathchar0mo elements 2012-01-31 11:50:18 -05:00
Davide P. Cervone
876eb56c36 Remove unneeded semicolon in Firefox style parameter when width is specified 2012-01-31 11:05:55 -05:00
Davide P. Cervone
15aa6674b7 Fix problem with \mathop adding invisible times when the following isn't what the operator is being applied to (e.g., an <mspace>, or a BIN or REL operator) 2012-01-31 10:50:41 -05:00
Davide P. Cervone
2a3608ee37 Make EqnChunk smaller for mobile devices, and implement the chunk delay (inadvertantly left out) 2012-01-30 16:58:11 -05:00
Davide P. Cervone
9d7b67a10c Fix problem with extra space being added to class name (was causing mspace with background color to to show up properly) 2012-01-30 08:05:45 -05:00
Davide P. Cervone
b1233d332c Fix typo in EqnChunkDelay 2012-01-30 08:04:29 -05:00
Davide P. Cervone
b651ab1857 Fix positioning when <mroot> is missing its second argument 2012-01-26 19:57:10 -05:00
Davide P. Cervone
3bd6c1d203 Move MP menu warning messages to a confiogurable array, and hide the menu unless the current renderer is NativeMML with MathPlayer 2012-01-26 16:14:20 -05:00
Davide P. Cervone
bb3b451b06 Add new parameters to default.js, and fix a few typos in config files comments 2012-01-26 15:51:46 -05:00