Commit Graph

1214 Commits

Author SHA1 Message Date
Davide P. Cervone
dac51a9f69 Fix problem with empty scripts in SVG output. Issue #949. 2015-01-14 11:12:22 -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
cdff7d26f0 Add width CSS to semantics annotation when needed by Firefox. Resolves issue #993. 2015-01-13 10:17:36 -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
cce02ddfde Don't produce doube exponent/subscript errors for UnderOver constructs like \underline and \overbrace. Resolves issue reported on StackExchange. 2015-01-06 17:47:48 -05:00
Davide P. Cervone
9fd243d9bd Make NativeMML attributes work the same as toMathML ones (makes sure href/style/etc are passed on properly). 2015-01-05 10:57:07 -05:00
Davide P. Cervone
dfb8b48e9a Update AsciiMath jax to current version of AsciiMathML.js. Resolves issue#857. 2014-12-31 17:01:42 -05:00
Davide P. Cervone
9d153e3a11 Make sure that tagged equations get mtables with the correct displaystyle (now that displaystyle is no longer inherited, see issue #839.) 2014-12-31 10:10:50 -05:00
Davide P. Cervone
88a96372c0 Update version numbers for 2.5.0-beta 2014-12-30 18:27:01 -05:00
Davide P. Cervone
8a1db4b859 Make HTML-CSS measure the final math element so that the right amount of place is left for it (particularly a problem in Safari). 2014-12-30 18:21:05 -05:00
Davide P. Cervone
3f5730a59f Merge branch 'CHTML-preview' into develop 2014-12-30 17:55:48 -05:00
Davide P. Cervone
0c2107dc75 Force actiontype to be output even when equal to the default 2014-12-28 19:03:24 -05:00
Davide P. Cervone
519ff32aae Handle mstyle defaults properly for attribute input/output. 2014-12-28 18:03:16 -05:00
Davide P. Cervone
2ea8bf10d5 Firefox 33 implemented column and row-spacing, so don't do the hack to get around it. 2014-12-28 16:42:10 -05:00
Davide P. Cervone
0da7c458ea Don't include attributes that are their defaults in NativeMML output 2014-12-28 15:54:33 -05:00
Davide P. Cervone
edce81f691 Prevent use of id's in previews from confusing HTMLspanElement() calls. 2014-12-28 12:02:34 -05:00
Davide P. Cervone
81b87c1ea3 Fix wrong error message for double exponents 2014-12-28 07:17:47 -05:00
Davide P. Cervone
de9c66f927 Escape braces in mathPalette (avoids error with \brace). 2014-12-28 06:30:18 -05:00
Davide P. Cervone
91875b3558 Don't show attributes that don't have default values (e.g., open/close for mrow). 2014-12-28 06:29:38 -05:00
Davide P. Cervone
bdd370b037 Merge branch 'issue949' into develop. Issue #949. 2014-12-27 12:51:09 -05:00
Davide P. Cervone
8fd8bf258b Handle linebreaking in a base with empty superscript or subscript. Resolves issue #949. 2014-12-27 11:59:15 -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
301ee4f300 Merge branch 'issue950' into develop. Issue #950. 2014-12-07 07:10:09 -05:00
Davide P. Cervone
f6bf4c13e3 Merge branch 'issue931' into develop. Issue #931. 2014-12-07 07:09:49 -05:00
Davide P. Cervone
e33e00bfaf Merge branch 'issue971' into develop. Issue #971. 2014-12-07 07:09:27 -05:00
Davide P. Cervone
3cd6cf59e3 Merge branch 'issue937' into develop. Issue #937. 2014-12-07 07:08:45 -05:00
Davide P. Cervone
b937bee874 Merge branch 'issue969' into develop. Issue #969. 2014-12-07 07:08:11 -05:00
Davide P. Cervone
3f3f27005a IE9+ has a name limits of 31 for font-family, so the long names cause problems; fortunately, FontFaceBug is only needed for IE8 and below, so make that be version dependent. Resolves issue #950. 2014-12-06 20:24:41 -05:00
Davide P. Cervone
ae0f3fe3b3 Add more version information for Safari, and use Em rounding for Safari 8.0 (also 6.2, 7.1, which have the same WebKit version). Resolves issue #931. 2014-12-06 18:00:31 -05:00
Davide P. Cervone
a714a91dc6 Add a flag to Get() to look up only the inherited value, not the one from the element itself, so that toMathML() doesn't have to delete and replace the attibutes. Resolves issue #971. 2014-12-06 17:36:23 -05:00
Davide P. Cervone
252fda6762 Merge branch 'common-html' into CHTML-preview 2014-12-06 10:24:03 -05:00
Davide P. Cervone
da37204eb2 Handle moveable limits on munderover. Resolves issue #970. 2014-12-06 10:22:01 -05:00
Davide P. Cervone
2cbe3ebb92 Merge branch 'common-html' into CHTML-preview 2014-12-06 09:57:16 -05:00
Davide P. Cervone
1fe80b441a Handle <mlabeledtr> by dropping the label for now. Resolves issue #968. 2014-12-06 09:54:45 -05:00
Davide P. Cervone
bf3d52af54 Fix incorrect width for minus sign in delimiter data, and don't modify depth of the minus sign (was being done for arrow extenders, but do that for the extenders only). Resolves issue #937. 2014-12-06 08:18:42 -05:00
Davide P. Cervone
9a3f435a99 Make fractions be TeX class ORD rather than INNER (as appears to be the case with TeX, despite the claims in the TeXbook to the contrary). Also, fix a problem with getting the correct form attribute for mo elements. Resolves issue #969. 2014-12-05 20:54:15 -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
9cefee80f9 Fixes for IE7 and 8. 2014-11-17 19:42:45 -05:00
Davide P. Cervone
8c616789ef Fix some local/global variable issues detected by doing the compression. 2014-11-08 09:30:24 -05:00
Davide P. Cervone
2babc14e1b Merge branch 'issue860' into develop. Issue #860. 2014-11-02 09:27:27 -05:00
Davide P. Cervone
ff8637377f Merge branch 'issue804' into develop. Issue #804. 2014-11-02 09:26:36 -05:00
Davide P. Cervone
771fc3981e Merge branch 'issue807' into develop. Issue #807. 2014-11-02 09:25:45 -05:00
Davide P. Cervone
c1a457ff9e Merge branch 'issue912' into develop. Issue #912. 2014-10-12 16:59:12 -04:00
Davide P. Cervone
01bec60e5a Merge branch 'issue839' into develop. Issue #839. 2014-10-12 16:58:10 -04:00
Davide P. Cervone
69a57f4da4 Make displaystyle and scriptlevel be forced only if they are in the list of default properties. Resolves issue #912 better than before. 2014-10-12 16:57:18 -04:00
Davide P. Cervone
4238dc5734 Don't do the scriptlevel adjustment, as per discussion on w3c math list. 2014-10-12 10:43:49 -04:00
Davide P. Cervone
b137d2e65d Add support for mfenced, and refactor mrow code to allow reuse of some pieces. 2014-09-20 14:07:27 -04:00
Davide P. Cervone
ff970b8af0 Add fake content so that the size of the box will be normalized for text. This may have to be fixed in the future if the space causes problems (perhaps a zero-width space would be better). 2014-09-19 10:46:15 -04: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
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
Davide P. Cervone
4e3977082d Remove fonts from default VARIANT values, which where causing -smallOP to no inherit the normal fonts; this caused \int in STIX (and other fonts) not to be found, and so default to unknown character bboxes. Resolves issue #820. 2014-05-22 19:43:30 -04:00
Davide P. Cervone
b84f7772f4 Fix zoom box sizes for tagged equations in HTML-CSS and NativeMML output. Issue #824. 2014-05-22 18:04:59 -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
b2ce6ef0a0 Make fallback parser clear itself after use, so there isn't an extra <math> element left over at the end (typsetting again causes problems). 2014-05-17 13:48:44 -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
1424afb792 Fix up variable issues identified by packer 2014-05-07 16:01:13 -04:00
Davide P. Cervone
ad0d7760f0 Improve handling of removal of &nbsp; for IE in AlignBox 2014-05-07 05:29:31 -04:00
Davide P. Cervone
214a230504 Make sure svg is defined before using its width 2014-05-06 07:00:29 -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
ab3a7e429f Always use start marker in IE (fixes sizes of background colors, see mphantom color test). 2014-05-05 11:06:10 -04:00
Davide P. Cervone
0b4ee45777 Remove &nbsp; when msiePlaceBoxBug is in effect 2014-05-05 09:14:49 -04:00
Davide P. Cervone
085c80054c Add option to not show MathPlayer alert (helps with testsuite) 2014-05-05 07:55:16 -04:00
Davide P. Cervone
49ede41339 Handle MSIE padding bug properly when linebreaking mmultiscripts and when adding nulldelimiterspace wround fractions. 2014-05-04 17:46:34 -04:00
Davide P. Cervone
1e9dcb81f8 Mark functions that are turned into TEXCLASS.OP so that spacing can be improved for things that look like \left...\right. 2014-05-04 15:27:39 -04:00
Davide P. Cervone
09ce98092b Move generic font and fontdata to main jax object so that we are sure to have one (it will be overwritten when the actual font data are loaded). 2014-05-04 15:24:49 -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
7f509db1b5 Remove extra space in width (Firefox doesn't process it correctly). 2014-04-25 12:32:58 -04:00
Davide P. Cervone
75ffd88dc1 Add DOMfilterHooks to MathML input jax. 2014-04-25 11:22:23 -04:00
Davide P. Cervone
3837d8db0e Make Chrome > 32.0 get bold-italic correctly. Issue #735. 2014-04-22 06:30:55 -04:00
Davide P. Cervone
6d6cb37923 Merge branch 'issue763' into develop. Issue #763. 2014-04-21 19:24:19 -04:00
Davide P. Cervone
21282b683f Merge branch 'issue794' into develop. Issue #794. 2014-04-21 19:23:38 -04:00
Davide P. Cervone
2b9b4054f1 Take fixphi into account when fixing the phi and varphi characters. Issue #353. 2014-04-21 19:20:23 -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
521e6c9fda Remove extra level of nesting from \textit, \textbf, etc. 2014-04-21 15:24:30 -04:00
Davide P. Cervone
f54a8ebaaa Fix problem where forced linebreaks could cause lines to disappear (due to recent changes to the linebreaking algorithm). 2014-04-21 09:52:59 -04:00
Davide P. Cervone
c548a7f0a6 Fix incorrect use of TeX_factor for relative sizes. 2014-04-21 05:59:18 -04:00
Davide P. Cervone
04295783bc Make sure \bmod gets space even in scripts. Resolves issue #794. 2014-04-21 05:57:10 -04:00
Davide P. Cervone
25bab8f05c Make \newenvironment perform the end substitution BEFORE testing if \end matches the corresponding \begin. This allows \newcommand to use \begin and \end in the substititions. Resolves issue #793. 2014-04-20 14:45:54 -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
Davide P. Cervone
c33e0f06b8 Fix scaling for SVG (similar to HTML-CSS fixes). Issue #703 2014-04-09 16:00:10 -04:00
Davide P. Cervone
239cfe33e5 Fix a few bugs with scaling in HTML-CS mode. 2014-04-09 15:59:43 -04:00
Davide P. Cervone
defe996cf7 Fix mathsize in HTML-CSS output so that it acts as a zoom (spaces, math axis, etc, are all scaled). Issue #703. 2014-04-09 13:54:56 -04:00
Davide P. Cervone
a47b1fa009 Merge remote-tracking branch 'dpvc/issue687' into develop. Issue #687. 2014-03-23 05:48:38 -04:00
Davide P. Cervone
309dbc5a4a If a break occurs at a space or operator that has non-zero width, don't remove next element's initial spacing. 2014-03-21 16:54:10 -04:00
Davide P. Cervone
12f969593d Remove initial space after a linebreak properly. Resolves #687. 2014-03-21 06:58:46 -04:00
Davide P. Cervone
2bb627844f Added support for linebreaking of mmultiscripts. Resolves issue #617. 2014-03-21 06:13:34 -04:00
Davide P. Cervone
283cff4289 Merge remote-tracking branch 'dpvc/issue763' into develop. Issue #763. 2014-03-20 05:50:04 -04:00
Davide P. Cervone
a12a0e5918 Fix unitless width and height in HTML-CSS mglyph, and fix aspect ratio when only one is specified in SVG output. Resolves issue #763. 2014-03-19 16:49:23 -04:00
Davide P. Cervone
13d79045b5 Add check that font name is valid. Resolves issue #615. 2014-03-19 12:05:33 -04:00
Davide P. Cervone
0f659f5b3e Add support for dotted borders. Resolves issue #770. 2014-03-18 12:54:29 -04:00
Davide P. Cervone
6ed8a76d5e Merge remote-tracking branch 'dpvc/issue387' into develop. Issue #387. 2014-03-18 12:18:51 -04:00
Davide P. Cervone
24b57ec75e Fix problem with not having all borders specified. 2014-03-18 12:17:56 -04:00
Davide P. Cervone
1956063ecc Merge remote-tracking branch 'dpvc/issue751' into develop. Issue #751. 2014-03-18 11:50:34 -04:00
Davide P. Cervone
8b4176fc1c Move styling from mtext to merror, and allow the styles to be specified in the configuration. Resolves #387. 2014-03-16 08:55:29 -04:00
Davide P. Cervone
63bbb8f28c Add cache-breaking values (when needed) for all javascript, font, and image files loaded from the CDN. Cache-breaking can be controlled on a file-by-file or global basis. Resolves issue #751. 2014-03-14 10:48:13 -04:00
Davide P. Cervone
cfb40e9190 Add one more font name to check for new web fonts locally. 2014-03-05 09:51:41 -05:00
Davide P. Cervone
81d9cce510 Work around stupid Fedora stix font package that incorrectly aliases all STIXGeneral fonts to STIX-Word fonts. Resolves issue #501. 2014-03-03 18:34:50 -05:00
Davide P. Cervone
4d4db67ad0 Make testCollection properly mark STIX fonts as not having the style characters, and fix testing for STIX or MathJax at beginning of font names. 2014-03-03 18:33:12 -05:00
Davide P. Cervone
ff8e052806 Simplify font selection code for SVG output. 2014-02-23 14:52:44 -05:00
Davide P. Cervone
36194fe36a Add a new fonts parameter for HTML-CSS to simplify font configuration. 2014-02-23 14:52:43 -05:00
Davide P. Cervone
4ea4816553 Simplify handling of new web fonts when selected by menu. 2014-02-23 14:52:43 -05:00
Davide P. Cervone
0d2dc7fe27 Hack to allow new web fonts to be used locally. The naming of the new fonts should be changed to use the same name for both PC and Mac formats, but that is for a future release. Still need to test Linux. 2014-02-23 14:52:43 -05:00
Davide P. Cervone
c9f50f7797 Add extra DIV to prevent Font_Test DIV from adding space to the page, even temporarily. 2014-02-22 14:14:24 -05:00
Davide P. Cervone
d553f18625 Merge branch 'issue576' into develop. Issue #576. 2014-02-22 08:33:41 -05:00
Davide P. Cervone
2de09d8121 Add a check if defaultEm is zero, and retry after a delay if it is. WebKit seems to have this happen sometimes when web fonts are used for the page (though hard to reproduce). Resolves issue #576. 2014-02-21 16:21:09 -05:00
Davide P. Cervone
3614cd1671 Merge branch 'develop' into issue703 2014-02-21 11:06:47 -05:00
Davide P. Cervone
e67c01ca0b Merge branch 'issue376' into develop. Issue #376. 2014-02-21 10:53:07 -05:00
Davide P. Cervone
e66df30f25 Merge branch 'issue743' into develop. Issue #743. 2014-02-21 10:47:16 -05:00
Davide P. Cervone
d33e7c1144 Merge branch 'issue747' into develop. Issue #747. 2014-02-21 10:46:38 -05:00
Davide P. Cervone
f38dc200fc Make annotation NOT be a token element, by adding a new isChars flag to force its contents to be a chars node rather than an mtext node (which is why it was labelled isToken originally). Resolves issue #376. 2014-02-20 15:38:14 -05:00
Davide P. Cervone
4e143688cc Add useMathMLspacing option to AsciiMath input jax. Resolves issue #743 2014-02-20 12:37:03 -05:00
Davide P. Cervone
0b3454ce25 Merge branch 'issue744' into develop. Issue #744. 2014-02-20 10:19:15 -05:00
Davide P. Cervone
6e46adc08f Merge branch 'issue547' into develop. Issue #547. 2014-02-20 10:18:45 -05:00
Davide P. Cervone
2a931136f4 Merge branch 'issue746' into develop. Issue #746. 2014-02-20 10:18:07 -05:00
Davide P. Cervone
23781aa8d6 Merge branch 'issue701' into develop. Issue #701. 2014-02-20 10:17:23 -05:00
Davide P. Cervone
4aa6fa613d Remove incorrect nodeValues for non-text nodes. Resolves issue #747. 2014-02-20 10:12:57 -05:00
Davide P. Cervone
2c303a8850 Change fuzz factor for Chrome square roots. Resolves issue #744. 2014-02-19 19:25:23 -05:00
Davide P. Cervone
7eaedb4639 Handle adding of nulldelimiterspace so taht it is properly included in the width of the fraction. Resolves issue #547. 2014-02-19 19:20:24 -05:00
Davide P. Cervone
f6bc6fa129 Make \\left...\\right be of TeX class INNER. Resolves issue #746. 2014-02-19 19:17:28 -05:00
Davide P. Cervone
1022eecd99 Merge branch 'issue719' into develop. Issue #719. 2014-02-17 11:26:20 -05:00
Davide P. Cervone
bc19088423 Prevent mo's from being stretched more often than needed (check that they aren't already the right size when matching mrow size). Also, allow TeXAtom to stretch properly when part of an embellished operator. Issue #701. 2014-02-17 11:17:29 -05:00
Davide P. Cervone
c855a35eff Don't clip delimiters that stretch farther than they are they supposed to. (This is handled by letting them extend beyond their bounding box, but that means they can overlap the rows above or below. Idealy, this should alter the heights of the rows, but that could require restretching rows when equalrows is set, and could lead to looping to try to get the table to stablize. Resolves issue #701 for now. 2014-02-17 11:15:26 -05:00
Davide P. Cervone
9733c1b614 Make empty rows be the standard height and depth; indeed make ALL rows
have at least this height and depth.  Resolves both problems in issue #719.
2014-02-16 05:58:35 -05:00
Davide P. Cervone
959218f7a9 Adjust positions of extenders for double-lined vertical arrows. (The horizontal position of the extender is off in teh fonts.) Resolves issue #476. 2014-02-15 16:44:49 -05:00
Davide P. Cervone
7313af12c2 Merge branch 'issue353' into develop. Issue #353. 2014-02-15 12:37:52 -05:00
Davide P. Cervone
46ce16d9ba Merge branch 'issue619' into develop. Issue #619. 2014-02-15 12:36:39 -05:00
Davide P. Cervone
92c1a891dd Merge branch 'issue391' into develop. Issue #391. 2014-02-15 12:35:07 -05:00
Davide P. Cervone
8c0f844333 Allow switching of phi and varphi (new fixphi configuration parameter controls this). Resolves issue #353. 2014-02-14 14:56:15 -05:00
Davide P. Cervone
b85d23d9a5 Fix incorrect index in mtable (issue #468 wasn't fixed for SVG), and make bounding box information correct for stretched character. Resolves issue #619. 2014-02-14 11:04:15 -05:00
Davide P. Cervone
86792eaf44 Merge branch 'issue707' into develop. Issue #707. 2014-02-14 10:36:18 -05:00
Davide P. Cervone
c52f0dff76 Don't use info.embellished if the SVGdata isn't available (avoids Math Processing Error). Issue #707. 2014-02-14 10:35:56 -05:00
Davide P. Cervone
3d68051118 Only set width to full for top-level math elements, and make svg.Align() handle expanding the box to accommodate larger lines. Resolves issue #391. 2014-02-14 10:02:06 -05:00
Davide P. Cervone
4cf38304ac Remove unneeded comment 2014-02-14 09:04:51 -05:00
Davide P. Cervone
8cd2eec33d Merge branch 'issue707' into develop. Issue #707. 2014-02-14 08:33:22 -05:00
Davide P. Cervone
6b6623bc5c Merge branch 'issue473' into develop. Issue #473. 2014-02-14 08:32:48 -05:00
Davide P. Cervone
5328112581 Merge branch 'issue632' into develop. Issue #632. 2014-02-14 08:32:20 -05:00
Davide P. Cervone
f01d347bb1 Merge branch 'issue684' into develop. Issue #684. 2014-02-14 08:30:28 -05:00
Davide P. Cervone
cce9256bf9 Change mo to mspace (and remove extra mo) to avoid being an embellished operator more naturally. Issue #707. 2014-02-14 07:58:01 -05:00
Davide P. Cervone
d28ab8b766 Forced explicit linebreak between text elements to not look like an embellished operator. Resolves issue #707. Note however, that Firefox treats this differently (it seems not to treat mtext as space-like in this case). 2014-02-13 20:08:49 -05:00