Draft: Add mathjax v3 support#96
Conversation
There was a problem hiding this comment.
Shame the brackets aren't nice (the same with mathjax)
There was a problem hiding this comment.
The f diacritic here looks like it isn't well placed.
There was a problem hiding this comment.
The diacritic here is not well placed either.
There was a problem hiding this comment.
This is the core of the implementation - it is almost entirely generated.
There was a problem hiding this comment.
I doubt this works well on github - we should get this rendering nicely.
There was a problem hiding this comment.
Hard coded paths need fixing
There was a problem hiding this comment.
Nor this - shouldn't be here.
There was a problem hiding this comment.
I think we can remove this.
| const SURD_BAR_NUDGE_SVG = 40; | ||
| const SURD_BAR_NUDGE_PX = 2; | ||
|
|
||
| const SURD_PATH = `m 1320,3691 c -8,-6 -17,-8 -21,-6 -6,4 -140,-124 -164,-156 -5,-8 -23,-31 -38,-52 -32,-43 -46.3589,-214.6662 -67,-412 -21,-234 -89,-3429 -124,-3680 -30.43312,-217.37946 -45.22736,-513.5633 -54,-690 -34.12704,-184.7142 -42.94822,-375.7902 -82,-560 -5,-22 -16,-96 -26,-165 -9,-69 -20,-133 -23,-143 -5,-13 -19,12 -50,87 -24,58 -46,106 -50,108 -5,2 -25,48 -46,103 -51.37238,134.5467 -85,187.2366 -85,214 0,30 -132,155 -240,228 -76,51 -117,30 -215,-112 -40,-57 -44,-94 -16,-145 11,-19 28,-53 40,-76 36.056956,-72.1139 54.23868,-33.8922 165,-319 26,-66 59,-149 73,-185 33,-81 136,-281 173,-335 26,-39 94,-151 159,-265 98.64586,-208.7933 330.01201,-101.8829 368,-19 41,87 69,230 162,804 5,33 30,177 54,320 25,143 45,274 45,290 1,17 9,77 20,135 11,58 8,136 11,175 15,164 36,553 60,690 16,89 67,3152 76,3300 3,55 10,173 17,261 l 11,161 51,-13 c 124,-31 1699,-37 1882,-24 186,13 237,7 310,-15 37,-11 47,-10 85,7 24,10 46,22 49,26 3,5 26,21 52,37 34,21 52,42 63,69 16,38 15,41 -9,89 -14,27 -26,60 -26,73 0,28 -37,84 -56,84 -6,0 -31,9 -54,19 -39,17 -66,19 -359,16 -451,-4 -1904,7 -2091,79 -8,3 -22,2 -30,-3 z`; |
There was a problem hiding this comment.
The coordinates came from 2343_mathematical_symbol_fight_2x.png. I would like this to be part of the font...
The character we have in the handwriting sample is not as long as the one in https://xkcd.com/2343/
There was a problem hiding this comment.
I think the line thickness on the division could be more consistent here.
|
Great! Please be sure to use the summation symbol found in handwriting_minimal.png. |
Closes #90. The new font-file is just the adapted characters from the original xkcd-script, rather than being a complete font by itself. We adapt the size of things like sigma, Pi, and the integration symbol.