Commit Graph

193 Commits

Author SHA1 Message Date
Davide P. Cervone
8599abbc4c Mark the postTranslate call that does chunk updates as a partial one 2013-10-07 07:30:57 -04:00
Frédéric Wang
492738cb70 Fix placement issues with largeop and munderover. #489 2013-08-27 10:05:07 +02:00
Davide P. Cervone
25a10d733d Correct typo in stroke-width (was stroke-thickness). Resolves issue #461. 2013-05-11 15:29:02 -04:00
Davide P. Cervone
6e9199efa1 Add formatting headers to all hand-edited files. 2013-05-01 14:49:11 -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
4f40c0eed6 Fix some crashes when elements are missing their children. 2013-05-01 13:21:10 -04:00
Davide P. Cervone
a843a9494a Fix missing colon in styles 2013-04-29 19:31:56 -04:00
Davide P. Cervone
8437d9d404 Merge branch 'issue444' into develop
Resolves issue #444.
2013-04-29 16:25:20 -04:00
Davide P. Cervone
94e92dcfff Try to isolate MathJax from CSS transitions. Resolves issue #449. 2013-04-26 07:48:52 -04:00
Davide P. Cervone
ce8c8882ea Merge branch 'issue427' into develop
Resolves issue #427.
2013-04-19 09:31:42 -04:00
Davide P. Cervone
9e65b9ce74 Move mjx-svg-href class to <a> rather than its child. Resolves issue #427. 2013-04-19 08:08:59 -04:00
Davide P. Cervone
5c39699371 Make sure textSVG is attached during zooming (prevents error when math contains characters outside of the MathJax fonts). Resolves issue #441. 2013-04-18 17:11:47 -04:00
Davide P. Cervone
486cd40424 Make href class specific to SVG (in case we need to have one for other output jax) 2013-04-17 09:05:24 -04:00
Davide P. Cervone
557e93e505 Allow \color to override link color in SVG output. Resolves issue #427. 2013-04-17 09:02:33 -04:00
Davide P. Cervone
3ab428a985 Merge remote-tracking branch 'fred/issue363' into develop
Resolves issue #363.
2013-03-20 17:13:05 -04:00
Davide P. Cervone
3a5a0a6910 Remove commented code and add comment for change to Ex(). Issue #383. 2013-03-20 13:58:48 -04:00
Frédéric Wang
65c9b8234e Better handle mathvariant for unknown/invalid values or values not supported by generic fonts. 2013-02-06 18:10:33 +01:00
Davide P. Cervone
caa965d23d Add a pixel extra around the SVG image to accommodate antialiasing pixels. Also, try to work around truncation versus rounding issue in Chrome for ex-sizes (may not work well in other browsers, though). Addresses issue #383. 2013-01-31 15:39:21 -05:00
Davide P. Cervone
8d0b6f5189 Merge branch 'issue305' into develop 2012-09-10 19:12:39 -04:00
Davide P. Cervone
064e053140 Fix problem with potential infinite loop when an mspace is an embellished operator that causes a linebreak to occur. Also fix alignment problem in msubsup where svg.y wasn't taken into account (after a removeable group is removed). Might need similar treatment in moverunder and perhaps others as well. Issue #305. 2012-09-09 00:19:35 -04:00
Davide P. Cervone
5d69614718 Allow linebreaks within the base of msubsup to work so that the super and subscripts stay with the last line of the base. Resolves issue #235. 2012-09-08 21:29:29 -04:00
Davide P. Cervone
27d3b1ea80 Force Opera to redraw zoomed expressions in SVG output. Resolves issue #309. 2012-09-08 11:14:06 -04:00
Davide P. Cervone
0ed5d463e5 Merge branch 'issue217' into develop 2012-09-08 10:36:30 -04:00
Davide P. Cervone
d9e019b790 Merge branch 'issue297' into develop 2012-09-06 11:10:50 -04:00
Davide P. Cervone
c7e80eca6f Work around Chrome bug with MathJax web fonts that affects some combining characters. Add support for spacing characters (and in particular, negative spacing) to make that easier to do. Resolves issue #239. 2012-09-04 16:34:26 -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
0772d97a6a Merge branch 'issue210' into develop 2012-09-04 06:08:15 -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
688de8ee2b Remove console.log() calls that were inadvertantly left in. (argh!) Issue #210. 2012-09-01 12:44:13 -04:00
Davide P. Cervone
42998e00e5 Fix problem with taking style of null element reported by Fred in issue #210. 2012-09-01 12:27:10 -04:00
Davide P. Cervone
2f8a30a362 Handle minsize on vertical stretching as well as horizontal. Also fix a vertical placement problem with stretched elements in tables in HTML-CSS, and improve performace for placeing the extension characters by making sure we have the bbox for them. Issue #210. 2012-09-01 11:21:34 -04:00
Davide P. Cervone
2c9a585e08 Merge branch 'issue255' into develop 2012-08-31 09:41:00 -04:00
Davide P. Cervone
34a9af5180 Fix mfenced so that when it contains a line break the delimiters and separators are not lost. Resolves issue #255 (but separators currently aren't able to be breakpoints, so more needs to be done). 2012-08-29 23:28:20 -04:00
Davide P. Cervone
f86e3282ab Only token elements should consider mathsize in HTMLgetScale() or SVGgetScale(). Resolves issue #251. 2012-08-28 20:07:07 -04:00
Davide P. Cervone
b58c667f8b Add onclick handler to make href's work in all browsers in SVG mode. Resolves issue #297. 2012-08-28 19:25:38 -04:00
Davide P. Cervone
f47dbc4cc0 Merge branch 'issue119' into develop 2012-08-20 10:13:25 -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
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
98b39eca90 For stretchy characters that don't have a single-character version in the MathJax fonts, make sure they are properly sized when not stretched or stretched to a small size. Also, make vertical ones stand on the baseline, and improve spacing of some stretchy chars. Resolves issue #213. 2012-08-19 08:08:15 -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
f8e3f3557f Use variant form for more primes in SVG output (match HTML-CSS output). Resolves problem identified by Fred in issue #268. 2012-08-17 10:35:46 -04:00
Davide P. Cervone
332dad309c Merge 'issue268' into develop 2012-08-16 11:39:47 -04:00
Davide P. Cervone
b40ca8cde4 Make the changes to font handling to SVG (just like HTML-CSS) so that &#x2032; will be displayed better in AsciiMath output. 2012-08-16 11:35:14 -04:00
Davide P. Cervone
888140d34d Properly handle the scale configuration parameter. (Resolves issue #244.) 2012-08-15 14:59:12 -04:00
Davide P. Cervone
e2cb0b7042 Fix problem with SVG handling of \liminf and \limsup. Resolves issue #219. 2012-08-14 16:50:50 -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
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
01219f413f Fix problems with mtable, ms, and mmultiscripts which weren't handling styles. Also fix an issue with mphatom that caused processing errors (resolves problem Fred reported in issue #109). Fixed a typo, and don't inherit styles in saveData. 2012-03-27 18:33:08 -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
c1fe357733 Make SVG style handling be the same as HTML-CSS (don't inherit styles). This needs to be reworked so that some styles do get inherited 2012-02-25 17:27:32 -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
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
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
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
69bd9305c9 Handle offsets within the fontdata-extra data in SVG output 2012-02-08 13:53:20 -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
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
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
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
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
b651ab1857 Fix positioning when <mroot> is missing its second argument 2012-01-26 19:57:10 -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
6456a50e52 Allow SVG jax to laod without crashing in IE8 and below (but still get math processing errors). At least this doesn't need the timeout delay waiting for loadComplete() to be called. 2012-01-23 11:01:11 -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
0410bdc8ac Remap bold combined negations to uncombioned pairs when they aren't in the web fonts 2012-01-18 12:27:42 -05:00
Davide P. Cervone
682fe27d7e Remap letter-like symbols to the variants where they exist in teh web fonts 2012-01-16 17:17:39 -05:00
Davide P. Cervone
9a092fe68b Modify accents to use better characters in some circumstances (basically the right arrow at the moment) 2012-01-15 15:26:36 -05:00
Davide P. Cervone
db55f22ba7 Handle pseudo-scripts better (don't translate <mo>'s that aren't in superscripts, and do translate the ones that are) 2012-01-14 20:30:13 -05:00
Davide P. Cervone
65892262ac Move remapping of <mo> contents to output jax, so that the original MathML is left unchanged 2012-01-14 16:33:43 -05:00
Davide P. Cervone
9763b5754f Handle \not better (produce proper unicode points for negated characters, when possible, use \u0338 when possible, and do \mathrel{\rlap{/}} otherwise). Add remappings to convert unavailable combinations back to combining characters for web-based fonts (this also makes it possible to handle double and tripple prime unicode code points). 2012-01-14 15:05:47 -05:00
Davide P. Cervone
bb35eb004c Add full support for unicode planes 1 through 10 (both in \unicode{}, as input, and in HTML-CSS and SVG output) 2012-01-13 12:29:44 -05:00
Davide P. Cervone
266360e9d2 Don't combine mathvariant and fontstyle or fontweight (Fred pointed out this isn't supposed to happen) 2012-01-12 18:54:57 -05:00
Davide P. Cervone
af2cd3476f Update \unicode to work with SVG, and to better handle fonts and sizes. Also fix HTML-CSS font size when fontfamily is specified 2012-01-12 17:20:21 -05:00
Davide P. Cervone
15c89cace0 Add undefined character signal to SVG jax 2012-01-09 15:22:12 -05:00
Davide P. Cervone
bc3b7adca6 Make \it use MathJax_Main-Italic rather than MathJax_Math-italic, and don't do math italic correction (so spacing is correct for text) (SVG) 2011-11-20 18:55:46 -05:00
Davide P. Cervone
fd692e25f0 Properly handle skew character for accents in SVG output 2011-11-18 22:26:49 -05:00
Davide P. Cervone
4553cce005 Make SVG output work with discoverability better 2011-11-18 10:11:38 -05:00
Davide P. Cervone
257a11d0e2 Better handling oc italic correction (not just in msubsup and munderover) 2011-11-15 14:57:28 -05:00
Davide P. Cervone
54863d1138 Handle italic correction better, and fake the value for mi and mo, since we don't currently have the data in the font data files 2011-11-13 17:06:52 -05:00
Davide P. Cervone
7762d3323d Handle href's better, particularly when on the <math> element 2011-11-10 07:45:55 -05:00
Davide P. Cervone
246a809ce5 Support additional styles, and use the styles object for colors and fontsize rather than setting the attributes directly (so they don't get copied to the MathML output for example) 2011-11-09 22:03:11 -05:00
Davide P. Cervone
f7116a61ac Use HTML.Element rather than SVG.Element to make test span. Also, use HUB and HTML variables when possible rather than MathJax.Hub and MathJax.HTML 2011-11-07 16:04:26 -05:00
Davide P. Cervone
5394ea5b68 Fix a problem with combining character when they are used as accents (e.g., \vec) 2011-11-05 15:23:41 -04:00
Davide P. Cervone
4f14fbb301 Uncommented code that was taken out for debugging purposes (and that causes inline math to have a linebreak before it -- argh!). Sorry about that. 2011-11-05 07:30:26 -04:00
Davide P. Cervone
4a68934cd4 Fix linewidth computation so it respects floating elements on either side 2011-11-04 21:58:33 -04:00
Davide P. Cervone
d76580a422 Add a configuration flag that causes the underlying MathML structure to be retained in the SVG output, with element classes used to mark the corresponding elements (this allows some CSS control of the results, but also produces more complicated SVG trees) 2011-11-04 21:47:15 -04:00
Davide P. Cervone
8ca97d2f39 Add new SVG output jax 2011-11-04 20:16:13 -04:00