Commit Graph

337 Commits

Author SHA1 Message Date
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
462be1eaeb Make sure that <mo> with minsize or maxsize set are stretched. 2014-04-25 17:31:11 -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
c548a7f0a6 Fix incorrect use of TeX_factor for relative sizes. 2014-04-21 05:59:18 -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
6ba5f2a624 Make absolute sizes scale when zoomed. Resolves issue #460. 2014-04-10 20:48:28 -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
1956063ecc Merge remote-tracking branch 'dpvc/issue751' into develop. Issue #751. 2014-03-18 11:50:34 -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
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
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
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
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
6b6623bc5c Merge branch 'issue473' into develop. Issue #473. 2014-02-14 08:32:48 -05:00
Davide P. Cervone
f01d347bb1 Merge branch 'issue684' into develop. Issue #684. 2014-02-14 08:30:28 -05:00
Davide P. Cervone
a3fd08bb7a Add text-indent:0 to SVG and HTML-CSS output. Resolves issue #473. 2014-02-13 14:29:38 -05:00
Davide P. Cervone
002917e559 Make remapping from REMAP and variant.remap work the same, and when string value is used, go back and check for variant changes again. Resolves isse #684. 2014-02-13 06:55:59 -05:00
Davide P. Cervone
ebdbe6f04d Chrome 32 doesn't load bold-italics properly, so use FontFaceBug to get around that. Issue #735. 2014-02-12 11:02:03 -05:00
Davide P. Cervone
7bf7ffef3d Merge branch 'hotfix-2.3' into develop. (This not merged into master,
but I don't want to run into merge conflicts later on with develop.)
2014-02-10 09:48:43 -05:00
Davide P. Cervone
bcceb08590 Add \texttt and \textsf macros, and make them work with mtextFontInherit. Resolves issue #459. 2014-02-09 13:45:58 -05:00
Davide P. Cervone
2afb80176c Merge branch 'issue681' into develop. Issue #681. 2014-02-08 11:28:03 -05:00
Davide P. Cervone
ba238a6393 Fixed accidental switching of true and false when testing for local font. Issue #681. 2014-02-08 11:27:36 -05:00
Davide P. Cervone
25d6ce9f65 Merge branch 'issue730' into develop. Issue #730. 2014-02-07 10:06:13 -05:00
Davide P. Cervone
3fc0a5762b Merge branch 'issue517' into develop. Issue #517. 2014-02-07 10:03:10 -05:00
Davide P. Cervone
cdcc04d521 Merge branch 'issue580' into develop. Issue #580. 2014-02-07 10:01:53 -05:00
Davide P. Cervone
f1f109b586 Remove redundent check (if span is null, then div will be null, so only need to check for div). Issue #730. 2014-02-07 09:39:56 -05:00
Davide P. Cervone
8dc99cef2d Add min and max width and height resets to CSS where appropriate. Resolves issue #517. 2014-02-06 15:20:19 -05:00
Davide P. Cervone
57d85a4f69 Fixed typo in 'important'. 2014-02-06 15:15:46 -05:00
Davide P. Cervone
4f10613b2a Add '!important' to CSS for display property. Resolves issue #580. 2014-02-06 14:31:17 -05:00
Davide P. Cervone
6c50f1dae8 Clear font test div so that its width doesn't affect the page size. resolves issue #681. 2014-02-06 14:02:41 -05:00
Davide P. Cervone
3b35ca9e16 Add more tests to check that the math is still in the page. Should resolve issue #730 (though we don't have their page and can't really test it). 2014-02-06 13:18:04 -05:00
Davide P. Cervone
65cc50ac5c Fixed font name table to work on Windows as well as Macs with the new web fonts installed locally 2014-01-13 15:49:16 -05:00
Davide P. Cervone
39527d2a34 Fix font names in font-test data so that local versions of the web fonts can be detected. This still has to be tested on Windows and Linux. Issue #711. 2014-01-08 13:32:26 -05:00
Davide P. Cervone
c54ac49108 Scale axis sizes properly for scripts. Issue #703. 2014-01-08 11:44:23 -05:00
Frédéric Wang
3fee31b7e4 Address review comments #627 2013-10-21 10:04:39 +02:00
Frédéric Wang
a2046c05a3 Restore the direction=ltr on the MathJax containers. #627 2013-10-18 14:36:14 +02:00
Frédéric Wang
932b7e8f7c Experimental Bidi branch. #474, #/610, #627 2013-10-18 10:04:47 +02:00
Frédéric Wang
1ad11f6e89 New branch for issue #489 ; regenerate the data. 2013-10-08 11:43:30 +02:00
Davide P. Cervone
2755cbd037 Make web font loop into an extension (first draft) 2013-10-05 08:21:53 -04:00
Davide P. Cervone
a012354f38 Add support for matching web fonts in HTML-CSS. Change the names of the paramters that control it in NativeMML (so both have the same names). Add a global matchWebFonts option to control whether to do the loop to check for web fonts (off by default). Resolves more of issue #558. 2013-09-29 19:44:15 -04:00
Davide P. Cervone
c05ab62ecc Add config option for matching font heights in NativeMML and HTML-CSS output (can't do it for SVG, since we aren't using native fonts) 2013-09-29 08:51:49 -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
9394d32571 Handle empty child nodes better. 2013-04-30 15:24:59 -04:00
Davide P. Cervone
b8561b07bf Merge branch 'localization' into develop 2013-04-29 19:25:03 -04:00
Davide P. Cervone
4f28b81b08 Merge branch 'issue428' into develop
Resolves issue #428.
2013-04-29 16:28:33 -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
d09d4d7067 Merge branch 'issue449' into develop
Resolves issue #449.
2013-04-29 16:09:07 -04:00
Davide P. Cervone
62236bb26f Merge branch 'issue364' into develop
Resolves issue #364.
2013-04-29 16:04:18 -04:00
Davide P. Cervone
de15c6c514 Fixes to make zoom work properly with expressions that have full width (e.g., tagged equations). 2013-04-29 14:06:48 -04:00
Davide P. Cervone
d6b6aa8111 Add min-width to displayed equations with labels so that they cause their containers to have non-zero width (like when they are in a table cell). Resolves issue #428. 2013-04-29 10:48:45 -04:00
Davide P. Cervone
9752fd6e11 Add HTMLCSS.parentNode() that returns a span's parentNode, skipping over <a> tags. Resolves issue #364. 2013-04-28 17:31:34 -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
594043e330 Use ems (rounded to nearest pixel) for Chrome. Rounding makes the placement work more reliably, while still being in relative units. Resolves issue #443. 2013-04-22 08:26:38 -04:00
Davide P. Cervone
debc24047f Make final math size be in relative units so that it prints even if print media has a different font size. Resolves issue #386. 2013-04-17 17:21:09 -04:00
Davide P. Cervone
535c033e24 Handle HTML snippets better, and fix up messages in FontWarnings and v1.0-warning extensions. Fix French menu items and a few others (thanks Fred). Fix scale-all-math dialog. 2013-04-05 18:45:50 -04:00
Davide P. Cervone
660f38959a Make constant messages be translated when they are used rather than when they are defined. Rework About box, add menu ID's. Make TeX.Error() and MathML.Error() handle localization. Break up Fred's French data into separate files. Make localization data load on demand. Other miscellaneous updates. 2013-04-03 17:24:14 -04:00
Davide P. Cervone
5709ab189b Merge remote-tracking branch 'fred/issue365' into develop
Resolves issue #365.
2013-03-21 09:17:55 -04:00
Davide P. Cervone
a0e0567028 Merge remote-tracking branch 'fred/issue366' into develop
Resolves issue #366.
2013-03-21 09:12:10 -04:00
Frédéric Wang
883d7a9e92 Use this.HTMLzeroBBox instead of the explicit object in the HTML-CSS output. 2013-03-21 11:29:15 +01:00
Davide P. Cervone
3ab428a985 Merge remote-tracking branch 'fred/issue363' into develop
Resolves issue #363.
2013-03-20 17:13:05 -04:00
Frédéric Wang
4fdb68a080 More attempts to translate messages. 2013-02-22 13:56:52 +01: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
Frédéric Wang
b9e919499b Add a HTMLCSS.maxStretchyParts property. 2013-02-06 14:29:26 +01:00
Frédéric Wang
d3be78023d Fix Math Processing Error for msubsup/msub/msup element. 2012-12-26 15:27:55 +01:00
Frédéric Wang
b7bf3be64e workaround for issue366: limit the number of repetition to build stretchy chars in HTML-CSS 2012-12-26 12:23:21 +01:00
Davide P. Cervone
235c5dc40b Fix problem with table frames in IE with zero-height tables. Also fix problem with HTMLboxChild when child is is empty and the container doesn't have a bbox. Resolves issues found by Fred's test framework. 2012-10-03 06:20:57 -04:00
Davide P. Cervone
beff612f53 Use web-fonts by default for unknown browsers. Addresses issue #317. 2012-09-24 20:19:11 -04:00
Davide P. Cervone
0ed5d463e5 Merge branch 'issue217' into develop 2012-09-08 10:36:30 -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
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
0d89653706 Improve testing for parent span being correct. 2012-09-01 12:29:16 -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
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
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
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
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
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
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