Commit Graph

1012 Commits

Author SHA1 Message Date
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
9bf55785f0 Use proper value of base scaling to reset u and v in super- and subscript positioning. Resolves issue #804. 2014-09-14 11:02:16 -04:00
Davide P. Cervone
0a04a6ce19 Don't clip left or right-hand sides, only top and bottom (which are what need clipping to hide exctra height/depth, and prevent the positioning spans from overlaying the material above). Resolves issue #807, and may hekp issue #646. 2014-09-14 10:33:06 -04:00
Davide P. Cervone
ca196c8e0d Merge branch 'issue835' into develop. Issue #835. 2014-09-14 09:21:44 -04:00
Davide P. Cervone
a26454ac90 Merge branch 'issue917' into develop. Issue #917. 2014-09-14 09:21:18 -04:00
Davide P. Cervone
d38c5632ab Merge branch 'issue918' into develop. Issue #918. 2014-09-14 09:20:55 -04:00
Davide P. Cervone
fe06c828b4 Merge branch 'issue912' into develop. Issue #912. 2014-09-14 09:20:23 -04:00
Davide P. Cervone
f4be986816 Merge branch 'issue913' into develop. Issue #913. 2014-09-14 09:19:48 -04:00
Davide P. Cervone
3ee58a18a5 Merge branch 'issue906' into develop. Issue #906. 2014-09-14 09:18:56 -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
6ed822313f Set the internal bounding box data properly for mpadded elements. Resolves issue #917. 2014-09-13 15:29:49 -04:00
Davide P. Cervone
ce76662083 Have zoom box properly sized for tagged equations in NativeMML output. Resolves issue #918. 2014-09-13 15:26:11 -04:00
Davide P. Cervone
e0a81d5f7c Force displaystyle and scriptstyle to be included in toMathML output, since the defaults for these are complicated. Resolves issue #912. 2014-09-11 13:53:49 -04:00
Davide P. Cervone
e2e94d3c45 Check for undefined rather than false when deciding which attributes to allow for \mmlToken. Resolves issue #913. 2014-09-11 13:14:38 -04:00
Davide P. Cervone
98e3f098bd Add rules to mtable to properly handle displaystyle and scriptlevel as described in the MathML spec. Resolves issue #839. 2014-09-11 12:52:10 -04:00
Davide P. Cervone
e8c7ade7c4 Allow comma-separated parameters in \mmlToken. Resolves issue #906. 2014-09-11 08:34:26 -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
f307196e1a Merge branch 'issue490' into develop. Issue #490. 2014-09-11 06:57:47 -04:00
Davide P. Cervone
c30dd6647b Merge branch 'issue829' into develop. Issue #829. 2014-09-11 06:50:13 -04:00
Davide P. Cervone
0a89bc1ac5 Merge branch 'issue800' into develop. Issue #800. 2014-09-11 06:49:30 -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
a3fbae1037 fix min width of tables (em's inside are different from em's outside). 2014-09-10 19:59:34 -04:00
Davide P. Cervone
acd5857a99 Use alignment function for mtable with labels as well. 2014-09-09 20:07:07 -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
612e622e0b Add an empty <mo> to nested <munderover> used for overline and friends to avoid being an embellished operator that gets movablelimits. Resolves issue #490. 2014-09-09 12:35:00 -04:00
Davide P. Cervone
cfc6fa2ae0 Make fences use empty <mo> for blank delimiters so the result will not be an embellished operator. Also resolves issue #775. 2014-09-09 11:51:22 -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
82d0ea22c2 Fix a conflict with noReflows and mtextFontInherit. 2014-09-08 17:49:47 -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
14fd3918ed Use delimitershortfall and delimiterfactor for stretching vertical delimiters. Resolves issue #829. 2014-09-08 15:23:42 -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
ffd71440e6 Merge branch 'issue898' into develop. Issue #898. 2014-09-04 05:55:52 -04:00
Davide P. Cervone
8ddeed3a3c Merge branch 'issue902' into develop. Issue #902. 2014-09-04 05:55:18 -04:00
Davide P. Cervone
a27d83444f Merge branch 'issue903' into develop. Issue #903. 2014-09-04 05:52:20 -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
5de7fdea28 Add space characters to STIX font data for HTML-CSS output. 2014-09-03 10:36:13 -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
56c2da92d5 Add font data for spaces from U+2000 to U+200B. Resolves issue #898. 2014-09-03 10:22:22 -04:00
Davide P. Cervone
6104e90859 Make \eqalignno and \leqalignno use mlabeledtr so numbers are positioned properly. resolves issue #902. 2014-09-02 10:45:44 -04:00
Davide P. Cervone
9ecb67ec22 Add minimal support for \hfill (just to handle column alignment in matrices and arrays). Issue #903. 2014-09-02 10:26:45 -04:00
Davide P. Cervone
96cf80d775 Allow \limits and \nolimits to be used between or after the super- and subscripts. Report errors for double super- and subscripts for munderover constructs. Make \underbrace and \overbrace allow \limits. Resolves issue #901. 2014-09-02 08:48:50 -04:00
Davide P. Cervone
4a4d88c26f Merge branch 'no-reflows' into develop 2014-09-01 14:13:52 -04:00
Davide P. Cervone
210d336e90 Merge branch 'issue826' into develop. Issue #826. 2014-09-01 14:08:15 -04:00
Davide P. Cervone
302e28cd38 Fix incorrect TeX class for \buildrel. Resolves issue #900. 2014-08-28 19:04:33 -04:00
Davide P. Cervone
467e59a484 Change default for noReflows to true, and add it to default.js 2014-08-28 19:00:30 -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
d5d1fbdf50 Merge branch 'issue375' into develop. Issue #375. 2014-08-24 09:57:04 -04:00
Davide P. Cervone
384964dfe1 Merge branch 'issue323' into develop. Issue #323. 2014-08-24 09:56:38 -04:00
Davide P. Cervone
6d283451fd Add support for \{, \} and \\ inside \text{}, since {, }, and \ are used by MathJax in determining the extent of the \text box. This helps with issues #375 and #790. 2014-08-22 15:44:03 -04:00
Davide P. Cervone
60f197f16c Disable MathPlayer for IE10 and above. 2014-08-22 13:31:55 -04:00
Davide P. Cervone
89c6f10cea Use \bigg or \big for the delimiters for \binom and other such constructs, rather than stretchy delimiters, as is done in TeX. Resolves isue #776. 2014-08-22 11:47:04 -04:00
Davide P. Cervone
58c20a9a4c Merge branch 'issue826' into develop. Issue #826. 2014-08-21 16:27:15 -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
1cd23252c1 Fix problem with percentage width being used too many times in HTML-CSS output. Resolves issue #832. 2014-08-20 09:30:04 -04:00
Davide P. Cervone
0104a90463 Merge branch 'issue845' into develop. Issue #845. 2014-08-20 07:59:01 -04:00
Davide P. Cervone
a5375851ee Merge branch 'issue805' into develop. Issue #805. 2014-08-20 07:56:44 -04:00
Davide P. Cervone
42c0f3243e Merge branch 'issue877' into develop. Issue #877. 2014-08-20 07:56:24 -04:00
Davide P. Cervone
71444850ca Force separate web font names for bold, italic in WebKit. Resolves issue #845. 2014-08-19 16:58:22 -04:00
Davide P. Cervone
34c723aa9e Prevent empty annotation as first child of semantics element from producing an error. Resolves issue #805. 2014-08-19 16:57:27 -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
cd5a06d347 Forgot to do the corresponding change in SVG output. Issue #891. 2014-08-19 16:53:47 -04:00
Davide P. Cervone
b33ed4c54b Update use of RegExp.$n to account for Firefoxs change from empty string to undefined for unmatched groups. Resolves issue #891. 2014-08-19 13:35:11 -04:00
Davide P. Cervone
6ba49d616e Merge branch 'issue856' into develop. Issue #856. 2014-08-19 09:04:05 -04:00
Davide P. Cervone
0507240c3c Merge branch 'issue889' into develop. Issue #889. 2014-08-19 09:01:25 -04:00
Davide P. Cervone
4fb5c5e4e5 Allow commas in place of decimals in TeX dimensions. Resolves issue #856. 2014-08-18 14:09:05 -04:00
Davide P. Cervone
0710cca048 Fix spacing of open delimiter from \left...\right. Issue #889. 2014-08-18 12:54:34 -04:00
Davide P. Cervone
4db6b017ee Make px-per-inch configurable and use 72dpi (pt = px in this case) 2014-08-18 11:29:21 -04:00
Davide P. Cervone
72a6a670bf Add ability to process units of px in \\[...] (not particularly accurate, however). Issue #890 2014-08-18 11:09:09 -04:00
Davide P. Cervone
8726bd52a5 Merge branch 'DOMfilterHooks' into develop 2014-08-18 10:01:01 -04:00
Davide P. Cervone
b41981b3b3 Merge pull request #887 from dpvc/issue847
Don't remove entities or newlines from <annotation> elements.
2014-08-17 15:54:09 -04:00
Davide P. Cervone
1aa86d7cf6 Add noReflows flag to prevent taking measurements that cause reflows, when possible. This provides a 30 to 40% speed improvement, but can cause poor results in some browsers. 2014-08-17 14:14:39 -04:00
Davide P. Cervone
4ad33386ef Remove styling of preview (left over from use as an input postfilter) 2014-08-16 13:00:26 -04:00
Davide P. Cervone
f0c0c6386e Properly handle callbacks returned by pre- and postfilter hooks. 2014-08-16 12:58:51 -04:00
Davide P. Cervone
3463017f85 Change .bbox to .CHTML to prevent conflicts with other output jax 2014-08-16 08:27:02 -04:00
Davide P. Cervone
0864dfcd79 Remove commas that confuse IE8, work around IE8 problem with insertBefore when second argument is negative, fix mspaces with negative width, and add a hack to avoid negative spaces after \int to adjust for different spacing between CM and Times fonts. 2014-07-29 06:49:24 -04:00
Davide P. Cervone
781689e7e4 First version of CommonHTML output jax 2014-07-28 17:42:51 -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
44ee2cf762 Don't remove entities or newlines from <annotation> elements. Resolves issue #847. 2014-06-24 17:23:14 -04:00
Davide P. Cervone
d06675ae89 Mark SVG spans as MathJax ones properly. 2014-06-24 16:40:52 -04:00
Davide P. Cervone
bbb5f6084b Put back mtdWidthBug for FF since it is still not right. Issue #813. 2014-06-12 10:15:32 -04:00
Davide P. Cervone
1a895e2a7c Update version numbers, repack, and recombine 2014-06-12 05:53:13 -04:00
Davide P. Cervone
12313a6629 Add missing array in signal data 2014-06-08 21:09:00 -04:00
Davide P. Cervone
f9afa15ecc Correct ID for global glyph lookup 2014-06-08 21:08:31 -04:00
Davide P. Cervone
6dfaf0e464 Add comments 2014-06-08 21:00:01 -04:00
Davide P. Cervone
d92ae61db1 Fix variable reference turned up by packer 2014-06-01 10:54:47 -04:00
Davide P. Cervone
7c47e03240 Merge branch 'stretchy' into v2.4-beta 2014-06-01 10:26:26 -04:00
Davide P. Cervone
d24b750cbf Don't add stretchy=dalse if it is not needed 2014-05-30 12:25:01 -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
8eb029478e Fix bounding box problem in Firefox with stretchy delimiters (and remove alignment hack that doesn't seem to be needed any longer). resolves issue #729. 2014-05-30 12:15:25 -04:00
Davide P. Cervone
a314139f59 Merge branch 'issue814' into v2.4-beta. Issue #814. 2014-05-29 11:56:07 -04:00
Davide P. Cervone
7a9833becd Add semantics annotation to NativeMML output. This is done in the NativeMML output jax rather than the input jax so that it can be done for any input format (that provides an encoding for it). Also, it avoids having the Show As MathML output include the annotation. Resolves issue #814. 2014-05-28 10:30:03 -04:00
Davide P. Cervone
e1f4656783 Remove some NativeMML work-arounds for FF >= 29 (apparently fixed in this version). Resolves issue #813. 2014-05-28 06:02:26 -04:00
Davide P. Cervone
0ebff03dc1 Merge branch 'issue820' into v2.4-beta. Issue #820. 2014-05-27 15:18:55 -04:00