Davide P. Cervone
|
3032239f7e
|
Make fraction spacing consistent with HTML-CSS and SVG output
|
2015-08-25 12:12:51 -04:00 |
|
Davide P. Cervone
|
37d7a91a69
|
Only use mathsize on token elements
|
2015-08-25 08:09:43 -04:00 |
|
Davide P. Cervone
|
bea44b3029
|
Avoid problem with empty base element
|
2015-08-24 19:32:27 -04:00 |
|
Davide P. Cervone
|
0714de5336
|
Force a little more space in fractions, and get the spacing right for \atop
|
2015-08-24 18:03:45 -04:00 |
|
Davide P. Cervone
|
b80e69967b
|
Add scaling factor to length2em computations (since containers set font-size, the absolute dimensions need to be adjusted to compensate). Make an mbase version to make that easier.
|
2015-08-24 18:00:28 -04:00 |
|
Davide P. Cervone
|
d139834179
|
Make sure mspace and mfrac set their scaling factors.
|
2015-08-24 13:56:58 -04:00 |
|
Davide P. Cervone
|
e59f6d6484
|
Make sure parents of percentage-width elements have percentage widths.
|
2015-08-24 13:11:47 -04:00 |
|
Davide P. Cervone
|
5296f1111f
|
Make mtextFontInherit take the math scaling factor into account (issue 826).
|
2015-08-24 10:59:07 -04:00 |
|
Davide P. Cervone
|
3100f10c4a
|
Don't count spacing (in paddingLeft and Right) as part of the width of an <mo> element
|
2015-08-24 10:45:47 -04:00 |
|
Davide P. Cervone
|
d400e00812
|
Handle math italic with mtextFontInherit, record unkown character axis properly, and get correct scaling for unknown characters.
|
2015-08-24 10:08:24 -04:00 |
|
Davide P. Cervone
|
6e1301e681
|
Update CHTML to get the proper node for handling horizontal stretchy characters.
|
2015-08-24 08:23:20 -04:00 |
|
Davide P. Cervone
|
966444bc31
|
Fix zoom scaling, and fix handling over overlaps on top and bottom
|
2015-08-22 12:13:15 -04:00 |
|
Davide P. Cervone
|
5f00f6facd
|
Rename mapchars to remapchars property for consistency (was wrong in mo.CHTMLcanStretch).
|
2015-08-22 10:12:03 -04:00 |
|
Davide P. Cervone
|
fc04b1943d
|
Fix typo in handling UTF-16 characters
|
2015-08-22 09:37:39 -04:00 |
|
Davide P. Cervone
|
2cce710826
|
Handle align attribute for munderover
|
2015-08-22 07:52:25 -04:00 |
|
Davide P. Cervone
|
e7961f0dd2
|
Make phantom background colors not disappear, make spaces be kept in char boxes, and handle mrow-enclosed atom in superscripts (still needs work, like TWO mrows, etc., and should be made part of mml jax).
|
2015-08-22 07:50:56 -04:00 |
|
Davide P. Cervone
|
b5d6f31252
|
Add missind 'node' to CHTMLstretchH() call.
|
2015-08-21 07:46:01 -04:00 |
|
Davide P. Cervone
|
273a96a122
|
Handle unitless linethickness in mfrac
|
2015-08-20 11:16:22 -04:00 |
|
Davide P. Cervone
|
948620fa02
|
Handle missing elements better (see issue 486)
|
2015-08-20 10:32:21 -04:00 |
|
Davide P. Cervone
|
6b399e3726
|
Remove spacing from under and over scripts (see issue 815), and handle the bbox.D value better when there are multiple elements in an mrow.
|
2015-08-20 08:50:01 -04:00 |
|
Davide P. Cervone
|
9b09bd9b2d
|
Merge branch 'variable-centers' into chtml
|
2015-08-11 12:56:52 -04:00 |
|
Davide P. Cervone
|
ed25f37e1d
|
Remove() method should remove display container if the jax is a displayed equation.
|
2015-08-10 19:49:54 -04:00 |
|
Davide P. Cervone
|
c43a5250f0
|
Handle centerline for stretchy characters, and add centerline data to font files.
|
2015-08-10 19:40:30 -04:00 |
|
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
|
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
|
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
|
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
|
d3ccf6fe89
|
Fix transforms so they work for IE9.
|
2015-04-18 10:42:21 -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
|
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
|
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
|
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
|
47928642a2
|
Add support for displayIndent and displayAlign
|
2015-04-01 13:09:49 -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
|
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
|
9b4107f3b4
|
Better spacing for munderover, and improved CHTMLdrawBBox.
|
2015-03-29 07:49:58 -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
|
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
|
a659ffd62d
|
Add mmultiscript support
|
2015-03-19 17:02:48 -04: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
|
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 |
|
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 |
|
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
|
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 |
|