Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CJK full-width punctuation + Unicode dots #814

Merged
merged 2 commits into from
Aug 22, 2017

Conversation

edemaine
Copy link
Member

@edemaine edemaine commented Aug 21, 2017

Fix for #812. Screenshot:

cjk

I found two unicode groups that were missing for the symbols that @zhzhzoo listed in #812:

I also reformatted the regex more minimally. Happy to revert if that's not preferred, but I think the comment covers the intent pretty clearly. (Perhaps we should add the wiktionary links above?)

@zhzhzoo also listed "…" (U+2026) for ellipsis. This was easy to add using @kevinbarabash's new Unicode character functionality. While I was at it, I added support for all already-supported forms of ellipsis.

@kevinbarabash
Copy link
Member

The height for some of these characters is going to be wrong, but I think that's okay b/c there will almost always be non-punctuation CJK characters around them.

Copy link
Member

@kevinbarabash kevinbarabash left a comment

Choose a reason for hiding this comment

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

LGTM

@kevinbarabash kevinbarabash merged commit dd0c14a into KaTeX:master Aug 22, 2017
@kevinbarabash
Copy link
Member

I'm glad that this was easy to add. Thanks @edemaine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants