Commit Graph

173 Commits

Author SHA1 Message Date
Davide P. Cervone
dc7919693d Accidentally reused variable y, so change to Y. Issue #991. 2015-01-15 15:02:50 -05:00
Davide P. Cervone
b60fb9b741 Use origin pad.y since it can change during Add(). Resolves issue #991. 2015-01-13 10:58:25 -05:00
Davide P. Cervone
0182094a37 Merge branch 'issue1002' into develop. Issue #1002. 2015-01-12 09:37:56 -05:00
Davide P. Cervone
24bfd6baf2 Merge branch 'issue997' into develop. Issue #997. 2015-01-12 09:37:34 -05:00
Davide P. Cervone
a2c3b7cdc2 Use currentColor rather than black for SVG output. Resolves issue #1002. 2015-01-11 09:51:17 -05:00
Davide P. Cervone
856d839ce9 Don't set tabindex, as it causes unwanted focus outlines. Revisit this later when we do accessibility update. Resolves issue #997. 2015-01-11 09:25:41 -05:00
Davide P. Cervone
2431a90a9f Rename variable used for displayIndent so it doesn't conflict with previous usage. Also, handle '0em' and similar values as '0'. Resolves issue #1000. 2015-01-11 09:20:30 -05:00
Davide P. Cervone
0529b5d78c Take base.x into account for positioning of super ans subscripts. Resolves issue #966. 2014-12-27 08:56:58 -05:00
Davide P. Cervone
f6293beea6 Add the SVG transform for flipping characters AFTER we have added colors and borders (since they can alter the svg.element, moving it lower in the chain and even removing it). Resolves issue #930. 2014-12-04 16:56:35 -05:00
Davide P. Cervone
ad004ac668 Preserve RDFa and other non-standard attributes from MathML elements in the HTML-CSS or SVG output. Resolves issue #860, and also handles #502 as a side-effect. 2014-09-14 13:47:20 -04:00
Davide P. Cervone
ca196c8e0d Merge branch 'issue835' into develop. Issue #835. 2014-09-14 09:21:44 -04:00
Davide P. Cervone
ab9570b614 Merge branch 'issue775' into develop. Issue #775. 2014-09-14 09:18:16 -04:00
Davide P. Cervone
f07278d3db Make zoom box large enough for overlaps (e.g., when \llap, \rlap, or \smash are used) in SVG and HTML-CSS output. Can't do it effectively for NativeMML, since we don't know anything about overlaps in that case. Resolves issue #835. 2014-09-13 15:34:52 -04:00
Davide P. Cervone
5d266d2f81 Take advantage of SVGdatStretched() rather than doing it by hand. 2014-09-11 08:05:29 -04:00
Davide P. Cervone
74253a955f Merge branch 'issue834' into develop. Issue #834. 2014-09-11 06:59:18 -04:00
Davide P. Cervone
84206a3f15 Merge branch 'issue769' into develop. Issue #769. 2014-09-11 06:58:42 -04:00
Davide P. Cervone
c30dd6647b Merge branch 'issue829' into develop. Issue #829. 2014-09-11 06:50:13 -04:00
Davide P. Cervone
1e219b4304 Get linebreaking size correct for zoom boxes, and do a better job of managing the width for full-width tables (only make the box as wide as necessary). Resolves issue #834. 2014-09-10 22:05:03 -04:00
Davide P. Cervone
a9c66b5cee Fix the alignment function so that it handles overlapping on the left and right better, and so we don't have to do it in the linebreaking directly. 2014-09-09 19:22:02 -04:00
Davide P. Cervone
871f395ce6 Make mrows that are embellished operators properly include the elements other than the core when stretched. Resolves issue #775. 2014-09-09 11:27:39 -04:00
Davide P. Cervone
ea42f427f6 Fix multiple problems with indentshift and indentalign in HTML-CSS and SVG output. (Negative values not handled properly, shift not applied to centering, SVG not handling shift past edges well, percentage shifts now in relation to container, etc.) Resolves issues #769 and #768. 2014-09-09 10:28:25 -04:00
Davide P. Cervone
177eade964 Use delimitershortfall and delimiterfactor for stretching vertical delimiters for SVG. 2014-09-08 15:27:31 -04:00
Davide P. Cervone
3ae1a46217 Take vertical offset into account in mpadded background color in SVG output. Resolves issue #800. 2014-09-04 19:41:19 -04:00
Davide P. Cervone
13b16f9b26 Merge branch 'node-issue3' into develop. Issue mathjax/MathJax-node#3. 2014-09-04 05:57:14 -04:00
Davide P. Cervone
d74208ef1f Merge branch 'node-issue18' into develop. Issue mathjax/MathJax-node#18. 2014-09-04 05:56:27 -04:00
Davide P. Cervone
5e14383a59 For glyphs with empty paths (e.g., space characters), just move the x position by the width of the character. Resolves mathjax/MathJax-node#3. 2014-09-03 14:47:57 -04:00
Davide P. Cervone
a4c6eb6753 Simplify output when SVG output extends beyond the top or bottom of the bounding box (makes the SVG entirely self-contained for MathJax-node output). Issue mathjax/MathJax-node#18. 2014-09-03 13:13:10 -04:00
Davide P. Cervone
e090b7821a Make SVG output not include emtpy attributes for unknown characters. Issue #898 and mathjax/MathJax-node#6. 2014-09-03 10:23:10 -04:00
Davide P. Cervone
3848ac329b Fix scaling for text when mtextFontInherit is in effect and Scale All Math is not 100%. Issue #826 2014-08-24 18:23:37 -04:00
Davide P. Cervone
b7fbcc73b6 Fix scaling of unknown characters to handle 'Scale All Math' values properly. Issue #826. 2014-08-20 12:10:28 -04:00
Davide P. Cervone
ddb96b1b66 Move CoreParent, CoreText, remap, and remapChars to element jax (since shared among the output jax), and fix positioning of double accents like \vec{\vec{x}}. Resolves issue #877. 2014-08-19 16:55:36 -04:00
Davide P. Cervone
7aab884fd0 Merge pull request #874 from pkra/nodejs
merging @dpvc's Nodejs branch into develop.
2014-07-21 10:06:35 -04:00
Davide P. Cervone
d06675ae89 Mark SVG spans as MathJax ones properly. 2014-06-24 16:40:52 -04:00
Davide P. Cervone
f9afa15ecc Correct ID for global glyph lookup 2014-06-08 21:08:31 -04:00
Davide P. Cervone
668585f591 Fix several problems with stretchy delimiters in SVG output (minsize didn't always get processed, stretched characters weren't marked as such). 2014-05-30 12:17:09 -04:00
Davide P. Cervone
11e4ba5101 Make glyph data be part of BBOX.GLYPH, and make sure that resets don't increment the counter for local <defs> elements. 2014-05-22 13:14:29 -04:00
Davide P. Cervone
3c98ab81dd Change where ID is modified so that the cache properly accounts for it. 2014-05-17 13:47:58 -04:00
Davide P. Cervone
2a11309edd Add options useFontCache and useGlobalCache to control use of <use> elements. Also add Fixed() method to make shorter values for scale and viewport. 2014-05-14 14:30:28 -04:00
Davide P. Cervone
267a9a90eb Use width and height attributes rather than styles. 2014-05-14 09:30:05 -04:00
Davide P. Cervone
2c3a5f0b79 Apparently, node.js uses uppercase nodeName, so use toLowerCase() to change it. 2014-05-14 09:29:09 -04:00
Davide P. Cervone
5538982def Remove space around accent operators (resolves issue #815). 2014-05-12 15:47:01 -04:00
Davide P. Cervone
e92f3f2718 Change copyright and version numbers 2014-05-07 17:02:28 -04:00
Davide P. Cervone
3ebb153763 Ignore mathsize for non-token elements when figuring scales. 2014-05-05 11:18:44 -04:00
Davide P. Cervone
81cec74252 Fix scaling problem with mpadded. 2014-05-04 15:23:50 -04:00
Davide P. Cervone
462be1eaeb Make sure that <mo> with minsize or maxsize set are stretched. 2014-04-25 17:31:11 -04:00
Davide P. Cervone
cb04ee618c Fix problems with linebreaks in fractions (scaling of lineleading, proper detection of auto indentalign, etc.) 2014-04-21 18:16:31 -04:00
Davide P. Cervone
1e8ae72201 Merge branch 'zoom-fix' into develop. Issues #749, #460, #423. 2014-04-11 07:56:49 -04:00
Davide P. Cervone
662023bed4 Merge branch 'issue703' into develop. Issue #703. 2014-04-11 07:55:31 -04:00
Davide P. Cervone
46ba400ad6 Work around WebKit bug with SVG sizes. Resolves issue #749. 2014-04-10 22:45:35 -04:00
Davide P. Cervone
6ba5f2a624 Make absolute sizes scale when zoomed. Resolves issue #460. 2014-04-10 20:48:28 -04:00