Support Unicode relations#933
Conversation
This is the first in a series of PRs to give KaTeX the ability to recognize Unicode character input. The code in this PR follows the style of PR #410. All the characters in this PR will produce rel atoms. I’ll submit PRs for other atom types later.
|
I’ve omitted, for now, some characters because they are HTML reserved characters, or because they need |
|
Earlier KaTeX efforts toward Unicode input have stalled for fear of future broken content. So I’ve collected some data for use in vetting this work. The following table shows: (1) the KaTeX function to which each character is mapped, (2) confirmation whether unicode math and/or John Cook’s conversion page map it the same way, (3) possible alternates that I did not use.
|
|
@ronkok |
|
I see that you added |
|
The |
|
This particular PR does have a one-to-one match between |
|
In terms of conflicts I think we should defer to using |
|
When you see all the
Again, we don't have to settle the hard cases now. That can come later. |
|
Well that's not cool. 😞 |
|
Most of the |
|
Also, here's the data behind John Cook's conversion page. |
This commit fixes a brain cramp of mine.
|
The most recent commit fixes a brain cramp of mine. After going to the trouble to create a table that documents a good mapping, the script I used to edit Fixed now. |
k4b7
left a comment
There was a problem hiding this comment.
LGTM. It's exciting to see support for so many unicode characters being added.
|
@ronkok thanks for the PR. |
This is the first in a series of PRs to give KaTeX the ability to recognize Unicode character input. The code in this PR follows the style of PR #410.
All the characters in this PR will produce
relatoms. I’ll submit PRs for other atom types later.