zorkow
7c870b6d93
Cleaned code.
2015-09-14 11:55:50 +01:00
Davide P. Cervone
6a7fe67146
Merge branch 'develop' into issue1250. (Bring in detect-edge changes)
2015-09-14 06:55:05 -04:00
Davide P. Cervone
253c5a7b04
Merge branch 'detect-edge' into develop
2015-09-14 06:53:16 -04:00
zorkow
3b099e971a
Fixes labelling for close buttons.
2015-09-14 02:03:21 +01:00
zorkow
e3a62c0dfe
Fixes the menu role.
2015-09-14 01:43:57 +01:00
zorkow
3e190fc5f4
Adds additional aria elements for the menu items.
2015-09-14 01:28:13 +01:00
Davide P. Cervone
6f461fdb5c
Make keyboard menus work with [Math Processing Error] elements.
2015-09-13 18:59:08 -04:00
Davide P. Cervone
031dccee98
Fix CHTML issues due to change from custom tags to span-with-class approach (i.e., replace uses of getElementsByTagName). Also fix some issues found by running the test suite.
2015-09-13 17:48:29 -04:00
Davide P. Cervone
31992363fd
Fix problems found during the running of the testsuite. (First, make sure event is non-null, but I think that was already the case. So we don't need the later tests for it. Then use clientX and clienY even if they are zero.)
2015-09-13 17:44:11 -04:00
Davide P. Cervone
104434c674
Add mobile detection for Chrome and enable alternate context menu trigger (double-tap and hold)
2015-09-13 11:27:54 -04:00
Davide P. Cervone
79bd8996ed
Add warning when switching to NativeMML in Edge
2015-09-13 11:09:55 -04:00
Davide P. Cervone
620e303b10
Detect Microsoft Edge, and also set isMobile for Window Phone
2015-09-13 10:57:34 -04:00
Davide P. Cervone
d7f946e5cb
Handle keyboard events and menu placement better in IE < 9
2015-09-12 17:35:41 -04:00
Davide P. Cervone
3fa5b2d2ad
Don't let svg element be focusable in IE.
2015-09-12 17:33:56 -04:00
Davide P. Cervone
f54168eed3
Fix spacing for eqnarray environment now that it is handled in AMSarray
2015-09-12 15:09:01 -04:00
Davide P. Cervone
649b7b2863
Properly handle left-hand space for first script after <none/> in CHTML mmultiscripts
2015-09-12 15:00:06 -04:00
Davide P. Cervone
0412d8ec7e
Fixed CHTML.addElement to be able to create non-span elements (e.g., the <a> needed for href attributes)
2015-09-12 14:23:35 -04:00
Davide P. Cervone
17e02d710c
Fix removal of previously rendered CHTML output (for Rerender, etc) to lok for class rather than node type, now that we switched to all spans again (sigh).
2015-09-12 14:19:37 -04:00
Davide P. Cervone
e172b04928
Use less-aggressive CSS for ltr and inline-block, and do Edge check within the extension.
2015-09-12 13:23:29 -04:00
Davide P. Cervone
4c5314c95f
Merge branch 'issue1192' into develop. Issue #1192 .
2015-09-12 11:11:39 -04:00
Davide P. Cervone
49e0852d36
Don't focus the math element if the menu was closed via a mouse click.
2015-09-12 10:16:24 -04:00
Davide P. Cervone
8645c8ce94
Don't show focus on dialog boxes opened by mouse events (only keyboard), and don't show focus for close icon when clicking with mouse
2015-09-12 10:08:50 -04:00
Davide P. Cervone
0cf2a52745
Add styling to make mouse-based menu display look as the same as before (no focus highlighting, though focus is still set)
2015-09-12 08:58:20 -04:00
Davide P. Cervone
9d508c72d8
Also make 'role' use setAttribute()
2015-09-12 08:38:02 -04:00
Davide P. Cervone
b1647c98e7
Make sure CommonHTML output is marked by isMathJax
2015-09-12 07:30:54 -04:00
Davide P. Cervone
bde96342e6
Move .MathJax:focus to right after .MathJax CSS, and make sure full-width equations are full width when converted to display:inline-block
2015-09-12 06:59:50 -04:00
Davide P. Cervone
2756525e73
Make sure aria attributes use setAttribute so they appear properly in the DOM
2015-09-12 06:58:06 -04:00
Davide P. Cervone
c2ef3d9312
Localize 'Close Window' in HelpDialog
2015-09-12 06:57:24 -04:00
Davide P. Cervone
50260bbcac
Localize 'Close Window' string
2015-09-11 18:00:56 -04:00
Davide P. Cervone
94363d94bb
merge branch 'assistive-mml' into develop
2015-09-11 17:06:12 -04:00
Davide P. Cervone
89f15693f7
Remove debugging log message and timer
2015-09-11 12:26:28 -04:00
Davide P. Cervone
3a15f83059
Adjust role for SVG output and put aria-label on the SVG element rather than the enclosing span; add role and aria-label to CHTML output. Resolves issue #1192 .
2015-09-11 10:44:50 -04:00
Davide P. Cervone
a09993d75a
Fix About box to show correct font for CommonHTML, and make it easier to add new output formats later.
2015-09-11 09:50:53 -04:00
Peter Krautzberger
bbdbe19eda
update mml3.js
...
Extend Microsoft Edge workaround to Internet Explorer.
2015-09-09 17:33:59 +02:00
Peter Krautzberger
2c79bd4090
Update mml3.js
...
Fixes #1252 .
* Add workaround for MS Edge bug.
* Prettify xslt string.
2015-09-09 11:45:59 +02:00
Peter Krautzberger
98a8deecf6
Update MathJax.js: add UA detection for MS Edge
...
Cf. https://msdn.microsoft.com/en-us/library/hh869301.aspx
2015-09-09 11:40:23 +02:00
zorkow
d3a4535ec8
Merge branch 'develop' into integrate_keyboard_events
2015-09-04 15:00:59 +01:00
Peter Krautzberger
593a393bfc
Improve RTL support in HTML-CSS
...
Add CSS to prevent browser interference
2015-09-04 10:21:34 +02:00
Davide P. Cervone
2639c8fd44
Merge branch 'fast-preview' into develop
2015-09-03 09:48:30 -04:00
Davide P. Cervone
3fdbe03b2a
Update AsciiMath to current version. Issue #1247 .
2015-09-03 09:39:55 -04:00
Davide P. Cervone
936f85b537
Merge branch 'issue1251' into develop. Issue #1251 .
2015-09-03 09:36:11 -04:00
Davide P. Cervone
184e8860de
Merge pull request #1249 from mathjax/issue1248
...
update locales for v2.6
2015-09-03 09:18:46 -04:00
zorkow
03e761dafe
Makes if/return statements uniform to codebase.
2015-09-02 14:08:50 +01:00
zorkow
03c0aac634
Changed single quotes to double quotes for styling.
2015-09-02 13:52:21 +01:00
zorkow
b81019676f
Fixes focusing on first and last element when moving between Maths elements.
2015-09-02 13:36:00 +01:00
Davide P. Cervone
78e9737b21
Rename FastHTML to PreviewHTML and FHTML-preview.js to fast-preview.js
2015-09-01 18:45:20 -04:00
zorkow
74c2b46da5
Consistently places menu on maths elements by adding scroll offset.
2015-09-01 23:12:46 +01:00
zorkow
0922aa2ebc
Moves keyboard menu to centroid.
2015-09-01 21:27:25 +01:00
zorkow
0e1a33263f
Adds to keyboard driven menus to FastHTML.
2015-09-01 21:16:29 +01:00
zorkow
7867707d5b
Fixes deactivation problem in last submenu.
2015-09-01 21:16:07 +01:00
zorkow
a7e4c1a14c
Adds final submenu closing and opening on left/right key.
2015-09-01 21:05:49 +01:00
zorkow
56deff3a7d
Resets focus on last Maths element when closing popup windows.
2015-09-01 19:42:18 +01:00
zorkow
7054f37677
Integrates and moves improved CSS for outline.
2015-09-01 19:34:50 +01:00
zorkow
db2869a2d3
Increase in minimum width of source window to fix problem on Chrome.
2015-09-01 19:08:08 +01:00
zorkow
516874b50c
Corrects keys and focusing on popup boxes.
2015-09-01 18:52:45 +01:00
zorkow
94b0d7d1ee
Merge branch 'develop' into integrate_keyboard_events
...
Conflicts:
unpacked/jax/output/CommonHTML/jax.js
2015-09-01 18:30:46 +01:00
Peter Krautzberger
4a1aaf6097
locales: add newly added locales to MathJax.js
2015-09-01 18:11:53 +02:00
Peter Krautzberger
42403dc869
i18n: add newly added locales
2015-09-01 16:01:45 +02:00
Davide P. Cervone
07eb553f8d
Merge branch 'chtml' into develop. Issue #1051 .
2015-09-01 08:13:11 -04:00
Davide P. Cervone
bc360cd262
Make sure primes are taken from the correct variant font (now that we have more than one to work with). Resolves issue #1251
2015-09-01 08:02:02 -04:00
zorkow
afdd671999
Proper keyhandling for popup windows.
2015-09-01 03:46:07 +01:00
zorkow
6cc308b5d0
Enables to untrigger menu with space.
2015-09-01 02:40:41 +01:00
zorkow
f73453512b
Hides math element walking behind shift.
2015-09-01 02:21:06 +01:00
zorkow
faeae3e105
Fixes interference problems with submenu timer.
2015-09-01 01:58:38 +01:00
zorkow
c890d8183d
Removes occurrence of elementsbyclassname.
2015-09-01 01:29:55 +01:00
zorkow
ad8a8704d4
Fixes scroll position and involuntary mouse interaction.
2015-09-01 00:58:53 +01:00
zorkow
2143219d9b
Adds navigation role to main menu.
2015-08-31 21:08:27 +01:00
zorkow
0895c284d3
Passes through unused key events.
2015-08-31 19:56:07 +01:00
zorkow
f73d5f0094
Caches focused node.
2015-08-31 19:50:55 +01:00
zorkow
fbb70fb658
Removes logging and prototype addition.
2015-08-31 14:41:07 +01:00
Peter Krautzberger
e575948a88
Update locales for v2.6 release
...
Fixes #1248
2015-08-31 15:06:35 +02:00
Davide P. Cervone
e6f15a4bec
Convert use of custom tags to span-with-class
2015-08-29 08:24:44 -04:00
zorkow
576d6b2132
Cleans event function.
2015-08-29 02:11:15 +01:00
zorkow
986ee52e8a
Focuses popup windows.
2015-08-29 01:57:33 +01:00
zorkow
189d4a8a81
Adds tabbing and menu key event for for all renderers.
2015-08-29 01:02:33 +01:00
zorkow
d73dbe2860
Adds prototype definition for indexOf.
2015-08-29 00:30:34 +01:00
zorkow
9654bd4256
Navigation of RTL menus.
2015-08-29 00:09:43 +01:00
zorkow
66b56d9ac9
Moves posting code for keyboard triggered menus.
2015-08-28 22:52:45 +01:00
zorkow
583f4a60dc
Fixes some scolling issues.
2015-08-28 18:42:28 +01:00
zorkow
d18bfbf66d
Removes redundant methods.
2015-08-28 16:52:34 +01:00
zorkow
7f4c56df9b
Removes all caching of DOM elements.
2015-08-28 16:51:20 +01:00
zorkow
0d60b0654b
Removes caching of active element.
2015-08-28 12:29:19 +01:00
Davide P. Cervone
944000c76f
Set min-width properly on tables with labels so that they don't overlap (596).
2015-08-26 19:21:47 -04:00
Davide P. Cervone
52ba4e6fa9
Fix default value for minlabelspacing (failed if unitless values were used)
2015-08-26 17:23:58 -04:00
Davide P. Cervone
8d4a15abc1
Fix problems with indentAlign='right'.
2015-08-26 17:17:55 -04:00
zorkow
1c07cf3189
Removes all caching of MathJax nodes.
2015-08-26 14:17:08 +01:00
zorkow
39109bf88a
Removes caching of MathJax nodes.
2015-08-26 13:56:30 +01:00
Davide P. Cervone
d0e4e1b8f5
Handle explicit width correctly for tables in SVG (don't remove extra column spacing)
2015-08-26 08:47:42 -04:00
zorkow
1228bb89ad
Introduces accessor function for cached MathJax nodes.
2015-08-26 13:38:44 +01:00
Davide P. Cervone
f886216f2c
Handle explicit width correctly (don't remove extra column spacing)
2015-08-26 06:58:46 -04:00
Davide P. Cervone
3d4bc8cd0f
Handle indentshift properly in HTML-CSS output (don't need to scale it)
2015-08-26 06:39:23 -04:00
Davide P. Cervone
b06c7a5f20
Make sure transform is non-null to avoid problems when it is appended later.
2015-08-26 06:23:04 -04:00
Davide P. Cervone
c3f4606576
Fix problem with dahsed rowlines in mtable caused by changing to px for rules (and using top border for horizontal lines)
2015-08-25 16:55:33 -04:00
Davide P. Cervone
1abb78e9c9
Merge branch 'semantic-enhance' into develop
2015-08-25 15:32:24 -04:00
Davide P. Cervone
31e4b98a58
Merge remote-tracking branch 'mathjax/develop' into develop
2015-08-25 15:22:58 -04:00
Davide P. Cervone
463c88e4be
Don't use monospace for MS, and use smart quotes, like CommonHTML.
2015-08-25 15:14:48 -04:00
Davide P. Cervone
0a4da7e3b4
Do quotes and text in one shot, like HTML-CSS and SVG (resolves some problems with the ms tests in the test suite).
2015-08-25 15:13:16 -04:00
Davide P. Cervone
930c5d3fb3
Make maction use the correct core node
2015-08-25 12:13:15 -04:00
Davide P. Cervone
3032239f7e
Make fraction spacing consistent with HTML-CSS and SVG output
2015-08-25 12:12:51 -04:00
zorkow
816259d6ff
Introduces accessor methods for all cached HTML nodes.
2015-08-25 13:48:00 +01: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
bf330af3f7
Make sure tables with labels are properly aligned (in case they are in an mrow with other stuff, though they shouldn't be).
2015-08-24 13:12:47 -04:00
Davide P. Cervone
e59f6d6484
Make sure parents of percentage-width elements have percentage widths.
2015-08-24 13:11:47 -04:00
zorkow
e29e3c9e99
Fixes activation problem for submenu anchor.
2015-08-24 17:01:50 +01: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
f5928643b8
Make smartquotes into regular quotes for monospaced output
2015-08-22 07:52:06 -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
787006163b
Don't count frame width in frame spacing, and add padding to fake td for equal heights.
2015-08-22 07:50:49 -04:00
Davide P. Cervone
94d236457c
Fix vertical align percentage to be of initial image height (to be consistent with others)
2015-08-22 07:50:39 -04:00
zorkow
9266592219
Merge branch 'abstract_menu_entry_class' into add_tabbing
2015-08-21 13:11:22 +01:00
Volker Sorge
a3eef41c83
Merge pull request #1240 from mathjax/abstract_menu_entry_class
...
Adds level of subclassing for clickable menu items.
2015-08-21 21:10:28 +09:00
zorkow
72e1e6b5b5
Fixes case of disabled submenu entry.
2015-08-21 13:09:46 +01:00
zorkow
2f83433422
Makes Attributes interface uniform.
2015-08-21 12:59:28 +01:00
Davide P. Cervone
b5d6f31252
Add missind 'node' to CHTMLstretchH() call.
2015-08-21 07:46:01 -04:00
zorkow
64e8419ff1
Whitespace cleanup.
2015-08-21 12:37:26 +01:00
zorkow
4c54fe224e
Fixes tangling active on mouseover.
2015-08-21 12:36:44 +01:00
zorkow
66fb6c9ab4
Fixes event problem
2015-08-21 12:27:15 +01:00
zorkow
70da9faa90
Introduces abstract superclass of all keyboard navigatable objects.
2015-08-21 05:35:20 +01:00
zorkow
85c1801fba
Fixes issues with submenus.
2015-08-21 04:59:31 +01:00
zorkow
1be417af3a
Combined keyboard and mouse navigation works.
2015-08-21 04:34:18 +01:00
Davide P. Cervone
43f59da6b9
Make 'dumb quotes' into 'smark quotes'
2015-08-20 11:21:34 -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
zorkow
5e88e80975
Merge branch 'abstract_menu_entry_class' into add_tabbing
...
Conflicts:
unpacked/extensions/MathMenu.js
2015-08-20 14:48:50 +01: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
zorkow
2c028aee22
Incorporates review suggestions.
2015-08-18 22:51:59 +01:00
zorkow
7c68c1cb1c
WIP
2015-08-18 22:01:27 +01:00
zorkow
c6b98d45cc
Injects abstract class for clickable items.
2015-08-18 18:01:57 +01:00
zorkow
973edc9686
Adds level of subclassing for clickable menu items.
2015-08-17 19:50:14 +01:00
Davide P. Cervone
cbdfa18ad1
More improvements to mmultiscripts in mhchem.
2015-08-17 14:06:58 -04:00
Davide P. Cervone
964a9e0c59
More improvements to mmultiscripts in mhchem.
2015-08-17 13:40:44 -04:00
Davide P. Cervone
e186e50c9e
Incoporate changes that were lost during the rename of CHTML-preview to FHTML-preview
2015-08-17 09:16:43 -04:00
Davide P. Cervone
2e6b2bb3f0
Fix problem with prescripts being lost if they appear with no base at the end of the expression, and a problem with prescripts when they are before an open brace.
2015-08-12 09:24:31 -04:00
Davide P. Cervone
9b09bd9b2d
Merge branch 'variable-centers' into chtml
2015-08-11 12:56:52 -04:00
Davide P. Cervone
49bdd1e9fa
Merge branch 'issue1238' into develop. Issue #1238 .
2015-08-11 08:37:02 -04:00
Davide P. Cervone
5210dbd4c7
Merge branch 'issue1233' into develop. Issue #1233 .
2015-08-11 08:36:45 -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
12bee3279d
Remove namespaces (resolves issue #1238 ) and use createElementNS even in IE when possible (these nodes are temprary and never actually go into the DOM, so no need to trigger MathPlayer). I don't know if the m: is right for earlier IE, since element.nodeName may return that and cause the same problems as 1238. That should be checked.
2015-08-10 18:37:43 -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
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