Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1061 commits
Select commit Hold shift + click to select a range
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
36e20d6
#797 less 3.0.1 breaks build because @var:; is non standard
electriccode Mar 28, 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
23a0e88
Merge pull request #803 from electriccode/lessc-3.0.1-breaks-build
laughinghan Jun 13, 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
2e6be32
Merge pull request #654 from Learnosity/nesting-limit
kschaefe Dec 19, 2018
3e8643f
Merge pull request #761 from CENTURY-Tech/master
kschaefe Dec 19, 2018
f03e334
Merge pull request #782 from desmosinc/fix-text-compute-speed
kschaefe Dec 19, 2018
5cab908
Merge pull request #787 from dominique-unruh/langle-rangle-fix
kschaefe Dec 19, 2018
3ee4fb0
Merge pull request #751 from erikkrasner/fix.548-add-inert-option-to-…
kschaefe Dec 20, 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
248691d
Merge pull request #779 from savthegood/patch-1
kschaefe Jan 24, 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
7f7f0af
Change MathQuill docs theme back to RTD from MkDocs
laughinghan 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
4d773ad
Add parentheses to superscript text template
sashaalesin May 8, 2020
b19a9dd
Add text method to SupSub
sashaalesin May 8, 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
96bf138
Fix #794: TextBlocks dispatch reflow at the wrong time
laughinghan May 19, 2020
19a8db4
Update circle.yml from 1.0 to 2.0 using config-translation
laughinghan May 19, 2020
0ca5b55
Attempt to fix CI
laughinghan May 19, 2020
e7944e2
Upgrade CircleCI Docker image
laughinghan May 19, 2020
e9baa3d
Fix broken Sauce Connect download link
laughinghan May 19, 2020
545422d
Merge branch 'master' into fix-text-edit-handler
laughinghan May 20, 2020
d1081c3
Merge pull request #895 from mathquill/fix-text-edit-handler
laughinghan May 21, 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
07460a1
Fix pasting into text blocks
jaltekruse Sep 11, 2020
35891a4
Fix round tripping for mathbb symbols
jaltekruse Sep 11, 2020
666ed8e
Fix unit test page to work on CI
laughinghan Sep 15, 2020
ab7c6e5
Merge pull request #913 from mathquill/ci.fix-unit-test-page-parseQuery
jaltekruse Sep 15, 2020
2416b9b
Merge remote-tracking branch 'origin/master' into pasting-into-text-b…
jaltekruse Sep 15, 2020
2642f6e
Merge remote-tracking branch 'origin/master' into mathbb-round-tripping
jaltekruse Sep 15, 2020
fac0dbf
Merge pull request #911 from jaltekruse/pasting-into-text-block
laughinghan Sep 15, 2020
f1027c8
Merge pull request #910 from jaltekruse/mathbb-round-tripping
laughinghan Sep 15, 2020
1dcb456
Merge pull request #902 from CarnegieLearningWeb/feature-makeStatic
laughinghan Sep 15, 2020
7d5ff3d
Merge pull request #893 from sashaalesin/master
laughinghan Sep 15, 2020
19b4faf
Merge pull request #788 from mathspace/#785-pressing-backspace-delete…
laughinghan Sep 15, 2020
8b8e831
Fix testcase for #893
laughinghan Sep 15, 2020
ead472c
Fix #902 to use older jQuery method
laughinghan Sep 15, 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
97aafe7
Fix Big Sur build
jwmerrill May 9, 2021
ab6cc48
Merge pull request #153 from desmosinc/fix-big-sur-build
jwmerrill May 10, 2021
6a5e081
Merge pull request #932 from mathquill/fix-big-sur-build-upstream
laughinghan May 12, 2021
a1004aa
Fix redundant focus event on paste
jwmerrill Jun 1, 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
d9b54db
Merge pull request #934 from mathquill/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
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
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* text=lf

