Davide P. Cervone
98b748d088
First step in handling variable centerlines for fonts (still need to do stretchy characters and remove use of CENTERLINE)
2015-08-10 18:28:28 -04:00
Davide P. Cervone
d566b9b8bc
Merge branch 'issue994' into develop. Issue #994 .
2015-08-09 15:19:39 -04:00
Davide P. Cervone
3f4c47b4d7
Make maligngroup and malignmark be self-closing in MathML input, and make them produce no output in SVG mode. Resolves issue #1233 .
2015-08-09 15:07:42 -04:00
Davide P. Cervone
ac8a9564ec
Add compatibility CHTML-preview.js (it just calls the new one).
2015-08-09 15:04:36 -04:00
Davide P. Cervone
66cdd5fcab
Change CHTML-preview to FHTML-preview, and make it backward compatible.
2015-08-05 17:53:27 -04:00
Davide P. Cervone
425c9df6e9
Move old CommonHTML to be FastHTML
2015-08-05 16:39:06 -04:00
Davide P. Cervone
99d32c7416
Merge branch 'issue1230' into develop. Issue #1230 .
2015-08-05 15:03:44 -04:00
Davide P. Cervone
22364035fb
Merge branch 'issue1074' into develop. Issue #1074 .
2015-08-05 15:02:59 -04:00
Davide P. Cervone
c101f3877d
Merge branch 'issue1095' into develop. Issue #1095 .
2015-08-05 15:02:35 -04:00
Davide P. Cervone
723530ed1e
Merge branch 'issue1231' into develop. Issue #1231 .
2015-08-05 15:02:16 -04:00
Davide P. Cervone
9b6a1ae723
Change blacker to 1 since browsers now seem to handle that pretty well. Resolves issue #994 .
2015-08-05 14:50:33 -04:00
Davide P. Cervone
c22f47aace
Localize the Math Processing Error message text, and try harder to get the file and line number. Resolves issue #1230 .
2015-08-04 16:20:00 -04:00
Davide P. Cervone
70e23004ea
Work around problem with MathPlayer not being triggered by createElementNS in IE11. Resolves issue #1074 .
2015-08-04 15:05:06 -04:00
Davide P. Cervone
f3374f9c05
Merge branch 'chtml-fonts-250' into chtml
2015-08-04 11:28:20 -04:00
Davide P. Cervone
cbb5547af1
Don't collapse borders for tables (this caused actual border rules to disappear when changing sizes in Firefox). See also issue #1095 .
2015-08-04 11:21:03 -04:00
Davide P. Cervone
b1b6861a6c
Use px rather than em for frames as well. Resolves issue #1095 in Safari.
2015-08-04 09:23:03 -04:00
Davide P. Cervone
922eabdf72
Use px rather than em for rule thicknesses, and use borderTop for wide rules rather than borderLeft. This makes them less likely to disappear. Resolves issue #1095 .
2015-08-04 09:19:41 -04:00
Davide P. Cervone
4c06d67673
Make childCore use data[0].Core() if there is an inferred row (so that it matches Parent() in skipping inferred rows). Resolves issue #1231 .
2015-08-03 18:16:12 -04:00
Davide P. Cervone
e72aa99513
Handle spacing of trailing binary operators properly.
2015-08-03 18:07:14 -04:00
Peter Krautzberger
8c2ed0c91c
Merge pull request #1216 from cben/error-tip
...
Add debugging tips to error messages
2015-08-03 17:21:46 +02:00
Davide P. Cervone
5c333a8b47
Fix depth of horizontal stretchy characters to match HTML-CSS (should be based on extender as originally done, but font metrics don't really work for that with minus sign for arrows, for example).
2015-08-02 17:16:15 -04:00
Davide P. Cervone
92deaa0993
Handle WebKit problems with negative depth (again).
2015-08-02 17:01:01 -04:00
Davide P. Cervone
ead271e0e6
Change fonts from having ascent=descent to having midpoint at .25em, and adjust font handling to do offsets from that.
2015-08-02 15:14:14 -04:00
Davide P. Cervone
930e35a39d
Merge branch 'issue1225' into develop. Issue #1225 .
2015-08-02 08:55:52 -04:00
Davide P. Cervone
1de28f5a9a
Make \operatorname and \DeclareMathOperator skip \limits if it follows them. Resolves issue #1225 .
2015-07-30 09:45:45 -04:00
Davide P. Cervone
7cbea14c75
Handle braces properly in text mode when looking for matching math delimiters. Resolves issue #1224
2015-07-30 09:25:25 -04:00
Davide P. Cervone
4149a87a96
Autoload AssisitveMML if the menu item is set and the extension isn't loaded.
2015-07-24 09:25:11 -04:00
Davide P. Cervone
8d38947024
Add aria attributes for the normal and assistive output.
2015-07-24 07:20:10 -04:00
Davide P. Cervone
1dff53daa8
Make sure mml2jax doesn't process the assistive MathML.
2015-07-24 07:19:27 -04:00
Davide P. Cervone
82e0daf2c6
Add a hidden menu item that controls the AssistiveMML extension.
2015-07-23 17:09:43 -04:00
Davide P. Cervone
f0cc437b1e
Refactor code to make a separate configuration section with dynamically generated stylesheet. Use a class for the added MathML rather than explicit CSS.
2015-07-23 16:40:18 -04:00
Davide P. Cervone
d8357a2d03
Change CSS to that recommended by the Yahoo Accessibility team at https://developer.yahoo.com/blogs/ydn/clip-hidden-content-better-accessibility-53456.html
2015-07-23 15:14:02 -04:00
Davide P. Cervone
f3273f6e62
First draft of assistive MathML extension. Still needs configuration, and we need to make sure the mml2jax exteion doesn't try to process the hidden MathML.
2015-07-23 11:33:07 -04:00
Davide P. Cervone
24f0388bda
Merge branch 'issue1188' into develop. Issue #1188 .
2015-07-23 08:07:24 -04:00
Beni Cherniavsky-Paskin
6eff72ba8a
Since we probably can't give informative traceback, tell user how to obtain one.
2015-07-22 23:34:23 +03:00
Davide P. Cervone
ca53ebdd73
More fixes for #1188 to prevent empty object problems
2015-07-20 15:18:46 -04:00
Davide P. Cervone
26ebc33c37
Treat missing super- or subscript as <none/> when not properly paired in multiscripts. (Issue 1188)
2015-07-20 15:10:41 -04:00
Davide P. Cervone
d613dabd8e
Treat missing super- or subscript as <none/> when not properly paired in multiscripts. Resolves issue #1188 .
2015-07-20 15:06:37 -04:00
Davide P. Cervone
efb24b7fc2
Properly detect the extra web fonts in IE10+. Resolves issue #1211 .
2015-07-20 11:33:27 -04:00
Davide P. Cervone
d127b1bcb7
Merge branch 'issue596' into develop. Issue #596 .
2015-07-16 15:39:20 -04:00
Davide P. Cervone
f42c71feca
Merge branch 'issue956' into develop. Issue #956 .
2015-07-16 15:39:05 -04:00
Davide P. Cervone
4c8158ca36
Merge branch 'issue1028' into develop. Issue #1028 .
2015-07-16 15:38:41 -04:00
CalebKester
2dd603aa41
Update MathZoom.js with global border-box support
...
With a lot of sites using the global box-sizing it breaks the zoom box on large equations when the zoom goes wider than the screen. This fix will explicitly add content-box on this element to prevent a global override.
2015-07-16 08:44:52 -05:00
Davide P. Cervone
d70612a519
Don't need to add extra mtd for tags any longer.
2015-07-14 14:35:02 -04:00
Davide P. Cervone
a33c5d1437
Don't allow labels to overlap equations in CommonHTML mode. Because CommonHTML allows tables that fill 100% of the width, making this work for centered equations is sub-optimal as we have to leave space on both sides of the equation to balance the label width. Issue #596 .
2015-07-13 14:10:56 -04:00
Davide P. Cervone
bcdb2f1048
Don't allow labels to overlap equations in HTML-CSS mode. Because HTML-CSS allows tables that fill 100% of the width, making this work for centered equations is sub-optimal as we have to leave space on both sides of the equation to balance the label width. Issue #596 .
2015-07-13 10:52:04 -04:00
Davide P. Cervone
b9e428e2cf
Don't allow labels to overlap the equations in SVG mode. Resolves issue #596 . Some situations still may not be optimal.
2015-07-11 16:23:17 -04:00
Davide P. Cervone
fd65c2917b
Use mmultiscripts for atoms with prescripts. Resolves issue #956 .
2015-07-10 18:13:40 -04:00
Davide P. Cervone
e7c928fa3e
Handle spacing in alignedat environment (like 811 and 982). Resolves issue #1028 .
2015-07-10 11:43:23 -04:00
Davide P. Cervone
a9ab53ece8
Merge branch 'issue1085' into develop. Issue #1085 .
2015-07-09 11:27:32 -04:00
Davide P. Cervone
d2cf7edb0f
Merge branch 'issue1173' into develop. Issue #1173 .
2015-07-09 11:27:05 -04:00
Davide P. Cervone
af7bfcf8c3
Merge branch 'issue1194' into develop. Issue #1194 .
2015-07-09 11:26:07 -04:00
Davide P. Cervone
67e7351e1d
Merge branch 'issue1208' into develop. Issue #1208 .
2015-07-09 11:25:08 -04:00
Davide P. Cervone
6fd9c45c14
Add more detail to browser detection for Safari (since Windows Mobile thinks its Safari). Resolves issue #1085 .
2015-07-08 17:20:28 -04:00
Davide P. Cervone
2f37a00c6f
Use extra parentheses to avoid warning message in debug mode. Resolves at least one line from issue #1173 .
2015-07-08 17:11:58 -04:00
Davide P. Cervone
c03acb6d7d
Fix problem where automatic numbering affects \binom and friends. Resolves issue #1194
2015-07-08 17:05:57 -04:00
Davide P. Cervone
15c9159cb2
Merge branch 'issue1199' into develop. Resolves issue #1199 .
2015-07-08 15:37:49 -04:00
Davide P. Cervone
8d39915c25
Merge branch 'issue1176' into develop. Resolves issue #1176 .
2015-07-08 15:36:02 -04:00
Davide P. Cervone
cd12ba63d9
Make chunking parameters only be used when fast preview is enabled.
2015-07-08 15:30:49 -04:00
Davide P. Cervone
122ca09352
Fix problem with dot delimiter not being recognized as a delimiter because TEXDEF.delimiter[.] returns an empty string. Resolves issue #1199 .
2015-06-29 10:23:32 -04:00
Davide P. Cervone
ca6ffc7b41
Use scale of 1 if bbox.scale is not set (affects fractions, for example). Resolves issue #1072 .
2015-06-29 09:54:37 -04:00
Davide P. Cervone
a154d7ded1
Merge branch 'hotfix-2.5.3' into develop
2015-04-30 17:51:07 -04:00
Davide P. Cervone
72af812dfe
Changed the wrong version number in the previous commit.
2015-04-30 17:13:44 -04:00
Davide P. Cervone
805986318b
Change version numbers.
2015-04-30 15:27:45 -04:00
Davide P. Cervone
242c9356f5
Put off moving math in containers with display:none from the hidden div where they are typeset to their proper locations until AFTER they have been remeasured. Resolves issue #1179 .
2015-04-30 13:44:03 -04:00
Davide P. Cervone
325f149ef7
Merge remote-tracking branch 'mathjax/hotfix-2.5.2' into develop
2015-04-29 10:54:31 -04:00
Davide P. Cervone
e3f1a68bbe
Make sure that paths with scale() transforms retain the scaling when they are translated. Issue #1176 and mathjax/MathJax-node#93 .
2015-04-28 18:26:49 -04:00
Davide P. Cervone
7df7e227c5
Make sure the correct jax is passed to the postInputHooks.
2015-04-28 18:25:06 -04:00
Christian Perfect
5d3ffd40f2
fix typo which put a variable in global scope
...
missing comma meant that SETTINGS was put in global scope
2015-04-23 08:56:34 +01:00
Davide P. Cervone
e533634f37
Add a postInputHooks list so that we can attach global filters like the MathML semantic enhancement filter.
2015-04-21 17:34:48 -04:00
Davide P. Cervone
6b73beacd5
Merge branch 'issue995' into develop. Issue #955 .
2015-04-21 16:48:22 -04:00
Davide P. Cervone
d4b1fa042a
Merge branch 'issue1072' into develop. Issue #1072 .
2015-04-21 16:45:12 -04:00
Davide P. Cervone
2af7fde2d9
Merge branch 'issue1155' into develop. Issue #1155 .
2015-04-21 16:44:38 -04:00
Davide P. Cervone
9290d82858
Merge branch 'issue928' into develop. Issue #928 .
2015-04-21 16:43:56 -04:00
Davide P. Cervone
3d951361fe
Merge branch 'issue567' into develop. Issue #567 .
2015-04-21 16:43:28 -04:00
Davide P. Cervone
e22bcd1398
Merge branch 'issue1036' into develop. Issue #1036 .
2015-04-21 16:42:03 -04:00
Davide P. Cervone
d47dbd1c52
Update version numbers.
2015-04-21 11:49:54 -04:00
Davide P. Cervone
6aba7a2170
Fix handling of colored backgrounds on math elements in IE, and on mspace/mpadded elements in IE < 8.
2015-04-20 13:18:14 -04:00
Davide P. Cervone
4292f9ed6b
Don't insert mstyle in InternalMath() when not necessary.
2015-04-20 08:27:43 -04:00
Davide P. Cervone
d3ccf6fe89
Fix transforms so they work for IE9.
2015-04-18 10:42:21 -04:00
Davide P. Cervone
c2c33b634e
Fix @font-face to work with IE8.
2015-04-18 06:57:27 -04:00
Davide P. Cervone
64ed60ac51
Change how combining characters are handled so that they show up in IE but are still placed properly in Chrome (putting them over a non-breaking space got the baseline wrong in Chrome for some reason, and over a space got the width wrong).
2015-04-17 17:22:48 -04:00
Davide P. Cervone
562786da5e
Update HTML-CSS fonts to be usable by CommonHTML, and remove the CommonHTML fonts. Update @font-face to include the new formats.
2015-04-17 16:01:57 -04:00
Davide P. Cervone
0fb87f3dea
Right-justify prescripts in mmultiscript elements. Resolves issue #1072 .
2015-04-15 19:55:23 -04:00
Davide P. Cervone
8f20749a48
Add arc/fown/smile as horizontal stretchy delimiters.
2015-04-15 13:33:42 -04:00
Davide P. Cervone
6830d889e8
Add try/catch around initial browser setup, just in case there is an error. See issue #1155 .
2015-04-15 11:43:47 -04:00
Davide P. Cervone
be57176825
Add arc/fown/smile as horizontal stretchy delimiters. Issue #928 .
2015-04-15 11:17:22 -04:00
Peter Krautzberger
9263cc4506
simplify browser check
...
as per @dpvc's suggestion
2015-04-15 10:10:21 -04:00
Peter Krautzberger
c91a420b1d
fix IE version check
2015-04-15 10:10:21 -04:00
Peter Krautzberger
95c00da5ea
for #1137 : disable CHTMLpreview.js on IE<8
2015-04-15 10:10:21 -04:00
Davide P. Cervone
fc3f34c28a
Add \overparen and \underparen for creating stretchy parens above and below other elements. Issues #928 and #567 .
2015-04-15 10:08:20 -04:00
Davide P. Cervone
521d4ee513
Add roll-over from mathjax/latest to mathjax/x.y-latest for references to the CDN (to make sure that all files come from the same version). Resolves issue #1036 .
2015-04-14 16:24:27 -04:00
Davide P. Cervone
2c44d2ecac
Use correct name for maligngroup elements in toMathML output. Resolves issue #1089
2015-04-14 14:59:22 -04:00
Davide P. Cervone
6e2db6a08d
Merge pull request #1100 from mathjax/issue1088
...
Removing PNG from MathMenu and MathEvents. Issue #1088 .
2015-04-14 11:00:25 -04:00
Davide P. Cervone
b9e3761714
Merge branch 'issue1139' into hotfix-2.5.2. Issue #1139 .
2015-04-13 18:03:10 -04:00
Davide P. Cervone
7aead86339
Merge branch 'issue1152' into hotfix-2.5.2. Issue #1152 .
2015-04-13 18:02:54 -04:00
Davide P. Cervone
b474fc7f52
Merge branch 'issue1151' into hotfix-2.5.2. Issue #1151 .
2015-04-13 18:02:44 -04:00
Davide P. Cervone
feb05eb185
Merge branch 'issue1163' into hotfix-2.5.2. Issue #1163 .
2015-04-13 18:02:27 -04:00
Davide P. Cervone
55c88eb608
Fix HTML-CSS bounding boxes for annotation-xml nodes when used illegally as first semantics child.
2015-04-13 17:59:59 -04:00
Davide P. Cervone
3beda8db4e
Properly set displaystyle and scriptlevel, and make sure the contents is enclosed in a single element. Resolves both parts of issue #1152 , but at the cost of possibly redundent mstyle elements. These could be filtered out in the combineRelations() post-filter, when we can check if the displaystyle and script levels need setting.
2015-04-13 17:33:44 -04:00
Davide P. Cervone
dbe594872f
Avoid infinite loop when \mathchoice is used in munderover. Resolves issue #1151 .
2015-04-13 17:30:12 -04:00
Davide P. Cervone
4a4221b78b
Make sure that unknown characters in an mrow force the mrow to be measured. Resolves issue #1163 .
2015-04-13 17:18:07 -04:00
Davide P. Cervone
b8a48d9cd7
Properly measure final HTML-CSS output to make sure we have the right size. Resolves issue #1158 .
2015-04-13 16:15:07 -04:00
Davide P. Cervone
c5b2aa2515
Round height and depth of final SVG element to pixel size in order to try to get the baseline right. Resolves issue #995 (I hope).
2015-04-10 16:30:30 -04:00
Davide P. Cervone
ea697f335a
Make text-based close boxes appear closer to the original versions, and remove data URI for image in MathEvents. One motivatino for the change is the mobile menu close icon needs a background, which was missing in the previous version.
2015-04-09 14:58:24 -04:00
Davide P. Cervone
c994ee9994
Make zoom box handle overlaps properly, and position full-width tables better.
2015-04-08 10:48:40 -04:00
Davide P. Cervone
02066cb7cc
Handle explicit line breaks (this were being skipped if linebreak wasn't set to automatic).
2015-04-08 09:40:44 -04:00
Davide P. Cervone
24861d0205
Adjust bbox for \vecenter when it is repositioned
2015-04-03 15:37:15 -04:00
Davide P. Cervone
13e92c2813
Handle negative skips properly (have mrow append to the right).
2015-04-02 16:13:18 -04:00
Davide P. Cervone
3c47494d28
Handle empty table cells (still need to do something about setting the widths of columns with no entry in the top row).
2015-04-02 16:12:35 -04:00
Davide P. Cervone
7343e81dba
Handle combining characters so that they work in IE.
2015-04-02 14:30:45 -04:00
Davide P. Cervone
3270781b2c
Avoid crashing in IE8, but still need to make EOT fonts in order for it tow work.
2015-04-02 13:45:34 -04:00
Davide P. Cervone
7e52f9edd1
Make sure we set relative mtable widths when needed.
2015-04-01 19:11:03 -04:00
Davide P. Cervone
bfe88a01a2
Make nodes starting with 'mxj-' count as having isMathJax set.
2015-04-01 18:56:27 -04:00
Davide P. Cervone
9b37d422b4
Don't use negative depths (Safari doesn't handle it properly), so store an extra bbox parameter that gives the negative depth and adjust for it in munderover, where it makes a difference. Might want to do this in mtable as well.
2015-04-01 18:43:00 -04:00
Davide P. Cervone
b917b1a0c5
Get the font name right in the @font-face directivs. (argh)
2015-04-01 17:15:03 -04:00
Davide P. Cervone
47928642a2
Add support for displayIndent and displayAlign
2015-04-01 13:09:49 -04:00
Davide P. Cervone
cdbe31db43
Add support for linebreaking in mmultiscripts
2015-04-01 12:39:08 -04:00
Davide P. Cervone
6d637bb391
Handle linebreaking in msubsup.
2015-04-01 12:11:19 -04:00
Davide P. Cervone
2b3cb0cb0d
Add preliminary support for line breaking. Still need to handle the compound constructs like msubsup, munderover, mfenced, etc. as special cases.
2015-04-01 11:27:08 -04:00
Davide P. Cervone
4a8cb8ad5b
Don't need to do anything special to handle stretchy cores.
2015-03-30 13:57:00 -04:00
Davide P. Cervone
06534d81a1
Add support for menclose elements
2015-03-30 13:45:19 -04:00
Davide P. Cervone
e78aa248f4
Add support for maction
2015-03-30 09:41:04 -04:00
Davide P. Cervone
577b37ee60
Make mtable row and column lines extend through frame spacing even when no frame is used (consistent with HTMLCSS and SVG output)
2015-03-29 08:08:18 -04:00
Davide P. Cervone
9b4107f3b4
Better spacing for munderover, and improved CHTMLdrawBBox.
2015-03-29 07:49:58 -04:00
Davide P. Cervone
3ec5d396a3
Save the label width before changing the state.
2015-03-28 12:23:50 -04:00
Davide P. Cervone
9a5928be6e
Add fuller support for mtables and their attributes.
2015-03-28 11:39:45 -04:00
Davide P. Cervone
9b0378af9b
Don't need SCRIPTFACTOR or MJXc-script CSS now that the scaling is done explicitly.
2015-03-24 12:30:15 -04:00
Davide P. Cervone
ac30932664
Make merror use surrounding font rather than MathJax fonts, and handle size of unknown text properly.
2015-03-21 08:15:45 -04:00
Davide P. Cervone
ed7807ac36
Handle stretchy bases in mmultiscripts
2015-03-21 07:16:46 -04:00
Davide P. Cervone
51742a79cc
Copy scaling factors to new bbox in mpadded.
2015-03-21 07:16:17 -04:00
Davide P. Cervone
d2fd86b75a
If the container's width is 0, also check for max-width before looking at parent element (finds container width better).
2015-03-20 13:54:54 -04:00
Davide P. Cervone
75baf0e3ce
Add scaling to match surrounding font, add equation chunking, and fix some issues with zooming.
2015-03-20 11:20:04 -04:00
Davide P. Cervone
8dd6d3329a
Remove debugging bounding box for mmultiscripts.
2015-03-19 17:58:50 -04:00
Peter Krautzberger
8484e90345
#1100/#1088: convert MenuArrow-15.png to base64 and drop it
2015-03-19 22:20:30 +01:00
Davide P. Cervone
a659ffd62d
Add mmultiscript support
2015-03-19 17:02:48 -04:00
Peter Krautzberger
bbd05107a7
#1100 add cursor:pointer to MathJax_Menu_Close class
2015-03-19 21:10:16 +01:00
Peter Krautzberger
2abf1649ee
1100: code clean up
2015-03-19 21:03:31 +01:00
Davide P. Cervone
a4872ff48d
Handle HoverBBox (modulo getting em size mesurements)
2015-03-18 17:19:59 -04:00
Davide P. Cervone
e24c7996fe
Fix bboxes (again) when mathsize is used, and fix the ID's when zooming.
2015-03-18 17:05:11 -04:00
Davide P. Cervone
fff2255bae
Adjsut merror bounding box to match default CSS.
2015-03-18 14:54:33 -04:00
Davide P. Cervone
4ee1aa59e7
Add support for mglyph
2015-03-18 14:43:54 -04:00
Davide P. Cervone
f5103c709a
Add support for annotation-xml used illegally as first child of semantics.
2015-03-18 14:03:42 -04:00
Davide P. Cervone
ed85cf61ee
Fix HTML-CSS bounding boxes for annotation-xml nodes when used illegally as first semantics child.
2015-03-18 13:04:52 -04:00
Davide P. Cervone
640b0d5f16
Add support for <ms> element
2015-03-18 12:13:32 -04:00
Davide P. Cervone
f64e50f9eb
Use BBOX.updateFrom() in semantics, and handle mstyle with no children.
2015-03-18 11:28:17 -04:00
Davide P. Cervone
95f632a6bd
Add autoload ability and stubs for the elements that need autoloading.
2015-03-18 11:23:45 -04:00
Davide P. Cervone
ef47023ba6
Handle bold accents (and potentially, stretchy characters).
2015-03-18 11:01:37 -04:00
Davide P. Cervone
548eba8ef0
Fix regression where bounding boxes aren't adjusted for mathsize
2015-03-18 10:43:51 -04:00
Davide P. Cervone
0306af8564
Use flushText() rather than adding the text by hand.
2015-03-17 12:31:09 -04:00
Davide P. Cervone
87abfa1085
Use removedStyles when checking for font-based variant.
2015-03-17 12:27:14 -04:00
Davide P. Cervone
e971f875d4
Handle stretchy embellished operators.
2015-03-17 12:15:04 -04:00
Davide P. Cervone
6478163a39
Make mn handle italic correction and skew like mn does.
2015-03-17 07:09:06 -04:00
Peter Krautzberger
df17921e8b
WIP #1088 : change submenu indicators to a more common Unicode point
2015-03-17 11:32:38 +01:00
Davide P. Cervone
0020f2a822
Adjust CHTMLhandleScale() so that \large, etc. affect fractions and other such constructs. (Do the scaling on the mstyle element rather than the individual token elements.)
2015-03-17 06:29:50 -04:00
Peter Krautzberger
f739e64131
WIP for #1088 : switch from PNG to \×
2015-03-17 11:20:49 +01:00
Davide P. Cervone
b7868268f9
Handle mathsize, fontsize, style=font-size, setting scriptlevel, and other size changing functions. Get proper bounding boxes for these, and store the scale in the bbox object so that we can refer to it during bbox computations.
2015-03-16 19:25:27 -04:00
Davide P. Cervone
cc370bfcba
spacing can be handled within the CHTMLdefaultNode() routine.
2015-03-16 12:00:10 -04:00
Davide P. Cervone
3205a1c1e8
Handle VCENTER TeXatom.
2015-03-16 11:03:52 -04:00
Davide P. Cervone
930a959f71
Fix some bboxes that weren't converted when changing to the BBOX object.
2015-03-16 10:44:35 -04:00
Davide P. Cervone
1bfcea3c48
Support mtextFontInherit
2015-03-16 10:35:02 -04:00
Davide P. Cervone
f570364139
Break CHTMLhandleStyle() into two parts, one that sets the styles and removes the unwanted ones, and CHTMLhandleBBox() that adjustst the BBOX based on the styles. Use this to handle inheritance of font-family, font-weight, and font-style from mstyle with style attributes.
2015-03-16 09:44:43 -04:00
Davide P. Cervone
3d371041a6
Add ability to look up styles that have been removed from mstyle with a style attribute.
2015-03-16 09:43:19 -04:00
Davide P. Cervone
5d3508d830
Add support for style='font-family:...', fontfamily, fontweight, and fontstyle attributes. Cache the results in case they are used more than once.
2015-03-16 09:18:35 -04:00
Davide P. Cervone
6a81434b16
Remove font-based styles (this will be looked up later on token elements)
2015-03-15 10:40:09 -04:00
Davide P. Cervone
d31dad0e79
Adjust bounding box to accound for border and padding
2015-03-15 10:11:54 -04:00
Davide P. Cervone
edfe289983
Handle msup and msub children properly.
2015-03-15 09:25:44 -04:00
Davide P. Cervone
d3b5895468
Create a bbox object with methods for scaling, combining, etc, rather than scaleBBox, combineBBoxes, etc.
2015-03-15 08:52:01 -04:00
Davide P. Cervone
c52d2aaa0c
Add some FIXME comments.
2015-03-14 19:06:09 -04:00
Davide P. Cervone
e202cde5ed
Add support for href, class, RDFa, aria, and other attributes.
2015-03-14 19:01:21 -04:00
Davide P. Cervone
beabbc7a17
Add bevelled fraction support
2015-03-14 18:40:58 -04:00
Davide P. Cervone
35bd8e0acd
Better positioning of extender in vertical stretchy delimiters.
2015-03-14 18:15:45 -04:00
Davide P. Cervone
8ed1db868b
Add fondata-extra.js and support for it.
2015-03-14 18:08:10 -04:00
Davide P. Cervone
5107ef02dc
Don't need to add the fake nodes again, since already handled by setTeXclass() already does that. (We didn't use it initially.)
2015-03-14 17:59:47 -04:00
Davide P. Cervone
c9ee9fa242
Add font data for the rest of the MathJax fonts, and support for loading them. Currently, there is support for one extra file (not the multiple extra ones from HTML-CSS).
2015-03-14 17:43:17 -04:00
Davide P. Cervone
3443bb6016
Add new otf fonts (more formats needed), and add support for web fonts in addition to local ones
2015-03-13 18:40:10 -04:00
Davide P. Cervone
15ab276598
Move unkown character styles to fontdata.js (they are font-dependent)
2015-03-13 15:49:58 -04:00
Davide P. Cervone
c58b546ad7
Cache measurements of unknown characters so they don't have to be remeasured later.
2015-03-13 14:42:24 -04:00
Davide P. Cervone
563dd09fa7
Handle undefined characters (these need measurement,so cause reflows).
2015-03-13 13:34:29 -04:00
Davide P. Cervone
29efa89877
Fix computation of depths to not use width as the default (oops).
2015-03-13 13:12:12 -04:00
Davide P. Cervone
d786c11add
Simplify the handling of dimensions in mpadded
2015-03-12 20:01:28 -04:00
Davide P. Cervone
5f8821a0a8
Another try at getting mpadded correct (especially for boxes with small heights).
2015-03-12 19:47:38 -04:00
Davide P. Cervone
1b6393cb3d
Handle rfix in fontdata (won't be necessary if the fonts are rebuilt, but need it for now), fix spaces so that they are relative to the correct font, and make sure they come after any pending text.
2015-03-11 20:34:47 -04:00
Davide P. Cervone
a406adcb4d
Add support for space characters, and adjust fuzz to work better with Chrome.
2015-03-11 15:52:03 -04:00
Davide P. Cervone
ba50c5c690
Handle spacing via classes, get bbox right for MathML spacing, and temporarily restore table formatting.
2015-03-10 21:22:27 -04:00
Davide P. Cervone
59c9f45592
Fix some spacing, and a few minor formatting issues.
2015-03-10 20:17:33 -04:00
Davide P. Cervone
117f29096d
Fix wrong property name
2015-03-10 19:54:28 -04:00
Davide P. Cervone
1968831dd0
Use correct offset for \atop and friends
2015-03-10 19:47:27 -04:00
Davide P. Cervone
fdb10e64c4
Rework radicals to match TeX results better for nested radicals (spacing is critical, since the stretchy parts are designed to add up properly with the algorithm).
2015-03-10 19:39:09 -04:00
Davide P. Cervone
a6f9e65af3
Simplify mfrac layout. (Don't try to force the division line to be on the baseline so that it is always raised to the correct place by a vertical align of .25em; instead, just shift the whole stack appropriately. This may cause misalignment if we can't measure the parts exactly, however, but should speed things up a bit.)
2015-03-10 19:08:32 -04:00
Davide P. Cervone
d878d3add2
Don't need bbox.H and bbox.D now that ascent and descent are equal (so center is baseline).
2015-03-10 16:00:42 -04:00
Davide P. Cervone
9ed49e85e4
Alter fonts to make ascent=descent so that line-height:0 makes its axis along the baseline. That should simplify things (though it may make unknown characters harder to handle -- we'll see).
2015-03-10 13:38:23 -04:00
Davide P. Cervone
434606ae1f
Use proper spacing before msubsup.
2015-03-09 16:23:00 -04:00
Davide P. Cervone
e5a09146dd
Use proper thickness for separation of root from base.
2015-03-09 15:59:16 -04:00
Davide P. Cervone
36da633619
Implement TeX rules for radicals.
2015-03-09 15:40:26 -04:00
Davide P. Cervone
f629bfe783
Better bounding boxes for horizontal stretchy characters, and handle case where no extenders are needed.
2015-03-09 10:14:39 -04:00
Davide P. Cervone
af043917bd
Handle horizontal stretchy characters. (still need to add some font data and check overbraces when extenders aren't needed.)
2015-03-09 09:31:09 -04:00
Davide P. Cervone
1e826519af
Add vertical stretchy delimiters
2015-03-08 15:04:57 -04:00
Davide P. Cervone
7764748a63
Get position of overscript correct, and don't combine bboxes unnecessarily.
2015-03-08 09:48:49 -04:00
Davide P. Cervone
8b9c18e1b4
Only update bbox widths when the boxes exist
2015-03-07 11:18:55 -05:00
Davide P. Cervone
d6bb1f55d5
Fix \mathchoice to use renamed CHTMLcreateNode function
2015-03-07 11:12:01 -05:00
Davide P. Cervone
dc923adf8f
Fix comments at top of file.
2015-03-07 11:11:36 -05:00
Davide P. Cervone
3619421fab
Add some comments to separate the methods from one another
2015-03-07 11:00:49 -05:00
Davide P. Cervone
f9849b87d3
Convert tabls to spaces
2015-03-07 10:55:47 -05:00
Davide P. Cervone
c502910eb7
Better handling of bboxes in mfrac, msubsup, munderover, mspace.
2015-03-07 10:54:46 -05:00
Davide P. Cervone
61db5330a7
Add combineBBoxes() method, and use it in mpadded and mrow. Also use bbox.t and bbox.b to indicate the actual extent of ink (which can be altered by mpadded). This will be used in zooming to determine the size of the box needed for the actual ink. These are similar to bbox.l and bbox.r, which can be outside the width of the objects.
2015-03-06 11:57:21 -05:00
Davide P. Cervone
553a71bb44
Make sure that mphantom acts like a box with text, so that the sizing and baseline positioning are correct.
2015-03-05 15:43:36 -05:00
Davide P. Cervone
e630f1f1f2
Use original bounding box for CHTMLdimen computations in mpadded.
2015-03-05 08:04:18 -05:00
Davide P. Cervone
09bdc86660
Make msubsup one routine so that munderover can call it for moveable limits.
2015-03-05 07:59:23 -05:00
Davide P. Cervone
8f0747965c
Implement TeX spacing for super and subscripts
2015-03-05 07:39:05 -05:00
Davide P. Cervone
b8ae3b9817
Actually set the height of the under- or over-script when baseline spacing is not wanted, and make sure the proper node type is created for mover.
2015-03-04 17:35:12 -05:00
Davide P. Cervone
0ba42d10b0
Fix depth of stack when underscript depth is negative.
2015-03-04 17:10:04 -05:00
Davide P. Cervone
f3fdb12f8c
Fix accents to work in Safari (also simplifies the structure in this case).
2015-03-04 17:03:24 -05:00
Davide P. Cervone
e72eef13c5
Mark need to rework for Safari.
2015-03-04 13:09:43 -05:00
Davide P. Cervone
23b66a9ae9
Implement TeX spacing for munderover, including delta offsets, skew values, proper accents, and so on. Still need stretchy characters. Still need to fix a spacing problem with accents in Safari.
2015-03-04 13:08:06 -05:00
Davide P. Cervone
18e5a0ef6d
Rename CHTMLstretchChild to CHTMLstretchChildV, and add CHTMLstretchChildH (still to be implemented in mo).
2015-03-04 12:54:46 -05:00
Davide P. Cervone
09aebdbf27
Refactor bounding box utility routines.
2015-03-04 12:51:09 -05:00
Davide P. Cervone
96e8ce8410
Maintain skew data in bbox.
2015-03-04 12:40:28 -05:00
Davide P. Cervone
625229566f
Adjust merror CSS.
2015-03-01 18:12:45 -05:00
Davide P. Cervone
74e054397c
Give mpadded elements the correct bbox.
2015-03-01 18:04:23 -05:00
Davide P. Cervone
8de643d619
Clear all useMMLspacing flags for mfenced.
2015-03-01 17:54:41 -05:00
Davide P. Cervone
f43f94a9e1
Update mpadded to work with new custom tags and line-height
2015-03-01 14:14:29 -05:00
Davide P. Cervone
c1402235ba
Implement TeX fraction rules (still need to do bevelled fraction).
2015-03-01 12:56:17 -05:00
Davide P. Cervone
03ff8e5a25
Add TeX font parameters, and switch to TeX.axis_height rather than AXISHEIGHT. (Use in mtable will be fixed later.)
2015-03-01 10:48:53 -05:00
Davide P. Cervone
7b723003bf
Fix up some CSS, and some other minor details.
2015-03-01 10:39:13 -05:00
Davide P. Cervone
6399338521
Preliminary change to custom tag names (for easier readability, and less chance of CSS bleed-through).
2015-02-27 10:55:43 -05:00
Davide P. Cervone
8f5677f2de
Remove unwanted '+' from @font-face declaration.
2015-02-27 10:36:21 -05:00
Davide P. Cervone
a26b6426fe
Make bounding boxes for character based on line-height:0 rather than line-height:normal (the other varried too much from browser to browser and failed to match the internal dimensions). The HFUZZ and DFUZZ may need to be adjusted, and may need to be made browser specific (argh), but that might be able to be done through CSS.
2015-02-27 10:35:06 -05:00
Davide P. Cervone
a05227995c
Merge branch 'develop' into chtml. (Update to v2.5.1)
2015-02-25 18:44:54 -05:00
Davide P. Cervone
ad66602529
Merge remote-tracking branch 'dpvc/hotfix-2.5' into develop
2015-02-25 18:34:17 -05:00
Davide P. Cervone
960108c712
Fix version number of MathJax as a whole.
2015-02-25 10:59:15 -05:00
Davide P. Cervone
5f53a23e58
Force measurement of unknown characters, even when noReflows is active.
2015-02-25 10:59:01 -05:00
Davide P. Cervone
89d259dac4
Use line-height:0 to make alignments easier, and line-height:normal for character boxes. Add ascent/descent data to fonts, and use that to get correct bounding boxes for characters (requires fixing the fonts to get PC/Mac ascent/descent to be the same).
2015-02-25 10:36:53 -05:00
Davide P. Cervone
22a19a18e2
Use variables for LINEH and LINED values.
2015-02-23 14:31:08 -05:00
Davide P. Cervone
b9c5ff1d81
Get height and depth for ALL character boxes (so large ops, etc, have correct size, since line-height kills that)
2015-02-23 12:36:51 -05:00
Davide P. Cervone
8f0e833ba6
Remove integral hack that was needed for Times, and don't add TeX space to mspace elements.
2015-02-23 12:11:56 -05:00
Davide P. Cervone
adfa16e3ae
Center large ops, and add preliminary italic correction support.
2015-02-23 12:01:48 -05:00
Davide P. Cervone
909140b314
Make axis height a variable.
2015-02-23 11:26:50 -05:00
Davide P. Cervone
13dff04736
Improve handling of <mo> elements: find correct large operator font (still need to handle centering); handle accent substitution (still need to fix munderover to get spacing right).
2015-02-23 11:19:37 -05:00
Davide P. Cervone
95c029ddd3
Add some missing caches, add some space characters (so they don't have to be special cased in the text handling), and fix up some variant chaining.
2015-02-23 11:15:57 -05:00
Davide P. Cervone
3c6dcf717b
Clean up style formatting.
2015-02-23 10:02:14 -05:00
Davide P. Cervone
8e1e853346
Implement TeX spacing (as well as MathML spacing)
2015-02-23 09:55:37 -05:00
Davide P. Cervone
2837c5f114
Preliminary support for TeX fonts (currently only uses local fonts, and doesn't load data not already in the fontdata file.
2015-02-22 18:54:22 -05:00
Davide P. Cervone
b2f1a0f830
Better handling of scaling in fractions. Use a variable for the script scaling factor. Clean up some bounding box computations.
2015-02-22 18:51:21 -05:00
Davide P. Cervone
1763ac7188
Handle propagation of bounding box sizes better.
2015-02-22 10:59:35 -05:00
Davide P. Cervone
4ef56bb007
Better fraction layout (works in XHTML).
2015-02-22 10:54:33 -05:00
Davide P. Cervone
1cbf00d54d
Better handling of scriptlevel
2015-02-22 10:46:10 -05:00
Davide P. Cervone
8623acf05a
Support old-style background and color attributes
2015-02-22 10:41:13 -05:00
Davide P. Cervone
6286c63239
Fix var problems identified by YUI.
2015-02-20 09:47:47 -05:00
Davide P. Cervone
705f738228
Merge branch 'issue1053' into hotfix-2.5. Issue #1053 .
2015-02-20 09:26:26 -05:00
Peter Krautzberger
627ab61df8
Update with recent fixes from @davidcarlisle
...
Fixes #1024
2015-02-20 09:23:05 -05:00
Davide P. Cervone
f87cb5cf42
Bump version numbers for updated files
2015-02-19 17:43:07 -05:00
Davide P. Cervone
81131da3fc
Handle variant within handleText() rather than in handleToken().
2015-02-19 09:28:47 -05:00
Davide P. Cervone
201b5d5987
Merge branch 'develop' into chtml
2015-02-19 09:01:10 -05:00
Davide P. Cervone
13ebde0937
Correct computation of TeX class for maction elements (handle embellished operators correctly).
2015-02-19 08:59:23 -05:00
Davide P. Cervone
3308957304
Fix some comments.
2015-02-19 08:58:01 -05:00
Davide P. Cervone
9d8c48ec51
Fix zooming in CommonHTML.
2015-02-18 17:26:00 -05:00
Davide P. Cervone
fe0d977494
Handle padding in measured children when noReflows is used (e.g., in maction tags around operators).
2015-02-17 16:03:25 -05:00
Davide P. Cervone
8ea3a8329d
Better layout for fractions (works in xhtml).
2015-02-17 14:56:51 -05:00
Peter Krautzberger
05f9233886
Update with recent fixes from @davidcarlisle
...
Fixes #1024
2015-02-17 11:02:36 +01:00
Davide P. Cervone
e9ed0a1315
These have been moved to the mml element jax.
2015-02-15 16:09:01 -05:00
Davide P. Cervone
49c3e3a156
Don't set font-size of maction span (the elements it contains do that themselves).
2015-02-14 15:43:40 -05:00
Davide P. Cervone
15b3928891
Break HTML-CSS output into phases so that the final measurement can be done all at once. Restores timing improvements that were lost due to a change made in the testing for v2.5.
2015-02-14 15:30:37 -05:00
Davide P. Cervone
b1a2b4fe03
Don't cache the value of 'selected', since calls to isEmbellished() can be made before the expression is in place, and the values of displastyle and scriptlevel are known. Resolves issue #1053 .
2015-02-11 09:34:25 -05:00
Davide P. Cervone
cb13a059bb
Localize a variable that was accidentally global. Resolves problem 2 of #1050 .
2015-02-09 16:16:30 -05:00
Davide P. Cervone
8c9fc2122b
Make sure these extensions pas on ALL arguments to the routines they override. (Needed for fix to toHTML to allow measurements to be grouped.)
2015-02-09 12:45:18 -05:00
Davide P. Cervone
1e67bf954f
Merge branch 'issue1033' into hotfix-2.5. Issue #1033 .
2015-02-05 18:31:15 -05:00
Davide P. Cervone
9531b299d4
Make sure children of mtable are mtr or mlabeledtr (was incorrectly making an mtd instead of an mtr). Resolves issues #1006 and #1032 .
2015-02-05 16:47:17 -05:00
Davide P. Cervone
6d6720ecf5
Don't convert delimiters to unicode in \genfrac (since that is now done by \bigg and \big later on). Resolves issue #1033 .
2015-02-05 16:42:46 -05:00
Davide P. Cervone
106283ff72
Fix more var issues (noted by YUI compression)
2015-01-29 10:57:05 -05:00
Davide P. Cervone
bc8d472f2f
Fix more var issues (noted by YUI compression)
2015-01-29 10:55:05 -05:00
Davide P. Cervone
964f7b4500
Fix var issues (noted by YUI compression)
2015-01-29 10:38:05 -05:00
Davide P. Cervone
737fbc01df
Fix var issues (noted by YUI compression)
2015-01-29 10:34:58 -05:00
Davide P. Cervone
e4982cb703
Fix unneeded variable (noted by YUI compression)
2015-01-29 10:32:36 -05:00
Davide P. Cervone
714b9702fa
Fix use of var and a few undefined variable names (noted by YUI compression)
2015-01-29 10:24:28 -05:00
Davide P. Cervone
f5c10288dd
Update copyright dates.
2015-01-29 10:21:06 -05:00
Davide P. Cervone
31fcf19d92
Update file versions to 2.5.0. Ready for release!
2015-01-28 14:49:36 -05:00
Davide P. Cervone
0433a7b0ee
Some fixes to get things to work in older IE versions.
2015-01-28 14:46:15 -05:00
Davide P. Cervone
85f9612242
Add handling of CommonHTML to noErrors.js. Issue #1021
2015-01-28 11:45:01 -05:00
Davide P. Cervone
da8b1ea1ff
Make super- and subscripts respect height of stretched characters.
2015-01-28 11:43:19 -05:00
Davide P. Cervone
5b232c93e8
Fix problem with width of equations with line breaking.
2015-01-27 08:17:00 -05:00
Davide P. Cervone
477903cc79
Fix problem with positioning of colored rectangles (when combined combitionings add up to zero).
2015-01-27 08:16:20 -05:00
Davide P. Cervone
94b7c4243b
Don't set overlay W/H if it has already been removed (IE8).
2015-01-26 15:19:18 -05:00
Davide P. Cervone
90af9db319
Fix NativeMMLelement to work with IE8 and below when MathPlayer isn't in place.
2015-01-26 12:03:43 -05:00
Davide P. Cervone
dd3da20704
Change 0em to 0 to make reftest for 776 easier.
2015-01-25 12:38:48 -05:00
Davide P. Cervone
ecc8e7c350
Change from setting form=infix to adding an empty <mi>, since MathML spacing and TeX spacing are slightly different. Issue #811 .
2015-01-25 11:46:16 -05:00
Davide P. Cervone
1bb9758dc8
Trap errors with document.namespace (it crashes IE10 in standards mode).
2015-01-24 15:45:09 -05:00
Davide P. Cervone
646a977b8c
Update version to beta-4
2015-01-24 13:48:49 -05:00
Davide P. Cervone
f6b374813f
Merge branch 'issue1018' into develop. Issue #1018 .
2015-01-24 13:38:00 -05:00
Davide P. Cervone
20e1e01735
Merge branch 'issue1016' into develop. Issue #1016 .
2015-01-24 13:37:41 -05:00
Davide P. Cervone
8f9d982af6
Scale displayIndent to HTML size, since the shift is outside the font-size scaling. This was required by the change to issue 769. (Issue #768.)
2015-01-24 05:15:21 -05:00
Davide P. Cervone
efa443ce65
Check for toCommonHTML first, and allow errors to propagate (restarts should restart, not be trapped here). Resolves issue #1018 .
2015-01-23 12:45:26 -05:00
Davide P. Cervone
cd235d5b0e
Handle background color properly when there is an indentshift.
2015-01-23 11:31:17 -05:00
Davide P. Cervone
646568650e
Handle head properly in another location when looking for script tags. Issue #1016 .
2015-01-22 11:02:58 -05:00
Davide P. Cervone
b86a77bee3
Merge remote-tracking branch 'dpvc/develop' into develop
2015-01-22 10:16:31 -05:00
Davide P. Cervone
08cb7160f5
Fix scaling of indentshift in HTML-CSS; since is outside the font-size change, it doesn't need HTMLCSS.scale.
2015-01-22 10:15:12 -05:00
Davide P. Cervone
237635132a
Use document.head when available, and look up scripts via namespace if not found without it. Resolves issue #1016 .
2015-01-22 10:09:21 -05:00
Davide P. Cervone
af8efeafd5
Merge remote-tracking branch 'dpvc/develop' into develop
2015-01-21 08:54:00 -05:00
Davide P. Cervone
598c1e7c07
When closing table cells, get new table pointer. Resolves issue #1013 .
2015-01-20 14:21:34 -05:00
Christian Perfect
e5f69e3ed2
fix typo in helpdialog.js
2015-01-20 16:49:16 +00:00
Davide P. Cervone
4e9a33e256
Set sh and sd on svg object (not mml object).
2015-01-17 14:00:28 -05:00
Davide P. Cervone
9f14997b79
Make \overline{\lim_{x}} have correct spacing for overline with Firefox. Issue #490 .
2015-01-17 08:25:14 -05:00
Davide P. Cervone
b30c8f2f30
Set movablelimits on the base mo not the munderover node. Issue #901 .
2015-01-16 11:18:26 -05:00
Davide P. Cervone
93fd3bfa64
Fix incorrect code for tab.
2015-01-16 10:06:41 -05:00
Davide P. Cervone
0df957f3c0
Don't escape \n, \r, or \t in toMathML text output. (Issue #847.)
2015-01-16 09:48:00 -05:00
Davide P. Cervone
d6939060ed
Don't produce error for empty annotation in CommonHTML output. (Issue #805 )
2015-01-16 08:58:26 -05:00
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
c95cb11c19
Use min-width on NativeMML zoom box for full-width tables. Issue #918 .
2015-01-15 14:18:51 -05:00
Davide P. Cervone
1b8811bf76
Add test for full-width tables in NativeMML. Issue #993 .
2015-01-15 11:38:36 -05:00
Davide P. Cervone
4adc5726f6
Merge pull request #1005 from mathjax/texvc
...
Add wikipedia-texvc extension
2015-01-15 10:45:26 -05:00
Peter Krautzberger
6ff3894316
minor corrections to #1003 as discussed there
2015-01-14 22:58:20 +01:00
Davide P. Cervone
af20e4cc1d
Merge branch 'issue949' into develop. Issue #949 .
2015-01-14 11:19:48 -05:00
Davide P. Cervone
8d6ffccb16
Merge branch 'issue991' into develop. Issue #991 .
2015-01-14 11:19:31 -05:00
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
physikerwelt (Moritz Schubotz)
cfe05db863
MediaWiki-texvc support
...
We add a conversion table that converts MediaWiki specific
markup to standard LaTeX. This approach is more or less
maitenance free, and relies on the existence some special
macros mostly originating from amsmath and amsfonts package.
In the future one could expand the macros with semantic annotation
like for instance that $\\mathbb{R}$ stands for the semantic
concept reals, if it was produced using the texvc macro $\\reals$.
2015-01-09 23:27:30 +01:00
Davide P. Cervone
ae48c34e64
Update cache breaking string.
2015-01-07 08:34:04 -05:00
Davide P. Cervone
e4265d3969
Implement toCommonHTML for \mathchoice. Resolves issue #998 .
2015-01-07 08:30:48 -05:00
Davide P. Cervone
debd0c88b6
Update cache breaking for next push to CDN.
2015-01-06 17:50:42 -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
d6b6b2e249
Fix indenting of toMathML output.
2015-01-05 11:04:55 -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
4b6a2f4ec3
Add priority 100 to label reset so that it comes after other post-filters (in particular, the CTHML-preview, which can load files). Resolves second issue in #970 .
2014-12-31 08:07:38 -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
034041e6d3
Adjust times so that the second pass doesn't take so long (we may need to tweak these further).
2014-12-30 18:20:20 -05:00
Davide P. Cervone
3f5730a59f
Merge branch 'CHTML-preview' into develop
2014-12-30 17:55:48 -05:00
Davide P. Cervone
0305716511
Allow configuration to disable CHTML-preivew, but still allow menu to override. Make loading of this page enable preview by default. Fix handling of preview color. Fix restart when CommonHTML config is loaded but jax.js isn't.
2014-12-30 17:53:20 -05:00
Davide P. Cervone
ba23831ebc
Merge pull request #806 from christianp/ctop
...
Use ctop.js instead of XSLT in Content MathML extension.
Finally getting to merge this. At long last!
2014-12-30 16:12:38 -05:00
Davide P. Cervone
ba4d1b13fe
Merge remote-tracking branch 'dpvc/develop' into develop
2014-12-30 16:09:21 -05:00
Davide P. Cervone
2f3d09cc30
Change version back so merge of ctop is clean.
2014-12-30 16:04:13 -05:00
Davide P. Cervone
8d30bda6bd
Merge pull request #979 from mathjax/issue922
...
update locales for 2.5. Issue #922
2014-12-29 11:03:39 -05:00
Peter Krautzberger
e29bd7f41e
added bcc locale; added bcc and sco in MathJax.js
2014-12-29 16:51:10 +01:00
Davide P. Cervone
5ccdf60b52
Merge pull request #964 from mathjax/issue921
...
add mml3 extension. Issue #921 .
2014-12-29 10:31:15 -05:00
Peter Krautzberger
12d8eef96b
import fixes for RTL+elementary math; source: https://code.google.com/p/web-xslt/
2014-12-29 16:14:34 +01: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
1044df8076
When processing an array of elements, don't add any that are already included in the list.
2014-12-28 07:11:34 -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
bb5f0cf279
Merge branch 'issue966' into develop. Issue #966 .
2014-12-27 12:50:44 -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
501b96c859
Save preview in script.MathJax to fix issue #975 .
2014-12-26 17:49:59 -05:00
Davide P. Cervone
fc7faf4b54
Properly handle spacing around operators in second column of aligned and gathered environments. Issue #982
2014-12-26 17:07:02 -05:00
Peter Krautzberger
f785418e8a
pull in update from ctop/mml3.xslt that adds left/\right mlongdiv notation
2014-12-17 09:19:01 +01:00
Peter Krautzberger
9c273c5be4
update locales for 2.5; fixes #922
2014-12-16 12:35:35 +01:00
Peter Krautzberger
ac50815d58
update stylesheet to pull in latest fixes from David Carlisle
2014-12-16 10:39:17 +01:00
Davide P. Cervone
a719a551e1
Merge branch 'issue972' into develop. Issue #972 .
2014-12-07 07:10:24 -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
7e395523a8
Merge branch 'issue930' into develop. Issue #930 .
2014-12-07 07:07:43 -05:00
Davide P. Cervone
54fb042b77
Fixed capitalization of \defincolor in autoload-all. Resolves issue #972 .
2014-12-07 06:58:52 -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
Peter Krautzberger
905ce5ffa8
renaming extension; pull in David Carlisle's new and improves xsl
2014-12-05 23:35:22 +01: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
ac5206fcd9
Use Hub.Rerender() rather than Hubl.Reprocess() for scaling changes. Resolves issue #944 .
2014-12-04 16:04:42 -05:00
Peter Krautzberger
1807d55d22
switch hascolspan to false() as in http://www.w3.org/Math/draft-spec/doctop.js
2014-11-27 15:29:27 +01:00
Peter Krautzberger
37fb13fb6f
fix references to content-mathml extension
2014-11-26 21:48:34 +01:00
Peter Krautzberger
55c59f0ef5
created mml3-mml2 extension for #921
2014-11-26 21:41:20 +01:00
Davide P. Cervone
142857afa2
Remove unneeded grouping from regular expression (performance improvement)
2014-11-20 09:35:56 -05:00
physikerwelt (Moritz Schubotz)
c526b2a5c5
XML-escape TeX annotation
2014-11-19 09:05:09 +01: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
ff6d6935df
Handle loading of CommonHTML jax better (do it when we detect it is not present, rather than trying to hook into the input jax require array).
2014-11-08 09:29:47 -05:00
Davide P. Cervone
d128cfbd5d
Add menu item for fast preview, and check for it in the preview code. Make sure CHTML-preview.js is loaded in MathJax.js if the menu item is selected.
2014-11-02 10:03:26 -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
a56931fff2
Fix use of HTMLCollections to work with IE8 (grrr!)
2014-08-22 14:17:55 -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
670f5809f8
Use large chunks and reduce processUpdateTime to get browser responsiveness. Remove the processing messages during output, since it will now be slower and the math is showing.
2014-08-20 14:49:29 -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
354e18df87
Don't do any delays if delay time is 0 (allows authors to go back to original functionality, if desired). Issue #872 .
2014-08-20 09:07:26 -04:00
Davide P. Cervone
b85e5a48ad
Merge branch 'issue872' into develop. Issue #872 .
2014-08-20 07:59:26 -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
b8eb8c383b
Add some short delays between input and output phases or processing so that messages can be udated, and the browser can respond to the user (in case multiple typeset calls are queued simultaneously). Resolves issue #872 .
2014-08-19 16:58:51 -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
3ca32dc64b
Merge branch 'issue873' into develop. Issue #873 .
2014-08-19 09:04:36 -04:00
Davide P. Cervone
6ba49d616e
Merge branch 'issue856' into develop. Issue #856 .
2014-08-19 09:04:05 -04:00
Davide P. Cervone
f4d56e3baf
Merge branch 'issue881' into develop. Issue #881 .
2014-08-19 09:01:59 -04:00
Davide P. Cervone
0507240c3c
Merge branch 'issue889' into develop. Issue #889 .
2014-08-19 09:01:25 -04:00
Davide P. Cervone
e1cf022d8a
Combine multiple elements into a single typesetting pass. Issue #873 .
2014-08-18 15:36:09 -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
5391986006
Allow \newenvironment to provide an optional argument. Issue #881
2014-08-18 13:46:43 -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
fb3d2c2d07
Make CHTML-preview previews inherit the surrounding color
2014-08-18 12:53:18 -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
4666badbe2
Merge branch 'issue693' into develop. Issue #693 .
2014-08-18 10:11:48 -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
8ebcd614c3
Properly handle restarts within the creation of the previews
2014-08-16 12:59:16 -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
05c7aace26
Add CHTML-preview extension that uses the CommonHTML output jax to create fast previews that are replaced (more slowly) by the normal output jax.
2014-08-16 09:26:47 -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
Peter Krautzberger
682bc7969e
fixes #863 -- math.cloneNode should be set to true
2014-07-10 12:47:30 +02: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
6ab067a14c
Switch beta.mathjax.org to cdn.mathjax.org (since https users will never get this beta MathJax.js anyway).
2014-06-01 11:37:08 -04:00
Davide P. Cervone
d92ae61db1
Fix variable reference turned up by packer
2014-06-01 10:54:47 -04:00
Davide P. Cervone
2e9b3c7c60
Make this rev=2.4-beta-2, and turn rackspace https into beta.mathjax.org (this will need to be changed to cdn.mathjax.org for the final release).
2014-06-01 10:41:27 -04:00
Davide P. Cervone
7c47e03240
Merge branch 'stretchy' into v2.4-beta
2014-06-01 10:26:26 -04:00
Davide P. Cervone
beeb356308
Merge branch 'issue729' into v2.4-beta. Issue #729 .
2014-06-01 10:25:17 -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
3a8afa4dcb
Add support for semantics annotations to toMathML, and use a menu item to control it.
2014-05-29 15:37:59 -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
7d9db89c8b
Merge branch 'issue821' into v2.4-beta. Issue 821.
2014-05-27 15:18:47 -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
71f731cbbb
Trap error reading cookies. Resolves issue #821 .
2014-05-22 18:10:35 -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
ae3197913b
Merge branch 'issue815' into v2.4-beta. Issue #815 .
2014-05-22 15:28:22 -04:00
Davide P. Cervone
6c244ce4dd
Merge branch 'issue811' into v2.4-beta. Issue #811 .
2014-05-22 15:27:44 -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
Christian Perfect
0e0444ec3f
Merge remote-tracking branch 'mathjax/develop' into ctop
...
Conflicts:
unpacked/extensions/MathML/content-mathml.js
2014-05-16 14:18:39 +01:00
Christian Perfect
82dc8af1ae
content-mathml: make it compatible with IE8; code style fixes
2014-05-16 14:15:53 +01: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
18e0b76b17
Set cache-breaking revision number.
2014-05-13 20:34:05 -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
713d536a68
Handle spacing for AMS alignments better (0 space between columns, but add space to left of operators.
2014-05-12 15:43:50 -04:00
Davide P. Cervone
48f6c06df4
More repacking and recombining (the jax.js files didn't get updated, since they don't have dates that were changed)
2014-05-07 18:59:00 -04:00
Davide P. Cervone
3b3cbeece4
Repack and recombine
2014-05-07 17:16:20 -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 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 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
db87f413bb
Avoid IE10 compatibility mode (which says v7.0) but documentMode = 9 problem with transformNode() call.
2014-05-04 15:52:53 -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
Christian Perfect
c17c4e6dfa
content-mathml extension: load config from MathJax.Hub.Config
...
Config is loaded from `MathML.content-mathml`, and extends the CToP.settings object.
2014-05-02 15:44:58 +01:00