Commit Graph

497 Commits

Author SHA1 Message Date
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
037e5eb895 Merge branch 'issue295' into develop 2012-08-28 15:28:39 -04:00
Davide P. Cervone
e3943746e9 Merge branch 'issue119' into develop 2012-08-28 15:26:51 -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
c38e683321 Fix TeXatom to properly handle Core, CoreMO, and isEmbellished calls, and fix CoreParent to include TeXAtom properly. This fixes a problem with \vec not producing the correct character for \vec{\mathbf{B}} for example. Issue #119. 2012-08-24 10:15:35 -04:00
Davide P. Cervone
38ccfc4cbe One more place tht unEm should not have been used. 2012-08-24 06:53:28 -04:00
Davide P. Cervone
4594333277 Don't make mspace use handleSize, since it doesn't need to have font-size set. This was causing problems with the change to px from em's in Chrome. Should resolve problems Fred found with issue #295. 2012-08-24 06:52:03 -04:00
Davide P. Cervone
3e0f993d7f Put back parseFloat in one place that unEm() was incorrectly used. 2012-08-23 09:07:10 -04:00
Davide P. Cervone
17738b2bcd Merge branch 'issue254' into develop 2012-08-23 09:03:50 -04:00
Davide P. Cervone
cba02baaba Merge branch 'issue237' into develop 2012-08-22 17:55:14 -04:00
Davide P. Cervone
6b87ad787d Make Chrome handle horiztonal stretchy characters better so that the ends don't misalign with the middle. This was affecting the overline in the square root, for example. Resolves a second part of issue #295 2012-08-22 14:52:35 -04:00
Davide P. Cervone
b5931896a5 All browsers seem to need the zeroWidthBug fix, so remove check and assume true. Should fix Fred's latest problem with issue #237. 2012-08-22 12:08:41 -04:00
Davide P. Cervone
76f52f6462 Make Chrome use px rather than em for better vertical alignment, and force placeBox to round to nearest pixel for baseline alignment spans. Also check that the height matches what we actually specified (but this means a page reflow, which will cost some performance in Chrome). Resolves issue #295. 2012-08-22 10:50:42 -04:00
Davide P. Cervone
6e4f6f00cd Merge branch 'issue267' into develop 2012-08-22 09:39:38 -04:00
Davide P. Cervone
87c8d378e5 Force final math span to have width in pixels, which makes it work if a minimum font size is set. Resolves issue #254. 2012-08-22 09:02:47 -04:00
Davide P. Cervone
f8ae50f4e6 Handle U+2061 better (after making previous node an OP, skip the <mo> containing the U+2061). Resolves Fred's new comments in issue #267. 2012-08-22 08:52:59 -04:00
Davide P. Cervone
1f23972b00 Force final math span to be remeasured so that we are sure the container is the right size. Resolves issue #272. 2012-08-22 06:54:48 -04:00
Davide P. Cervone
34fa4ad062 Merge branch 'issue237' into develop 2012-08-22 06:26:12 -04:00
Davide P. Cervone
55f735c65f Merge branch 'issue267' into develop 2012-08-21 10:41:48 -04:00
Davide P. Cervone
3558241ca7 Don't be so aggressive about turning <mi> into texClass OP. Change back if followed by BIN or REL, and change anything to OP if followed by U+2061. 2012-08-20 19:08:26 -04:00
Davide P. Cervone
b12c2bd77c Fix misplaced \vec arrows in Opera (and IE). Resolves issue #237. 2012-08-20 16:15:11 -04:00
Davide P. Cervone
f47dbc4cc0 Merge branch 'issue119' into develop 2012-08-20 10:13:25 -04:00
Davide P. Cervone
d38774b014 Repack AMSmath and recombine 2012-08-20 09:54:26 -04:00
Davide P. Cervone
91df5dae5b Combine multiple primes into single unicode characters. Issue #216. 2012-08-20 09:05:57 -04:00
Davide P. Cervone
c1097dc29c Merge branch 'issue213' into develop 2012-08-20 08:49:35 -04:00
Davide P. Cervone
e325cf9acf Merge branch 'issue229' into develop 2012-08-20 08:49:18 -04:00
Davide P. Cervone
81ce9ec446 Merge 'issue249' into develop 2012-08-20 08:41:57 -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
e25d84d30f Make <mi> with more than one letter have tex class OP rather than ORD so it will space as a function. This takes care fo things like sin and cos, and should not interfer with other uses like variables with multi-character names. Resolves issue # 267. 2012-08-19 14:53:07 -04:00
Davide P. Cervone
9340a02d72 Prevent align attribute on mtable from applying to mover/munder/munderover elements. Resolves issue #249 2012-08-19 09:28:24 -04:00
Davide P. Cervone
939c1dc034 Bump version, repack, and recombine previous commit. Issue #213. 2012-08-19 09:12:06 -04:00
Davide P. Cervone
085ecf46b2 Bump version, pack and recombine previous commit 2012-08-19 09:04:07 -04:00
Davide P. Cervone
0236ee5a54 Merge branch 'issue286' into develop 2012-08-18 19:33:54 -04:00
Davide P. Cervone
9fe3f9eb15 Merge branch 'issue226' into develop 2012-08-18 19:33:33 -04:00
Davide P. Cervone
1fc8929667 Repack and recombine (missed a packing somewhere along the line). Fixes the problem Fred reports with tests using packed versions. 2012-08-18 08:43:44 -04:00
Davide P. Cervone
4f722d050f Make mtextFontInherit use the style and weight indicated in the math, so that \textbf and \textit will work properly. Resolves issue #226. 2012-08-17 19:35:50 -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
c8b9755caf Fix for problem reported by Fred in issue #278. 2012-08-16 14:18:09 -04:00
Davide P. Cervone
481373994f Merge 'issue225' into develop 2012-08-16 11:42:23 -04:00
Davide P. Cervone
332dad309c Merge 'issue268' into develop 2012-08-16 11:39:47 -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
bb7f76158c Bump version number and recombine after prevous pull from Fred 2012-08-16 09:12:23 -04:00
Davide P. Cervone
c5de4397a4 Merge 'issue209' into develop 2012-08-15 15:52:40 -04:00
Davide P. Cervone
a51c306dc1 Be sure to keep initial + when converting em's to mu's. Resolves issue #285. 2012-08-15 12:58:45 -04:00
Davide P. Cervone
46f2941d5a Merge branch 'issue230' into 'develop' 2012-08-15 11:03:01 -04:00
Davide P. Cervone
f71f84e35b Merge branch 'issue242' into 'develop' 2012-08-15 11:00:52 -04:00
Davide P. Cervone
e86153d59b Merge branch 'issue263' into 'develop' 2012-08-15 10:57:52 -04:00
Davide P. Cervone
eb2afc8dec Merge branch 'issue268' into 'develop' 2012-08-15 10:54:32 -04:00
Davide P. Cervone
0a65cac0a1 Merge branch 'issue274' into develop 2012-08-15 10:51:34 -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
1a09ec5ef1 Make sure 'embellished' function names propagate their texClass. Resolves issue #263. 2012-08-14 17:25:42 -04:00
Davide P. Cervone
2932430f34 Fixed problem where \\ with whitespace followed by [ would incorrectly be interpretted as \\[dimen]. Resolves issue #230. 2012-08-14 17:04:31 -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
8ff5b925d8 Fix setTeXclass for TeXatom so that it handles the spacing for relations correctly. Resolves issue #242. 2012-08-14 15:52:38 -04:00
Davide P. Cervone
ecc14cf9b2 Make <mo>'</mo> produce script-positioned prime in MathJax fonts, while still allowing \prime to produce proper TeX output (a bit of contortion needed in the font remapping tables to allow it to override the character in MathJax_Main while still being able to use it for \prime). Resolves issue #268. 2012-08-14 14:39:37 -04:00
Davide P. Cervone
aa7440244a Add more CSS to isolate NativeMML output from page. (Resolves issue #274.) 2012-08-14 12:47:53 -04:00
Davide P. Cervone
0c02ab2670 Handle primes followed by superscript as TeX does in TeX input jax (resolves issue #278) 2012-08-14 11:34:36 -04:00
Davide P. Cervone
a93c59e669 Merge branch 'issue281' into develop 2012-08-14 08:44:29 -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
Davide P. Cervone
9f1656df09 Bump version numbers and make packed/combined files for last two commits 2012-08-14 08:41:44 -04:00
Davide P. Cervone
35119a25c4 Provide a separate span for semantics elements so linebreaking works properly (resolves issue #247) 2012-05-18 21:47:54 -04:00
Davide P. Cervone
fd74ad5dd9 Don't reuse an element with an ID with the wrong parent (resolves issue #240) 2012-05-18 21:41:40 -04:00
Davide P. Cervone
5812cbcb9b Make HTML-CSS and SVG output jax remove properly handle the Processed class when removing the previous results after a restart 2012-05-18 21:28:40 -04:00
Davide P. Cervone
adc375b343 Merge branch issue228 into develop 2012-05-18 21:02:08 -04:00
Davide P. Cervone
88108a167f Merge branch 'issue227' into develop 2012-05-18 20:59:47 -04:00
Davide P. Cervone
edfd102702 Merge issue209 with develop 2012-05-18 20:59:40 -04:00
Davide P. Cervone
920c603a4b Have output jax properly skip math when the input jax has had an internal failure and so didn't produce any element jax. (Resolves issue #228.) 2012-04-11 11:50:15 -04:00
Davide P. Cervone
544e37bebd Check for null operator when processing \limits (resolves issue #227) 2012-04-11 11:11:14 -04:00
Davide P. Cervone
ed0eb9c0c4 Added missing callback for restarting toMathML 2012-03-20 22:55:41 -04:00
Davide P. Cervone
153297bdb9 Don't try to compensate for super and subscripts (it doesn't work). That will need a more comprehensive solution 2012-03-15 16:16:30 -04:00
Davide P. Cervone
c2e94a827e Bump versions for previous commit 2012-03-15 15:46:58 -04:00
Davide P. Cervone
6ede07ba29 Make column widths take minsize into account. Resolved issue #210. 2012-03-15 15:45:47 -04:00
Davide P. Cervone
b816490799 Bump the version numbers for the previous commit 2012-03-15 13:48:48 -04:00
Davide P. Cervone
f2d5c4b037 Make NativeMML output properly handle iOS double-tap-and-hold, and issue warning message when switching to NativeMML output. Resolves issue #209. 2012-03-15 12:09: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
b08db7d93e Fix problem in HTML-CSS output with msubsup when super- or subscript has explicit style 2012-03-06 10:02:42 -05:00
Davide P. Cervone
c6b96dd558 Fix references to web fonts for use in Firefox in NativeMML output 2012-03-03 09:59:20 -05:00
Davide P. Cervone
a2ab1f3760 Fix problem with MathEvents where pinch gestures were not being registered if both fingers were in typeset equations. (This may still need more, but it is an improvement for now). Resolves issue #200. 2012-03-01 16:06:16 -05:00
Davide P. Cervone
b8fc1c99f5 Bump the version number on MathMenu.js to account for the previous change 2012-02-27 18:19:32 -05:00
Davide P. Cervone
b82c4ac6ee Fix typo in renderer-switching message for Forefox MML 2012-02-27 15:17:26 -05:00
Davide P. Cervone
4174acf5ac Change help-2-0 to help-v2 in URL references (I think this looks better) 2012-02-26 10:46:52 -05:00
Davide P. Cervone
66058ed1e7 Move help files to help-2-0 since menu setup is different, and if we edit the on0line docs, then sites that are still uwing v1.1 will point to the new docs instead of the ones appropriate for their version 2012-02-26 09:31:51 -05:00
Davide P. Cervone
d82b3be4fb Fix problem with indentShift when indentAlign is not 'center' and the equation is tagged 2012-02-23 19:24:51 -05:00
Davide P. Cervone
c1ab649925 Add MathJax.InputJax.TeX.resetEquationNumbers() routine to allow reprocessing of pages that have equation numbers and labels 2012-02-23 14:52:54 -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
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
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
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
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
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
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
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