Commit Graph

1534 Commits

Author SHA1 Message Date
Davide P. Cervone
f9dbe8b07d Merge pull request #1542 from dpvc/issue1541
Fix problems with stretching <mover> in <mtd> elements.  #1541
2016-07-08 09:14:14 -04:00
Davide P. Cervone
e75d86950f Merge pull request #1538 from dpvc/issue1364
Don't let preview width interfere with the determination of the container width. #1364
2016-07-08 09:13:01 -04:00
Davide P. Cervone
23af855cf5 Merge pull request #1534 from dpvc/full-width-fix
Make sure CHTML output stays a table-cell when focused.
2016-07-08 09:11:55 -04:00
Davide P. Cervone
4f87ff1b87 Merge pull request #1530 from dpvc/issue1478
Fix problem with Safari inserting line breaks before in-line math. #1478
2016-07-08 08:58:37 -04:00
Davide P. Cervone
4120eb146c Merge pull request #1529 from dpvc/font-fixes
Font fixes
2016-07-08 08:54:28 -04:00
Davide P. Cervone
189239a9eb Fix conflicts with develop. 2016-07-06 14:20:49 -04:00
Davide P. Cervone
cb7314d9e8 Merge pull request #1523 from dpvc/issue1468
Don't copy environment into array environments.  #1468
2016-07-06 14:03:55 -04:00
Davide P. Cervone
1c9e74a8f6 Merge pull request #1512 from dpvc/node241
Make CHTML mglyph scale image size by hand.  mathjax/MathJax-node#241
2016-07-06 14:01:23 -04:00
Davide P. Cervone
d29f299c35 Merge pull request #1511 from dpvc/issue1356
Don't convert attribute to boolean unless the default is a boolean.  #1356
2016-07-06 13:59:57 -04:00
Davide P. Cervone
07709589b1 Merge pull request #1510 from dpvc/issue1393
Prevent CSS bleedthrough for box-sizing (set by Bootstrap CSS).  #1393
2016-07-06 13:52:22 -04:00
Davide P. Cervone
c0331703f4 Merge pull request #1509 from dpvc/issue1084
Make delimiters symmetric for \left and \right.  #1084
2016-07-06 13:50:45 -04:00
Davide P. Cervone
2f1c09224a Fix line breaking to handle hrefs properly both when they are split and when they are not. Resolves issue #1022. 2016-07-06 07:43:04 -04:00
Davide P. Cervone
595d38e8af Change class to mjx-box so that width will have the proper effect (due to fix in CSS in PR #1448). Resolves issue #1543. 2016-07-05 13:18:05 -04:00
Davide P. Cervone
fb998031b6 Don't require both prevLevel > 0 and scriptlevel > 0 (either true shoudl be sufficient). Resolves issue #911. 2016-07-04 13:43:31 -04:00
Davide P. Cervone
4fdec9f911 Remove debugging code. 2016-07-04 13:36:40 -04:00
Davide P. Cervone
86165f9a3a Fix determination of line-breaing parent element. Resolves issue #1548. 2016-07-04 13:16:06 -04:00
Davide P. Cervone
ba22166399 handle case where options are not passed. 2016-07-04 12:56:53 -04:00
Davide P. Cervone
68369285fd Make fractions with linebreaks center the elements based on the natural width (not 100%) in HTML-CSS and CHTML, just as in SVG. Resolves issue #1539. 2016-07-04 12:50:10 -04:00
Davide P. Cervone
47a072fae6 Add stretchy data for U+20D7 to HTML-CSS, CHTML, SVG data for TeX and STIX fonts. Other fonts already have it. Resolves issue #1544. 2016-07-04 11:36:05 -04:00
Davide P. Cervone
0e433e2f40 Fix getNode() yet again to walk the tree properly. Also, make CHTMLcoreNode() step through inferred rows (to match what Core() does). Finally, make CHTMLaddChild() add a box of the correct type if forceChild is set. Resolves issue #1541. 2016-07-04 11:02:06 -04:00
Davide P. Cervone
3ee5ca30bb Don't let preview width interfere with the determination of the container width. Resolves issue #1364. 2016-06-23 20:37:25 -04:00
Davide P. Cervone
f2ac60f2c5 Make sure CHTML output stays a table-cell when focused. 2016-06-22 13:59:09 -04:00
Davide P. Cervone
b6504fb366 Use a new approach to aligning labels with their table rows that should reduce the round-off problems by forcing each row to the desired height, and doing the same with the labels. Resolves issue #1532 (and #1500). 2016-06-22 11:58:12 -04:00
Davide P. Cervone
94f2f20448 Fix problem with Safari inserting linebreaks for in-line math due to new width-detection scheme (linebreakSpan). #1478. 2016-06-20 18:23:18 -04:00
Davide P. Cervone
8f628e0590 Adjust height and depth of minus to match plus, and fix arrow rep to remove the extra when it is used as an arrow extender. Fix up some spacing and use shorthands for some font names. Resolves issue #1187. 2016-06-16 22:20:56 -04:00
Davide P. Cervone
1d9ba6992a Add alias for U+2206 to U+0394, and remove incorrect data from SVG files. Apparently the batik conversion added these somehow, so that should still be fixed. Resolves issue #1418. 2016-06-16 11:30:58 -04:00
Davide P. Cervone
4a4a15a4d2 Fix SVG fontdata for stretchy characters in the fontdata-extras file. Resolves issue #1421. 2016-06-16 10:27:48 -04:00
Davide P. Cervone
a2a62be374 Use U+007C and U+2016 for delimiters rather than U+2223 and U+2225. Resolves issue #1175. 2016-06-16 10:01:13 -04:00
Davide P. Cervone
913dcb5601 Remap U+007C to variant form, and vice-versa. Resolves issue #1154 2016-06-16 09:51:17 -04:00
Davide P. Cervone
61f57ed631 Fix stretch data for U+222B (integral) in STIX-Web data for HTML-CSS and SVG, and add it so local STIX data. Resolves issue #1092. 2016-06-16 08:58:49 -04:00
Davide P. Cervone
3d36b7a4ba Make minus in <mn> produce U+2212 rather than U+002D. Resolves issue #989. 2016-06-14 20:00:10 -04:00
Davide P. Cervone
dbc70acd58 Make copyEnv a shared constant. 2016-06-14 14:59:49 -04:00
Davide P. Cervone
fcda005c56 Don't copy environment into array environments. Resolves issue #1468. 2016-06-14 14:22:51 -04:00
Davide P. Cervone
947d1556ea Make left arrow use combining left arrow for accents (consistent with right arrow). 2016-06-14 13:50:38 -04:00
Davide P. Cervone
a1c40e7a02 Make left arrow use combining left arrow for accents (consistent with right arrow). 2016-06-14 13:41:32 -04:00
Davide P. Cervone
abb7084ae9 Merge pull request #1479 from dpvc/issue1478
Properly determine container widths.  Resolves issue #1478.
2016-06-08 07:32:15 -04:00
Davide P. Cervone
9779801c51 Merge pull request #1508 from dpvc/issue1023
Fix problems with \middle.  #1023
2016-06-08 07:13:05 -04:00
Davide P. Cervone
fb5505cf8a Merge pull request #1507 from dpvc/mglyph-src
Don't add a 'src' attribute (<image> uses href, not src)
2016-06-08 06:56:39 -04:00
Davide P. Cervone
5c12c99381 Merge pull request #1505 from dpvc/issue1004
Make rowlines="" and rowlines=" " be rowlines="none".  #1004
2016-06-08 06:55:00 -04:00
Davide P. Cervone
dd0d6cab3c Merge pull request #1501 from dpvc/issue1499
Allow percentage width to bubble up in bbox.updateFrom(cbox). #1499
2016-06-08 06:52:17 -04:00
Davide P. Cervone
e715e1dd99 Merge pull request #1503 from dpvc/issue1500
Handle adjusting cell heights properly. #1500
2016-06-08 06:50:58 -04:00
Davide P. Cervone
b11691eeb3 Merge pull request #1484 from dpvc/issue1469
Mark accented operators as not having movable limits.  #1469.
2016-06-08 06:49:36 -04:00
Davide P. Cervone
b2f2748c8e Merge pull request #1481 from dpvc/issue1480
Fix problem in CHTML with mmultiscripts that contain stretchy characters. #1480
2016-06-08 06:44:21 -04:00
Davide P. Cervone
559102f017 Remove unneeded parentheses. #1478 2016-06-08 06:40:20 -04:00
Davide P. Cervone
58e2717d45 Merge pull request #1459 from dpvc/issue1447
Improve getNode() so that is finds the correct node. #1447
2016-06-08 06:33:11 -04:00
Davide P. Cervone
f067eccd30 Don't unwrap mrow when created fenced elements (in case attributes have been attached to the mrow). Resolves issue #1415. 2016-06-07 16:01:23 -04:00
Davide P. Cervone
ae4f60f2df Make CHTML mglyph scale image size by hand rather than using offsetWidth and offsetHeight, since those cause reflow. This also makes it work in mathjax-node. Resolves mathjax/Mathjax-node#241. 2016-06-07 12:43:09 -04:00
Davide P. Cervone
a6b7700c18 Don't convert attribute to boolean unless the default is a boolean. Resolves issue #1356. 2016-06-07 11:25:26 -04:00
Davide P. Cervone
5b6aa4f82a Prevent CSS bleedthrough for box-sizing (set by Bootstrap CSS). Resolves issue #1393. 2016-06-07 10:45:59 -04:00
Davide P. Cervone
cfeaa8668f Mark delimters are symmetric when used with \left and \right. Resolves issue #1084. 2016-06-07 10:23:01 -04:00
Davide P. Cervone
00864b0635 surround \middle with OPEN and CLOSE TeXAtoms, so that the spacing will be consistent with TeX's version (e.g., \mathrel{}\middle|\mathrel{} will produce the right spacing). As a side effect, this resolves the problem with the quotes, sot this resolves issue #1023. 2016-06-07 10:14:51 -04:00
Davide P. Cervone
02cfa458d8 Don't add a 'src' attribute (<image> uses href, not src) 2016-06-07 10:06:18 -04:00
Davide P. Cervone
acbb444141 Make rowlines='' and rowlines=' ' be rowlines='none'. Resolives issue #1004. 2016-06-07 06:46:13 -04:00
Davide P. Cervone
2e82e8f17b Merge pull request #1485 from dpvc/issue1449
Allow line breaks within TeXAtom elements  Resolves issue #1449.
2016-06-06 16:04:24 -04:00
Davide P. Cervone
0d192ebf70 Make getJaxForMath() work even during chunking. Resolves issue mathjax/MathJax-RespEq#119. 2016-06-06 07:41:18 -04:00
Davide P. Cervone
fef425431b Handle adjusting cell heights properly. Add a 1em strut to work around issues with cells containing no text and cells that are shorter than the midpoint of the font. Resolves issue #1500. 2016-06-06 07:15:04 -04:00
Davide P. Cervone
a118ca9e82 Allow percentage width to bubble up un bbox.updateFrom(cbox). Resolves issue #1499. 2016-06-02 16:33:15 -04:00
Davide P. Cervone
c9fc3ae66b Fix up comment. 2016-05-18 12:37:23 -04:00
Davide P. Cervone
2f37edaadf Construct the script boxes in the DOM so that stretchy characters can use CHTMLnodeElement() to locate their associated DOM nodes properly. The boxes are moved into the correct places later. REsolves issue #1480. 2016-05-18 12:30:53 -04:00
Davide P. Cervone
b51e686afc Allow line breaks within TeXAtom elements Resolves issue #1449. 2016-05-17 19:20:03 -04:00
Davide P. Cervone
ab7d436bb1 Mark accented operators as not having movable limits. Resolves issue #1469. 2016-05-17 19:07:17 -04:00
Davide P. Cervone
422065a0c1 Fix CSS for IE < 8. 2016-05-17 16:56:56 -04:00
Davide P. Cervone
97ab12ea52 Properly determine container width for shrink-wrapped elements in CommonHTML. Issue #1478. 2016-05-17 15:55:07 -04:00
Davide P. Cervone
22c1cf4cb9 Properly determine container width for shrink-wrapped elements in HTML-CSS, and add the CSS from handle-floats into the standard HTML-CSS. Remove the content of the handle-floats extension. Issue #1478. 2016-05-17 15:54:33 -04:00
Davide P. Cervone
67bca32380 Properly determine container width for shrink-wrapped elements, and try to handle the problem with full-width equations being too wide when the ex-size isn't measured accurately enough. Issue #1478. 2016-05-17 15:52:50 -04:00
Davide P. Cervone
e1d430d1b3 Make getNode() non-recursive and add comments for what it does. Issue #1447. 2016-05-17 12:31:47 -04:00
Davide P. Cervone
c0c63b1e12 Merge pull request #1475 from dpvc/issue1474
Avoid error when \overset or \underset is empty.  Resolves issue #1474.
2016-05-17 11:26:36 -04:00
Davide P. Cervone
fd223636e0 Merge pull request #1462 from dpvc/issue1441
Bubble percentage widths up while line breaking in CHTML.  Resolves issue #1441.
2016-05-17 11:25:42 -04:00
Davide P. Cervone
264981846f Merge pull request #1461 from dpvc/issue1452
Make sure 0 remains 0 when rounding to pixels (plus a bit).  Resolves issue #1452.
2016-05-17 11:24:01 -04:00
Davide P. Cervone
ce4982f34b Merge pull request #1454 from dpvc/issue831
Use full location URL for xlink references in SVG <use> elements.  Resolves issue #831.
2016-05-17 11:22:57 -04:00
Davide P. Cervone
56db9c00b8 Avoid error when \overset or \underset is empty. Resolves isue #1474. 2016-05-15 09:07:51 -04:00
Davide P. Cervone
19b813a4a7 Make Volker's suggested change. Issue #1452. 2016-05-11 20:48:29 -04:00
Davide P. Cervone
e14a8516d7 Make Volker's suggested change. Issue #831. 2016-05-11 20:39:42 -04:00
Davide P. Cervone
17cd3349c7 Merge pull request #1465 from dpvc/issue1437
Don't set role in CHTML and HTML-CSS output.   Resolves issue #1437.
2016-05-11 17:24:04 -04:00
Davide P. Cervone
ba2b068281 Merge pull request #1464 from dpvc/issue1419
Make sure resetEquationNumbers is always defined.  Resolves issue #1419.
2016-05-11 17:23:00 -04:00
Davide P. Cervone
d8f89ffade Merge pull request #1460 from dpvc/issue1370
Adjust position of rule for square root when it is made via `createRule()`.  Resolves #1370.
2016-05-11 17:20:59 -04:00
Davide P. Cervone
ba600e8f35 Merge pull request #1458 from dpvc/issue1422
Fix problem with container width in SVG when math is scaled.  Resolves issue #1422.
2016-05-11 17:12:58 -04:00
Davide P. Cervone
a091415f55 Merge pull request #1457 from dpvc/issue1451
Fix problem with Plane1 not being mapped to the MathJax fonts properly.  Resolves issue #1451.
2016-05-11 17:12:02 -04:00
Davide P. Cervone
094b1391f0 Merge pull request #1456 from dpvc/issue1384
Fix problems from puzzling.SE.  #1384.
2016-05-11 17:10:02 -04:00
Davide P. Cervone
a63aa92102 Add a dummy resetEquationNumbers() function that is replaced by AMS. Resolves issue #1419. 2016-05-04 08:45:28 -04:00
Davide P. Cervone
902aa2bf7e Don't set role in CHTML and HTML-CSS output, and fix comments in other jax. Issue #1437. 2016-05-04 08:18:59 -04:00
Davide P. Cervone
715dadf23a Bubble percentage widths up while line breaking in CHTML. Resolves issue #1441. 2016-05-04 08:08:18 -04:00
Davide P. Cervone
35ca30ef4c Make sure 0 remains 0 when rounding to pixels (plus a bit). Resolves issue #1452. 2016-05-03 21:15:55 -04:00
Davide P. Cervone
d9a64a2603 Adjust position of rule for square root when it is made via createRule(). Resolves issue #1370. 2016-04-29 19:29:54 -04:00
Davide P. Cervone
7116cde328 Improve getNode() so that it doesn't find elements inside nodes that come from other MathML nodes (those with IDs). Resolves issue #1447. 2016-04-29 19:02:15 -04:00
Davide P. Cervone
b7385f44d2 Fix problem with container width in SVG when math is scaled. Resolves issue #1422. 2016-04-29 10:32:23 -04:00
Davide P. Cervone
22c19a8186 Fix problem with Plane1 not being mapped to the MathJax fonts properly. Resolves issue #1451. 2016-04-29 09:43:00 -04:00
Peter Krautzberger
9da81b518e [CommonHTML] fix typo in styles
Fixes #1443
2016-04-21 10:06:26 +02:00
Davide P. Cervone
fc1d3d49f0 Remove previous output that is marked by MathJax_Processed as well as MathJax_Processing. Also could have allowed proper output in issue #1384, though it woud have replaced all the math on the page. 2016-04-08 16:17:15 -04:00
Davide P. Cervone
bab0a8dd8c Add more checks that the script tags are still in the active DOM before trying to use them. Resolves puzzling.SE issue #1384. 2016-04-08 14:03:34 -04:00
Davide P. Cervone
3473ccb613 Use full location URL for xlink references in SVG <use> elements when the page includes a <base> element. Resolves issue #831. 2016-02-22 16:58:06 +01:00
Davide P. Cervone
11b5897959 Update version numbers of changed files 2016-02-07 15:34:12 -05:00
Davide P. Cervone
32c540b355 Merge branch 'issue1009' into develop. Issue #1009. 2016-02-06 10:42:31 -05:00
Davide P. Cervone
d1a569c905 Add jax parameter to getTabOrder() so that, if overridden, you can identify the jax (and it asociated script). 2016-02-06 10:35:31 -05:00
zorkow
a1bfe0afcf Adds configuration for excluding MathJax elements from tab order. 2016-02-06 09:26:29 -05:00
Davide P. Cervone
0a33759241 Add text-rending:optimizeLegibility to integrals and other characters that extend well past their width. Resolves issue #1009 2016-02-01 11:07:25 -05:00
Davide P. Cervone
0740dd4735 Only set movablelimits for nodes of class OP 2016-01-30 08:44:31 -05:00
Davide P. Cervone
b11a9b1b65 Handle movablelimits on TeXAtom of class OP in toMathML, NativeMML, and MathML input. 2016-01-29 14:12:42 -05:00
Davide P. Cervone
9ec8e34ee5 Remove lspace and rspace from being used by renderers other than NativeMML. 2016-01-28 16:52:24 -05:00
Davide P. Cervone
54ac450144 Fix spacing for operators with movablelimits that are converted to <mo> 2016-01-28 16:38:59 -05:00