Kevin Barabash
d7d1367558
Merge pull request #347 from gagern/splitEnvironments
...
Split up environments list into calls to defineEnvironment
2015-09-14 22:51:04 -06:00
Kevin Barabash
0fc77e2f40
Merge pull request #345 from gagern/splitFunctions
...
Split up functions list into calls to defineFunction
2015-09-14 22:44:21 -06:00
Davide P. Cervone
45817c1519
merge branch 'develop' into more-menu (fix conflicts with Volker's changes)
2015-09-14 07:27:21 -04:00
Davide P. Cervone
980091128a
Merge pull request #1265 from mathjax/add_more_aria
...
Add some more ARIA
2015-09-14 07:20:48 -04:00
Davide P. Cervone
1c0597b921
Merge pull request #1257 from mathjax/issue1250
...
Improve RTL support in HTML-CSS (fixes #1250 )
2015-09-14 07:00:51 -04:00
Davide P. Cervone
54854f88c1
Merge pull request #1263 from dpvc/issue1250
...
Use less-aggressive CSS for ltr and inline-block, and do Edge check within the extension.
2015-09-14 06:59:40 -04:00
Davide P. Cervone
00af8c161e
Use isEdge for MSEdge detection
2015-09-14 06:57:01 -04:00
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
Kevin Barabash
112e6783b3
Merge pull request #349 from gagern/texcmpLogo
...
Make texcmp work again, including KaTeX logo
2015-09-11 11:43:28 -07: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
Martin von Gagern
2e0f11bdfa
Reindent some comment code as well
2015-09-11 09:27:47 +02:00
Kevin Barabash
89e0d7950c
Merge pull request #348 from gagern/splitBuildHandlers
...
Split groupType literals in buildHTML and buildMathML
2015-09-10 22:36:13 -07:00
Martin von Gagern
71881e3d36
Make texcmp work again, including KaTeX logo
...
Since all the math font test cases use the KaTeX logo, we need that.
I started with the definition of the logo from katex.less, but tweaked that
until it gave a good visual match, in particular a very similar logo width,
no matter the actual numbers.
With that logo, most tests can be compiled again, with the exception of the
one containing illegal functions to test visual error reporting.
That one needs to be explicitely disabled.
2015-09-10 16:05:23 +02:00
Martin von Gagern
d809f9c362
Reindent groupType definitions in buildHTML and buildMathML
...
Since the previous commit deliberately avoided reindenting, this one here
does just that: reindenting the existing code. There are no other changes.
2015-09-10 11:47:47 +02:00
Martin von Gagern
6bc7cd574f
Split up groupType map in buildHTML and buildMathML code
...
Having long object literals containing the code is problematic.
It makes it difficult to add auxiliary functions or data close to the
function inside the map where it is needed.
Building the map in several steps, repeating the map name at each step,
avoids that problem since it makes the definitions independent from one
another, so anything can go between them.
This commit deliberately avoided reindenting existing code to match the new
surroundings. That way it is easier to see where actual changes happen,
even when not performing a whitespace-ignoring diff.
2015-09-10 11:34:34 +02:00
Martin von Gagern
dae3a14744
Reindent environments
...
Since the previous commit deliberately avoided reindenting, this one here
does just that: reindenting the existing code.
2015-09-10 11:18:11 +02:00
Martin von Gagern
2a31a719ec
Split up environments list into calls to defineEnvironment
...
Having one long array literal to contain the code of all environment
implementations is problematic. It makes it difficult to add auxiliary
functions or data close to the function inside the list where it is needed.
Now the functions are no longer defined using such a literal, but instead
using calls to a "defineEnvironment" function which receives all the
relevant data. Since each function call is independent from the others,
anything can go in between.
This commit deliberately avoided reindenting existing code to match the new
surroundings. That way it is easier to see where actual changes happen,
even when not performing a whitespace-ignoring diff.
2015-09-10 11:14:00 +02:00
Martin von Gagern
acfdc9f698
Rename declareFunction to defineFunction
...
https://github.com/Khan/KaTeX/pull/262#issuecomment-113981142 indicated a
preference for define over declare.
2015-09-10 10:23:58 +02:00
Martin von Gagern
414f9dd248
Reformat symbol table
...
Using function calls instead of one big object literal for the symbols makes
the notation far more concise and readable. Having the actual symbol name
in the last position helps aligning the preceding columns, making the list
easier to read.
Another benefit is that all symbol definitions now pass through a single
function, where additional processing (e.g. for Unicode input) might take
place in a future commit.
2015-09-10 10:22:42 +02:00