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

Update string handling to handle SMP unicode blocks better. #504

Merged
merged 3 commits into from
Jun 15, 2020

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented May 29, 2020

This PR updates the string-handling functions to take advantage of some ES6 string functions (fromCodePoint(), codePointAt(), and the fact that Array.from() splits a string into an array of unicode characters). It also enhances the TeX parser string handling to handle unicode characters better. E.g., you can use a (single) unicode character as a macro name (e.g., ) or as an argument (e.g. \sqrt α) or in macro definition templates (e.g., \def\x #1α{[#1]} so that \x abcα will produce [abc]), and so on.

@dpvc dpvc requested a review from zorkow May 29, 2020 21:17
@dpvc dpvc added this to the v3.1.0 milestone Jun 1, 2020
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

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

Just some minor changes.

@dpvc dpvc merged commit 2304a46 into develop Jun 15, 2020
@dpvc dpvc deleted the unicode-strings branch June 15, 2020 19:35
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