Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Conversation

gagern
Copy link
Collaborator

@gagern gagern commented Jan 12, 2017

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.

gagern added a commit to edemaine/KaTeX that referenced this pull request Jan 12, 2017
This is based on Khan/MathJax-dev#2
which hasn't been accepted yet at the time this commit is made.
gagern added a commit to edemaine/KaTeX that referenced this pull request Jan 12, 2017
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 .

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link

@kevinbarabash kevinbarabash Jan 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. I was hoping that cmtt would have an real space, but it sounds like that doesn't seem to be the case.

edemaine pushed a commit to edemaine/KaTeX that referenced this pull request Jan 12, 2017
This is based on Khan/MathJax-dev#2
which hasn't been accepted yet at the time this commit is made.
@kevinbarabash
Copy link

LGTM. We can use to implement \vsp.

0x27 => 2018, # left quote
0x60 => 2019, # right quote
0x27 => 0x2018, # left quote
0x60 => 0x2019, # right quote

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mapping.pl in the KaTeX repo will also have to be updated to match.

@kevinbarabash kevinbarabash merged commit 5a68c97 into Khan:master Jan 13, 2017
edemaine pushed a commit to edemaine/KaTeX that referenced this pull request Aug 16, 2017
This is based on Khan/MathJax-dev#2
which hasn't been accepted yet at the time this commit is made.
kevinbarabash pushed a commit to KaTeX/KaTeX that referenced this pull request Sep 22, 2017
* 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
kevinbarabash pushed a commit to KaTeX/katex-fonts that referenced this pull request Feb 2, 2018
* 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
kevinbarabash pushed a commit to KaTeX/katex-fonts that referenced this pull request Feb 4, 2018
* 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants