Make ␣ available in Typewrite font, and fix ‘ and ’#2
Conversation
This is based on Khan/MathJax-dev#2 which hasn't been accepted yet at the time this commit is made.
This is based on Khan/MathJax-dev#2 which hasn't been accepted yet at the time this commit is made.
| 0x15 => [0x306,-525,0], # \breve (combining) | ||
| 0x16 => [0x304,-525,0], # \bar (combining) | ||
| 0x17 => [0x30A,-525,0], # ring above (combining) | ||
| 0x20 => 0x2423, # graphic representation of space |
There was a problem hiding this comment.
Don't we want the actual space character it's self? \texttt{a b} in LaTeX puts a space between a and b instead of rendering a ␣.
There was a problem hiding this comment.
But the glyph at position 0x20 is a ␣ not a space. I guess LaTeX doesn't actually use space characters, because spaces are usually strecthable nonetheless, so it will insert horizontal positioning instructions into the PostScript (and later PDF) and doesn't need a character for this.
There was a problem hiding this comment.
I see. I was hoping that cmtt would have an real space, but it sounds like that doesn't seem to be the case.
This is based on Khan/MathJax-dev#2 which hasn't been accepted yet at the time this commit is made.
|
LGTM. We can use |
| 0x27 => 2018, # left quote | ||
| 0x60 => 2019, # right quote | ||
| 0x27 => 0x2018, # left quote | ||
| 0x60 => 0x2019, # right quote |
There was a problem hiding this comment.
mapping.pl in the KaTeX repo will also have to be updated to match.
This is based on Khan/MathJax-dev#2 which hasn't been accepted yet at the time this commit is made.
* Implement \verb * Implement @gagern's comments * \verb: look up characters one at a time. * Add screenshot test for \verb * Add error tests for \verb * Include space symbol in typewriter font, and fix single quotes This is based on Khan/MathJax-dev#2 which hasn't been accepted yet at the time this commit is made. * Add \verb* tests * \verb should use Typewriter-Regular font! * Switch \verb to use text mode and no-break space. * Screenshot update with Typewriter-Regular * \verb test: fix *, add commas to make spaces clear * Fix spaces and style handling * Implement @kevinbarabash's comments * Make error clearly an assertion failure * verb screenshot for Chrome
* Implement \verb * Implement @gagern's comments * \verb: look up characters one at a time. * Add screenshot test for \verb * Add error tests for \verb * Include space symbol in typewriter font, and fix single quotes This is based on Khan/MathJax-dev#2 which hasn't been accepted yet at the time this commit is made. * Add \verb* tests * \verb should use Typewriter-Regular font! * Switch \verb to use text mode and no-break space. * Screenshot update with Typewriter-Regular * \verb test: fix *, add commas to make spaces clear * Fix spaces and style handling * Implement @kevinbarabash's comments * Make error clearly an assertion failure * verb screenshot for Chrome
* Implement \verb * Implement @gagern's comments * \verb: look up characters one at a time. * Add screenshot test for \verb * Add error tests for \verb * Include space symbol in typewriter font, and fix single quotes This is based on Khan/MathJax-dev#2 which hasn't been accepted yet at the time this commit is made. * Add \verb* tests * \verb should use Typewriter-Regular font! * Switch \verb to use text mode and no-break space. * Screenshot update with Typewriter-Regular * \verb test: fix *, add commas to make spaces clear * Fix spaces and style handling * Implement @kevinbarabash's comments * Make error clearly an assertion failure * verb screenshot for Chrome
The former is needed for KaTeX/KaTeX#614, while the latter is something I noticed in KaTeX/KaTeX#286 but only now understood the reason for, namely a hexadecimal number incorrectly marked as decimal.