Commit Graph

361 Commits

Author SHA1 Message Date
Davide P. Cervone
6ee0711d1d Remove MathJax_MenuTitle CSS, since titles have been removed. 2013-04-29 19:59:04 -04:00
Davide P. Cervone
e0dd867713 Merge branch 'safe-mode' into develop
Conflicts:
	unpacked/extensions/TeX/bbox.js
2013-04-29 19:55:33 -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
cb3542b296 Use a service routine in MathML input to filter attributes (rather than override AddAttributes). Also, make fontsize default allow all (authors can restrict if they want to). 2013-04-29 16:54:53 -04:00
Davide P. Cervone
36b7fd9d57 Merge branch 'issue446' into develop
Resolves issue #446.
2013-04-29 16:14:13 -04:00
Davide P. Cervone
596a7cea98 Merge branch 'issue445' into develop
Resolves issue #445.
2013-04-29 16:06:03 -04:00
Davide P. Cervone
0891402b88 Merge branch 'issue359' into develop. Improves MathML rendering for mfenced and mlabeldtr elements. 2013-04-29 15:57:29 -04:00
Davide P. Cervone
63c8bd4d83 Merge branch 'issue435' into develop 2013-04-29 14:10:40 -04:00
Davide P. Cervone
faa6de0a81 Make sure we don't bubble up past the body element. 2013-04-29 14:10:15 -04:00
Davide P. Cervone
d8c06eb293 Make MathML fontsize only be allowed if fontsize is 'all' 2013-04-27 07:44:45 -04:00
Davide P. Cervone
4c9c6da10c Add a Safe extension that allows you to restrict potentially dangerous features of MathJax when it is used in a shared environment (e.g., href to javascript, styles and classes, etc.) 2013-04-27 07:34:41 -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
9178a9af0e Properly handle preview of 'none' in all preprocessors, and preview of 'alttext' in mml2jax. See note on commit d2bbe75. 2013-04-26 13:29:35 -04:00
Davide P. Cervone
9d7ff33bd2 Use a single routine to construct the mrow that replaces mfenced. Fix up some uses of var (not using it twice for the same variable in a function). Fix up some spacing and comments. Don't use .trim(). Use firstChild rather than firstElementChild (not supported by all browsers), etc. 2013-04-26 07:01:28 -04:00
Davide P. Cervone
e253967b72 Fix comment in content-mathml.js 2013-04-24 15:25:28 -04:00
Davide P. Cervone
607b1031a3 Merge remote-tracking branch 'fred/content-mathml' into develop
Add Content MathML support.
2013-04-24 15:20:17 -04:00
Davide P. Cervone
2d33f1d348 Call MATML.Parse.prototype directly rather than make a special flag for preprocessing. Use MATHML variable rather than full reference. 2013-04-22 15:44:58 -04:00
Davide P. Cervone
7214be5ff1 Add HelpDialog to the list of domains for the three languages, and make sure that the domain file is loaded (even if the language is changed after the help dialog has been viewed in another language). 2013-04-22 13:27:39 -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
e239cbc6fe Allow spaces in the RGB, rgb, and greyscale color specifications. resolves issue #446. 2013-04-22 09:19:32 -04:00
Davide P. Cervone
f04a2e3037 Change URL for MathJax font download to point ot GitHub. 2013-04-20 16:35:52 -04:00
Davide P. Cervone
d9505f9a1d Remove v1.0-warning. Resolves issue #445. 2013-04-20 16:21:58 -04:00
Davide P. Cervone
796c6b484d Merge branch 'issue435' into develop
Resolves issue #435.
2013-04-19 09:28:46 -04:00
Davide P. Cervone
6e2b8066db Merge branch 'issue378' into develop
Resolves issue #378.
2013-04-19 09:22:03 -04:00
Davide P. Cervone
19a10031a9 Merge branch 'issue381' into develop
Resolves issue #381.
2013-04-19 09:13:15 -04:00
Davide P. Cervone
38123ba33d Add the MathJax_Preview class to the ignoreClass list so that tex2jax and asciimath2jax won't process previews accidentally. Resolves part of issue#378. 2013-04-16 20:37:27 -04:00
Davide P. Cervone
841596821a Preserve spaces within \verb arguments. Resolves issue #381. 2013-04-16 19:48:11 -04:00
Davide P. Cervone
492f4cd53d Fix typo in IE warning message. Resolves issue #397. 2013-04-16 19:24:08 -04:00
Davide P. Cervone
81eaac00e8 Handle zooming whenit is inside a scrollable element when it is not the main body element. Resolves issue #435. 2013-04-16 16:10:28 -04:00
Davide P. Cervone
838cb730cf Make \smallfrown and \smallsmile come from the variant font so it has the correct size. Resolves issue #436. 2013-04-16 13:11:32 -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
173c501eae Fixed localization issues pointed out by fred (this creates some new messages that need to be translated). 2013-04-10 10:16:14 -04:00
Davide P. Cervone
7cd9180b0b Fix a number of message ID's and message texts. Add menuTitle to fr.js file. 2013-04-09 13:13:25 -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
d6fe660948 Rerender the page after selecting a locale (so error messages will be replaces). Probably should jsut rerender those equations with error messages to avoid delays. 2013-04-07 11:58:37 -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
Davide P. Cervone
98755b96f3 Fix version number in autoload-all. Issue #420 2013-03-23 10:12:08 -04:00
Davide P. Cervone
d724248878 Add AMS CD environment. Resolves issue #420. 2013-03-23 10:10:01 -04:00
Frédéric Wang
95c01baaa1 Fix Core and CoreMO functions for TeXmathchoice. 2013-03-20 16:03:26 +01:00
Frédéric Wang
842dc53c36 Try to implement the XSLT transform for IE>=9. 2013-03-06 12:09:07 +01:00
Frédéric Wang
276b7751dc Implement the XSLT for IE <= 8. 2013-03-05 15:15:45 +01:00
Frédéric Wang
ca718359cc Handle parsing of the <math> source better. 2013-03-05 12:30:48 +01:00
Frédéric Wang
0928aac88e Experimental content-mathml extension. 2013-02-28 11:56:27 +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
4fdb68a080 More attempts to translate messages. 2013-02-22 13:56:52 +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
Frédéric Wang
64a9eb0506 Workaround mfenced support for Opera too ; add open/close properties on the element jax generated by the TeX/MathML input jax ; generate mfenced element for <mrow> elements with open/close properties. 2013-02-04 12:55:49 +01:00
Frédéric Wang
5a5205e013 Make the input TeX jax generate mrow+mo rather than mfenced. 2013-02-01 12:22:55 +01:00
Frédéric Wang
d8b99effa0 Follow suggestions from Davide's review comment. 2012-12-22 21:30:14 +01:00
Frédéric Wang
96dc4b2b2a make toMathML.js handle non-BMP characters properly. Fix issue 361. 2012-12-20 17:41:40 +01:00
Davide P. Cervone
081204f317 Bump versions, repack, and recombine previous commit 2012-11-27 14:34:46 -05:00
Davide P. Cervone
d2bbe75499 Allow preview to be just a plain string (rather than requiring [string]). 2012-11-27 14:25:32 -05:00
Davide P. Cervone
aa5829849f Update version numbers to v2.1 2012-09-24 21:06:28 -04:00
Davide P. Cervone
173911d606 Make About box show 'woff or otf' when otf fonts are used (since both are requested). 2012-09-24 20:46:43 -04:00
Davide P. Cervone
1abbc73414 Merge branch 'issue236' into develop 2012-09-09 06:51:47 -04:00
Davide P. Cervone
983dd18b69 Allow negative dimensions for \\[] but clip to 0 since this isn't really allowed in MathML. I will need to figure out something better for the future, but for now this will prevent the error message. Issue #236. 2012-09-08 15:31:07 -04:00
Davide P. Cervone
23c8dcc8d3 Delay sizing and positioning of Show Source window to give WebKit time to get the dimensions worked out. Also make sure we don't use negative width or height (which I think was the problem with Chrome). Resolves issues #245 and #221. 2012-09-08 14:27:03 -04:00
Davide P. Cervone
0ed5d463e5 Merge branch 'issue217' into develop 2012-09-08 10:36:30 -04:00
Davide P. Cervone
7ea6ce84b1 Merge branch 'issue304' into develop 2012-09-06 10:08:01 -04:00
Davide P. Cervone
bf680988b9 Merge branch 'develop' into IE10 2012-09-04 09:33:06 -04:00
Davide P. Cervone
c9984345d6 Move span that holds zoom box to after the displayed math so that line breaks won't occur between the two. Adjust getJaxFromMath to compensate. Resolves second item from issue #217. 2012-09-03 08:40:06 -04:00
Davide P. Cervone
076526787e Merge branch 'issue300' into develop 2012-08-31 16:38:23 -04:00
Davide P. Cervone
c1ae9afe0c Only add xmlns in toMathML output if it isn't already given. Resolves issue #304. 2012-08-28 15:41:26 -04:00
Davide P. Cervone
da66d4b684 Remove dependencies of TeX->MathML conversion on the choice of fonts (TeX versus STIX). This no longer worked since the input and output phases have been separated (and it was never a good idea anyway). This necessiated changing some choices of characters to be produced, and which would be considered the variant form. The selections were made to match the STIX fonts, and some fancy remapping was done in the MathJax fonts to accommodate that. Should resolve issue #300. 2012-08-28 14:33:50 -04:00
Davide P. Cervone
c2f6a94e10 Make jsMath2jax run before other preprocessors (use priority 8 rather than default of 10). Resolves issue #298. 2012-08-24 16:06:23 -04:00
Davide P. Cervone
f47dbc4cc0 Merge branch 'issue119' into develop 2012-08-20 10:13:25 -04:00
Davide P. Cervone
abaa72e102 Remove unwanted 'em' from eqnarray columnwidth (reported by Fred). Issue #229. 2012-08-20 08:33:05 -04:00
Davide P. Cervone
55a76151c0 Use the unicode characters that Fred has been asking for for a while. This covers most of issues #116, #119, and #216. Still need to merge multiple primes into the characters for those. 2012-08-19 20:13:46 -04:00
Davide P. Cervone
085ecf46b2 Bump version, pack and recombine previous commit 2012-08-19 09:04:07 -04:00
Davide P. Cervone
3bdd0fdb22 Make eqnarray do equation numbering when numbering is enabled. Resolves issue #229. 2012-08-19 09:02:17 -04:00
Davide P. Cervone
0236ee5a54 Merge branch 'issue286' into develop 2012-08-18 19:33:54 -04:00
Davide P. Cervone
9508c3f3cc Merge 'issue287' into develop 2012-08-18 19:33:01 -04:00
Davide P. Cervone
7349136260 Add \textcolor macro to the color extension (resolves issue #218.) 2012-08-17 18:50:16 -04:00
Davide P. Cervone
c481c9f375 Allow decimal scale values. Fix setting of scale to work with SVG. Resolves issue #286. 2012-08-17 18:40:17 -04:00
Davide P. Cervone
049739b187 Added RGB color model. Perhaps more later. (Issue #287.) 2012-08-17 17:41:27 -04:00
Davide P. Cervone
51072a309a Merge branch 'issue234' into develop 2012-08-17 06:51:54 -04:00
Davide P. Cervone
7a9691b38c Remove extra commas that confuse IE7. (Resolves problem reported by Fred in isse #234.) 2012-08-17 06:51:30 -04:00
Davide P. Cervone
d169ff4988 Fix typo in autoload-all 2012-08-16 12:37:24 -04:00
Davide P. Cervone
481373994f Merge 'issue225' into develop 2012-08-16 11:42:23 -04:00
Davide P. Cervone
acc3a0031b Merge branch 'issue285' into develop 2012-08-16 11:08:26 -04:00
Davide P. Cervone
17df487ce9 Fix problem with +- mu's in toMathML.js just like for NativeMML output. 2012-08-16 11:08:04 -04:00
Davide P. Cervone
8709200381 Merge 'issue234' into develop 2012-08-16 09:19:34 -04:00
Davide P. Cervone
fe02e699a7 Merge branch 'issue215' into develop 2012-08-16 09:16:41 -04:00
Davide P. Cervone
700a24ba65 Merge 'issue211' into issue234 2012-08-15 15:57:08 -04:00
Davide P. Cervone
000e2586f4 Merge branch 'issue211' into develop 2012-08-15 15:52:58 -04:00
Davide P. Cervone
c5de4397a4 Merge 'issue209' into develop 2012-08-15 15:52:40 -04:00
Davide P. Cervone
174e62bd29 Automatically load the AMSmath extension when needed. Don't redefine the arrows until it is available. Resolves problem Fred reported in issue #234. 2012-08-15 14:30:49 -04:00
Davide P. Cervone
4d63e82e33 Add <<=> arrow to mhchecm extension. Resolves initial request in issue #234 (though still two other problems to look into) 2012-08-15 13:04:00 -04:00
Davide P. Cervone
5a2e34e9fc Make autoload-all skip ones that are already loaded, and not redefine user-defined macros. Also, fix most extensions to not overwrite user defined macros 2012-08-15 10:44:19 -04:00
Davide P. Cervone
54fffeac3b Ignore \label{} with no label. Resolves issue #225. 2012-08-15 09:24:20 -04:00
Davide P. Cervone
6e73b80d88 Make \injlim and friends produce single <mi> elements for thier names. Resolves issue #215. 2012-08-14 16:33:40 -04:00
Davide P. Cervone
63619df08e Add close button to About box and don't make clicking box close it (only clicking button). Resloves issue #281 2012-08-14 08:43:57 -04:00