Commit Graph

182 Commits

Author SHA1 Message Date
Davide P. Cervone
5be76da6fe Don't measure then remeasure stretched embelished operators (saves a reflow) 2011-09-05 21:01:59 -04:00
Davide P. Cervone
bb3129d5db Add EqnChunk configuration parameter for how many equations to reveal at one time (they are marked display:none until this many are ready, and then all revealed at once 2011-09-04 13:05:19 -04:00
Davide P. Cervone
0145248359 Pass state rather than scripts to pre- and postTranslate methods (let them get the scripts from the state) 2011-09-04 12:34:17 -04:00
Davide P. Cervone
922fc81461 Fix a typo that I missed in the previous commit 2011-09-02 11:41:55 -04:00
Davide P. Cervone
c1a5ba16a3 Save heights when getting widths (so don't need to do offsetHeight in placeBox, or rely on assumptions) 2011-09-02 11:33:22 -04:00
Davide P. Cervone
a97410976e Mark bounding boxes known to be exact so that they don't have to be remeasured later 2011-08-31 16:49:10 -04:00
Davide P. Cervone
7b32411bf7 Fix marginScale problem with IE <= 7, and inline display problem with IE >= 8. Don't assign default font to MathJax (it is not needed, since we set the font explicitly on text items) 2011-08-30 12:35:51 -04:00
Davide P. Cervone
b214da2436 Replace getScales and getMarginScale by actions in the preTranslate method. Also add hideProcessedMath option to set display:none on completed expressions (for IE performance) 2011-08-29 19:21:20 -04:00
Davide P. Cervone
7042c1d64f Handle preTranslate in HTML-CSS jax, and don't make a redundent scripts list if there is only one output jax in use 2011-08-28 20:03:53 -04:00
Davide P. Cervone
45a9d25406 Make thin rules be in pixels to try to improve results in IE (disappearing division lines, see issue #161) 2011-08-27 17:14:55 -04:00
Davide P. Cervone
303ea791f2 Add an overlay for IE < 9 to trap events from getting to the zoomed math 2011-08-27 11:16:08 -04:00
Davide P. Cervone
bf8b903c8c Add preliminary support for aligning tables to specific rows (currently only aligns to baseline) 2011-08-26 20:03:45 -04:00
Davide P. Cervone
28de47ac51 Don't allow font test div to wrap (might be the cause of problems in portrait mode in mobile devices when large fonts are in use 2011-08-26 16:37:26 -04:00
Davide P. Cervone
7752f21ab9 The events are no longer tied to the MathJax_MSIE_Overlay frame, so don't need the special cases for this 2011-08-26 14:41:43 -04:00
Davide P. Cervone
acf080caae Clean up Zoom functions, in particular some of the IE complications; move getBBox to MathEvents 2011-08-25 19:45:25 -04:00
Davide P. Cervone
91753873e1 Merge with menu-update 2011-08-24 19:16:37 -04:00
Davide P. Cervone
3edf60dc0f Update menu items for easier access, and use more variables to access MathJax components, when possible; remove some unneeded variables from NativeMML jax. 2011-08-24 15:31:06 -04:00
Davide P. Cervone
820afa0357 Repack and recombine (plus remove unused variables) 2011-08-24 11:24:15 -04:00
Davide P. Cervone
5b421d32d1 Refactor event handling to move common routines to MathJax.HTML.Event (in preparateion for handling hover discoverability 2011-08-17 20:26:25 -04:00
Davide P. Cervone
56e6e1fe8b Mark all HTML-CSS output elements as isMathJax, so it can be used to identify what elements are part of mathematical output 2011-08-16 19:49:45 -04:00
Davide P. Cervone
ec5cd41d69 Add support for Firefox 6 Mobile, and add close button for mobile devices so it is easier to close a submenu. 2011-08-15 15:00:44 -04:00
Davide P. Cervone
816d2cbcfd Add touch event support for mobile devices so they can access the menus (still need to work on Firefox support, but works for WebKit-based mobiles) 2011-08-14 20:17:42 -04:00
Davide P. Cervone
bbc3a1416b Prevent texClass from being inherited (fixes a spacing problem with maction elements) 2011-08-11 14:59:02 -04:00
Davide P. Cervone
69c42b866e Implement automatic linebreaking in HTML-CSS output, and improve explicit linebreaking. (This is one of the v1.2 milestones) 2011-08-11 14:54:43 -04:00
Davide P. Cervone
b7c76ff0d7 Fix typo in self-closing flag for mprescript tag (resolves issue #157) 2011-08-05 20:50:53 -04:00
Davide P. Cervone
5df49e3d18 Have getW use offsetWidth if there is an explicit width (no need for more complicated measuring in that cas). Resolves an Opera bug reported by Fred. 2011-08-05 09:17:01 -04:00
Davide P. Cervone
fe2368e35d Fix CSS so Firefox will use local MathJax fonts, if present (resolves issue #134) 2011-08-04 20:37:17 -04:00
Davide P. Cervone
4f4234129f Fix problem where mspace with a background color would not always overlay previous items (detected in on of Fred's tests) 2011-08-04 12:55:44 -04:00
Davide P. Cervone
fb5ed12752 Fix problem with mtable equalrows detected by Fred's test suite 2011-08-04 12:43:03 -04:00
Davide P. Cervone
5d9f423a36 Allow mpadded background color to be specified exactly (i.e., without the 1px padding) when one of its dimensions is given explicitly (or there is no content). Resolves one of Fred's issues. 2011-08-04 11:32:22 -04:00
Davide P. Cervone
95b42049d7 Add one pixel to the top and bottom of math so that superscripts and subscripts won't touch on consecutive lines of a paragraph 2011-08-03 08:22:38 -04:00
Davide P. Cervone
f27e16ef0a Fix multiple problems with zoom box sizing and position in IE (various emulation and document modes) and firefox. (Resolves issues #151, #88, and #59.) 2011-07-31 15:17:44 -04:00
Davide P. Cervone
bb154cabcd Allow equations with tags to zoom into a full-width zoom box -- not ideal, but better than not visible. (Resolves issue #59 for now.) 2011-07-28 21:39:46 -04:00
Davide P. Cervone
8f2bbee019 Force MathZoom and MathMenu to wait for the 'Begin Styles' message before inserting their styles so when they are included in the combined files, the author can still configure them (resolves issue #149) 2011-07-28 20:36:18 -04:00
Davide P. Cervone
55425f9278 Fix positioning problem with zoom in NativeMML mode, avoiding flicker problem with hover trigger in Firefox (resolves issue #150) 2011-07-27 22:53:53 -04:00
Davide P. Cervone
309c1c343c Handle output of dimensions in mu's better (resolves issue #146). 2011-07-27 21:18:57 -04:00
Davide P. Cervone
3ddd323cd2 Remove internal multiple spaces in token elements (resolves issue #127) 2011-07-27 16:31:04 -04:00
Davide P. Cervone
d2b40a3235 Improve the previous fix for xmlns by using better regexp so as to no longer need replaceXMLNS function 2011-07-27 15:06:02 -04:00
Davide P. Cervone
7f6c93b1c9 Work around HTML5 removing namespaces, so that xmlns:xlink becomes xlink with no namespace, which confuses the XML parsers. 2011-07-27 10:26:21 -04:00
Davide P. Cervone
9714e96d13 Don't allow Safari/Windows to use STIX fonts, since it can't access Plane1 (resolves issue #94) 2011-07-26 21:24:01 -04:00
Davide P. Cervone
70bd48f00a Merge with master (brining up to adate with v1.1a) 2011-07-24 10:21:47 -04:00
Davide P. Cervone
24a3e30526 Merge with master (brining up to adate with v1.1a) 2011-07-24 10:14:27 -04:00
Davide P. Cervone
6a265df244 Merge with master (brining up to adate with v1.1a) 2011-07-24 10:11:07 -04:00
Davide P. Cervone
bd2fb28932 Merge with master (brining up to adate with v1.1a) 2011-07-24 10:07:30 -04:00
Davide P. Cervone
ee2609dc97 Merge with master (brining up to adate with v1.1a) 2011-07-24 09:59:14 -04:00
Davide P. Cervone
ff5aab74db Merge with mathjax/master (bringing branch up to date) 2011-07-24 09:51:41 -04:00
Davide P. Cervone
065acfd10a Work around IE bug when direction:rtl is specified outside the math 2011-06-05 11:35:09 -04:00
Davide P. Cervone
2953e01b12 Fix problems with annotation-xml in IE (work around IE lack of importNode, and bug with copying style attributes 2011-06-05 11:33:49 -04:00
Davide P. Cervone
eb63ba8daa Update alert concerning security settings for MathPlayer when it fails to initialize 2011-06-02 09:18:31 -04:00
Davide P. Cervone
46320e5b9e Do setup for MathPlayer and DOM Parser when first needed rather than at startup (since these can be disabled by IE causing errors). Put up alerts indicating security settings to change if IE fails to set these up properly. 2011-06-01 21:09:36 -04:00
Davide P. Cervone
37f61a88ef Recombine previous changes 2011-06-01 18:25:25 -04:00
Davide P. Cervone
1da9f58062 Update About box to show MathJax version separately from MathJax.js version, and make sure lettering is black (isolates from page CSS a bit more). 2011-05-18 15:06:28 -04:00
Davide P. Cervone
5392f6e98f Repack, recombine, completes merge of htmlcss-fixes 2011-05-18 11:11:28 -04:00
Davide P. Cervone
13221321d8 Repack, recombine (completed merge with font-update branch up to 0dc8212) 2011-05-18 11:00:37 -04:00
Davide P. Cervone
222a4c0ba6 Repack and recombine (to resolve conflicts from issue68) 2011-05-18 10:27:41 -04:00
Davide P. Cervone
9cc3bda487 Resolve conflicts from issue112, repack and recomine 2011-05-18 10:24:05 -04:00
Davide P. Cervone
9ce7e85ccc Resolve conflicts from merge with issue30, update versions, repack, recombine 2011-05-18 10:06:06 -04:00
Davide P. Cervone
f10ec864ea Update version numbers for merge with issue117 2011-05-18 10:00:27 -04:00
Davide P. Cervone
17d6686c92 Merge branch 'issue117' into 1.1a-candidate 2011-05-18 09:58:38 -04:00
Davide P. Cervone
83ff2b0901 Merge issue113 (resolving conflicts with edits in issue106) 2011-05-18 09:54:21 -04:00
Davide P. Cervone
3056b41c13 Merge branch 'issue106' into 1.1a-candidate 2011-05-18 09:37:17 -04:00
Davide P. Cervone
4d06c1026e Make global scaling factor available in the HTML-CSS object, and use it in annotation-xml to match the scaling properly 2011-05-18 08:39:55 -04:00
Davide P. Cervone
8f20a75ffe Add an xml object to the ElementJax classes to handle the annotation-xml data, and make implementations of it in the various input and output jax (resolves issue #117). 2011-05-13 20:30:22 -04:00
Davide P. Cervone
99da6be704 Add CSS to force image to be display:inline 2011-05-12 21:10:16 -04:00
Davide P. Cervone
ae419b08e1 Work around a bug in IE8 where cloneNode() seems to screw up the web-based fonts (resolves issues #30 and #78) 2011-05-12 20:57:32 -04:00
Davide P. Cervone
23ad7609bc Add ability to load extra stretchy characters on demand, and add data for more stretchable characters. 2011-05-11 20:13:25 -04:00
Davide P. Cervone
bf862f6529 Update operator table to correspond with current W3C version at http://www.w3.org/TR/MathML3/appendixc.html 2011-05-08 23:30:40 -04:00
Davide P. Cervone
0dc8212c6d Mark variants with bold and italic values so that unknown characters can have font-weight and font-style set properly (resolves issue #96). 2011-05-08 22:26:27 -04:00
Davide P. Cervone
f002f4924b Change the default font-family for undefined character to be a configuration parameter 2011-05-08 21:20:27 -04:00
Davide P. Cervone
0d31246321 Add explicit ltr CSS styling for MathJax output (resolves issue #114). 2011-05-08 17:16:55 -04:00
Davide P. Cervone
74d7db9e78 Update entity table to conform with http://www.w3.org/2003/entities/2007/htmlmathml-f.ent (fixes a number of wrong values, and adds some missing entities). (Resolves issue #37.) 2011-05-08 16:28:49 -04:00
Davide P. Cervone
326b107118 Properly handle missing </math> tags in IE. Properly handle non-MathML tags that are included within the <math> element (e.g., from a <semantics> annotation or due to missing </math>). Resolves issue #113. 2011-05-06 14:09:59 -04:00
Davide P. Cervone
944aed1ac1 Have ElementJax store input and output jax ID's rather than pointers (to help avoid circular references for cleanup purposes) 2011-05-01 13:45:16 -04:00
Davide P. Cervone
27fe28261f Removed debugging code accidentally left in previous version. Repack and recombine. 2011-04-30 08:13:54 -04:00
Davide P. Cervone
fd0c9236a2 Remove wait for NativeMML selection signal, and just use the onLoad signal (so that existing pages that change the renderer by hand will continue to work). It would be nice to avoid setting up the namespace when not needed, but it doesn't seem to hurt, and doesn't cause MathPlayer to start up, so it should be OK. 2011-04-27 20:11:17 -04:00
Davide P. Cervone
fc2964dda7 Make renderer change via MathMenu post the renderer select message (so NativeMML configuration will complete for IE/MathPlayer in combined configurations) 2011-04-27 18:28:50 -04:00
Davide P. Cervone
1740640ea5 Bump the version number and repack/recombine 2011-04-27 12:05:12 -04:00
Davide P. Cervone
ae55a2f570 Fix a timing issue where setting up MathPlayer can cause IE to crash (resolves issue #110). 2011-04-27 09:37:24 -04:00
Davide P. Cervone
ba355d10bb Convert xlink:href to href and ignore all other namespace attributes (resolves issue #68). 2011-04-26 19:31:38 -04:00
Davide P. Cervone
8aa2e2a3f2 Make style attributes work on mstyle elements 2011-04-26 15:23:29 -04:00
Davide P. Cervone
55d6161c99 Add ability for HTML-CSS output to handle explicit border and padding style settings on math elements (resolves issue #109). 2011-04-25 14:00:39 -04:00
Davide P. Cervone
edd68a415a Better treatment of rfuzz (resolves issue #108 better) 2011-04-24 15:19:34 -04:00
Davide P. Cervone
57a6db4aaf Half the rfuzz for WebKit (resolves issue #108) 2011-04-24 14:54:06 -04:00
Davide P. Cervone
3a8c20b372 Make functions (like \sin) be <mi> rather than <mo>, and insert &ApplyFunction; after their use (resolves issue #56). 2011-04-23 19:56:17 -04:00
Davide P. Cervone
3732851167 Refactor code that builds outerHTML string by hand, since it needs to be used by Opera as well in order to fix unquoted special characters in attributes. This also fixes the self-closing tag problems for IE and Opera. (Resolves issue #106 and issue #99) 2011-04-21 20:54:12 -04:00
Davide P. Cervone
4a2969c45b Merge dpvc/issue85 (fixes for element configuration option) 2011-04-05 12:19:46 -04:00
Davide P. Cervone
d485393f88 Recombine to make sure configs are up to date 2011-04-04 14:10:30 -04:00
Davide P. Cervone
536eece1b1 Fix problem with element parameter to the preprocessors (by making a global parameter instead, so there is only one place it needs to be set). Also make it an array so that more than one element can be specified. 2011-03-18 18:38:51 -04:00
Davide P. Cervone
34f3a8302c Fix regression where background color obscures foreground text in IE 2011-03-12 20:32:13 -05:00
Davide P. Cervone
a4633101ab Work around issue82 by not trying to load MathPlayer in IE9 2011-03-10 15:24:54 -05:00
Davide P. Cervone
072bcdd1bd Fix spelling of 'version' in mml2jax (argh!) 2011-03-09 09:24:00 -05:00
Davide P. Cervone
a5661b5c1c Change versions to 1.1 and update copyright dates 2011-03-03 16:45:48 -05:00
Davide P. Cervone
4648698978 Repack and recombine previous merge 2011-03-03 16:06:52 -05:00
Davide P. Cervone
2ba61a6e4c Update packed and combined files for last merge 2011-03-03 15:32:13 -05:00
Davide P. Cervone
8b418b432c Merge branch 'better-about' 2011-03-03 15:28:25 -05:00
Davide P. Cervone
f55e2cd7eb Update packed and combined files for issue80 2011-03-03 15:28:05 -05:00
Davide P. Cervone
dcff67e561 Fix version number remapping for unrecognized WebKit browsers, and change check for iPhone use of web fonts to match (resolves issue #80) 2011-03-03 07:20:36 -05:00
Davide P. Cervone
1166553038 Bump version numbers 2011-03-01 10:01:12 -05:00
Davide P. Cervone
f2de28e068 Remove support for ancient beta-version fontdata (now that the fonts are part of the archive, no more change that this will not match) 2011-03-01 10:01:11 -05:00
Davide P. Cervone
18752966be Allow Chrome to use OTF fonts for v4.0 and above, and use OTF fonts for Safari/PC (the FF3.6.13 fix has fixed the problem for Safari, too) 2011-02-28 14:23:06 -05:00