Commit Graph

2495 Commits

Author SHA1 Message Date
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 \&times; 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
Peter Krautzberger
391a7a6b91 composer.json author info
should correspond to copyright owner
2015-03-16 08:53:43 +01: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