Commit Graph

399 Commits

Author SHA1 Message Date
Davide P. Cervone
0bc0a8cada Fixed some comments and default values, and added MathEvents section to default.js 2012-02-20 18:03:45 -05:00
Davide P. Cervone
7ce521293c Fix a whitespace issue in token elements with IE/quirks mode (MathML input jax) 2012-02-17 12:05:06 -05:00
Davide P. Cervone
4522a15f50 Make sure height is above depth when making spaces and rules in HTML-CSS and SVG output 2012-02-17 10:41:22 -05:00
Davide P. Cervone
f0efb3451c Changed MISSINGFONT to undefinedFamily in SVG output in order to be consistent with HTML-CSS output 2012-02-16 09:50:34 -05:00
Davide P. Cervone
f3ed39a9ad Don't use borders on background colors; fix error with recent changes to linebreaking (spacelimit was in em's but should be in em's*1000) 2012-02-16 09:16:13 -05:00
Davide P. Cervone
104775c795 Make font test against default font also include height, not just width, to help avoid the case where the test string is the same in the default font as the web font. Also, update the test strings to include characters that should help distinguish them better. Update the data files to the current versions of the fonts (lots of tiny differences, but nothing crucial) 2012-02-15 17:03:45 -05:00
Davide P. Cervone
89f0f9d307 Firefox NativeMML still doesn't get the width right even if we set it properly on the <math>, so set it on the containing <span> instead. Resolves issue #88 again (and finally, I hope). 2012-02-15 11:58:15 -05:00
Davide P. Cervone
70ea836047 Fix the AsciiMath block name in default.js, and fix a number of comments in extensions 2012-02-15 11:10:34 -05:00
Davide P. Cervone
7ca14b773a Fix problem with zoom box in Firefox NativeMML mode (FF doesn't get the size of the <math> element correct). Resolves issue #88 (I hope). 2012-02-14 12:27:05 -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
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
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
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
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
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
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
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