Davide P. Cervone
04bb13e932
Lookup stack container for stretchy operators for msubsup in CHTML. Resolves issue #1287 .
2015-10-18 07:33:24 -04:00
Davide P. Cervone
ecbfb344c3
Move event handler to maction element rather than duplication it in two places (for HTML-CSS output).
2015-10-17 23:36:13 -04:00
Davide P. Cervone
415be7eaf7
Add explicit table border-spacing since Firefox seems to need this to avoid too large a space around the math when focusing. If the spacing is too small, it seems that Firefox fails to treat the inlein-table as a table, so use 3px and use the margin to remove it so there is no change in position.
2015-10-17 23:35:24 -04:00
Davide P. Cervone
83b482f4b4
Fix typo in bbox for mfrac, and add ability to draw debugging bounding box for a given element.
2015-10-17 22:19:54 -04:00
Davide P. Cervone
4c85dc09b9
Make mactions nest properly in SVG output
2015-10-17 06:01:15 -04:00
Davide P. Cervone
c68c690468
Make sure CHTML zoom has access to the proper container
2015-10-17 06:01:03 -04:00
Kevin Barabash
d87ee4f78f
Merge pull request #366 from Khan/add_width_to_font_metrics
...
Add a build step to generate extended metrics that additionally contain glyph widths
2015-10-16 14:41:31 -07:00
Kevin Barabash
1573e1eed6
Add a build step to generate extended metrics that additionally contain glyph widths
...
Summary:
The ability to use pre-determined character widths will benefit alternative
layout engines such as gagern's canvas layout engine. I would also like to
experiment would using CSS transforms to absolutely position each glyph. This
diff adds a new make rule, make extended_metrics, which generates metrics that
also containing glyph widths.
Test Plan:
- run `make extended_metrics`
- verify that fontMetricsData.js contains entries with 5 numbers instead of 4
Reviewers: emily alpert
2015-10-16 14:31:08 -07:00
Davide P. Cervone
b679e7e4df
Merge branch 'issue1279' into develop. Issue #1279 .
2015-10-14 09:09:35 -04:00
Davide P. Cervone
48e3ed1047
Merge branch 'issue1283' into develop. Issue #1283 .
2015-10-14 08:01:41 -04:00
Davide P. Cervone
169d08bcd7
Merge branch 'issue1285' into develop. Issue #1285 .
2015-10-14 08:00:38 -04:00
Davide P. Cervone
c8d09126b5
Make table frame and lines respect the scaling factor for the table (so they get thicker if the table is scaled). Issue #1279
2015-10-13 06:23:17 -04:00
Davide P. Cervone
c8ea88e195
Make horizontal lines have minimum lickness of 1px so they don't disappear. Issue #1279 .
2015-10-13 06:15:32 -04:00
Davide P. Cervone
3b8ab2e5c1
Round em's to nearest pixel to avoid WebKit alignment issues. Resolves issue #1283 .
2015-10-11 18:57:38 -04:00
Davide P. Cervone
7c3fbd95cc
Mark CHTML output so that tex2jax won't re-process it. Resolves issue #1285 .
2015-10-11 14:31:41 -04:00
Davide P. Cervone
0c77e8c880
Repack and recombine for 2.6-beta.1
2015-10-08 20:54:21 -04:00
Davide P. Cervone
225ac4680f
Update version numbers of changed files
2015-10-08 20:52:14 -04:00
Davide P. Cervone
974b5d34c8
Merge branch 'issue1281' into develop. Issue #1281 .
2015-10-08 20:46:10 -04:00
Davide P. Cervone
74c7898fca
Merge branch 'issue1279' into develop. Issue #1279 .
2015-10-08 20:45:59 -04:00
Davide P. Cervone
015c36ef84
Merge branch 'issue1278' into develop. Issue #1278 .
2015-10-08 20:45:41 -04:00
Davide P. Cervone
bd5c6d7496
Scale pixels by the scaling factor in effect for node (since they are not relative units and won't be scaled automatically). Issue #1279
2015-10-08 08:35:59 -04:00
Davide P. Cervone
4765effa5f
Make sure horizontal lines have units in pixels rather than ems so they are less likely to disappear
2015-10-08 08:19:05 -04:00
Davide P. Cervone
9da8bc6fdb
Have non-token elements get the correct scaling factor (using the proper mathsize) rather than setting it to 1. This resolves issue #1281 .
2015-10-08 08:12:29 -04:00
Davide P. Cervone
47163b5c70
Add missing ':focus' in CSS for handling outline better
2015-10-08 08:07:30 -04:00
Davide P. Cervone
1fa9bbaef0
Force width of mrow if there is negative space within the mrow (to work around WebKit bug). Resolves issue #1278 .
2015-10-07 18:06:49 -04:00
Davide P. Cervone
e3f65aa912
Merge branch 'issue1282' into develop. Issue #1282 .
2015-10-07 17:59:52 -04:00
Davide P. Cervone
4d6190c581
Use inline-table to make focus outline work better for all browsers. Resolves issue #1282
2015-10-06 20:48:15 -04:00
Davide P. Cervone
45853fad3e
Merge branch 'issue1276' into develop. Issue #1276 .
2015-10-06 20:33:51 -04:00
Kevin Barabash
ee88cc3c11
Merge pull request #363 from gagern/modeStateful
...
Make mode part of the internal state of the parser
2015-10-05 16:36:05 +00:00
Kevin Barabash
9aab9c1efe
Merge pull request #361 from crepererum/feature/gt_lt
...
Add \gt and \lt
2015-10-05 16:32:49 +00:00
Marco Neumann
95e568ed6b
Add \gt and \lt
2015-10-05 08:34:03 +02:00
Martin von Gagern
cabc08598b
Make mode part of the internal state of the parser
...
This is the first step towards #266 .
2015-10-04 20:35:43 +02:00
Kevin Barabash
e9f4b07611
Merge pull request #364 from gagern/lexerRewrite
...
Refactor lexer, avoiding some mode-specific distinctions
2015-10-03 13:31:51 -07:00
Davide P. Cervone
6535c031ed
Fix alignment problems with horizontal stretched characters. Resolves issue #1276 .
2015-10-03 08:31:17 -04:00
Martin von Gagern
d423bec089
Rewrote lexer, avoiding some mode-specific distinctions
...
There are two main motivations for this commit. One is unicode input, which
requires unicode characters to get past the lexer. See discussion in #261 .
The second is in preparation for #266 , where we'd deal with one token of
look-ahead but might be lexing that token in an unknown mode in some cases.
The unit test shipped with this commit addresses the latter concern, since
it checks that a math-mode-only token may immediately follow some text mode
content group.
In this new implementation, all the various things that could get matched
have been collected into a single regular expression. The hope is that
this will be beneficial for performance and keep the code simpler.
The code was written with Unicode input in mind, including non-BMP codepoints.
The role of the lexer as a gate keeper, keeping out invalid TeX syntax, has
been abandoned. That role is still fulfilled by the symbols and functions
tables, though, since any input which is neither a symbol nor a command is
still considered invalid input, even though it lexes successfully.
2015-10-02 20:06:03 +02:00
Davide P. Cervone
2fbc393e1a
Merge branch 'issue1272' into develop. Issue #1272 .
2015-10-02 12:48:04 -04:00
Davide P. Cervone
f6b72dda3a
Merge branch 'issue1271' into develop. Issue #1271 .
2015-10-02 12:47:55 -04:00
Davide P. Cervone
1f758f1110
Merge branch 'issue1273' into develop. Issue #1273 .
2015-10-02 12:47:43 -04:00
Kevin Barabash
95e2f1c8d7
Merge pull request #356 from gagern/callingConvention
...
New calling convention for functions and environments
2015-10-01 08:42:52 -07:00
Martin von Gagern
30f7a1c5bf
New calling convention for functions and environments
...
Fixes issue #255 .
Mixing the variable number of arguments a function receives from TeX code
with the fixed arguments which the parser provides can cause some confusion.
After this change, a handler will receive exactly two arguments: one is a
context object from which things provided by the parser can be accessed by
name, which allows for simple extensions in the future. The other is the
list of TeX arguments, passed as an array.
If we ever switch to EcmaScript 2015, we might want to use its destructuring
features to name the elements of the args array in the function head. Until
then, destructuring that array manually immediately at the beginning of the
function seems like a useful convention to easily find the meaning of these
arguments.
2015-10-01 13:15:44 +02:00
Davide P. Cervone
fe5d05f07b
Fix spacing of eqnarray environment. Resolves issue #1272
2015-09-30 21:51:36 -04:00
Kevin Barabash
a81c4fe78d
Merge pull request #362 from Khan/array_font_metrics
...
Use an array of values instead of object literals to save space in fontMetricsData.js
2015-09-30 10:00:23 -07:00
Kevin Barabash
6a10237017
Use an array of values instead of object literals to save space in fontMetricsData.js
...
Test Plan: make test
Reviewers: emily
2015-09-29 22:16:03 -07:00
Davide P. Cervone
7200c2e9a5
Add support for PreviewHTML and CommonHTML to noErrors extension. Resolves issue #1271
2015-09-29 23:10:12 -04:00
Davide P. Cervone
90fdfd4783
Fix isMathJaxNode() to work with NativeMML output and don't worry about tagName starting with 'mjx-' since CHTML doesn't do that anymore. Fix isJax() to call isMathJaxNode() properly. Remove isMathJaxNode() call from HashCheck(), since that is taken care of in getJaxFor() automatically. Resolves issue #1273 .
2015-09-29 22:01:11 -04:00
Kevin Barabash
fdbdb28617
Merge pull request #346 from gagern/splitSymbols
...
Reformat symbol table
2015-09-25 14:56:18 -07:00
Kevin Barabash
f25829df58
Redirect people to gitter instead of freenode
2015-09-25 14:35:23 -07:00
Kevin Barabash
8e54d6e365
Merge pull request #360 from gitter-badger/gitter-badge-1
...
Add a Gitter chat badge to README.md
2015-09-25 14:32:23 -07:00
The Gitter Badger
b9b8396b6f
Add Gitter badge
2015-09-25 21:28:31 +00:00
Kevin Barabash
3203959b96
Merge pull request #352 from Khan/fix_font_greediness
...
Set the greedines of font functions to 2 so that e^\mathbf{x} will parse
2015-09-25 14:20:23 -07:00