Commit Graph

185 Commits

Author SHA1 Message Date
Davide P. Cervone
f47dbc4cc0 Merge branch 'issue119' into develop 2012-08-20 10:13:25 -04:00
Davide P. Cervone
91df5dae5b Combine multiple primes into single unicode characters. Issue #216. 2012-08-20 09:05:57 -04:00
Davide P. Cervone
55a76151c0 Use the unicode characters that Fred has been asking for for a while. This covers most of issues #116, #119, and #216. Still need to merge multiple primes into the characters for those. 2012-08-19 20:13:46 -04:00
Davide P. Cervone
98b39eca90 For stretchy characters that don't have a single-character version in the MathJax fonts, make sure they are properly sized when not stretched or stretched to a small size. Also, make vertical ones stand on the baseline, and improve spacing of some stretchy chars. Resolves issue #213. 2012-08-19 08:08:15 -04:00
Davide P. Cervone
4f722d050f Make mtextFontInherit use the style and weight indicated in the math, so that \textbf and \textit will work properly. Resolves issue #226. 2012-08-17 19:35:50 -04:00
Davide P. Cervone
ecc14cf9b2 Make <mo>'</mo> produce script-positioned prime in MathJax fonts, while still allowing \prime to produce proper TeX output (a bit of contortion needed in the font remapping tables to allow it to override the character in MathJax_Main while still being able to use it for \prime). Resolves issue #268. 2012-08-14 14:39:37 -04:00
Davide P. Cervone
35119a25c4 Provide a separate span for semantics elements so linebreaking works properly (resolves issue #247) 2012-05-18 21:47:54 -04:00
Davide P. Cervone
fd74ad5dd9 Don't reuse an element with an ID with the wrong parent (resolves issue #240) 2012-05-18 21:41:40 -04:00
Davide P. Cervone
5812cbcb9b Make HTML-CSS and SVG output jax remove properly handle the Processed class when removing the previous results after a restart 2012-05-18 21:28:40 -04:00
Davide P. Cervone
920c603a4b Have output jax properly skip math when the input jax has had an internal failure and so didn't produce any element jax. (Resolves issue #228.) 2012-04-11 11:50:15 -04:00
Davide P. Cervone
b08db7d93e Fix problem in HTML-CSS output with msubsup when super- or subscript has explicit style 2012-03-06 10:02:42 -05:00
Davide P. Cervone
4522a15f50 Make sure height is above depth when making spaces and rules in HTML-CSS and SVG output 2012-02-17 10:41:22 -05:00
Davide P. Cervone
104775c795 Make font test against default font also include height, not just width, to help avoid the case where the test string is the same in the default font as the web font. Also, update the test strings to include characters that should help distinguish them better. Update the data files to the current versions of the fonts (lots of tiny differences, but nothing crucial) 2012-02-15 17:03:45 -05:00
Davide P. Cervone
301c7d1f2e Actually delete the previews rather than just hide them (some screen readers don't properly handle them) 2012-02-12 20:08:53 -05:00
Davide P. Cervone
a8e844c1e7 Isolate MathJax images from page's float CSS 2012-02-09 14:20:57 -05:00
Davide P. Cervone
fe8c5b9899 Work around Opera's translation of font-weight:normal to font-weight:400 2012-02-08 14:18:45 -05:00
Davide P. Cervone
e3e843fd7a Fix problem with handling of initial negative spaces when initialSpaceBug is true (Opera and IE). 2012-02-08 10:34:16 -05:00
Davide P. Cervone
d21d075463 Handle conflicts between inherited mathvariant and fontfamily properly. (Fixes problem with ms having default mathvariant='monospace' when fontfamily is specified). Fix bold for stretched operators when weight is specified numerically. 2012-02-08 09:03:00 -05:00
Davide P. Cervone
0b1f9dc0c3 Handle mixed mathvariant and styles in SVG output (like in HTML-CSS) and make explicit fontfamily, fontweight, or fontstyle (even inherited) override style setting. Finally, handle numeric font-wieght (Opera converts bold that 700) 2012-02-07 19:17:52 -05:00
Davide P. Cervone
54c6d43140 Handle mixing of mathvariant with style settings better (but this does mean that variants without the proper weight or style will remain unchanged) 2012-02-07 18:10:31 -05:00
Davide P. Cervone
6e8ff20e07 Make lspace and voffset handle bad unit better 2012-02-07 11:59:43 -05:00
Davide P. Cervone
bbac5d10ac Use z-index=0 rather than 1 for Opera (that seems to be the default for positioned elements, but it needs to be specified for colored backgrounds to show up properly) 2012-02-06 11:51:27 -05:00
Davide P. Cervone
0a070ff628 Allow background colors to be shown properly in Opera (this may need additional checks) 2012-02-05 18:47:45 -05:00
Davide P. Cervone
f30f917c22 Fix problem with size of colored background when padding-left is present (discovered from Fred's testing). 2012-02-04 17:48:51 -05:00
Davide P. Cervone
99bb83a86f Fix typo that causes italics to be lost in some circumstances 2012-02-02 19:08:45 -05:00
Davide P. Cervone
a9a3635ec0 Get scaling correct when fontfamily is specified (need two spans so that fontsize can be multiplied by factor to adjust for scaling of math) 2012-02-02 18:54:34 -05:00
Davide P. Cervone
99d7828839 Get size to work properly when style sets the font size 2012-02-02 16:29:46 -05:00
Davide P. Cervone
5694332a99 Another try at getting elements with text coming from multiple fonts to work properly. 2012-02-02 16:12:36 -05:00
Davide P. Cervone
23472e3f87 Add U+2032 through U+2037 to the STIX characters that must come from the variants font; don't special case U+2032 in TeX input or STIX font tables. 2012-01-31 14:09:24 -05:00
Davide P. Cervone
2a3608ee37 Make EqnChunk smaller for mobile devices, and implement the chunk delay (inadvertantly left out) 2012-01-30 16:58:11 -05:00
Davide P. Cervone
9d7b67a10c Fix problem with extra space being added to class name (was causing mspace with background color to to show up properly) 2012-01-30 08:05:45 -05:00
Davide P. Cervone
02909ecba4 Update copyright dates and set version numbers to 2.0; repack and recombine 2012-01-25 09:23:45 -05:00
Davide P. Cervone
b02429e1ad Have MathJax.js set up MathPlayer if it can (since delaying that is what causes crashes). Also make preview be hidden to prevent screen readers from seeing them once the math is typeset. 2012-01-22 17:40:46 -05:00
Davide P. Cervone
a4d08f6522 Improve font detection for WebKit browsers (still doesn't work for Safari/Win). May resolve issue #65. 2012-01-19 18:48:11 -05:00
Davide P. Cervone
afb4257a83 Add WOFF fonts and use them in browsers that support them; fix error in font reporting in About box 2012-01-19 10:18:52 -05:00
Davide P. Cervone
db29cf3414 Fix a measuring problem in Firefox 2012-01-18 16:19:23 -05:00
Davide P. Cervone
0410bdc8ac Remap bold combined negations to uncombioned pairs when they aren't in the web fonts 2012-01-18 12:27:42 -05:00
Davide P. Cervone
682fe27d7e Remap letter-like symbols to the variants where they exist in teh web fonts 2012-01-16 17:17:39 -05:00
Davide P. Cervone
9a092fe68b Modify accents to use better characters in some circumstances (basically the right arrow at the moment) 2012-01-15 15:26:36 -05:00
Davide P. Cervone
db55f22ba7 Handle pseudo-scripts better (don't translate <mo>'s that aren't in superscripts, and do translate the ones that are) 2012-01-14 20:30:13 -05:00
Davide P. Cervone
65892262ac Move remapping of <mo> contents to output jax, so that the original MathML is left unchanged 2012-01-14 16:33:43 -05:00
Davide P. Cervone
9763b5754f Handle \not better (produce proper unicode points for negated characters, when possible, use \u0338 when possible, and do \mathrel{\rlap{/}} otherwise). Add remappings to convert unavailable combinations back to combining characters for web-based fonts (this also makes it possible to handle double and tripple prime unicode code points). 2012-01-14 15:05:47 -05:00
Davide P. Cervone
1b20e06e30 More fixes to make multi-character elements with characters taken from different fonts work out better 2012-01-14 13:23:34 -05:00
Davide P. Cervone
5b62a98b1b Fix problem with font change within an element (when the variant is still the same one, which was the old condition; now use font name) 2012-01-13 19:31:58 -05:00
Davide P. Cervone
bb35eb004c Add full support for unicode planes 1 through 10 (both in \unicode{}, as input, and in HTML-CSS and SVG output) 2012-01-13 12:29:44 -05:00
Davide P. Cervone
266360e9d2 Don't combine mathvariant and fontstyle or fontweight (Fred pointed out this isn't supposed to happen) 2012-01-12 18:54:57 -05:00
Davide P. Cervone
af2cd3476f Update \unicode to work with SVG, and to better handle fonts and sizes. Also fix HTML-CSS font size when fontfamily is specified 2012-01-12 17:20:21 -05:00
Davide P. Cervone
e4089cfd6e Properly handle width of border and padding in merrors in HTML-CSS output 2012-01-09 11:58:19 -05:00
Davide P. Cervone
6e4ac11c91 Make font timeout longer, and make even longer for mobile devices. Only switch to image fonts if the first web font fails to load (if one loaded, you should get the others). 2012-01-06 20:35:26 -05:00
Davide P. Cervone
6aec9ae573 Add unknownChar() function and have it post a signal for undefined characters 2012-01-06 19:11:47 -05:00