Commit Graph

217 Commits

Author SHA1 Message Date
Davide P. Cervone
99e21b3fee Add the menu title to the fake input element, in case it is ever used (only should show up in our test suite when we force an error that is unattached to an input jax. 2013-05-01 18:29:47 -04:00
Davide P. Cervone
4053d7acab Set versions to 2.2 and update copyright notice 2013-05-01 14:37:39 -04:00
Davide P. Cervone
6f679216e2 Mark error output as isMathJax 2013-05-01 13:20:37 -04:00
Davide P. Cervone
cab603f40f Add localization for Output Jax source menu (missed it during the merge) 2013-04-30 13:46:58 -04:00
Davide P. Cervone
a7ed50a474 Repack and recombine. Fix some variable scoping and other issued detected by the packer. 2013-04-29 20:14:12 -04:00
Davide P. Cervone
53e76213b0 Merge branch 'issue450' into develop. Resolves issue #450. 2013-04-29 19:52:57 -04:00
Davide P. Cervone
b8561b07bf Merge branch 'localization' into develop 2013-04-29 19:25:03 -04:00
Davide P. Cervone
8c16f656ac Update math processing errors to include original format and actual error message in the Show Math As menu. Resolves issue #450. 2013-04-26 17:17:59 -04:00
Davide P. Cervone
bdb131a907 Fix German title in initial language list. Add missing commas and fix incorrect unicode in German HelpDialog. 2013-04-23 09:32:09 -04:00
Davide P. Cervone
3901529db9 Add Help dialog box (rather than link to a site). Fix Markdown to substitue values for URL's in links. 2013-04-22 13:18:58 -04:00
Davide P. Cervone
d9505f9a1d Remove v1.0-warning. Resolves issue #445. 2013-04-20 16:21:58 -04:00
Davide P. Cervone
6f4cdbd68c Merge branch 'issue342' into develop
Resolves issue #342.
2013-04-19 09:24:59 -04:00
Davide P. Cervone
13759a56dd Handle script tags properly in HTML.Element() so they work in IE. Resolves issue #342. 2013-04-17 07:51:16 -04:00
Davide P. Cervone
436595a2db Trap errors while saving cookies (and go on silently). Resolves issue #374. 2013-04-16 20:44:56 -04:00
Davide P. Cervone
03f6e8537a Add Markdown processing to HTML snippet text, and convert FontWarnings to use it. 2013-04-10 16:28:18 -04:00
Davide P. Cervone
35bb35bf44 Add Germanto the language list, and fix some comma issues in the data files. 2013-04-10 10:53:55 -04:00
Davide P. Cervone
eeea99922b Fix a problem with localiztion when substituted value is 0. Make language menu choices be in the given language. Allow better localization of Jax/Extensions in About box. Only update langauge menu when a new language is actually loaded. Shorten a number of French menu items to improve menu appearance. Correct some problems with FontWarnings and v1.0-warning messages. Move language menu to initial MathJax menu rather than a submenu. Fix a problem with canceling selection of renderer not reseting the menu selection. 2013-04-08 10:02:26 -04:00
Davide P. Cervone
f23cb8a6b2 Create list of locales from the localization data, and allow data to specify menu title. Update menu when new translations are added. Allow loading of third-party translation data by URL. Fix transaltion files to use addTranslation(). 2013-04-07 11:44:58 -04:00
Davide P. Cervone
c4d47bb10d Add callback to loadDomain to make it easier to use 2013-04-07 10:44:29 -04:00
Davide P. Cervone
c9578c7a0b Add localization submenu, and set locale via menu. Allow locale= configuration parameter on script to load MathJax.js. Load MathMenu domain automatically (so it is ready when needed). 2013-04-06 20:04:48 -04:00
Davide P. Cervone
9ee925dfbb Fix up some issues with plural processing. Make loadDomain handle both loads if there are any. Fix up Math Processing Error snippets to use new snippet code. 2013-04-06 10:47:47 -04:00
Davide P. Cervone
535c033e24 Handle HTML snippets better, and fix up messages in FontWarnings and v1.0-warning extensions. Fix French menu items and a few others (thanks Fred). Fix scale-all-math dialog. 2013-04-05 18:45:50 -04:00
Davide P. Cervone
660f38959a Make constant messages be translated when they are used rather than when they are defined. Rework About box, add menu ID's. Make TeX.Error() and MathML.Error() handle localization. Break up Fred's French data into separate files. Make localization data load on demand. Other miscellaneous updates. 2013-04-03 17:24:14 -04:00
Frédéric Wang
332642c659 Fix processing errors with various table and menclose attributes. Issue #367. 2013-03-25 15:16:36 +01:00
Davide P. Cervone
c2f64e3470 Merge remote-tracking branch 'fred/sniffing' into develop
Resolves issue #377.
2013-03-20 17:04:14 -04:00
Davide P. Cervone
e9b5b59de0 Merge branch 'issue352' into develop. Resolves issue #352. 2013-03-20 13:51:57 -04:00
Frédéric Wang
f0aea1669d Use UA string sniffing for isFirefox ; check for "Mobile" to include FirefoxOS among Mobile platforms. 2013-03-08 10:37:52 +01:00
Frédéric Wang
503f997064 Finishing to find all the strings to localize 2013-02-25 18:05:33 +01:00
Frédéric Wang
dd019796b0 More translations... 2013-02-25 16:09:17 +01:00
Frédéric Wang
e1761573bf Translation of messages from jax/input/TeX/jax.js 2013-02-22 18:58:16 +01:00
Frédéric Wang
4fdb68a080 More attempts to translate messages. 2013-02-22 13:56:52 +01:00
Frédéric Wang
d71498ee25 Implement the general HTML snippets substitution (e.g do the substitution in attributes too) + some small changes. 2013-02-21 13:12:42 +01:00
Frédéric Wang
ca2f87ad7c Trying to translate more dialogs ; Implement localization of numbers ; Handle arg substitution for arrays. 2013-02-20 15:42:12 +01:00
Frédéric Wang
4ced117e05 Initial implementation of MathJax.Localization. Some experiments with French localization. 2013-02-19 19:40:52 +01:00
Davide P. Cervone
f8d4215519 Try to find the document body in case document.body isn't set yet (this does seem to happen sometimes). 2012-11-27 14:40:22 -05:00
Davide P. Cervone
9f1f495fb7 Use hasOwnProperty() when checking file specification object (prevents problems when Object.prototype has been modified). Resolves issue #352. 2012-11-27 14:36:53 -05:00
Davide P. Cervone
bb25a0207d Don't check script src if it is null. Resolves issue #322. 2012-09-29 15:23:05 -04:00
Davide P. Cervone
e7b29726b6 Merge branch 'issue317' into develop 2012-09-29 15:06:36 -04:00
Davide P. Cervone
bc9fd85172 Removed comments that were used for testing purposes but were left in accidentally. 2012-09-25 05:24:00 -04:00
Davide P. Cervone
aa5829849f Update version numbers to v2.1 2012-09-24 21:06:28 -04:00
Davide P. Cervone
beff612f53 Use web-fonts by default for unknown browsers. Addresses issue #317. 2012-09-24 20:19:11 -04:00
Davide P. Cervone
be28147f2d Merge branch 'issue233' into develop 2012-09-11 08:46:24 -04:00
Davide P. Cervone
d9e019b790 Merge branch 'issue297' into develop 2012-09-06 11:10:50 -04:00
Davide P. Cervone
bf680988b9 Merge branch 'develop' into IE10 2012-09-04 09:33:06 -04:00
Davide P. Cervone
a30d9067fe Handle positioning to a hash URL when the link is to an element within SVG output. Resolves remainder of issue #297. 2012-09-04 08:53:20 -04:00
Davide P. Cervone
c703d5fc4e Make IE wait for readyState == complete since interactive seem to be able to be posted before the page is actually all there. Should resolve issue #133. 2012-08-19 14:29:52 -04:00
Davide P. Cervone
01113c0921 Make HTML snippet handler accept a string as contents, even if not enclosed in braces. (Resolves issue reported by Fred in test suite for Parsing/issue228.html) 2012-08-17 10:27:54 -04:00
Davide P. Cervone
83e4a4af5a Merge 'issue246' into develop 2012-08-16 11:43:59 -04:00
Davide P. Cervone
d51cecbe4a Produce signal when [Math Processing Error] is generated. Resolves issue#246. 2012-08-15 11:23:40 -04:00
Davide P. Cervone
0802f04344 Don't use location to position to has, use strollIntoView instead. Resolves issue #206. 2012-08-15 08:43:31 -04:00
Davide P. Cervone
7abaef2422 Remove unused argument from onload handler 2012-05-18 21:09:27 -04:00
Davide P. Cervone
a38a17af93 Bump version for pervious commit 2012-03-11 09:52:24 -04:00
Davide P. Cervone
636be43e6a Handle order of jax that appear multiple times (properly handle MMLorHTML config) 2012-03-11 09:50:38 -04:00
Davide P. Cervone
c36c15f58b Handle setup of MathPlayer better for IE10. Separate hasMathPlayer from having the namespace set up 2012-03-11 09:47:27 -04:00
Davide P. Cervone
4d717dbea4 Work around IE10 bug with document.namespace, and with the background color for the contextual menu (resolves issues #203 and #204) 2012-03-07 12:04:20 -05:00
Davide P. Cervone
78788fa164 Bump version number for last commit 2012-02-29 11:35:46 -05:00
Davide P. Cervone
20ce1833cc IE9 in IE9-standards mode crashes if you look at document.namespaces before document.readyState is 'complete', but setting up a fake namespace seems to cure that. This was causing MathJax to not render some pages in IE9. 2012-02-29 11:32:55 -05:00
Davide P. Cervone
e441641727 Bump version number of file (for previous commit) 2012-02-27 20:30:34 -05:00
Davide P. Cervone
7099e84a36 Turn off positionToHash for now (until I can straighten it out 2012-02-27 20:25:31 -05:00
Davide P. Cervone
4fb5de2200 Move preProcess from base jax to OutputJax, since that is the only place it is used. Don't copy Translate and cousins for ElementJax. Properly handle the loader in InputJax (avoinds infinite lops if input jax fails to compile) 2012-02-20 12:42:59 -05:00
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
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
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
bb3b451b06 Add new parameters to default.js, and fix a few typos in config files comments 2012-01-26 15:51:46 -05:00
Davide P. Cervone
30e35cc729 Add menu control for showing TeX hints in MathML, and make TeXAtom not show extra mrow when it contains a single element 2012-01-25 09:45:20 -05:00
Davide P. Cervone
02909ecba4 Update copyright dates and set version numbers to 2.0; repack and recombine 2012-01-25 09:23:45 -05:00
Davide P. Cervone
45c91aa905 Load menu and zoom code after typesetting is complete (if not already loaded) so they will be available when needed. 2012-01-23 12:06:50 -05:00
Davide P. Cervone
b02429e1ad Have MathJax.js set up MathPlayer if it can (since delaying that is what causes crashes). Also make preview be hidden to prevent screen readers from seeing them once the math is typeset. 2012-01-22 17:40:46 -05:00
Davide P. Cervone
14507fb9ff Improve browser detection so that non-chrome WebKit will be Safari (was not working in default browser for Android 3.0) 2012-01-20 13:15:54 -05:00
Davide P. Cervone
705bfe74e6 Remove trailing comma (confusing MSIE) 2012-01-19 10:17:27 -05:00
Davide P. Cervone
dceb91e4ea Better version detection for off-brand Gecko browsers; add 8.0 and 9.0 detection; add Safari 5.1 detection from webkit version 2012-01-09 11:38:43 -05:00
Davide P. Cervone
7570eec623 Load MathEvents if needed to add contextual menu to an error message 2012-01-08 20:33:21 -05:00
Davide P. Cervone
a83c7c54b3 Move styles for MathJax_Preview to MathJax.js rather than HTML-CSS since it is used by all output jax 2012-01-08 20:20:22 -05:00
Davide P. Cervone
77c8a54da6 Add more signals for error conditions (so error reporting software can track it easier) 2012-01-06 17:09:37 -05:00
Davide P. Cervone
752dda7899 Re-implement ExecuteHooks in terms of the Hooks object (since it was documented, I guess we shouldn't remove it, even though I doubt anyone has used it) 2011-12-27 14:55:20 -05:00
Davide P. Cervone
fbedcb7a72 Another attempt to handle version for off-brand Gecko browsers (resolves issue #177 I hope) 2011-12-07 13:58:07 -05:00
Davide P. Cervone
744f844eec Handle determining Firefox version better for off-brand Gecko browsers (resolves issue #177 I hope) 2011-11-20 15:31:01 -05:00
Davide P. Cervone
f3b1f4102f Make delay following a 'processing' message configurable, and lengthen it a shade to make browser more responsive during typesetting 2011-09-27 17:05:02 -04:00
Davide P. Cervone
81474adb97 Add delay before seting hash location to make it work in Opera. Still has a problem in IE7 and IE6. 2011-09-22 20:57:49 -04:00
Davide P. Cervone
c0dad0dbfe Jump to an anchor after typesetting, if one was specified in the page URL (controlled by the positionToHash parameter). When the page is loaded, tags haven't been processed yet, to the anchor might not be present, so we need to jump there after the page is typeset. Also, as the equations are typeset, the page may get repositioned, so jumping to the location again will get us back where we were supposed to be. Problem: if user scrolls during typeset, we jump back. 2011-09-22 20:46:26 -04:00
Davide P. Cervone
eee1e9014f Save output after attaching jax, otherwise it is not cloned properly if it is being updated 2011-09-22 19:48:12 -04:00
Davide P. Cervone
0a2e1c3968 Add contextual menu to Math Processing Error messages, so it is possible to access the settings if something has gone wrong 2011-09-22 09:17:10 -04:00
Davide P. Cervone
dcd4be5dd7 Fix MathJax.Hub.getJaxFor() and MathJax.Hub.isJax() to properly handle elements that are part of the HTML-CSS or NativeMML output (in particular, you can find the element Jax from this output) 2011-09-22 08:34:29 -04:00
Davide P. Cervone
e51c240448 Add new MathJax.Hub.setRenderer() method to make it easier to change renderers (without having to muck about in the MathJax internals), and use this in the menu code. Add a MathJax.Hub.Rerender() method to force the output to be rerendered without reprocessing the input. 2011-09-22 08:08:50 -04:00
Davide P. Cervone
29f1823deb Fix a couple of issues for IE (extra comma, wrong element name, and better handling of readyState) 2011-09-18 23:39:19 -04:00
Davide P. Cervone
ae12c52774 Make sure Jax loadComplete returns the Ajax.loadComplete callback 2011-09-18 22:33:37 -04:00
Davide P. Cervone
331b9ee6f1 Fix problem where selecting the renderer menu failed to rerender the mathematics 2011-09-18 17:06:26 -04:00
Davide P. Cervone
d5f2ab74f3 Merge branch 'performance' into v2.0-candidate (still need to optimize linebreak measurements) 2011-09-11 13:13:22 -04:00
Davide P. Cervone
b5d23c72fa Merge branch 'new-features' into merge-features (in preparation for merging with v2.0-candidate), and fix hover zoom trigger when discoverability is disabled 2011-09-11 12:42:27 -04:00
Davide P. Cervone
3f4f54e2c0 Merge branch 'zoom-update' into v2.0-candidate 2011-09-11 11:51:14 -04:00
Davide P. Cervone
2e129e0a01 Disable discoverability for now, and hide its menu item 2011-09-11 11:36:56 -04:00
Davide P. Cervone
a9b53b8bb7 Merge 'htmlcss-fixes' into v2.0-candidate (after resolving conflicts) 2011-09-11 11:16:18 -04:00
Davide P. Cervone
a4861dde5d Don't use setTimeout() if the delay is 0, and use delay of 0 for loading web fonts to avoid an IE9 bug (resolves issue #170) 2011-09-10 08:48:41 -04:00
Davide P. Cervone
53fc357cfc Start processing on DOMContentLoaded, if possible, and check document.readyState to see if the onload handler has already fired (avoids the need for authors to call MathJax.Hub.Startup.onload() by hand) 2011-09-06 21:05:51 -04:00
Davide P. Cervone
2708905233 Since the loading of the jax is now done by prepareOutput, no need to check for callbacks in processOutput 2011-09-04 17:51:18 -04:00
Davide P. Cervone
a4fdb7b815 Properly handle loading of jax during prepareOutput so that it works in combined configuration files 2011-09-04 16:52:44 -04:00