-
-
Notifications
You must be signed in to change notification settings - Fork 65
Don't hardcode unicode-symbols #1673
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
base: improve_latex_form
Are you sure you want to change the base?
Don't hardcode unicode-symbols #1673
Conversation
Also op-tables.json -> character-tables.json since that's what it is.
| sup_string = self.superindex.get_string_value() | ||
| # Handle derivatives | ||
| if sup_string == "\u2032": | ||
| if sup_string == named_characters["LeftDoubleBracket"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not "\[LeftDoubleBracket]" but "\[Prime]" (the derivative, see comment above)
| ( | ||
| String("\u301A"), | ||
| String("\u301B"), | ||
| String(named_characters["LeftDoubleBracket"]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes a lot of sense, thanks!
| if sup_string == named_characters["LeftDoubleBracket"]: | ||
| return "%s'" % tex1 | ||
| if sup_string == "\u2032\u2032": | ||
| if sup_string == named_characters["LeftDoubleBracket"] * 2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is This is not "\[LeftDoubleBracket]\[LeftDoubleBracket]" but "\[Prime]\[Prime]" (the derivative, see comment above)
mmatera
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the two wrong names, LGTM
Don't hardcode unicode-symbols. Also, op-tables.json -> character-tables.json since that's what it is.