# don't mess with fonts
src/font/* text=binary
src/fonts/* text=binary
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/tmp

# build tools
/node_modules

# dist
/build
/mathquill-*.tgz
/mathquill.github.com
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.
59 changes: 54 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
## v0.10.0: 2016-02-20
## v0.10.1: Fix `font-size: 0` typing problems and more

_2016-03-21_

Important fix: remove `font-size: 0` on textarea (#585), fixing typing
in Chrome Canary (#540) as well as the Enter key not triggering the
`enter` handler in Webkit and Blink (#566). `transform: scale(0)` is
used instead and expected to be much more robust.

(Note: if you're coming from v0.9.x, there've been major API changes,
see the [v0.9.x → v0.10.0 Migration Guide][].)

[v0.9.x → v0.10.0 Migration Guide]: https://github.com/mathquill/mathquill/wiki/v0.9.x-%E2%86%92-v0.10.0-Migration-Guide

**new features:**
- (#544, #552, #558, #581) new symbols `\nparallel`, `\measuredangle`,
`\odot`, `\parallelogram` (nonstandard), `\nless`, `\ngtr`, `\square`
- (#544) new commands `\overleftarrow`, `\overrightarrow`


**bugfixes:**
- (#585) fix typing in Chrome Canary, Enter key in Webkit+Blink
- (#582) fix `\degree` symbol to round-trip (rather than exporting
`^\circ` which doesn't parse as one symbol)
- (#578) fix `.text()` to output `\cdot` as `*`
- (#529, #571, #574) fix `.text()` of fractions, spaces, variables followed
by exponents
- (#577) fix `\triangle` symbol to match LaTeX better
- (#568) hotfix #435 order-dependence breaking clean build on Linux
- (#560) fix florin spacing still too close
- (#546) fix parsing or pasting `×` (Unicode times symbol)
- (#519/#487) fix auto-horizontal-scroll/pan on API calls
- (#528) fix #429 can't move cursor out of `TextBlock`
- (#526) fix exponentiation to export `^` not `**`
- (#525) fix Tab while there's a selection

**build system fixes:**
- (#532) add console output to show URL of local test pages

## v0.10.0: Total API overhaul, new features galore

_2016-02-20_

Many major changes including a total overhaul of the API (no more
auto-MathQuill-ifying of `.mathquill-editable` etc, and no more jQuery
Expand Down Expand Up @@ -100,7 +141,9 @@ itself): See the [v0.9.x → v0.10.0 Migration Guide]
- (#117, #142, #186, #287) massive refactor of cursor methods to not
assume the edit tree is double-layered

## v0.9.4: 2014-1-22
## v0.9.4: URGENT HOTFIX for cursor showing up as an ugly box in Chrome 40

_2014-1-22_

URGENT HOTFIX for cursor showing up as an ugly box in Chrome 40 (#371)

Expand All @@ -118,7 +161,9 @@ URGENT HOTFIX for cursor showing up as an ugly box in Chrome 40 (#371)
**docs:**
- (#283) change license from LGPL to Mozilla Public License

## v0.9.3: 2013-11-11
## v0.9.3: Fix `NZQRC` appearing double-struck/blackboard bold

_2013-11-11_

**new features:**
- (#185) add `\vec`
Expand All @@ -137,7 +182,9 @@ URGENT HOTFIX for cursor showing up as an ugly box in Chrome 40 (#371)
- (#189) replace Connect with tiny handwritten static server
- upgrade to uglifyjs2

## v0.9.2: 2013-04-02
## v0.9.2: Fix bug in hotfix for typing over selections in Safari 5.1

_2013-04-02_

NOTE: The hotfix for typing over selections in Safari 5.1 (#135) from
v0.9.1 had a huge bug, fixed as #166.
Expand All @@ -162,7 +209,9 @@ v0.9.1 had a huge bug, fixed as #166.
- New site-building system
- no more submodules, `npm` only

## v0.9.1: 2012-12-19
## v0.9.1: Hotfix for typing over selections in Safari 5.1

_2012-12-19_

* Started the changelog
* Added a `make publish` script
Expand Down
147 changes: 46 additions & 101 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
#
# -*- Prerequisites -*-
#

# the fact that 'I am Node.js' is unquoted here looks wrong to me but it
# CAN'T be quoted, I tried. Apparently in GNU Makefiles, in the paren+comma
# syntax for conditionals, quotes are literal; and because the $(shell...)
# call has parentheses and single and double quotes, the quoted syntaxes
# don't work (I tried), we HAVE to use the paren+comma syntax
ifneq ($(shell node -e 'console.log("I am Node.js")'), I am Node.js)
ifeq ($(shell nodejs -e 'console.log("I am Node.js")' 2>/dev/null), I am Node.js)
$(error You have /usr/bin/nodejs but no /usr/bin/node, please 'sudo apt-get install nodejs-legacy' (see http://stackoverflow.com/a/21171188/362030 ))
endif

$(error Please install Node.js: https://nodejs.org/ )
endif

#
# -*- Configuration -*-
#
Expand All @@ -15,13 +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/*.js \
$(SRC_DIR)/commands/*/*.js
$(SRC_DIR)/commands/math.js \
$(SRC_DIR)/commands/text.js \
$(SRC_DIR)/commands/math/*.js

SOURCES_BASIC = \
$(BASE_SOURCES) \
Expand All @@ -33,8 +59,8 @@ CSS_DIR = $(SRC_DIR)/css
CSS_MAIN = $(CSS_DIR)/main.less
CSS_SOURCES = $(shell find $(CSS_DIR) -name '*.less')

FONT_SOURCE = $(SRC_DIR)/font
FONT_TARGET = $(BUILD_DIR)/font
FONT_SOURCE = $(SRC_DIR)/fonts
FONT_TARGET = $(BUILD_DIR)/fonts

UNIT_TESTS = ./test/unit/*.test.js

Expand All @@ -49,11 +75,6 @@ BASIC_CSS = $(BUILD_DIR)/mathquill-basic.css
BUILD_TEST = $(BUILD_DIR)/mathquill.test.js
UGLY_JS = $(BUILD_DIR)/mathquill.min.js
UGLY_BASIC_JS = $(BUILD_DIR)/mathquill-basic.min.js
CLEAN += $(BUILD_DIR)/*

DISTDIR = ./mathquill-$(VERSION)
DIST = $(DISTDIR).tgz
CLEAN += $(DIST)

# programs and flags
UGLIFY ?= ./node_modules/.bin/uglifyjs
Expand All @@ -79,41 +100,50 @@ BUILD_DIR_EXISTS = $(BUILD_DIR)/.exists--used_by_Makefile
# -*- Build tasks -*-
#

.PHONY: all basic dev js uglify css font dist clean
.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)
uglify: $(UGLY_JS)
css: $(BUILD_CSS)
font: $(FONT_TARGET)
dist: $(DIST)
clean:
rm -rf $(CLEAN)
rm -rf $(BUILD_DIR)

$(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
npm install
test -e $(NODE_MODULES_INSTALLED) || rm -rf ./node_modules/ # robust against previous botched npm install
NODE_ENV=development npm install
touch $(NODE_MODULES_INSTALLED)

$(BUILD_DIR_EXISTS):
Expand All @@ -124,12 +154,6 @@ $(FONT_TARGET): $(FONT_SOURCE) $(BUILD_DIR_EXISTS)
rm -rf $@
cp -r $< $@

$(DIST): $(UGLY_JS) $(BUILD_JS) $(BUILD_CSS) $(FONT_TARGET)
rm -rf $(DISTDIR)
cp -r $(BUILD_DIR) $(DISTDIR)
tar -czf $(DIST) --exclude='\.gitkeep' $(DISTDIR)
rm -r $(DISTDIR)

#
# -*- Test tasks -*-
#
Expand All @@ -143,83 +167,4 @@ test: dev $(BUILD_TEST) $(BASIC_JS) $(BASIC_CSS)

$(BUILD_TEST): $(INTRO) $(SOURCES_FULL) $(UNIT_TESTS) $(OUTRO) $(BUILD_DIR_EXISTS)
cat $^ > $@

#
# -*- site (mathquill.github.com) tasks
#

.PHONY: site publish site-pull

SITE = mathquill.github.com
SITE_CLONE_URL = [email protected]:mathquill/mathquill.github.com
SITE_COMMITMSG = 'updating mathquill to $(VERSION)'

DOWNLOADS_PAGE = $(SITE)/downloads.html
DIST_DOWNLOAD = $(SITE)/downloads/$(DIST)

site: $(SITE) $(SITE)/mathquill $(SITE)/demo.html $(SITE)/support $(DOWNLOADS_PAGE)

publish: site-pull site
pwd
cd $(SITE) \
&& git add -- mathquill demo.html support downloads downloads.html \
&& git commit -m $(SITE_COMMITMSG) \
&& git push

$(SITE)/mathquill: $(DIST)
mkdir -p $@
tar -xzf $(DIST) \
--directory $@ \
--strip-components=2

$(DIST_DOWNLOAD): $(DIST)
mkdir -p $(dir $@)
cp $^ $@

# freaking bsd, i swear
# adapted from https://developer.apple.com/library/mac/documentation/opensource/Conceptual/ShellScripting/PortingScriptstoMacOSX/PortingScriptstoMacOSX.html#//apple_ref/doc/uid/TP40004268-TP40003517-SW21
ifeq (x, $(shell echo xy | sed -r 's/(x)y/\1/' 2>/dev/null))
# gnu
SED = sed -r
SED_I = $(SED) -i
else
# bsd
SED = sed -E
SED_I = $(SED) -i ''
endif

$(DOWNLOADS_PAGE): $(DIST_DOWNLOAD)
@echo Using $(SED)
@echo -n updating downloads page...
@$(SED_I) \
-e '/Latest version:/ s/[0-9]+[.][0-9]+[.][0-9]+/$(VERSION)/g' \
$(DOWNLOADS_PAGE)
@mkdir -p tmp
@ls $(SITE)/downloads/*.tgz \
| egrep -o '[0-9]+[.][0-9]+[.][0-9]+' \
| fgrep -v $(VERSION) \
| sort -rn -t. -k 1,1 -k 2,2 -k 3,3 \
| sed 's|.*|<li><a class="prev" href="downloads/mathquill-&.tgz">v&</a></li>|' \
> tmp/versions-list.html
@$(SED_I) \
-e '/<a class="prev"/d' \
-e '/<ul id="prev-versions">/ r tmp/versions-list.html' \
$(DOWNLOADS_PAGE)
@rm tmp/versions-list.html
@echo done.

$(SITE)/demo.html: test/demo.html
cat $^ \
| $(SED) 's:../build/:mathquill/:' \
| $(SED) 's:local test page:live demo:' \
> $@

$(SITE)/support: test/support
rm -rf $@
cp -r $^ $@

$(SITE):
git clone $(SITE_CLONE_URL) $@

site-pull: $(SITE)
cd $(SITE) && git pull
perl -pi -e s/{VERSION}/v$(VERSION)/ $@
Loading