Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
553 commits
Select commit Hold shift + click to select a range
65b65de
fix right arrow from duplicating a single selected character in FF
mikehaverstock Dec 19, 2017
0e63af7
Merge pull request #81 from desmosinc/fix-ff-substitute-keyboard-events
mikehaverstock Dec 19, 2017
d9eafde
add resetCursorOnBlur option. Resets the cursor to end of mathquill o…
mikehaverstock Dec 19, 2017
04e71a2
Merge pull request #82 from desmosinc/reset-cursor-on-blur
mikehaverstock Dec 19, 2017
3d00bff
Blur invalidates request to update selection.
jwmerrill Dec 19, 2017
5b0f7bc
Merge pull request #83 from desmosinc/invalidate-selection-timeout-on…
mikehaverstock Dec 19, 2017
e79399a
Allow passing an event to keystroke.
jwmerrill Dec 19, 2017
ba8919a
Merge pull request #84 from desmosinc/allow-passing-event-to-keystroke
mikehaverstock Dec 19, 2017
b877332
add cursor.resetToEnd() method
mikehaverstock Dec 21, 2017
da6d1cb
Merge pull request #85 from desmosinc/cursor-reset-to-end
mikehaverstock Dec 21, 2017
7f78846
fix scroll with selection
eluberoff Dec 23, 2017
e1ec94f
Merge pull request #86 from desmosinc/fix-scroll-on-selection
eluberoff Dec 23, 2017
08c38b6
fix latex for textit command
srkondam Jan 8, 2018
317d6fa
Merge pull request #87 from desmosinc/fix-latex-TextBlockChildern
eluberoff Jan 8, 2018
c71b7a7
Add proper mathspeak support for non-LaTeX inequality symbols
sclower Jan 23, 2018
b9345a3
Update inequality tests to include mathspeak
sclower Jan 23, 2018
120ddd8
Merge pull request #90 from desmosinc/add-inequality-mathspeak
sclower Jan 23, 2018
5b23e16
Add mathspeak and ariaLabel strings to handle nthroot reading and nav…
sclower Jan 29, 2018
9c7fccd
Add mathspeak nthroot assertion
sclower Jan 29, 2018
603461e
Initial support for verbalization and navigation of text commands
sclower Jan 29, 2018
b461886
Stop speaking content of text block when deleting
sclower Jan 30, 2018
a2d839c
Better delete ARIA fix
sclower Jan 30, 2018
87b74a0
Add ARIA to various text styling commands
sclower Jan 30, 2018
55a060c
Fix double-speaking characters as they were navigated in text blocks
sclower Jan 30, 2018
b18446b
Fix whitespace
sclower Jan 30, 2018
47522d4
Add text formatting html function from desmosinc:mathquill/89
sclower Jan 30, 2018
f574e9b
Add HTML text subclass unit test
sclower Jan 30, 2018
6b59b73
Test for all possible subclassed TextBlock HTML
sclower Jan 31, 2018
5f8ce48
Merge pull request #92 from desmosinc/text-command-improvements
eluberoff Jan 31, 2018
5faabc1
Merge pull request #91 from desmosinc/nthroot-mathspeak-support
sclower Jan 31, 2018
d1abb5d
add support for double arrow line operator (#88)
srkondam Feb 3, 2018
bd05d17
add config option to disable cut, copy & paste
eluberoff Feb 14, 2018
356a1a1
horizontally scroll on paste
eluberoff Feb 14, 2018
c114216
Merge pull request #93 from desmosinc/allow-disable-copy-paste
eluberoff Feb 14, 2018
8cf6012
add support for overarc
srkondam Feb 23, 2018
91a917d
support for overarc
srkondam Feb 24, 2018
dbc44a0
update less version dependency
eluberoff Feb 27, 2018
77e2bc9
Merge pull request #96 from desmosinc/bump-back-less-dependency
eluberoff Feb 27, 2018
0d0fdc5
add a few more minus signs
eluberoff Feb 27, 2018
eaa9bec
fix broken unit tests
eluberoff Feb 27, 2018
7057f01
add tests that various minus signs are mutated
eluberoff Feb 27, 2018
c83b0a1
Merge pull request #97 from desmosinc/more-minus-signs
eluberoff Feb 27, 2018
c9d18e5
Merge pull request #94 from desmosinc/add-support-for-overarc
eluberoff Feb 27, 2018
968550d
Add defensive checks for property lookup on parent-parent nodes
ctlusto Feb 27, 2018
12ef9ee
Merge pull request #98 from desmosinc/parent-access-bugfix
ctlusto Feb 28, 2018
a717c07
Check in package-lock.
jwmerrill Feb 28, 2018
8ce23c4
Merge pull request #99 from desmosinc/package-lock
jwmerrill Feb 28, 2018
078bd19
restore legacy substituteKeyboartdEvents option
mikehaverstock Mar 15, 2018
ff502c8
Merge pull request #100 from desmosinc/restore-substitutekeyboardevents
mikehaverstock Apr 30, 2018
ac78a34
Use Math Input instead of MathQuill Input for default ARIA label
sclower May 18, 2018
4d62981
Allow MathQuill to generate ARIA alerts for ariaPostLabel updates
sclower May 18, 2018
a265703
Be sure to clear ARIA timeout if blank or invalid ARIA post-label is …
sclower May 18, 2018
2280e5a
Tweak documentation
sclower May 21, 2018
337a7f7
Merge pull request #101 from desmosinc/aria-label-refinements
sclower May 21, 2018
68920f0
use semi-transparency instead of gray
eluberoff Jul 30, 2018
c46cc53
Merge pull request #102 from desmosinc/semi-transparent-instead-of-gray
eluberoff Jul 30, 2018
4de7714
Improve ARIA label assignment for lower and upper bounds in summation…
sclower Sep 5, 2018
be52a09
Merge pull request #103 from desmosinc/improve-summation-notation-aria
sclower Sep 12, 2018
28fefa9
switch sum and product symbols
eluberoff Oct 5, 2018
24142a8
Merge pull request #104 from desmosinc/fix-unicode-operators
eluberoff Oct 5, 2018
4c693bc
hide the gray rectangle within empty parens
mikehaverstock Oct 16, 2018
fd8e552
Merge pull request #105 from desmosinc/hide-empty-parens-rectangle
jwmerrill Oct 24, 2018
fbc1f2f
normalize selection across browsers.
mikehaverstock Nov 21, 2018
5d67abc
use SVG symbols instead of transforms
mikehaverstock Nov 22, 2018
5017af9
remove code for scaling brackets
mikehaverstock Nov 22, 2018
2fdb56c
fix \\lang and \\rrang mixup
mikehaverstock Nov 22, 2018
8e5017f
automatically use the current font color for svg symbol fill
mikehaverstock Nov 22, 2018
28471ff
fixup sqrt sign on large fonts
mikehaverstock Nov 22, 2018
2586cae
make sure ghost parens show gray
mikehaverstock Nov 22, 2018
99ec778
ghost parens use currentColor. also cleanup .replaceBracket
mikehaverstock Nov 22, 2018
30863ee
add svg width:100% and height:100% through css
mikehaverstock Nov 22, 2018
ffdbfc5
fix \binom command
mikehaverstock Nov 22, 2018
5495b44
remove .transform-origin() mixin
mikehaverstock Nov 23, 2018
4e7fa13
Merge pull request #107 from desmosinc/remove-dom-measurements
mikehaverstock Nov 23, 2018
51e6133
Fix safari layout bug while typing
eluberoff Nov 25, 2018
86b248a
Merge pull request #109 from desmosinc/fix-layout-while-typing
mikehaverstock Nov 25, 2018
c976f08
fix "Incorrect Function" error
mikehaverstock Nov 30, 2018
0a6d69d
Merge pull request #110 from desmosinc/guard-textarea-select
mikehaverstock Nov 30, 2018
8d4c90d
add infinity
eluberoff Dec 13, 2018
098acc7
rm inf from advancedSymbols
eluberoff Dec 13, 2018
a30bbcb
Merge pull request #111 from desmosinc/add-inf
eluberoff Dec 13, 2018
5c448f7
fix scrollHoriz test
mikehaverstock Jan 8, 2019
51c3492
fix text html tests by using dynamic ids
mikehaverstock Jan 8, 2019
3593cad
Merge pull request #112 from desmosinc/fix-mq-tests
mikehaverstock Jan 8, 2019
bf4e890
do not add spacing between letters and period
mikehaverstock Jan 8, 2019
e5385fa
Merge pull request #113 from desmosinc/dot-syntax-padding
mikehaverstock Jan 8, 2019
6874727
space prevents binary operator. (2, -2) won't put padding around minu…
mikehaverstock Jan 8, 2019
012ea24
Merge pull request #114 from desmosinc/space-prevents-binary-operator
mikehaverstock Jan 8, 2019
e821fad
fix mouse selection of parens and sqrts within denominators
mikehaverstock Jan 9, 2019
3f966ad
stop trying to process keyboard actions on blur
mikehaverstock Jan 9, 2019
974afc3
Merge pull request #115 from desmosinc/denom-selection-fix
mikehaverstock Jan 9, 2019
a6ce59d
Merge pull request #116 from desmosinc/clear-on-blur
mikehaverstock Jan 9, 2019
460288b
add neq support
eluberoff Jan 28, 2019
390fa94
Merge pull request #118 from desmosinc/add-neq
eluberoff Jan 28, 2019
17fae0d
add more auto superscripts
eluberoff Feb 8, 2019
49956b6
Merge pull request #119 from desmosinc/add-more-superscripts
eluberoff Feb 8, 2019
1bc06ba
Fix invisible static math on iOS with VoiceOver
sclower Feb 13, 2019
892dfd8
Merge pull request #120 from desmosinc/ios-aria-refinements
sclower Feb 13, 2019
c17b526
add spaces between groups of digits
mikehaverstock Mar 26, 2019
c95ceef
start adding digit grouping tests
mikehaverstock Apr 11, 2019
d3beccb
test that grouping can be disabled
mikehaverstock Apr 11, 2019
af61db5
make sure to add .mq-digit to digits efficiently created
mikehaverstock Apr 11, 2019
25db9b5
test that editing expressions suppresses grouping
mikehaverstock Apr 11, 2019
ccd0d95
test editing with digit grouping disabled
mikehaverstock Apr 11, 2019
d5ecc5d
Merge pull request #121 from desmosinc/digit-grouping
mikehaverstock Apr 11, 2019
0f39965
remove .mq-matrixed styles. Classes aren't assigned anywhere
mikehaverstock Apr 13, 2019
f88527e
fix selection of nthroot
mikehaverstock Apr 13, 2019
da4b374
Merge pull request #122 from desmosinc/fix-nthroot-selection
mikehaverstock Apr 13, 2019
9df4cdf
make cursor color match text color
mikehaverstock Apr 25, 2019
df8487e
Merge pull request #123 from desmosinc/caret-color
mikehaverstock Apr 25, 2019
d6484e0
add support for cbrt
eluberoff May 4, 2019
f525e45
Merge pull request #124 from desmosinc/add-cbrt
eluberoff May 4, 2019
2beb4a0
Adjust how Mathquill speaks nthroots
sclower May 9, 2019
c9bf6d3
Update nthroot mathspeak test
sclower May 9, 2019
7bb1712
Add mathspeak exception for voicing cube roots
sclower May 9, 2019
3dc3bf8
Add cube root mathspeak assertion
sclower May 9, 2019
3b47205
Merge pull request #125 from desmosinc/improve-nthroot-mathspeak
sclower May 10, 2019
43523be
inherit color for underline/overline
eluberoff May 15, 2019
5b553cd
Merge pull request #128 from desmosinc/fix-overline-color
eluberoff May 15, 2019
af9b175
do not unitalice autoOperatorNames when in simple subscript
mikehaverstock May 30, 2019
b90877d
add some tests
mikehaverstock May 30, 2019
619bb23
remove jQ check
mikehaverstock May 31, 2019
03a9700
make sure operatornames do not expand in subscripts when pasting
mikehaverstock Jun 1, 2019
8b27b86
Merge pull request #129 from desmosinc/subscript-operatornames
mikehaverstock Jun 11, 2019
9007e18
Add support for approx
eluberoff May 8, 2019
6d56aa7
add tests for typing and editing approx
eluberoff May 10, 2019
8ad294d
Refactor sim and approx rendering based on code review comments
sclower Jun 13, 2019
ce9996b
Add more sim and approx typing/backspace tests
sclower Jun 14, 2019
e9efc5a
Merge pull request #127 from desmosinc/add-support-for-approx
sclower Jun 20, 2019
84b0923
Fix serializing \sim and \approx.
jwmerrill Jun 20, 2019
c642e57
Merge pull request #130 from desmosinc/fix-serializing-sim-and-approx
jwmerrill Jun 20, 2019
fc5c7e0
allow pasting in the sqrt symbol
mikehaverstock Jul 2, 2019
d8482a7
fix layout of integrals within exponents
mikehaverstock Jul 3, 2019
6f77d6c
Make test server accurately report host and port on which it's listening
sclower Jun 28, 2019
5fca875
Modify unit test page to synthesize results in a form our automated t…
sclower Jul 9, 2019
e116fab
Rework suite and test assertion tracking
sclower Jul 9, 2019
2df74fa
Use suite full title when mapping tests
sclower Jul 9, 2019
ed5e243
Report elapsed time in seconds
sclower Jul 9, 2019
1505288
Put suite time in seconds
sclower Jul 9, 2019
94317a9
Use test duration when reporting elapsed time and rm suite time property
sclower Jul 9, 2019
777c459
Merge pull request #134 from desmosinc/add-jenkins-support
sclower Jul 9, 2019
d4bbb1c
add sqrt paste tests
mikehaverstock Jul 16, 2019
09a17c0
Merge pull request #132 from desmosinc/exponent-integral
mikehaverstock Jul 17, 2019
aa319e0
Merge pull request #131 from desmosinc/paste-sqrt-symbol
mikehaverstock Jul 17, 2019
a70b707
Add ARIA to style indicators
sclower Aug 16, 2019
34c871a
Add overline rendering test
sclower Aug 16, 2019
77e115c
Slice off leading backslash when falling back to ctrlSeq for command …
sclower Aug 16, 2019
e2d0a03
Don't use the ARIA math role for staticmath on the Mac
sclower Aug 17, 2019
e9dcbb8
Add explanatory comments to math role issue in source code.
sclower Aug 20, 2019
374919a
Use safer regexp replaces to weed out possible leading backslach char…
sclower Aug 20, 2019
4ab5e0d
Merge pull request #136 from desmosinc/add-aria-to-styles
sclower Aug 20, 2019
fdd4937
Merge pull request #137 from desmosinc/no-math-role-on-mac
sclower Aug 20, 2019
c863eb5
always wrap sup/sub with brackets
eluberoff Sep 9, 2019
c62550d
update tests
eluberoff Sep 14, 2019
ff976d2
Merge pull request #139 from desmosinc/always-wrap
eluberoff Sep 14, 2019
e976422
Fix a missing "var" declaration.
jwmerrill Nov 8, 2019
7fe0040
Merge pull request #141 from desmosinc/add-missing-var-declaration
jwmerrill Nov 8, 2019
6ec1a6c
Update Symbola-basic fonts
jwmerrill Nov 23, 2019
24c93bd
Merge pull request #142 from desmosinc/add-space-to-basic-fonts
jwmerrill Nov 23, 2019
d2c185d
harcode dependency order in Makefile
mikehaverstock Feb 20, 2020
51e3ad0
Merge pull request #143 from desmosinc/makefile-hardcode-dep-order
mikehaverstock Feb 21, 2020
7fef306
get rid of bad border-radius rule
eluberoff May 18, 2020
a9dcc0a
Merge pull request #146 from desmosinc/rm-bad-border-radius-rule
eluberoff May 19, 2020
8007f9e
Hide gray box in empty square brackets
jwmerrill Jun 2, 2020
04b11e0
Merge pull request #147 from desmosinc/hide-empty-square-brackets-rec…
jwmerrill Jun 8, 2020
a5706c0
add "make unminified_basic" target
mikehaverstock Jul 2, 2020
fce27e7
Merge pull request #148 from desmosinc/mathquill-make-compatible-with…
jwmerrill Oct 9, 2020
84c8d3f
Expand VoiceOver iOS work-around to account for spoofed Mac user agen…
sclower Nov 23, 2020
b20f971
Add missing time value to test suite tests
sclower Nov 23, 2020
bb0a959
Add StackOverflow post to spoofed Mac comments
sclower Nov 23, 2020
1291826
Merge pull request #150 from desmosinc/fix-voiceover-ipad-os-13
sclower Nov 23, 2020
f5d4348
Use regular expression to separate digits for mathspeak
sclower Mar 12, 2021
ae7b2aa
Add digit separation test
sclower Mar 12, 2021
501dfea
Add explanatory comment
sclower Mar 12, 2021
0406e8a
Merge pull request #152 from desmosinc/better-aria-digit-separation
sclower Mar 12, 2021
fda936b
Fix build on macOS Big Sur
jwmerrill May 9, 2021
ab6cc48
Merge pull request #153 from desmosinc/fix-big-sur-build
jwmerrill May 10, 2021
de9faa9
Fix redundant focus event on paste
jwmerrill Jun 1, 2021
880a725
Merge pull request #155 from desmosinc/fix-firing-redundant-focus-on-…
jwmerrill Jun 2, 2021
2ac67b4
Force an ARIA update for static math when its LaTeX changes
sclower Jun 2, 2021
88a9382
Merge pull request #156 from desmosinc/fix-static-math-aria-update
sclower Jun 3, 2021
f0a9c49
Simplify exponent speech for common whole numbers
sclower Jul 19, 2021
46ef623
Simplify whole-number fractions whose denominators < 10
sclower Jul 19, 2021
c960484
Improve voicing of simple mixed fractions
sclower Jul 19, 2021
a34de1e
Account for whitespace when computing mixed fraction speech
sclower Jul 20, 2021
27c67b7
Allow empty superscripts to be reported again
sclower Jul 20, 2021
4415d74
Use regEx for shortened fraction speech computation
sclower Jul 20, 2021
e829952
Change numeric test regexp in block.foldChildren function
sclower Jul 20, 2021
2b57391
Distinguish 'minus' and 'negative' speech
sclower Jul 21, 2021
52dd856
Add more robust superscript shortening
sclower Jul 21, 2021
04f36c3
Never use shorthand speech when issuing ARIA alerts
sclower Jul 21, 2021
20387bc
Add missing 1st suffix check for shortened exponents
sclower Jul 22, 2021
dcfb81b
Add positive/plus dictinction to mathspeak
sclower Jul 22, 2021
0b7223c
Limit exponent suffix addition to absolute values < 1000
sclower Jul 22, 2021
8bf8f66
Tidy up some typing errors found in tests
sclower Jul 22, 2021
1469d4f
Revert some fraction-related changes
sclower Jul 22, 2021
b742efc
Add tests and fix superscripts
sclower Jul 22, 2021
6242822
Fix shortening of fractions with negative numerators
sclower Jul 22, 2021
59151ca
Remove negative exponent with non-numeric base restriction
sclower Jul 22, 2021
f8cde7d
Respond to code review
sclower Jul 26, 2021
d931bde
Factor isBinaryOperator into stand-alone function
sclower Jul 26, 2021
44de07f
User superscript's upInto node in mathspeak method
sclower Jul 26, 2021
ce15049
Use concatenation of block's ctrlSeqs rather than potentially expensi…
sclower Jul 26, 2021
ea3af83
Remove ctrlSeq existence check
sclower Jul 26, 2021
6b5bb8d
Re-add ctrlSeq check
sclower Jul 27, 2021
46498ff
Stop using Math.abs on strings
sclower Jul 27, 2021
3fcd180
Move mixed fraction speech determination to fraction mathspeak method
sclower Jul 27, 2021
0f1fabe
Add fraction tests
sclower Jul 27, 2021
1ae3939
Add test for speaking longer fraction when Tabbing out of it
sclower Jul 27, 2021
5298e5c
Respond to code review
sclower Jul 28, 2021
4bc7ea1
Add explanatory comment to new ARIA test
sclower Jul 28, 2021
28d8a1d
Merge pull request #157 from desmosinc/mathspeak-improvements
sclower Jul 28, 2021
999deb5
Improve mathspeak for text blocks
sclower Aug 17, 2021
0da38da
Improve mathspeak for font style, textcolor, and class blocks
sclower Aug 17, 2021
103d04e
Continue to speak start and end delimiters for overline
sclower Aug 18, 2021
7f88540
Pair back delimiter omission to only text and mathrm commands
sclower Aug 18, 2021
e355e7c
Be sure to pass mathspeak opts on to child blocks from math style com…
sclower Aug 19, 2021
2c283dc
Use options object in style initialiation for clarity
sclower Aug 19, 2021
64f83a3
Merge pull request #158 from desmosinc/improve-text-and-style-mathspeak
sclower Aug 19, 2021
23b0dd6
Writing -> converts to \to arrow
jwmerrill May 24, 2021
86a9863
Merge pull request #154 from desmosinc/to-arrow-digraph
jwmerrill Aug 26, 2021
6c9feed
Interpret → as \to when it is pasted in
jwmerrill Aug 27, 2021
60ec867
Merge pull request #159 from desmosinc/to-arrow-unicode
jwmerrill Aug 27, 2021
ab881d0
Consolidate ARIA label update code and use hidden span for static math
sclower Aug 30, 2021
0580f2a
Tweak centralized updateMathspeak method
sclower Sep 1, 2021
aa6bc8b
Update behavior and tests
sclower Sep 1, 2021
eddf1c2
Tweak some things
sclower Sep 7, 2021
3101dbb
More CSS twaking
sclower Sep 7, 2021
37a7a45
Centralize ARIA label functions to controller
sclower Sep 7, 2021
c34dad3
More ARIA label tweaking
sclower Sep 8, 2021
6ab1d05
Fix whitespace
sclower Sep 10, 2021
1bb5e72
Update math field's mathspeak when setting aria post-label if not foc…
sclower Sep 13, 2021
cbe638f
Check that old and new Latex values differ in efficient update
sclower Sep 13, 2021
fbb5538
Make Latex comparison only after the current block has been classified
sclower Sep 13, 2021
18f6792
Update latex short-circuit check to account for existing mathquill nodes
sclower Sep 14, 2021
3847d1f
Remove debug line
sclower Sep 14, 2021
dd7fdd7
Merge pull request #160 from desmosinc/improve-mathspeak-rendering
sclower Sep 14, 2021
654e481
Merge pull request #162 from desmosinc/more-efficient-latex-update
sclower Sep 15, 2021
d99a985
Use native focus events insted of jQuery focus events
jwmerrill Nov 11, 2021
7612cc5
Merge pull request #163 from desmosinc/native-focus
jwmerrill Nov 12, 2021
4745abc
Merge branch 'master-dcg'
jaltekruse Nov 15, 2021
77e3d2d
Remove reference to deleted dispose() method
jaltekruse Nov 15, 2021
df8df90
Fix text block creation
jaltekruse Nov 16, 2021
eefb11f
Merge remote-tracking branch 'mathquill/master' into merge-with-upstream
jwmerrill Nov 19, 2021
9ac1090
Fix edit order dependence of supsub height
jwmerrill Nov 22, 2021
21646f2
Remove unreferenced air-demo
jwmerrill Nov 22, 2021
29f6be0
Allow running CI with either CircleCI or Jenkins
jwmerrill Nov 22, 2021
3600a70
Merge pull request #166 from desmosinc/ci-option
jwmerrill Nov 22, 2021
7cbd085
Merge pull request #165 from desmosinc/remove-air-demo
jwmerrill Nov 23, 2021
efee758
Merge remote-tracking branch 'origin/main' into merge-with-upstream
jwmerrill Nov 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions BUILDING
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ re-make, and also serve the demo, the unit tests, and the visual tests.
unit tests -> http://localhost:9292/test/unit.html
visual tests -> http://localhost:9292/test/visual.html

If building on Windows:
1. Install GNU Make from http://gnuwin32.sourceforge.net/packages/make.htm. Do not use make derivitives from mSYS or MinGW. Ensure the location of make.exe is added to your PATH environment variable.
2. Grab the latest Git for Windows from https://git-scm.com/download/win. When installing, add Git and its optional shell tools to your PATH environment variable (these questions are asked during setup).

If any of this does not work, please let us know! We want to make
hacking on mathquill as easy as possible.
20 changes: 15 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,22 @@ BASE_SOURCES = \
$(SRC_DIR)/cursor.js \
$(SRC_DIR)/controller.js \
$(SRC_DIR)/publicapi.js \
$(SRC_DIR)/services/*.util.js \
$(SRC_DIR)/services/*.js
$(SRC_DIR)/services/parser.util.js \
$(SRC_DIR)/services/saneKeyboardEvents.util.js \
$(SRC_DIR)/services/aria.js \
$(SRC_DIR)/services/exportText.js \
$(SRC_DIR)/services/focusBlur.js \
$(SRC_DIR)/services/keystroke.js \
$(SRC_DIR)/services/latex.js \
$(SRC_DIR)/services/mouse.js \
$(SRC_DIR)/services/scrollHoriz.js \
$(SRC_DIR)/services/textarea.js

SOURCES_FULL = \
$(BASE_SOURCES) \
$(SRC_DIR)/commands/math.js \
$(SRC_DIR)/commands/text.js \
$(SRC_DIR)/commands/math/*.js
# FIXME text.js currently depends on math.js (#435), restore these when fixed:
# $(SRC_DIR)/commands/*.js \
# $(SRC_DIR)/commands/*/*.js

SOURCES_BASIC = \
$(BASE_SOURCES) \
Expand Down Expand Up @@ -98,6 +103,7 @@ BUILD_DIR_EXISTS = $(BUILD_DIR)/.exists--used_by_Makefile
.PHONY: all basic dev js uglify css font clean
all: font css uglify
basic: $(UGLY_BASIC_JS) $(BASIC_CSS)
unminified_basic: $(BASIC_JS) $(BASIC_CSS)
# dev is like all, but without minification
dev: font css js
js: $(BUILD_JS)
Expand All @@ -111,24 +117,28 @@ $(PJS_SRC): $(NODE_MODULES_INSTALLED)

$(BUILD_JS): $(INTRO) $(SOURCES_FULL) $(OUTRO) $(BUILD_DIR_EXISTS)
cat $^ | ./script/escape-non-ascii > $@
perl -pi -e s/mq-/$(MQ_CLASS_PREFIX)mq-/g $@
perl -pi -e s/{VERSION}/v$(VERSION)/ $@

$(UGLY_JS): $(BUILD_JS) $(NODE_MODULES_INSTALLED)
$(UGLIFY) $(UGLIFY_OPTS) < $< > $@

$(BASIC_JS): $(INTRO) $(SOURCES_BASIC) $(OUTRO) $(BUILD_DIR_EXISTS)
cat $^ | ./script/escape-non-ascii > $@
perl -pi -e s/mq-/$(MQ_CLASS_PREFIX)mq-/g $@
perl -pi -e s/{VERSION}/v$(VERSION)/ $@

$(UGLY_BASIC_JS): $(BASIC_JS) $(NODE_MODULES_INSTALLED)
$(UGLIFY) $(UGLIFY_OPTS) < $< > $@

$(BUILD_CSS): $(CSS_SOURCES) $(NODE_MODULES_INSTALLED) $(BUILD_DIR_EXISTS)
$(LESSC) $(LESS_OPTS) $(CSS_MAIN) > $@
perl -pi -e s/mq-/$(MQ_CLASS_PREFIX)mq-/g $@
perl -pi -e s/{VERSION}/v$(VERSION)/ $@

$(BASIC_CSS): $(CSS_SOURCES) $(NODE_MODULES_INSTALLED) $(BUILD_DIR_EXISTS)
$(LESSC) --modify-var="basic=true" $(LESS_OPTS) $(CSS_MAIN) > $@
perl -pi -e s/mq-/$(MQ_CLASS_PREFIX)mq-/g $@
perl -pi -e s/{VERSION}/v$(VERSION)/ $@

$(NODE_MODULES_INSTALLED): package.json
Expand Down
20 changes: 20 additions & 0 deletions docs/Api_Methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,26 @@ Simulates typing text, one character at a time from where the cursor currently i
mathField.typedText('x=-b\\pm \\sqrt b^2 -4ac');
```

## .setAriaLabel(ariaLabel)

Specify an [ARIA label][`aria-label`] for this field, for screen readers. The actual [`aria-label`] includes this label followed by the math content of the field as speech. Default: `'Math Input'`

## .getAriaLabel()

Returns the [ARIA label][`aria-label`] for this field, for screen readers. If no ARIA label has been specified, `'Math Input'` is returned.

## .setAriaPostLabel(ariaPostLabel, timeout)

Specify a suffix to be appended to the [ARIA label][`aria-label`], after the math content of the field. Default: `''` (empty string)

If a timeout (in ms) is supplied, and the math field has keyboard focus when the time has elapsed, an ARIA alert will fire which will cause a screen reader to read the content of the field along with the ARIA post-label. This is useful if the post-label contains an evaluation, error message, or other text that the user needs to know about.

## .getAriaPostLabel()

Returns the suffix to be appended to the [ARIA label][`aria-label`], after the math content of the field. If no ARIA post-label has been specified, `''` (empty string) is returned.

[`aria-label`]: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute

## .config(new_config)

Changes the [configuration](Config.md) of just this math field.
Expand Down
11 changes: 1 addition & 10 deletions docs/Config.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Just like [`autoCommands`](#autocommands) above, this takes a string formatted a
`maxDepth` specifies the maximum number of nested MathBlocks. When `maxDepth` is set to 1, the user can type simple math symbols directly into the editor but not into nested MathBlocks, e.g. the numerator and denominator of a fraction.

Nested content in latex rendered during initialization or pasted into mathquill is truncated to avoid violating `maxDepth`. When `maxDepth` is not set, no depth limit is applied by default.
You can also specify a speech-friendly representation of the operator name by supplying the operator name, a `|` and its speech alternative (separate multiple words with a `-`). For example, `'sin|sine cos|cosine tan|tangent sinh|hyperbolic-sine'`.

## substituteTextarea

Expand Down Expand Up @@ -158,13 +159,3 @@ For example, to style as white-on-black instead of black-on-white use:
border-color: white;
background: black;
}
#my-math-input .mq-matrixed {
background: black;
}
#my-math-input .mq-matrixed-container {
filter: progid:DXImageTransform.Microsoft.Chroma(color='black');
}

## Color Change Support on IE8

To support a MathQuill editable background color other than white in IE8, set the background color on both the editable mathField and on elements with class `mq-matrixed`. Then set a Chroma filter on elements with class `mq-matrixed-container`.
Loading